/* ============================================
   THEME LÉGENDAIRE — BOIS NOBLE v6
   TOUTES LES PAGES — Zero pseudo-texture
   background-blend-mode: normal partout
   background-attachment: scroll partout
   ============================================ */

/* ══════════════════════════════════════════
   VARIABLES
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] {
  --wood-dark: url('textures/wood-dark.jpg?v=1774293320');
  --wood-body: url('textures/wood-body.jpg?v=1774293320');
  --wood-medium: url('textures/wood-medium.jpg?v=1774293320');
  --wood-light: url('textures/wood-light-premium.jpg?v=1774293320');
  --bg-primary: #2C1E12;
  --bg-secondary: #3A2A1A;
  --bg-tertiary: #4A3828;
  --bg-card: #4A3525;
  --bg-hover: #5A4530;
  --bg-input: #241A0E;
  --bg-sidebar: #1E140C;
  --bg-header: #1E140C;
  --text: #F2E8D8;
  --text-secondary: #DCC8A8;
  --text-muted: #9A7D5E;
  --accent: #D4A44C;
  --accent-hover: #E0B860;
  --accent-light: rgba(212,164,76,0.15);
  --accent-bg: rgba(212,164,76,0.08);
  --border: rgba(212,164,76,0.15);
  --border-light: rgba(212,164,76,0.08);
  --shadow: rgba(0,0,0,0.4);
  --shadow-lg: rgba(0,0,0,0.6);
  --success: #7A9E5A;
  --warning: #D4A44C;
  --danger: #C06040;
  --info: #7A9AAA;
  --scrollbar-track: #2C1E12;
  --scrollbar-thumb: #6A5040;
  --modal-bg: #3A2A1A;
  --tooltip-bg: #1E140C;
  --badge-bg: #D4A44C;
  --badge-text: #1E140C;
  --glass-bg: rgba(44,30,18,0.92);
  --glass-border: rgba(212,164,76,0.12);
  --code-bg: #1E140C;
  --bubble-inprogress-bg: transparent;
  --bubble-inprogress-border: rgba(212,164,76,0.25);
  --bubble-inprogress-glow: 0 3px 12px rgba(0,0,0,0.35);
  --bubble-done-bg: transparent;
  --bubble-done-border: rgba(122,158,90,0.3);
  --bubble-done-glow: 0 3px 12px rgba(0,0,0,0.35);
  --bubble-done-text: #7A9E5A;
}

/* ══════════════════════════════════════════
   GPU LAYER — tous éléments texturés
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] body,
[data-theme="wood-legendary"] .main-content,
[data-theme="wood-legendary"] .app-header,
[data-theme="wood-legendary"] .bubble,
[data-theme="wood-legendary"] .task-bubble,
[data-theme="wood-legendary"] .glass-card,
[data-theme="wood-legendary"] .kpi-card,
[data-theme="wood-legendary"] .card,
[data-theme="wood-legendary"] .stat-card,
[data-theme="wood-legendary"] .metric-card,
[data-theme="wood-legendary"] .widget-card,
[data-theme="wood-legendary"] .dashboard-widget,
[data-theme="wood-legendary"] .modal-box,
[data-theme="wood-legendary"] .modal-content,
[data-theme="wood-legendary"] .modal-card,
[data-theme="wood-legendary"] .theme-selector-modal,
[data-theme="wood-legendary"] .dropdown-menu,
[data-theme="wood-legendary"] .context-menu,
[data-theme="wood-legendary"] .menu-dropdown,
[data-theme="wood-legendary"] .toast,
[data-theme="wood-legendary"] .task-input-section,
[data-theme="wood-legendary"] .db-kpi-big,
[data-theme="wood-legendary"] .db-kpi-small,
[data-theme="wood-legendary"] .db-hero,
[data-theme="wood-legendary"] .db-actions-panel,
[data-theme="wood-legendary"] .db-brief-panel,
[data-theme="wood-legendary"] .db-card,
[data-theme="wood-legendary"] .db-chart-card,
[data-theme="wood-legendary"] .mbw-card,
[data-theme="wood-legendary"] .mbw-stat,
[data-theme="wood-legendary"] .db-qa-item,
[data-theme="wood-legendary"] .db-insight-bar,
[data-theme="wood-legendary"] .acc-stat-card,
[data-theme="wood-legendary"] .acc-kpi-premium-card,
[data-theme="wood-legendary"] .acc-chart-card,
[data-theme="wood-legendary"] .acc-detail-card,
[data-theme="wood-legendary"] .acc-budget-card,
[data-theme="wood-legendary"] .acc-fiscal-card,
[data-theme="wood-legendary"] .acc-tva-card,
[data-theme="wood-legendary"] .crm-auto-card,
[data-theme="wood-legendary"] .project-card,
[data-theme="wood-legendary"] .adv-card,
[data-theme="wood-legendary"] .ai-card-inner,
[data-theme="wood-legendary"] .ai-option-card,
[data-theme="wood-legendary"] .maha-msg-bubble,
[data-theme="wood-legendary"] .notif-section-card,
[data-theme="wood-legendary"] .gv-hero {
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ══════════════════════════════════════════
   BODY — fond bois foncé
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] body {
  background-color: #2C1E12 !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  overflow-x: hidden !important;
  background-position: center top !important;
  background-attachment: scroll !important;
}

/* ══════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .main-content,
[data-theme="wood-legendary"] main.main-content {
  background-color: #2C1E12 !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
  background-blend-mode: normal !important;
  transition: none !important;
  overflow-x: hidden !important;
}

/* Toutes les vues = fond transparent */
[data-theme="wood-legendary"] #view-tasks,
[data-theme="wood-legendary"] #view-dashboard,
[data-theme="wood-legendary"] #view-galaxy,
[data-theme="wood-legendary"] #view-crm,
[data-theme="wood-legendary"] #view-giri-drive,
[data-theme="wood-legendary"] #view-calendar,
[data-theme="wood-legendary"] #view-billing,
[data-theme="wood-legendary"] #view-settings,

[data-theme="wood-legendary"] #view-projects,
[data-theme="wood-legendary"] #view-analytics,
[data-theme="wood-legendary"] #view-reports,
[data-theme="wood-legendary"] #view-journal,
[data-theme="wood-legendary"] #view-accounting,
[data-theme="wood-legendary"] #view-commandCenter,
[data-theme="wood-legendary"] #view-admin,
[data-theme="wood-legendary"] #view-gamification,
[data-theme="wood-legendary"] #view-mahayawen-hub,
[data-theme="wood-legendary"] #view-mail,
[data-theme="wood-legendary"] #view-campaigns,
[data-theme="wood-legendary"] #view-tunnel-club,
[data-theme="wood-legendary"] #view-giri-store,
[data-theme="wood-legendary"] #view-giri-academy,
[data-theme="wood-legendary"] #view-booking,
[data-theme="wood-legendary"] #view-team-vision,
[data-theme="wood-legendary"] #view-giri-vision,
[data-theme="wood-legendary"] #view-habits,
[data-theme="wood-legendary"] #view-pause-bien-etre,
[data-theme="wood-legendary"] #view-life-insights,
[data-theme="wood-legendary"] #view-spotify,
[data-theme="wood-legendary"] #view-referral,
[data-theme="wood-legendary"] #view-productive-tools,
[data-theme="wood-legendary"] #view-focus-mode,
[data-theme="wood-legendary"] .tasks-view,
[data-theme="wood-legendary"] .columns-view,
[data-theme="wood-legendary"] .bubbles-view {
  background: transparent !important;
}

/* ══════════════════════════════════════════
   SIDEBAR — bois foncé
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .sidebar,
[data-theme="wood-legendary"] #app-sidebar {
  background-color: #1E140C !important;
  background-image: var(--wood-dark) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  background-blend-mode: normal !important;
  border-right: 1px solid rgba(212,164,76,0.1) !important;
  transition: none !important;
}
[data-theme="wood-legendary"] .sidebar-item,
[data-theme="wood-legendary"] .sidebar-item span,
[data-theme="wood-legendary"] .sidebar-section-title {
  color: rgba(255,230,160,0.85) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important;
}
[data-theme="wood-legendary"] .sidebar-item svg {
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,0.4)) drop-shadow(0 1px 0 rgba(200,160,100,0.12));
}
[data-theme="wood-legendary"] .sidebar-item:hover {
  background: rgba(255,190,80,0.08) !important;
}
[data-theme="wood-legendary"] .sidebar-item.active,
[data-theme="wood-legendary"] .sidebar-item.active span {
  background: transparent !important;
  border-left: none !important;
  color: rgba(255,230,160,0.85) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important;
}

/* ══════════════════════════════════════════
   HEADER — bois foncé
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .app-header {
  background-color: #1E140C !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.12) !important;
  box-shadow: 0 3px 15px rgba(0,0,0,0.5) !important;
}

/* ══════════════════════════════════════════
   A. CARTES PRINCIPALES — bois clair (--wood-light)
   Couvre TOUTES les pages
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .glass-card,
[data-theme="wood-legendary"] .kpi-card,
[data-theme="wood-legendary"] .card,
[data-theme="wood-legendary"] .stat-card,
[data-theme="wood-legendary"] .metric-card,
[data-theme="wood-legendary"] .widget-card,
[data-theme="wood-legendary"] .dashboard-widget,
[data-theme="wood-legendary"] .db-kpi-big,
[data-theme="wood-legendary"] .db-kpi-small,
[data-theme="wood-legendary"] .db-insight-bar,
[data-theme="wood-legendary"] .mbw-stat,
[data-theme="wood-legendary"] .acc-stat-card,
[data-theme="wood-legendary"] .acc-kpi-premium-card,
[data-theme="wood-legendary"] .acc-chart-card,
[data-theme="wood-legendary"] .acc-detail-card,
[data-theme="wood-legendary"] .acc-budget-card,
[data-theme="wood-legendary"] .acc-fiscal-card,
[data-theme="wood-legendary"] .acc-tva-card,
[data-theme="wood-legendary"] .acc-info-prem-card,
[data-theme="wood-legendary"] .acc-alert-card,
[data-theme="wood-legendary"] .acc-tva-dashboard-widget,
[data-theme="wood-legendary"] .acc-due-soon-widget,
[data-theme="wood-legendary"] .acc-obligation-widget,
[data-theme="wood-legendary"] .acc-cfo-kpi-card,
[data-theme="wood-legendary"] .crm-ai-score-box,
[data-theme="wood-legendary"] .project-card,
[data-theme="wood-legendary"] .ai-option-card,
[data-theme="wood-legendary"] .ai-analysis-card,
[data-theme="wood-legendary"] .notif-section-card,
[data-theme="wood-legendary"] .notif-card-premium,
[data-theme="wood-legendary"] .activity-card,
[data-theme="wood-legendary"] .gv-hero,
[data-theme="wood-legendary"] .badge-item {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}

/* ══════════════════════════════════════════
   B. CARTES SECONDAIRES — bois moyen (--wood-medium)
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .db-card,
[data-theme="wood-legendary"] .db-chart-card,
[data-theme="wood-legendary"] .db-actions-panel,
[data-theme="wood-legendary"] .db-brief-panel,
[data-theme="wood-legendary"] .db-hero,
[data-theme="wood-legendary"] .mbw-card,
[data-theme="wood-legendary"] .mb-container,
[data-theme="wood-legendary"] .crm-auto-card,
[data-theme="wood-legendary"] .adv-card,
[data-theme="wood-legendary"] .ai-card-inner,
[data-theme="wood-legendary"] .ai-chart-card,
[data-theme="wood-legendary"] .ai-doctor-panel,
[data-theme="wood-legendary"] .maha-proactive-card,
[data-theme="wood-legendary"] .mail-activity-chart,
[data-theme="wood-legendary"] .acc-chart-container,
[data-theme="wood-legendary"] .acc-cfo-chart-container,
[data-theme="wood-legendary"] .cmb-content {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}

/* ══════════════════════════════════════════
   C. SOUS-ÉLÉMENTS — bois body (--wood-body)
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .db-qa-item,
[data-theme="wood-legendary"] .mb-stat-card,
[data-theme="wood-legendary"] .mbw-event-chip,
[data-theme="wood-legendary"] .mbw-deal-row,
[data-theme="wood-legendary"] .crm-action-row,
[data-theme="wood-legendary"] .crm-auto-card-header,
[data-theme="wood-legendary"] .acc-table-row,
[data-theme="wood-legendary"] .acc-section-header,
[data-theme="wood-legendary"] .mail-detail-meta,
[data-theme="wood-legendary"] .gcal-mb-item,
[data-theme="wood-legendary"] .maha-qa-chip,
[data-theme="wood-legendary"] .badge-tooltip,
[data-theme="wood-legendary"] .digest-preview {
  background-color: rgba(160,110,50,0.15) !important;
  background-image: var(--wood-body) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 12px !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
}

/* ══════════════════════════════════════════
   D. TASK COLUMNS + BUBBLES
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .task-column {
  background-color: #3A2A1A !important;
  background-image: var(--wood-medium) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
  padding: 12px !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}
[data-theme="wood-legendary"] .column-header {
  background: transparent !important;
  border-bottom: 2px solid rgba(212,164,76,0.1) !important;
}
[data-theme="wood-legendary"] .column-header h2 {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .column-count {
  background-color: rgba(15,7,0,0.82) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,210,130,0.15) !important;
}
[data-theme="wood-legendary"] .bubble,
[data-theme="wood-legendary"] .bubble.todo,
[data-theme="wood-legendary"] .bubble.inprogress,
[data-theme="wood-legendary"] .bubble.done,
[data-theme="wood-legendary"] .task-bubble,
[data-theme="wood-legendary"] #view-tasks .bubble,
[data-theme="wood-legendary"] .task-list .bubble,
[data-theme="wood-legendary"] .bubbles-list .bubble {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: top left !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,220,150,0.08) !important;
}
[data-theme="wood-legendary"] .bubble:hover {
  box-shadow: 0 5px 18px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.12), 0 0 0 1px rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .bubble.inprogress { border-left: 3px solid rgba(212,164,76,0.5) !important; }
[data-theme="wood-legendary"] .bubble.done { border-left: 3px solid rgba(122,158,90,0.4) !important; }
[data-theme="wood-legendary"] .bubble.done .bubble-text {
  color: #9A7D5E !important;
  text-decoration: line-through !important;
  opacity: 0.7 !important;
}

/* ══════════════════════════════════════════
   E. TASK INPUT
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .task-input-section {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.1) !important;
  border-radius: 6px !important;
}

/* ══════════════════════════════════════════
   F. MODALES / POPUPS — bois moyen
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .modal-box,
[data-theme="wood-legendary"] .modal-content,
[data-theme="wood-legendary"] .modal-card,
[data-theme="wood-legendary"] .theme-selector-modal,
[data-theme="wood-legendary"] .acc-modal,
[data-theme="wood-legendary"] .acc-modal-body,
[data-theme="wood-legendary"] .acc-quotes-form-modal,
[data-theme="wood-legendary"] .acc-sign-modal-overlay,
[data-theme="wood-legendary"] .academy-modal,
[data-theme="wood-legendary"] .academy-modal-body,
[data-theme="wood-legendary"] .aam-modal,
[data-theme="wood-legendary"] .aam-modal-body,
[data-theme="wood-legendary"] .ai-classification-modal,
[data-theme="wood-legendary"] .ai-preview-overlay,
[data-theme="wood-legendary"] .ai-report-modal-content,
[data-theme="wood-legendary"] .adv-student-modal,
[data-theme="wood-legendary"] .calendar-suggestions-modal,
[data-theme="wood-legendary"] .gv-levelup-box {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  box-shadow: 0 16px 60px rgba(0,0,0,0.7) !important;
}

/* ══════════════════════════════════════════
   G. DROPDOWNS / MENUS / TOASTS — bois foncé
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .dropdown-menu,
[data-theme="wood-legendary"] .context-menu,
[data-theme="wood-legendary"] .menu-dropdown {
  background-color: #1E140C !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.12) !important;
  box-shadow: 0 6px 25px rgba(0,0,0,0.6) !important;
}
[data-theme="wood-legendary"] .toast,
[data-theme="wood-legendary"] [class*="toast"] {
  background-color: #1E140C !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.15) !important;
  color: #F2E8D8 !important;
}

/* ══════════════════════════════════════════
   H. INPUTS / FORMULAIRES — universel
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] input,
[data-theme="wood-legendary"] textarea,
[data-theme="wood-legendary"] select,
[data-theme="wood-legendary"] .form-input,
[data-theme="wood-legendary"] .aam-input,
[data-theme="wood-legendary"] .maha-text-input,
[data-theme="wood-legendary"] .mail-editor {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(255,190,80,0.3) !important;
  border-radius: 10px !important;
  color: #FFF5DC !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] input:focus,
[data-theme="wood-legendary"] textarea:focus,
[data-theme="wood-legendary"] select:focus {
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3), 0 0 0 2px rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] input::placeholder,
[data-theme="wood-legendary"] textarea::placeholder {
  color: rgba(200,170,120,0.4) !important;
}

/* ══════════════════════════════════════════
   I. BOUTONS
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .btn-primary,
[data-theme="wood-legendary"] button[class*="primary"],
[data-theme="wood-legendary"] #add-task-btn {
  background: linear-gradient(180deg, #8B6914 0%, #705210 100%) !important;
  color: #FFF0D4 !important;
  border: 1px solid rgba(212,164,76,0.3) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.4), 0 1px 0 rgba(255,210,130,0.2) !important;
}
[data-theme="wood-legendary"] .btn-primary:hover,
[data-theme="wood-legendary"] button[class*="primary"]:hover {
  background: linear-gradient(180deg, #9A7818 0%, #805E14 100%) !important;
}
[data-theme="wood-legendary"] .btn-secondary,
[data-theme="wood-legendary"] button[class*="secondary"],
[data-theme="wood-legendary"] .btn-outline {
  background: rgba(30,20,10,0.4) !important;
  color: #D4B896 !important;
  border: 1px solid rgba(212,164,76,0.18) !important;
}

/* Boutons d'action (Actions rapides, etc.) */
[data-theme="wood-legendary"] .db-qa-item,
[data-theme="wood-legendary"] .maha-qa-chip,
[data-theme="wood-legendary"] .mail-filter-btn,
[data-theme="wood-legendary"] .acc-tab,
[data-theme="wood-legendary"] .admin-tab {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}

/* ══════════════════════════════════════════
   J. TABLES / LISTES — universel
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] table th,
[data-theme="wood-legendary"] .acc-table th,
[data-theme="wood-legendary"] .acc-table-header {
  background-color: rgba(160,110,50,0.15) !important;
  background-image: var(--wood-body) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 2px solid rgba(212,164,76,0.15) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] table tr:nth-child(even),
[data-theme="wood-legendary"] .acc-table-row:nth-child(even) {
  background: rgba(255,200,100,0.06) !important;
}
[data-theme="wood-legendary"] table tr:nth-child(odd),
[data-theme="wood-legendary"] .acc-table-row:nth-child(odd) {
  background: rgba(0,0,0,0.08) !important;
}
[data-theme="wood-legendary"] table tr:hover,
[data-theme="wood-legendary"] .acc-table-row:hover {
  background: rgba(212,164,76,0.1) !important;
}

/* ══════════════════════════════════════════
   K. TABS / NAVIGATION
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .acc-tabs,
[data-theme="wood-legendary"] .admin-tabs,
[data-theme="wood-legendary"] .an-tabs,
[data-theme="wood-legendary"] .amp-nav,
[data-theme="wood-legendary"] .mail-filters {
  background: rgba(20,8,0,0.25) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(180,130,70,0.2) !important;
}
[data-theme="wood-legendary"] .acc-tab.active,
[data-theme="wood-legendary"] .admin-tab.active,
[data-theme="wood-legendary"] .mail-filter-btn.active {
  background: rgba(255,190,80,0.2) !important;
  color: #FFE8A0 !important;
  border-color: rgba(255,190,80,0.4) !important;
}

/* ══════════════════════════════════════════
   L. SECTIONS INTERNES (État des lieux, etc.)
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .mb-context-section,
[data-theme="wood-legendary"] .mb-events-section,
[data-theme="wood-legendary"] .mb-revenue-section,
[data-theme="wood-legendary"] .mb-conseil-wrap,
[data-theme="wood-legendary"] .mbw-ai-section,
[data-theme="wood-legendary"] .cmb-section,
[data-theme="wood-legendary"] .ai-panel-body,
[data-theme="wood-legendary"] .acc-reports-header {
  background: rgba(20,8,0,0.3) !important;
  border-radius: 10px !important;
  border-left: 2px solid rgba(255,190,80,0.45) !important;
  padding: 16px 20px !important;
  color: #FFF5DC !important;
}

/* ══════════════════════════════════════════
   M. HEADERS DE PAGE — bois foncé
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .db-hero {
  background-color: rgba(40,20,5,0.5) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  padding: 32px 40px 28px 40px !important;
  border-bottom: 1px solid rgba(255,200,100,0.15) !important;
  margin-bottom: 16px !important;
  margin-top: 12px !important;
}
[data-theme="wood-legendary"] .acc-header,
[data-theme="wood-legendary"] .academy-header,
[data-theme="wood-legendary"] .admin-header {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border-bottom: 1px solid rgba(255,200,100,0.15) !important;
  margin-bottom: 16px !important;
}

/* ══════════════════════════════════════════
   N. FILTER BAR
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .user-filter-bar {
  background: rgba(12,8,4,0.45) !important;
  border: 1px solid rgba(212,164,76,0.15) !important;
  border-radius: 6px !important;
}

/* ══════════════════════════════════════════
   O. SCROLLBAR
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="wood-legendary"] ::-webkit-scrollbar-track { background: rgba(20,14,8,0.6); }
[data-theme="wood-legendary"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6A5040, #5A3E2E, #6A5040);
  border-radius: 5px; border: 2px solid rgba(20,14,8,0.6);
}
[data-theme="wood-legendary"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7A6050, #6A4E3E, #7A6050);
}

/* ══════════════════════════════════════════
   P. DÉTAILS GLOBAUX
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] ::selection { background: rgba(212,164,76,0.35); color: #FFF8E8; }
[data-theme="wood-legendary"] a { color: #D4A44C; }
[data-theme="wood-legendary"] a:hover { color: #E0B860; }

[data-theme="wood-legendary"] .badge,
[data-theme="wood-legendary"] .tag,
[data-theme="wood-legendary"] .task-project,
[data-theme="wood-legendary"] .task-priority {
  background: rgba(212,164,76,0.12) !important;
  color: #D4A44C !important;
  border: 1px solid rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .task-priority.urgent {
  background: rgba(192,96,64,0.2) !important;
  color: #E08060 !important;
  border-color: rgba(192,96,64,0.3) !important;
}
[data-theme="wood-legendary"] hr,
[data-theme="wood-legendary"] .divider,
[data-theme="wood-legendary"] .mbw-divider {
  border: none !important;
  height: 2px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1), rgba(255,210,130,0.06)) !important;
}
[data-theme="wood-legendary"] .empty-state { color: #9A7D5E !important; }
[data-theme="wood-legendary"] .search-container input { background: rgba(15,10,5,0.5) !important; }
[data-theme="wood-legendary"] .user-badge {
  background: rgba(30,20,10,0.4) !important;
  border: 1px solid rgba(212,164,76,0.12) !important;
  color: #D4B896 !important;
}

/* ══════════════════════════════════════════
   LEGENDARY badge — sélecteur de thèmes
   ══════════════════════════════════════════ */
.category-legendary-title {
  background: linear-gradient(90deg, #C8943C, #E0B860, #C8943C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1em; letter-spacing: 3px; text-shadow: none;
}
.category-legendary-desc { color: #C8943C !important; font-style: italic; }
.theme-category-legendary {
  border: 1px solid rgba(212,164,76,0.2); border-radius: 12px;
  padding: 16px; margin-bottom: 20px; background: rgba(212,164,76,0.04);
}
.theme-card-legendary { border: 1px solid rgba(212,164,76,0.3) !important; position: relative; }
.theme-card-legendary::after {
  content: 'LEGENDARY';
  position: absolute; top: 4px; right: 4px;
  font-size: 7px; font-weight: bold; letter-spacing: 1px;
  color: #1E140C; background: linear-gradient(90deg, #C8943C, #E0B860);
  padding: 2px 5px; border-radius: 3px; z-index: 1;
}

/* ══════════════════════════════════════════════════════
   TYPOGRAPHIE — BOIS CLAIR (--wood-light)
   Texte gravé sombre sur fond clair
   ══════════════════════════════════════════════════════ */

/* Titres sur bois clair */
[data-theme="wood-legendary"] .db-kpi-big-val,
[data-theme="wood-legendary"] .db-kpi-small-val {
  color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-val--warn { color: #7A1800 !important; }
[data-theme="wood-legendary"] .db-kpi-big-val span[style*="opacity"] {
  color: rgba(42,18,0,0.45) !important; opacity: 1 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-label,
[data-theme="wood-legendary"] .db-kpi-small-label {
  color: #3B1A00 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35), 0px 1px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important; letter-spacing: 0.08em !important;
}
[data-theme="wood-legendary"] .db-kpi-big-sub {
  color: rgba(50,22,0,0.72) !important;
  text-shadow: 0px 1px 1px rgba(255,180,70,0.25) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge {
  background: rgba(61,31,0,0.08) !important;
  color: rgba(50,22,0,0.65) !important;
  border: 1px solid rgba(61,31,0,0.12) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge.good {
  background: rgba(40,80,20,0.1) !important; color: rgba(30,60,10,0.75) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge.warn {
  background: rgba(122,24,0,0.1) !important; color: #7A1800 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-icon {
  background: rgba(61,31,0,0.08) !important; border: 1px solid rgba(61,31,0,0.1) !important;
}
[data-theme="wood-legendary"] .db-kpi-progress { background: rgba(61,31,0,0.12) !important; }

/* Wildcard bois clair — texte sombre */
[data-theme="wood-legendary"] .db-kpi-big *,
[data-theme="wood-legendary"] .db-kpi-small *,
[data-theme="wood-legendary"] .db-brief-panel *,
[data-theme="wood-legendary"] .mb-container *,
[data-theme="wood-legendary"] .acc-stat-card *,
[data-theme="wood-legendary"] .acc-kpi-premium-card *,
[data-theme="wood-legendary"] .acc-tva-card *,
[data-theme="wood-legendary"] .acc-info-prem-card *,
[data-theme="wood-legendary"] .acc-cfo-kpi-card *,
[data-theme="wood-legendary"] .project-card *,
[data-theme="wood-legendary"] .notif-section-card * {
  color: #2A1200 !important;
}

/* ══════════════════════════════════════════════════════
   TYPOGRAPHIE — BOIS MOYEN/FONCÉ
   Texte clair doré sur fond sombre
   ══════════════════════════════════════════════════════ */

/* Wildcard bois moyen — texte clair */
[data-theme="wood-legendary"] .db-card *,
[data-theme="wood-legendary"] .db-chart-card *,
[data-theme="wood-legendary"] .db-actions-panel *,
[data-theme="wood-legendary"] .db-hero *,
[data-theme="wood-legendary"] .mbw-card *,
[data-theme="wood-legendary"] .crm-auto-card *,
[data-theme="wood-legendary"] .adv-card *,
[data-theme="wood-legendary"] .ai-card-inner *,
[data-theme="wood-legendary"] .ai-doctor-panel *,
[data-theme="wood-legendary"] .maha-proactive-card *,
[data-theme="wood-legendary"] .mail-activity-chart *,
[data-theme="wood-legendary"] .cmb-content * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9), 0px 1px 1px rgba(255,235,180,0.3) !important;
}

/* Textes secondaires sur bois foncé */
[data-theme="wood-legendary"] .db-act-meta,
[data-theme="wood-legendary"] .db-act-time,
[data-theme="wood-legendary"] .db-hero-sub,
[data-theme="wood-legendary"] .db-hero-eyebrow,
[data-theme="wood-legendary"] .db-last-update,
[data-theme="wood-legendary"] .mbw-subtitle {
  color: rgba(255,235,180,0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.85) !important;
}

/* Titres forts sur bois moyen/foncé */
[data-theme="wood-legendary"] .db-card .db-panel-title,
[data-theme="wood-legendary"] .db-chart-title,
[data-theme="wood-legendary"] .db-prog-label,
[data-theme="wood-legendary"] .db-hero-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.7), 0px 1px 0px rgba(255,230,100,0.4) !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
}
[data-theme="wood-legendary"] .db-hero-name { color: #FFE8A0 !important; text-shadow: 0px 2px 6px rgba(0,0,0,0.6), 0px 1px 0px rgba(255,220,120,0.3) !important; font-weight: 800 !important; }

/* Noms de tâches */
[data-theme="wood-legendary"] .db-act-text {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.85) !important;
  font-weight: 600 !important;
}

/* Labels stats */
[data-theme="wood-legendary"] .db-prog-sub,
[data-theme="wood-legendary"] .db-prog-ring-val,
[data-theme="wood-legendary"] .db-prog-leg-item,
[data-theme="wood-legendary"] .db-prog-wrap,
[data-theme="wood-legendary"] .db-prog-rate {
  color: rgba(255,235,180,0.9) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .db-prog-warn {
  color: #E08060 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Exceptions : barres de progression */
[data-theme="wood-legendary"] .db-card .db-prog-bar div,
[data-theme="wood-legendary"] .db-card .db-prog-leg-dot,
[data-theme="wood-legendary"] .db-chart-card .db-prog-bar div {
  color: inherit !important;
  text-shadow: none !important;
}

/* Chart SVG labels — clair */
[data-theme="wood-legendary"] .db-chart-card text,
[data-theme="wood-legendary"] .db-chart-card tspan,
[data-theme="wood-legendary"] .db-chart-card svg text,
[data-theme="wood-legendary"] .db-chart-card svg tspan {
  fill: rgba(255,240,200,0.9) !important;
}

/* Donut legend */
[data-theme="wood-legendary"] .db-donut-legend,
[data-theme="wood-legendary"] .db-donut-legend span {
  color: rgba(255,235,180,0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Activity items */
[data-theme="wood-legendary"] .db-act-item { border-bottom: 1px solid rgba(255,220,150,0.08) !important; }
[data-theme="wood-legendary"] .db-act-item:hover { background: rgba(255,220,150,0.04) !important; }
[data-theme="wood-legendary"] .db-act-icon {
  background: rgba(255,220,150,0.06) !important;
  border: 1px solid rgba(255,220,150,0.1) !important;
}

/* Dashboard containers transparent */
[data-theme="wood-legendary"] .db-kpi-row,
[data-theme="wood-legendary"] .db-main-row,
[data-theme="wood-legendary"] .db-bottom-grid,
[data-theme="wood-legendary"] .db-charts-grid {
  background: transparent !important;
}
[data-theme="wood-legendary"] .db-empty-state { color: rgba(255,215,140,0.6) !important; }
[data-theme="wood-legendary"] .db-cta-btn {
  background: rgba(255,220,150,0.08) !important;
  color: rgba(255,215,140,0.8) !important;
  border: 1px solid rgba(255,220,150,0.2) !important;
}
[data-theme="wood-legendary"] .db-refresh-btn {
  background: rgba(255,220,150,0.08) !important;
  color: rgba(255,215,140,0.7) !important;
  border: 1px solid rgba(255,220,150,0.15) !important;
}
[data-theme="wood-legendary"] .db-live-dot { background: rgba(255,200,100,0.6) !important; box-shadow: none !important; }

/* ══════════════════════════════════════════
   BRIEF WIDGET (.mbw-card) — textes spécifiques
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .mbw-card-glow {
  background: linear-gradient(90deg, transparent, rgba(212,164,76,0.5) 30%, rgba(232,192,96,0.6) 70%, transparent) !important;
}
[data-theme="wood-legendary"] .mbw-title {
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .mbw-stat-val { font-weight: 900 !important; }
[data-theme="wood-legendary"] .mbw-stat-lbl { font-weight: 700 !important; }
[data-theme="wood-legendary"] .mbw-ai-badge {
  background: rgba(20,8,0,0.2) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .mbw-refresh-btn {
  background: rgba(20,8,0,0.15) !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
}

/* ══════════════════════════════════════════
   MORNING BRIEF overlay — textes sombres sur bois moyen
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .mb-header-left,
[data-theme="wood-legendary"] .mb-slide-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .mb-slide-subtitle { color: rgba(50,22,0,0.65) !important; text-shadow: none !important; }
[data-theme="wood-legendary"] .mb-slide-body,
[data-theme="wood-legendary"] .mb-slide-content,
[data-theme="wood-legendary"] .mb-context-list,
[data-theme="wood-legendary"] .mb-conseil-text,
[data-theme="wood-legendary"] .mb-event-title,
[data-theme="wood-legendary"] .mb-event-time,
[data-theme="wood-legendary"] .mb-no-events,
[data-theme="wood-legendary"] .mb-streak-count,
[data-theme="wood-legendary"] .mb-revenue-val {
  color: #2A1200 !important;
  text-shadow: 0px 1px 2px rgba(255,180,70,0.3) !important;
}
[data-theme="wood-legendary"] .mb-section-title {
  color: #3B1A00 !important; font-weight: 700 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
}
[data-theme="wood-legendary"] .mb-stat-val {
  color: #2A1200 !important; font-weight: 900 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] .mb-stat-label {
  color: #3B1A00 !important; text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
}
[data-theme="wood-legendary"] .mb-conseil-badge { color: #3B1A00 !important; }
[data-theme="wood-legendary"] .mb-nav-btn,
[data-theme="wood-legendary"] .mb-skip-btn,
[data-theme="wood-legendary"] .mb-start-btn,
[data-theme="wood-legendary"] .mb-tts-btn {
  background: rgba(20,8,0,0.15) !important;
  color: #3B1A00 !important;
  border: 1px solid rgba(59,26,0,0.2) !important;
}
[data-theme="wood-legendary"] .mb-dot { background: rgba(59,26,0,0.25) !important; }
[data-theme="wood-legendary"] .mb-dot.active { background: #3B1A00 !important; }
[data-theme="wood-legendary"] .mb-progress-bar { background: rgba(20,8,0,0.3) !important; }
[data-theme="wood-legendary"] body .mb-stat-val[style] { color: #2A1200 !important; }

/* ══════════════════════════════════════════
   INSIGHT BAR — bois clair
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .db-insight-bar {
  padding: 10px 16px !important;
}
[data-theme="wood-legendary"] .db-insight-bar,
[data-theme="wood-legendary"] .db-insight-bar span,
[data-theme="wood-legendary"] .db-insight-bar strong {
  color: #2A1200 !important;
  text-shadow: 0px 1px 0px rgba(255,200,100,0.4) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-insight-dot {
  background: #D4A44C !important;
  box-shadow: 0 0 6px rgba(212,164,76,0.4) !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — CRM
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .crm-ai-score-circle { color: #2A1200 !important; }
[data-theme="wood-legendary"] .crm-ai-grade { color: #2A1200 !important; font-weight: 800 !important; }
[data-theme="wood-legendary"] .crm-ai-reason { color: rgba(50,22,0,0.85) !important; }
[data-theme="wood-legendary"] .cmb-title { color: #FFF5DC !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .cmb-section-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — ACCOUNTING
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .acc-header-title,
[data-theme="wood-legendary"] .academy-header-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .acc-header-subtitle,
[data-theme="wood-legendary"] .academy-header-subtitle {
  color: rgba(255,235,180,0.8) !important;
}
[data-theme="wood-legendary"] .acc-tva-widget-title,
[data-theme="wood-legendary"] .acc-obligation-widget-title {
  color: #2A1200 !important; font-weight: 700 !important;
}
[data-theme="wood-legendary"] .acc-tva-widget-value {
  color: #1A0800 !important; font-weight: 900 !important;
}
[data-theme="wood-legendary"] .acc-tva-widget-label {
  color: #3B1A00 !important; font-weight: 700 !important;
}
[data-theme="wood-legendary"] .acc-modal-header,
[data-theme="wood-legendary"] .acc-modal-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8) !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — MAIL
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .mail-3col-layout {
  background: transparent !important;
}
[data-theme="wood-legendary"] .mail-detail-body,
[data-theme="wood-legendary"] .mail-detail-text-clean {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .mail-bridge-bar {
  background: rgba(20,8,0,0.3) !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
}
[data-theme="wood-legendary"] .mail-empty,
[data-theme="wood-legendary"] .mail-empty-icon {
  color: #9A7D5E !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — ACADEMY
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .academy-body { background: transparent !important; }
[data-theme="wood-legendary"] .academy-empty-title { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .academy-empty-desc { color: rgba(255,235,180,0.7) !important; }
[data-theme="wood-legendary"] .academy-modal-header,
[data-theme="wood-legendary"] .academy-modal-title,
[data-theme="wood-legendary"] .aam-modal-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8) !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — MAHAYAWEN
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .maha-panel-header {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
}
[data-theme="wood-legendary"] .maha-panel-name { color: #FFE8A0 !important; }
[data-theme="wood-legendary"] .maha-panel-status { color: rgba(255,235,180,0.7) !important; }
[data-theme="wood-legendary"] .maha-messages { background: transparent !important; }
[data-theme="wood-legendary"] .maha-msg-bubble {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .maha-msg-time { color: rgba(255,235,180,0.6) !important; }
[data-theme="wood-legendary"] .maha-input-bar {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(255,190,80,0.3) !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .maha-typing-bubble { color: rgba(255,235,180,0.6) !important; }

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — GAMIFICATION
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gv-lb-row { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .gv-lb-name { color: #FFF5DC !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] .gv-lb-xp { color: rgba(255,235,180,0.8) !important; }
[data-theme="wood-legendary"] .gv-levelup-title { color: #FFE8A0 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .gv-levelup-sub { color: rgba(255,235,180,0.8) !important; }
[data-theme="wood-legendary"] .badge-name { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] .badge-rarity { color: #3B1A00 !important; }
[data-theme="wood-legendary"] .badge-tooltip-title { color: #FFF5DC !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .badge-tooltip-desc { color: rgba(255,235,180,0.8) !important; }

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — PROJECTS
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .project-detail-container { background: transparent !important; }
[data-theme="wood-legendary"] .project-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 2.2em !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7)) drop-shadow(0 0 8px rgba(212,164,76,0.3)) !important;
}
[data-theme="wood-legendary"] .project-detail-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7)) drop-shadow(0 0 8px rgba(212,164,76,0.3)) !important;
}
[data-theme="wood-legendary"] .project-detail-header {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — CALENDAR
   ══════════════════════════════════════════ */

/* ── VARIABLES CALENDRIER BOIS ── */
[data-theme="wood-legendary"] .gcal-root {
  --gcal-bg: transparent;
  --gcal-surface: rgba(74,53,37,0.6);
  --gcal-surface-2: rgba(90,69,48,0.5);
  --gcal-border: rgba(180,130,70,0.25);
  --gcal-border-h: rgba(212,164,76,0.4);
  --gcal-text: #FFF5DC;
  --gcal-text-2: #DCC8A8;
  --gcal-text-3: #9A7D5E;
  --gcal-accent: #D4A44C;
  --gcal-accent-rgb: 212,164,76;
  --gcal-today-bg: rgba(212,164,76,0.12);
  --gcal-today-ring: rgba(212,164,76,0.6);
  --gcal-weekend: rgba(30,20,12,0.3);
  --gcal-other: rgba(30,20,12,0.5);
  --gcal-shadow: 0 4px 24px rgba(0,0,0,0.5);
  --gcal-shadow-xl: 0 20px 60px rgba(0,0,0,0.7);
}

/* ── CONTENEUR PRINCIPAL ── */
[data-theme="wood-legendary"] .gcal-wrap {
  background-image: var(--wood-body) !important;
  background-size: 600px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  background-color: #2C1E12 !important;
}
[data-theme="wood-legendary"] .gcal-body {
  background: transparent !important;
}

/* ══════════════════════════════════════════
   HEADER — Bandeau bois sombre sculpté
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-header {
  background-image: var(--wood-dark) !important;
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  border-bottom: 2px solid rgba(180,130,70,0.35) !important;
  box-shadow:
    0 2px 0 rgba(255,210,130,0.06) inset,
    0 4px 16px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-mb-header {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gcal-mb-title { color: #FFE8A0 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .gcal-mb-text { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .gcal-mb-time { color: rgba(255,235,180,0.8) !important; }

/* Logo / icône */
[data-theme="wood-legendary"] .gcal-logo-icon {
  background: linear-gradient(135deg, rgba(212,164,76,0.25), rgba(140,100,40,0.15)) !important;
  border: 1px solid rgba(212,164,76,0.4) !important;
  color: #D4A44C !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.15) !important;
}

/* Titre période */
[data-theme="wood-legendary"] .gcal-title {
  color: #FFE8A0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
  font-weight: 700 !important;
}

/* Header = [ < Mars 2026 > ]  [ Aujourd'hui | + Evenement ] */
[data-theme="wood-legendary"] .gcal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 24px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Nav gauche : fleche + mois + fleche */
[data-theme="wood-legendary"] .gcal-header-nav {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  position: relative !important;
  z-index: 11 !important;
}

/* Fleches navigation — visibilite forcee */
[data-theme="wood-legendary"] .gcal-header-nav > .gcal-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 40px !important;
  height: 40px !important;
  position: relative !important;
  z-index: 12 !important;
}
[data-theme="wood-legendary"] .gcal-header-nav > .gcal-nav-btn svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  stroke: #FFE8A0 !important;
  width: 20px !important;
  height: 20px !important;
}

/* Label du mois — grande typo doree, visible par dessus bois */
[data-theme="wood-legendary"] .gcal-month-label,
[data-theme="wood-legendary"] #gcal-period {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #FFE8A0 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 20px rgba(212,164,76,0.3) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.5px !important;
  min-width: 200px !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 12 !important;
}

/* Boutons droite — positionnement absolu */
[data-theme="wood-legendary"] .gcal-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  margin-left: auto !important;
  transform: none !important;
}

/* Aujourd'hui — style bois subtil */
[data-theme="wood-legendary"] .gcal-nav-today {
  background-image: var(--wood-medium) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(74,56,40,0.7) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #DCC8A8 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.08) !important;
  transition: all 0.2s ease !important;
}
[data-theme="wood-legendary"] .gcal-nav-today:hover {
  border-color: rgba(212,164,76,0.5) !important;
  color: #FFE8A0 !important;
}

/* Masquer elements obsoletes */
[data-theme="wood-legendary"] .gcal-header-left,
[data-theme="wood-legendary"] .gcal-header-center,
[data-theme="wood-legendary"] .gcal-logo {
  display: none !important;
}

/* Navigation */
[data-theme="wood-legendary"] .gcal-nav-btn {
  background-image: var(--wood-medium) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(74,56,40,0.7) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFE8A0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,220,150,0.1) !important;
  transition: all 0.2s ease !important;
}
[data-theme="wood-legendary"] .gcal-nav-btn:hover {
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.15), 0 0 12px rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .gcal-nav-today {
  background: linear-gradient(180deg, #8B6914, #705210) !important;
  color: #FFF0D4 !important;
  border: 1px solid rgba(212,164,76,0.5) !important;
  box-shadow: 0 2px 8px rgba(139,105,20,0.4), inset 0 1px 0 rgba(255,220,150,0.2) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

/* View switcher */
[data-theme="wood-legendary"] .gcal-views {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: rgba(30,20,12,0.8) !important;
  border: 1px solid rgba(180,130,70,0.2) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] .gcal-view-btn {
  color: #9A7D5E !important;
  background: transparent !important;
  border-color: rgba(180,130,70,0.15) !important;
  transition: all 0.2s ease !important;
}
[data-theme="wood-legendary"] .gcal-view-btn:hover {
  color: #FFE8A0 !important;
  background: rgba(212,164,76,0.1) !important;
}
[data-theme="wood-legendary"] .gcal-view-btn.active {
  background-image: var(--wood-medium) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(139,105,20,0.5) !important;
  color: #FFE8A0 !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.1) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

/* Selecteur de vue - visible */

/* Bouton créer */
[data-theme="wood-legendary"] .gcal-btn-create {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  will-change: auto !important;
}

/* ══════════════════════════════════════════
   VUE MOIS — Grille bois sculptée
   ══════════════════════════════════════════ */

/* Entête jours (Lun, Mar, ...) */
[data-theme="wood-legendary"] .gcal-month-head {
  background-image: var(--wood-dark) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
}
[data-theme="wood-legendary"] .gcal-day-name {
  color: #D4A44C !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
}

/* Grille du mois */
[data-theme="wood-legendary"] .gcal-month-grid {
  background: transparent !important;
  gap: 1px !important;
}

/* Cellules jour */
[data-theme="wood-legendary"] .gcal-mcell {
  background-image: var(--wood-medium) !important;
  background-size: 350px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(74,53,37,0.6) !important;
  border: 1px solid rgba(140,100,50,0.25) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 1px 3px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
}
[data-theme="wood-legendary"] .gcal-mcell:hover {
  border-color: rgba(212,164,76,0.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.08),
    0 2px 8px rgba(0,0,0,0.3),
    0 0 15px rgba(212,164,76,0.08) !important;
}

/* Cellule aujourd'hui — halo doré */
[data-theme="wood-legendary"] .gcal-mcell.today {
  background-image: var(--wood-light) !important;
  background-size: 350px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(212,164,76,0.15) !important;
  border: 1px solid rgba(212,164,76,0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.15),
    0 0 20px rgba(212,164,76,0.15),
    0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Autre mois — bois assombri */
[data-theme="wood-legendary"] .gcal-mcell.other {
  background-image: var(--wood-dark) !important;
  background-color: rgba(20,12,6,0.5) !important;
  opacity: 0.6 !important;
}

/* Weekend — légèrement plus sombre */
[data-theme="wood-legendary"] .gcal-mcell.weekend {
  background-color: rgba(30,20,12,0.4) !important;
}

/* Numéros des jours */
[data-theme="wood-legendary"] .gcal-mday-num {
  color: #DCC8A8 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-mday-num.today {
  background: linear-gradient(135deg, #D4A44C, #8B6914) !important;
  color: #1E140C !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255,220,150,0.4) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(212,164,76,0.4), 0 0 12px rgba(212,164,76,0.2) !important;
}

/* Badge surcharge */
[data-theme="wood-legendary"] .gcal-day-overload-badge {
  background: linear-gradient(135deg, #D4A44C, #8B6914) !important;
  color: #1E140C !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

/* ── Événements chips (mois) ── */
[data-theme="wood-legendary"] .gcal-chip {
  background:
    linear-gradient(90deg, rgba(var(--ec-rgb, 212,164,76), 0.2), transparent 70%),
    rgba(30,20,12,0.7) !important;
  border-left: 3px solid var(--ec, #D4A44C) !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
  backdrop-filter: none !important;
}
[data-theme="wood-legendary"] .gcal-chip-title {
  color: #FFF5DC !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .gcal-chip-time {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .gcal-chip:hover {
  background:
    linear-gradient(90deg, rgba(var(--ec-rgb, 212,164,76), 0.3), transparent 70%),
    rgba(40,28,16,0.8) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 8px rgba(var(--ec-rgb, 212,164,76), 0.1) !important;
}

/* "+3 autres" */
[data-theme="wood-legendary"] .gcal-more {
  color: #D4A44C !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

/* Dots tâches */
[data-theme="wood-legendary"] .gcal-task-dots {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)) !important;
}

/* ══════════════════════════════════════════
   VUE SEMAINE — Colonnes bois
   ══════════════════════════════════════════ */

/* Entête semaine */
[data-theme="wood-legendary"] .gcal-week-head {
  background-image: var(--wood-dark) !important;
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  border-bottom: 2px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .gcal-wcol-head {
  color: #DCC8A8 !important;
  border-color: rgba(140,100,50,0.2) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-wcol-head.today {
  background: rgba(212,164,76,0.12) !important;
}
[data-theme="wood-legendary"] .gcal-wday-s {
  color: #9A7D5E !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
}
[data-theme="wood-legendary"] .gcal-wday-n {
  color: #DCC8A8 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .gcal-wday-n.today {
  background: linear-gradient(135deg, #D4A44C, #8B6914) !important;
  color: #1E140C !important;
  border-radius: 50% !important;
  text-shadow: 0 1px 0 rgba(255,220,150,0.4) !important;
  box-shadow: 0 2px 6px rgba(212,164,76,0.35) !important;
}
[data-theme="wood-legendary"] .gcal-wcol-tasks {
  color: #D4A44C !important;
}

/* Corps semaine */
[data-theme="wood-legendary"] .gcal-week-body {
  background: transparent !important;
  scrollbar-color: rgba(180,130,70,0.3) rgba(30,20,12,0.4) !important;
}

/* Colonne temps */
[data-theme="wood-legendary"] .gcal-time-col {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: rgba(30,20,12,0.8) !important;
  border-right: 1px solid rgba(140,100,50,0.25) !important;
}
[data-theme="wood-legendary"] .gcal-hlabel {
  color: #9A7D5E !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4) !important;
  font-size: 0.72rem !important;
}

/* Colonnes jours */
[data-theme="wood-legendary"] .gcal-wcol {
  background-image: var(--wood-body) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(44,30,18,0.5) !important;
  border-color: rgba(140,100,50,0.15) !important;
}
[data-theme="wood-legendary"] .gcal-wcol.today {
  background-image: var(--wood-medium) !important;
  background-color: rgba(212,164,76,0.08) !important;
  box-shadow: inset 0 0 30px rgba(212,164,76,0.05) !important;
}

/* Slots horaires */
[data-theme="wood-legendary"] .gcal-hslot {
  border-color: rgba(140,100,50,0.12) !important;
}
[data-theme="wood-legendary"] .gcal-hslot:hover {
  background: rgba(212,164,76,0.06) !important;
}

/* Événements semaine */
[data-theme="wood-legendary"] .gcal-wev {
  background:
    linear-gradient(135deg, rgba(var(--ec-rgb, 212,164,76), 0.25), rgba(var(--ec-rgb, 212,164,76), 0.1)) !important;
  background-color: rgba(44,30,18,0.85) !important;
  border: 1px solid rgba(var(--ec-rgb, 212,164,76), 0.35) !important;
  border-left: 3px solid var(--ec, #D4A44C) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,220,150,0.06) !important;
  backdrop-filter: none !important;
}
[data-theme="wood-legendary"] .gcal-wev:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 12px rgba(var(--ec-rgb, 212,164,76), 0.12) !important;
}
[data-theme="wood-legendary"] .gcal-wev-title {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .gcal-wev-time {
  color: #DCC8A8 !important;
}

/* Ligne "maintenant" — dorée */
[data-theme="wood-legendary"] .gcal-nowline {
  background: linear-gradient(90deg, #D4A44C, rgba(212,164,76,0.3)) !important;
  height: 2px !important;
  box-shadow: 0 0 8px rgba(212,164,76,0.4) !important;
}
[data-theme="wood-legendary"] .gcal-nowdot,
[data-theme="wood-legendary"] .gcal-now-dot {
  background: #D4A44C !important;
  box-shadow: 0 0 8px rgba(212,164,76,0.6), 0 0 16px rgba(212,164,76,0.3) !important;
}

/* Barre journée entière */
[data-theme="wood-legendary"] .gcal-allday-row,
[data-theme="wood-legendary"] .gcal-allday-bar {
  background-image: var(--wood-dark) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(30,20,12,0.7) !important;
  border-bottom: 1px solid rgba(140,100,50,0.2) !important;
}
[data-theme="wood-legendary"] .gcal-allday-pill {
  background:
    linear-gradient(90deg, rgba(var(--ec-rgb, 212,164,76), 0.2), transparent 80%),
    rgba(44,30,18,0.8) !important;
  border: 1px solid rgba(var(--ec-rgb, 212,164,76), 0.3) !important;
  border-left: 3px solid var(--ec, #D4A44C) !important;
  color: #FFF5DC !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

/* Tgutter (label "Jour entier") */
[data-theme="wood-legendary"] .gcal-tgutter {
  color: #9A7D5E !important;
  background-image: var(--wood-dark) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(30,20,12,0.8) !important;
}

/* ══════════════════════════════════════════
   VUE JOUR — Timeline bois
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-day-view {
  background: transparent !important;
}
[data-theme="wood-legendary"] .gcal-day-grid {
  background: transparent !important;
}
[data-theme="wood-legendary"] .gcal-dcol {
  background-image: var(--wood-body) !important;
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(44,30,18,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-dcol.today {
  background-image: var(--wood-medium) !important;
  background-color: rgba(212,164,76,0.05) !important;
}

/* Événements jour */
[data-theme="wood-legendary"] .gcal-dev {
  background:
    linear-gradient(135deg, rgba(var(--ec-rgb, 212,164,76), 0.25), rgba(var(--ec-rgb, 212,164,76), 0.08)),
    rgba(44,30,18,0.88) !important;
  border: 1px solid rgba(var(--ec-rgb, 212,164,76), 0.35) !important;
  border-left: 4px solid var(--ec, #D4A44C) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.06) !important;
}
[data-theme="wood-legendary"] .gcal-dev:hover {
  box-shadow: 0 5px 18px rgba(0,0,0,0.45), 0 0 15px rgba(var(--ec-rgb, 212,164,76), 0.12) !important;
}
[data-theme="wood-legendary"] .gcal-dev-title {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .gcal-dev-time {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .gcal-dev-loc {
  color: #9A7D5E !important;
}

/* Tâches jour */
[data-theme="wood-legendary"] .gcal-day-tasks {
  background-image: var(--wood-dark) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(30,20,12,0.7) !important;
  border: 1px solid rgba(140,100,50,0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] .gcal-day-tasks-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-day-task-item {
  color: #FFF5DC !important;
  border-bottom: 1px solid rgba(140,100,50,0.12) !important;
}
[data-theme="wood-legendary"] .gcal-day-task-text {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gcal-day-task-text.done {
  color: #7A9E5A !important;
  opacity: 0.7 !important;
}
[data-theme="wood-legendary"] .gcal-day-task-icon {
  color: #D4A44C !important;
}
[data-theme="wood-legendary"] .gcal-day-task-icon.done {
  color: #7A9E5A !important;
}

/* ══════════════════════════════════════════
   SIDE PANEL — Panneau latéral bois sombre
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-sidepanel,
[data-theme="wood-legendary"] #gcal-sidepanel {
  background-image: var(--wood-dark) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  border-left: 2px solid rgba(180,130,70,0.3) !important;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-sp-header {
  border-bottom: 1px solid rgba(180,130,70,0.2) !important;
}
[data-theme="wood-legendary"] .gcal-sp-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
}
[data-theme="wood-legendary"] .gcal-sp-close {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .gcal-sp-close:hover {
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .gcal-sp-section-title {
  color: #D4A44C !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .gcal-sp-add {
  color: #D4A44C !important;
  border-color: rgba(212,164,76,0.3) !important;
}
[data-theme="wood-legendary"] .gcal-sp-add:hover {
  background: rgba(212,164,76,0.1) !important;
}
[data-theme="wood-legendary"] .gcal-sp-empty {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .gcal-sp-ev {
  border-bottom: 1px solid rgba(140,100,50,0.12) !important;
}
[data-theme="wood-legendary"] .gcal-sp-ev:hover {
  background: rgba(212,164,76,0.06) !important;
}
[data-theme="wood-legendary"] .gcal-sp-ev-title {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .gcal-sp-ev-time {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .gcal-sp-task {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gcal-sp-task-check {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .gcal-sp-task-check.done {
  color: #7A9E5A !important;
}

/* ══════════════════════════════════════════
   MODALES & FORMULAIRES — Bois moyen
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-overlay,
[data-theme="wood-legendary"] #gcal-modal {
  background: rgba(10,5,0,0.75) !important;
  backdrop-filter: blur(4px) !important;
}

/* Popup/Form/Detail */
[data-theme="wood-legendary"] .gcal-popup,
[data-theme="wood-legendary"] .gcal-form,
[data-theme="wood-legendary"] .gcal-detail,
[data-theme="wood-legendary"] .gcal-day-pop {
  background-image: var(--wood-medium) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: #3A2A1A !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  border-radius: 16px !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(212,164,76,0.06) inset,
    0 0 40px rgba(212,164,76,0.06) !important;
  color: #FFF5DC !important;
}

/* Header popup */
[data-theme="wood-legendary"] .gcal-pop-head {
  border-bottom: 1px solid rgba(180,130,70,0.2) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .gcal-pop-head h3 {
  color: #FFE8A0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-pop-close {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .gcal-pop-close:hover {
  color: #FFE8A0 !important;
}

/* Detail bar (barre colorée) */
[data-theme="wood-legendary"] .gcal-detail-bar {
  border-radius: 16px !important;
  opacity: 0.7 !important;
}
[data-theme="wood-legendary"] .gcal-detail-title {
  color: #FFE8A0 !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-detail-meta,
[data-theme="wood-legendary"] .gcal-detail-row {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .gcal-detail-desc {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gcal-type-badge {
  border: 1px solid rgba(180,130,70,0.2) !important;
}

/* Day popup events */
[data-theme="wood-legendary"] .gcal-pop-ev {
  color: #FFF5DC !important;
  border-bottom: 1px solid rgba(140,100,50,0.12) !important;
}
[data-theme="wood-legendary"] .gcal-pop-ev:hover {
  background: rgba(212,164,76,0.06) !important;
}

/* Inputs / Textarea */
[data-theme="wood-legendary"] .gcal-input,
[data-theme="wood-legendary"] .gcal-textarea,
[data-theme="wood-legendary"] .gcal-title-inp {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25) !important;
}
[data-theme="wood-legendary"] .gcal-input:focus,
[data-theme="wood-legendary"] .gcal-textarea:focus,
[data-theme="wood-legendary"] .gcal-title-inp:focus {
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 0 8px rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .gcal-input::placeholder,
[data-theme="wood-legendary"] .gcal-textarea::placeholder,
[data-theme="wood-legendary"] .gcal-title-inp::placeholder {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .gcal-flabel {
  color: #DCC8A8 !important;
  font-weight: 600 !important;
}

/* Select/Color input */
[data-theme="wood-legendary"] .gcal-input option {
  background: #3A2A1A !important;
  color: #FFF5DC !important;
}

/* Toggle switch */
[data-theme="wood-legendary"] .gcal-toggle-track {
  background: rgba(30,20,12,0.6) !important;
  border: 1px solid rgba(140,100,50,0.3) !important;
}
[data-theme="wood-legendary"] .gcal-toggle input:checked + .gcal-toggle-track {
  background: linear-gradient(135deg, #D4A44C, #8B6914) !important;
  border-color: rgba(212,164,76,0.5) !important;
}
[data-theme="wood-legendary"] .gcal-toggle-thumb {
  background: #FFF5DC !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
}

/* ══════════════════════════════════════════
   BOUTONS — Or sur bois
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-btn-prim {
  background: linear-gradient(180deg, #A07818, #705210) !important;
  color: #FFF0D4 !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.2) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .gcal-btn-prim:hover {
  background: linear-gradient(180deg, #B88C20, #8B6914) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.45), 0 0 12px rgba(212,164,76,0.2), inset 0 1px 0 rgba(255,220,150,0.25) !important;
}
[data-theme="wood-legendary"] .gcal-btn-sec {
  background-image: var(--wood-dark) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(30,20,12,0.6) !important;
  color: #DCC8A8 !important;
  border: 1px solid rgba(140,100,50,0.3) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.05) !important;
}
[data-theme="wood-legendary"] .gcal-btn-sec:hover {
  border-color: rgba(212,164,76,0.4) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .gcal-btn-danger {
  background: linear-gradient(180deg, rgba(192,96,64,0.8), rgba(150,60,30,0.8)) !important;
  color: #FFF5DC !important;
  border: 1px solid rgba(192,96,64,0.4) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] .gcal-btn-danger:hover {
  background: linear-gradient(180deg, rgba(210,110,70,0.9), rgba(170,70,35,0.9)) !important;
}
[data-theme="wood-legendary"] .gcal-btn-sync {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* Footer formulaire */
[data-theme="wood-legendary"] .gcal-form-foot {
  border-top: 1px solid rgba(180,130,70,0.2) !important;
}

/* ══════════════════════════════════════════
   CAL-V7 — Anciennes classes (compat)
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .cal-v7-agenda-view { background: transparent !important; }
[data-theme="wood-legendary"] .cal-v7-agenda-event {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: rgba(255,245,220,0.15) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-event-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .cal-v7-agenda-event-time { color: rgba(50,22,0,0.85) !important; }
[data-theme="wood-legendary"] .cal-v7-ai-panel {
  background-image: var(--wood-medium) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(200,155,80,0.15) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] .cal-v7-ai-input {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(255,190,80,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cal-v7-month-day-header,
[data-theme="wood-legendary"] .cal-v7-week-day-header { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .cal-v7-month-day.today,
[data-theme="wood-legendary"] .cal-v7-week-day-header.today { background: rgba(212,164,76,0.15) !important; }

/* Cal-v7 header/toolbar */
[data-theme="wood-legendary"] .cal-v7-header,
[data-theme="wood-legendary"] .cal-v7-toolbar {
  background-image: var(--wood-dark) !important;
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  border-bottom: 2px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .cal-v7-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
}
[data-theme="wood-legendary"] .cal-v7-subtitle {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .cal-v7-nav-btn {
  background-image: var(--wood-medium) !important;
  background-size: 150px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(74,56,40,0.7) !important;
  color: #FFE8A0 !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .cal-v7-view-btn {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .cal-v7-view-btn.active {
  background: linear-gradient(180deg, rgba(139,105,20,0.4), rgba(112,82,16,0.4)) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .cal-v7-btn-primary {
  background: linear-gradient(180deg, #A07818, #705210) !important;
  color: #FFF0D4 !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
}
[data-theme="wood-legendary"] .cal-v7-btn-secondary {
  background-image: var(--wood-dark) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  color: #DCC8A8 !important;
  border: 1px solid rgba(140,100,50,0.3) !important;
}

/* Cal-v7 month grid */
[data-theme="wood-legendary"] .cal-v7-month-grid {
  background: transparent !important;
}
[data-theme="wood-legendary"] .cal-v7-month-day {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: rgba(74,53,37,0.5) !important;
  border: 1px solid rgba(140,100,50,0.2) !important;
}
[data-theme="wood-legendary"] .cal-v7-month-day.today {
  background-image: var(--wood-light) !important;
  border-color: rgba(212,164,76,0.4) !important;
  box-shadow: 0 0 15px rgba(212,164,76,0.1) !important;
}
[data-theme="wood-legendary"] .cal-v7-month-day-number {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .cal-v7-month-day-events {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cal-v7-more-events {
  color: #D4A44C !important;
}
[data-theme="wood-legendary"] .cal-v7-event-badge {
  box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* Cal-v7 inputs */
[data-theme="wood-legendary"] .cal-v7-input {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
  color: #FFF5DC !important;
}

/* Cal-v7 filters */
[data-theme="wood-legendary"] .cal-v7-filters {
  background: transparent !important;
}
[data-theme="wood-legendary"] .cal-v7-filter-chip {
  background-image: var(--wood-dark) !important;
  background-size: 150px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(30,20,12,0.6) !important;
  color: #DCC8A8 !important;
  border: 1px solid rgba(140,100,50,0.2) !important;
}
[data-theme="wood-legendary"] .cal-v7-filter-chip.active {
  background: linear-gradient(135deg, rgba(212,164,76,0.2), rgba(139,105,20,0.15)) !important;
  border-color: rgba(212,164,76,0.4) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .cal-v7-filter-label {
  color: #9A7D5E !important;
}

/* Cal-v7 modal */
[data-theme="wood-legendary"] .cal-v7-modal-overlay {
  background: rgba(10,5,0,0.75) !important;
}
[data-theme="wood-legendary"] .cal-v7-modal-content,
[data-theme="wood-legendary"] .cal-v7-modal {
  background-image: var(--wood-medium) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: #3A2A1A !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  color: #FFF5DC !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.65) !important;
}
[data-theme="wood-legendary"] .cal-v7-modal-header {
  border-bottom: 1px solid rgba(180,130,70,0.2) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .cal-v7-modal-footer {
  border-top: 1px solid rgba(180,130,70,0.2) !important;
}
[data-theme="wood-legendary"] .cal-v7-close-btn {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .cal-v7-close-btn:hover {
  color: #FFE8A0 !important;
}

/* Cal-v7 agenda */
[data-theme="wood-legendary"] .cal-v7-agenda-header {
  background-image: var(--wood-dark) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-date-header {
  color: #D4A44C !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-date-label,
[data-theme="wood-legendary"] .cal-v7-agenda-weekday {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-day {
  color: #D4A44C !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-no-events {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-event-meta {
  color: #9A7D5E !important;
}
[data-theme="wood-legendary"] .cal-v7-agenda-event-tag {
  background: rgba(212,164,76,0.12) !important;
  color: #D4A44C !important;
  border: 1px solid rgba(212,164,76,0.2) !important;
}

/* ══════════════════════════════════════════
   DROP ZONE + DRAG FEEDBACK
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-mcell.drop-over,
[data-theme="wood-legendary"] .gcal-wcol.drop-over {
  background-color: rgba(212,164,76,0.15) !important;
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: inset 0 0 20px rgba(212,164,76,0.1), 0 0 15px rgba(212,164,76,0.12) !important;
}

/* ══════════════════════════════════════════
   SCROLLBARS CALENDRIER
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .gcal-week-body::-webkit-scrollbar,
[data-theme="wood-legendary"] .gcal-day-grid::-webkit-scrollbar,
[data-theme="wood-legendary"] .gcal-sp-body::-webkit-scrollbar {
  width: 8px !important;
}
[data-theme="wood-legendary"] .gcal-week-body::-webkit-scrollbar-track,
[data-theme="wood-legendary"] .gcal-day-grid::-webkit-scrollbar-track,
[data-theme="wood-legendary"] .gcal-sp-body::-webkit-scrollbar-track {
  background: rgba(30,20,12,0.4) !important;
}
[data-theme="wood-legendary"] .gcal-week-body::-webkit-scrollbar-thumb,
[data-theme="wood-legendary"] .gcal-day-grid::-webkit-scrollbar-thumb,
[data-theme="wood-legendary"] .gcal-sp-body::-webkit-scrollbar-thumb {
  background: rgba(180,130,70,0.3) !important;
  border-radius: 4px !important;
}
[data-theme="wood-legendary"] .gcal-week-body::-webkit-scrollbar-thumb:hover,
[data-theme="wood-legendary"] .gcal-day-grid::-webkit-scrollbar-thumb:hover,
[data-theme="wood-legendary"] .gcal-sp-body::-webkit-scrollbar-thumb:hover {
  background: rgba(212,164,76,0.45) !important;
}

/* ══════════════════════════════════════════
   PAGES SPÉCIFIQUES — NOTES
   ══════════════════════════════════════════ */

/* ── SETTINGS (.settings-*, .notif-*) ── */
[data-theme="wood-legendary"] .settings-card {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .settings-card * { color: #2A1200 !important; }
[data-theme="wood-legendary"] .settings-btn.primary { background: linear-gradient(180deg,#8B6914,#705210) !important; color: #FFF0D4 !important; }
[data-theme="wood-legendary"] .avatar-crop-content {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
}

/* ── ACADEMY WIZARD (.aw-*) ── */
[data-theme="wood-legendary"] .aw-body { background: transparent !important; }
[data-theme="wood-legendary"] .aw-chat-container {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .aw-chat-bubble { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .aw-chat-msg-user .aw-chat-bubble {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .aw-btn-primary,
[data-theme="wood-legendary"] .aw-btn-cta,
[data-theme="wood-legendary"] .aw-btn-publish { background: linear-gradient(180deg,#8B6914,#705210) !important; color: #FFF0D4 !important; }
[data-theme="wood-legendary"] .aw-btn-secondary { background: rgba(20,8,0,0.3) !important; color: #FFF5DC !important; border: 1px solid rgba(180,130,70,0.3) !important; }
[data-theme="wood-legendary"] .aw-ai-preview {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
}

/* ── ACADEMY STUDENT (.asd-*) ── */
[data-theme="wood-legendary"] .asd-card {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .asd-card-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .asd-header {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .asd-kpi { color: #2A1200 !important; }
[data-theme="wood-legendary"] .asd-kpi-val { color: #1A0800 !important; font-weight: 900 !important; }

/* ── CRM PREMIUM (.gcrm-*) ── */
[data-theme="wood-legendary"] .gcrm-board { background: transparent !important; }
[data-theme="wood-legendary"] .gcrm-column { background: rgba(12,8,4,0.4) !important; border-radius: 12px !important; border: 1px solid rgba(212,164,76,0.15) !important; }
[data-theme="wood-legendary"] .gcrm-deal-card {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 12px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .gcrm-deal-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .gcrm-deal-amount { color: #1A0800 !important; font-weight: 900 !important; }
[data-theme="wood-legendary"] .gcrm-deal-contact { color: rgba(50,22,0,0.85) !important; }
[data-theme="wood-legendary"] .gcrm-col-header { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .gcrm-col-title { color: #FFF5DC !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .gcrm-contact-drawer {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gcrm-stat-glass {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .gcrm-tl-card {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 12px !important;
  color: #FFF5DC !important;
}

/* ══════════════════════════════════════════════════════════════
   EMAIL STUDIO — BOIS LÉGENDAIRE (v3 — dark text on light wood)
   Règle absolue : bois clair = texte marron foncé
   ══════════════════════════════════════════════════════════════ */

/* ─ Variables CSS ES remappées ─ */
[data-theme="wood-legendary"] .es {
  --es-bg:      #1A0F06;
  --es-bg2:     #241508;
  --es-bg3:     #2E1C0A;
  --es-glass:   rgba(212,164,76,0.07);
  --es-glass2:  rgba(212,164,76,0.12);
  --es-glass3:  rgba(212,164,76,0.17);
  --es-border:  rgba(212,164,76,0.15);
  --es-border2: rgba(212,164,76,0.26);
  --es-border3: rgba(212,164,76,0.38);
  --es-text:    #F2E8D8;
  --es-text2:   #DCC8A8;
  --es-text3:   #9A7D5E;
  --es-accent:  #D4A44C;
  --es-accent2: #E8C870;
  --es-accent3: #C8904A;
  --es-success: #7A9E5A;
  --es-warning: #D4943C;
  --es-danger:  #C06040;
  --es-shadow:    0 4px 24px rgba(0,0,0,.40), 0 1px 4px rgba(0,0,0,.22);
  --es-shadow-lg: 0 12px 48px rgba(0,0,0,.50), 0 2px 8px rgba(0,0,0,.30);
  --es-glow:      0 0 40px rgba(212,164,76,0.18);
}

/* ─ Container ─ */
[data-theme="wood-legendary"] .eas-container,
[data-theme="wood-legendary"] .es-container { background: transparent !important; }

/* ══ HERO — bois clair, TOUT en marron foncé ══ */
[data-theme="wood-legendary"] .es-hero {
  background-color:    rgba(180,120,50,0.20) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.32) !important;
  box-shadow: 0 12px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,220,140,0.14) !important;
}
[data-theme="wood-legendary"] .es-hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(212,164,76,.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(180,100,30,.06), transparent) !important;
}
/* Titre h2 du hero — marron foncé */
[data-theme="wood-legendary"] .es-hero h2 {
  color: #2A1200 !important;
}
/* Le mot mis en avant (em) reste or noble */
[data-theme="wood-legendary"] .es-hero h2 em {
  background: linear-gradient(135deg, #8B4A00, #D4A44C) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
[data-theme="wood-legendary"] .es-hero-desc { color: #3A1800 !important; }
[data-theme="wood-legendary"] .es-hero-feature {
  background: rgba(42,18,0,0.08) !important;
  border: 1px solid rgba(42,18,0,0.14) !important;
  color: #3A1800 !important;
}
[data-theme="wood-legendary"] .es-hero-steps {
  background: rgba(42,18,0,0.12) !important;
  border: 1px solid rgba(42,18,0,0.16) !important;
}
[data-theme="wood-legendary"] .es-hero-step-label { color: #5A3010 !important; }
[data-theme="wood-legendary"] .es-hero-step-num   { color: #5A3010 !important; border-color: rgba(42,18,0,0.22) !important; background: rgba(42,18,0,0.08) !important; }
[data-theme="wood-legendary"] .es-hero-step.active { background: rgba(42,18,0,0.12) !important; }
[data-theme="wood-legendary"] .es-hero-step.active .es-hero-step-num {
  background: linear-gradient(135deg, #8B4A00, #D4A44C) !important;
  border-color: #D4A44C !important; color: #fff !important;
}
[data-theme="wood-legendary"] .es-hero-step.active .es-hero-step-label { color: #2A1200 !important; font-weight: 700 !important; }

/* ─ Header de page (sur fond sombre — texte clair ok) ─ */
[data-theme="wood-legendary"] .eas-header,
[data-theme="wood-legendary"] .es-header { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] .es-header h1 {
  background: linear-gradient(135deg, #D4A44C 0%, #E8C870 50%, #D4A44C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
[data-theme="wood-legendary"] .es-header-sub { color: #DCC8A8 !important; }

/* ══ CARDS — bois clair, TOUT en marron foncé ══ */
[data-theme="wood-legendary"] .eas-card,
[data-theme="wood-legendary"] .es-card,
[data-theme="wood-legendary"] .es-email-card,
[data-theme="wood-legendary"] .es-kpi,
[data-theme="wood-legendary"] .es-knowledge-item {
  background-color:    rgba(255,245,220,0.13) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
}
[data-theme="wood-legendary"] .es-card:hover,
[data-theme="wood-legendary"] .es-kpi:hover { border-color: rgba(212,164,76,0.44) !important; }
[data-theme="wood-legendary"] .es-project-card:hover {
  border-color: rgba(212,164,76,0.44) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.35) !important;
}

/* Textes dans les cards — marron foncé */
[data-theme="wood-legendary"] .eas-card-title,
[data-theme="wood-legendary"] .es-card-title    { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .es-card-desc     { color: rgba(42,18,0,0.72) !important; }
[data-theme="wood-legendary"] .es-card-meta     { color: rgba(42,18,0,0.58) !important; }
/* Séparateur dans les cards */
[data-theme="wood-legendary"] .es-card-stats    { border-top-color: rgba(42,18,0,0.15) !important; }
[data-theme="wood-legendary"] .es-stat-val      { color: #8B4A00 !important; }
[data-theme="wood-legendary"] .es-stat-label    { color: rgba(42,18,0,0.58) !important; }
/* KPI */
[data-theme="wood-legendary"] .es-kpi-value     { color: #8B4A00 !important; }
[data-theme="wood-legendary"] .es-kpi.success .es-kpi-value { color: #4A7030 !important; }
[data-theme="wood-legendary"] .es-kpi.info .es-kpi-value    { color: #8B4A00 !important; }
[data-theme="wood-legendary"] .es-kpi.warning .es-kpi-value { color: #8B3A10 !important; }
[data-theme="wood-legendary"] .es-kpi-label     { color: rgba(42,18,0,0.60) !important; }

/* Section titles (hors cards — sur fond sombre) */
[data-theme="wood-legendary"] .es-section-title { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] .es-section-desc  { color: #9A7D5E !important; }

/* ─ Boutons ─ */
[data-theme="wood-legendary"] .es-btn-primary {
  background: linear-gradient(135deg, #8B4A00, #D4A44C) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(139,74,0,.32) !important;
}
[data-theme="wood-legendary"] .es-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(139,74,0,.48) !important;
}
[data-theme="wood-legendary"] .es-btn-secondary {
  background: rgba(212,164,76,0.10) !important;
  border: 1px solid rgba(212,164,76,0.26) !important;
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] .es-btn-secondary:hover {
  border-color: rgba(212,164,76,0.52) !important;
  color: #D4A44C !important;
}
[data-theme="wood-legendary"] .es-btn-icon {
  background: rgba(212,164,76,0.10) !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .es-btn-icon:hover {
  color: #D4A44C !important;
  border-color: rgba(212,164,76,0.46) !important;
}

/* ─ Step indicator (sur fond sombre) ─ */
[data-theme="wood-legendary"] .es-steps {
  background: rgba(30,15,5,0.40) !important;
  border: 1px solid rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .es-step-label { color: #9A7D5E !important; }
[data-theme="wood-legendary"] .es-step.active { background: rgba(212,164,76,0.15) !important; }
[data-theme="wood-legendary"] .es-step.active .es-step-num {
  background: linear-gradient(135deg, #8B4A00, #D4A44C) !important;
  border-color: #D4A44C !important; color: #fff !important;
  box-shadow: 0 0 16px rgba(212,164,76,.32) !important;
}
[data-theme="wood-legendary"] .es-step.active .es-step-label { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] .es-step.done .es-step-num {
  background: #7A9E5A !important; border-color: #7A9E5A !important; color: #fff !important;
}
[data-theme="wood-legendary"] .es-step.done .es-step-label { color: #5A7840 !important; }

/* ─ Nouvelle séquence (carte pointillés) ─ */
[data-theme="wood-legendary"] .es-new-project {
  border-color: rgba(212,164,76,0.28) !important;
  color: #9A7D5E !important;
  background: transparent !important;
}
[data-theme="wood-legendary"] .es-new-project:hover {
  border-color: #D4A44C !important;
  color: #D4A44C !important;
  background: rgba(212,164,76,0.06) !important;
  box-shadow: 0 0 40px rgba(212,164,76,.12) !important;
}

/* ══ EMAIL CARDS — bois clair, texte marron foncé ══ */
[data-theme="wood-legendary"] .es-email-day,
[data-theme="wood-legendary"] .es-email-card-num {
  background: linear-gradient(135deg, #8B4A00, #D4A44C) !important;
  color: #fff !important;
}
[data-theme="wood-legendary"] .es-email-header:hover { background: rgba(42,18,0,0.07) !important; }
[data-theme="wood-legendary"] .es-email-subject      { color: #2A1200 !important; }
[data-theme="wood-legendary"] .es-email-meta         { color: rgba(42,18,0,0.55) !important; }
[data-theme="wood-legendary"] .es-email-card-subject { color: #2A1200 !important; }
[data-theme="wood-legendary"] .es-email-card-preview { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] .es-email-card-day     { color: #8B4A00 !important; }
/* Zone body de l'email (fond sombre interne) */
[data-theme="wood-legendary"] .es-email-preview,
[data-theme="wood-legendary"] .es-email-body-content {
  background: rgba(30,15,5,0.38) !important;
  border: 1px solid rgba(42,18,0,0.18) !important;
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] .es-email-preview strong,
[data-theme="wood-legendary"] .es-email-body-content strong { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] .es-email-card.expanded { border-color: rgba(212,164,76,0.34) !important; }

/* ─ Inputs (sur fond sombre) ─ */
[data-theme="wood-legendary"] .eas-input,
[data-theme="wood-legendary"] .es-input,
[data-theme="wood-legendary"] .es-text-input {
  background: rgba(20,8,0,0.42) !important;
  border: 1px solid rgba(212,164,76,0.26) !important;
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] .es-input:focus,
[data-theme="wood-legendary"] .es-text-input:focus {
  border-color: #D4A44C !important;
  box-shadow: 0 0 0 3px rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .es-label { color: #DCC8A8 !important; }

/* ─ Analyse (sur fond sombre) ─ */
[data-theme="wood-legendary"] .es-analysis-title   { color: #E8C870 !important; }
[data-theme="wood-legendary"] .es-analysis-content {
  background: rgba(212,164,76,0.06) !important;
  border-left: 3px solid #D4A44C !important;
  color: #DCC8A8 !important;
}

/* ══ STRATEGY / INTENTION — bois clair, texte marron foncé ══ */
[data-theme="wood-legendary"] .es-strategy-option,
[data-theme="wood-legendary"] .es-intention-card {
  background-color:    rgba(255,245,220,0.13) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 2px solid rgba(212,164,76,0.20) !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .es-strategy-option *,
[data-theme="wood-legendary"] .es-intention-card * { color: inherit !important; }
[data-theme="wood-legendary"] .es-strategy-option:hover,
[data-theme="wood-legendary"] .es-intention-card:hover {
  border-color: #D4A44C !important;
  box-shadow: 0 0 28px rgba(212,164,76,.12) !important;
}
[data-theme="wood-legendary"] .es-strategy-option.selected,
[data-theme="wood-legendary"] .es-intention-card.selected {
  border-color: #D4A44C !important;
  background-color: rgba(212,164,76,0.18) !important;
}

/* ─ Phase timeline (sur fond sombre) ─ */
[data-theme="wood-legendary"] .es-phase::before {
  background: linear-gradient(180deg, rgba(212,164,76,.32), rgba(212,164,76,.08)) !important;
}
[data-theme="wood-legendary"] .es-phase-dot { border-color: #D4A44C !important; background: #1A0F06 !important; }
[data-theme="wood-legendary"] .es-phase-dot.cold { border-color: #C8904A !important; }
[data-theme="wood-legendary"] .es-phase-name { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] .es-phase-desc { color: #9A7D5E !important; }

/* ─ Upload zone (sur fond sombre) ─ */
[data-theme="wood-legendary"] .es-upload-zone {
  border-color: rgba(212,164,76,0.26) !important;
  background: rgba(212,164,76,0.02) !important;
}
[data-theme="wood-legendary"] .es-upload-zone:hover,
[data-theme="wood-legendary"] .es-upload-zone.dragover {
  border-color: #D4A44C !important;
  background: rgba(212,164,76,0.06) !important;
  box-shadow: 0 0 40px rgba(212,164,76,.12) !important;
}
[data-theme="wood-legendary"] .es-upload-zone-text         { color: #DCC8A8 !important; }
[data-theme="wood-legendary"] .es-upload-zone-text strong  { color: #D4A44C !important; }
[data-theme="wood-legendary"] .es-upload-zone-hint         { color: #9A7D5E !important; }

/* ─ Modal (bois medium — fond mi-foncé, texte clair ok) ─ */
[data-theme="wood-legendary"] .eas-modal,
[data-theme="wood-legendary"] .es-modal {
  background-color:    rgba(200,155,80,0.15) !important;
  background-image:    var(--wood-medium) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(212,164,76,0.36) !important;
}
[data-theme="wood-legendary"] .es-modal h3 { color: #F2E8D8 !important; }

/* ─ Toggle ─ */
[data-theme="wood-legendary"] .es-toggle input:checked + .es-toggle-slider {
  background: #D4A44C !important;
  border-color: #D4A44C !important;
}

/* ══ RADIO CARDS — bois clair, texte marron foncé ══ */
[data-theme="wood-legendary"] .es-radio-body {
  background: rgba(255,245,220,0.10) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-color: rgba(212,164,76,0.20) !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .es-radio-card input:checked ~ .es-radio-body {
  border-color: #D4A44C !important;
  background-color: rgba(212,164,76,0.16) !important;
}

/* ─ Source cards hover ─ */
[data-theme="wood-legendary"] .es-source-card:hover {
  border-color: #D4A44C !important;
  box-shadow: 0 0 40px rgba(212,164,76,.12) !important;
}

/* ══ KNOWLEDGE ITEMS — bois clair, texte marron foncé ══ */
[data-theme="wood-legendary"] .es-knowledge-icon.pdf  { background: rgba(192,96,64,.14) !important; color: #8B2A10 !important; }
[data-theme="wood-legendary"] .es-knowledge-icon.text { background: rgba(42,18,0,.12) !important;   color: #8B4A00 !important; }
[data-theme="wood-legendary"] .es-knowledge-icon.url  { background: rgba(42,18,0,.10) !important;   color: #6A3800 !important; }
[data-theme="wood-legendary"] .es-knowledge-name { color: #2A1200 !important; }
[data-theme="wood-legendary"] .es-knowledge-size { color: rgba(42,18,0,0.55) !important; }

/* ─ Loading (sur fond sombre) ─ */
[data-theme="wood-legendary"] .es-loading-spinner {
  border-color: rgba(212,164,76,0.14) !important;
  border-top-color: #D4A44C !important;
}
[data-theme="wood-legendary"] .es-loading-text { color: #DCC8A8 !important; }
[data-theme="wood-legendary"] .es-loading-sub  { color: #9A7D5E !important; }

/* ─ Empty state ─ */
[data-theme="wood-legendary"] .es-empty-text { color: #DCC8A8 !important; }
[data-theme="wood-legendary"] .es-empty      { color: #9A7D5E !important; }

/* ─ Badges email studio ─ */
[data-theme="wood-legendary"] .es-badge-analyzed,
[data-theme="wood-legendary"] .es-badge-analyse {
  background: rgba(139,74,0,0.13) !important; color: #8B4A00 !important;
}
[data-theme="wood-legendary"] .es-badge-planned {
  background: rgba(139,58,16,0.13) !important; color: #8B3A10 !important;
}
[data-theme="wood-legendary"] .es-badge-draft,
[data-theme="wood-legendary"] .es-badge-brouillon {
  background: rgba(42,18,0,0.12) !important; color: rgba(42,18,0,0.60) !important;
}
[data-theme="wood-legendary"] .es-badge-ready,
[data-theme="wood-legendary"] .es-badge-generated {
  background: rgba(74,112,48,0.15) !important; color: #4A7030 !important;
}



/* ─ Variables héritées dans les cartes (fix inline styles) ─ */
/* Toute carte sur bois clair : var(--es-text/text3) → marron foncé */
[data-theme="wood-legendary"] .es-card {
  --es-text:  #2A1200 !important;
  --es-text2: #3A1800 !important;
  --es-text3: rgba(42,18,0,0.58) !important;
}
/* Hero sur bois clair : même remapping */
[data-theme="wood-legendary"] .es-hero {
  --es-text:  #2A1200 !important;
  --es-text2: #3A1800 !important;
  --es-text3: rgba(42,18,0,0.58) !important;
}
/* Grande carte "Pourquoi Email Studio" — écrase le gradient violet inline */
[data-theme="wood-legendary"] .es-card[style*="linear-gradient"] {
  background-image:    var(--wood-light) !important;
  background-color:    rgba(255,245,220,0.13) !important;
  background-size:     cover !important;
  background-position: center !important;
  border-color: rgba(212,164,76,0.24) !important;
}

/* ─ 6 ovales du hero — ombre premium ─ */
[data-theme="wood-legendary"] .es-hero-feature {
  box-shadow: 0 2px 12px rgba(0,0,0,0.28), 0 1px 4px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,230,160,0.30) !important;
}

/* ─ "Gratuit et illimité" — texte clair/discret sur fond bois ─ */
[data-theme=wood-legendary] .es-cta-hint {
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTAL (#view-client-portal) — BOIS LÉGENDAIRE
   Mix artistique : sombre/medium/clair selon la hiérarchie
   ══════════════════════════════════════════════════════════════ */

/* ─ Wrapper principal ─ */
[data-theme="wood-legendary"] #view-client-portal {
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-client-portal > div {
  background: transparent !important;
}

/* ─ Titre "Espace Client" ─ */
[data-theme="wood-legendary"] #view-client-portal h2 {
  color: #F2E8D8 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] #view-client-portal p {
  color: #DCC8A8 !important;
}

/* ══ BOUTON "INVITER UN CLIENT" — bois très clair ══ */
[data-theme="wood-legendary"] #cpInviteBtn {
  background-color:    rgba(255,248,230,0.92) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important;
  border: 1px solid rgba(212,164,76,0.40) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.32), 0 1px 4px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,240,180,0.50) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  transition: all 0.2s !important;
}
[data-theme="wood-legendary"] #cpInviteBtn:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.40), 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,240,180,0.60) !important;
  transform: translateY(-1px) !important;
}

/* ══ CARTE "Lien du portail client" — bois medium ══ */
[data-theme="wood-legendary"] #view-client-portal > div > div:nth-child(2) {
  background-color:    rgba(160,100,40,0.25) !important;
  background-image:    var(--wood-medium) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,220,140,0.12) !important;
}
/* Titre de la carte lien */
[data-theme="wood-legendary"] #view-client-portal > div > div:nth-child(2) div[style*="font-size:14px"] {
  color: #ffffff !important;
}
[data-theme="wood-legendary"] #view-client-portal > div > div:nth-child(2) div[style*="font-size:12px"] {
  color: rgba(255,255,255,0.82) !important;
}
/* Input URL */
[data-theme="wood-legendary"] #view-client-portal input[type="text"][readonly] {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  color: #DCC8A8 !important;
}

/* ══ BOUTON "COPIER LE LIEN" — bois très clair ══ */
[data-theme="wood-legendary"] #cpCopyBtn {
  background-color:    rgba(255,248,230,0.92) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important;
  border: 1px solid rgba(212,164,76,0.40) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,240,180,0.45) !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}
[data-theme="wood-legendary"] #cpCopyBtn:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,240,180,0.55) !important;
  transform: translateY(-1px) !important;
}

/* ══ STATS CARDS — bois clair, texte marron foncé ══ */
[data-theme="wood-legendary"] #cpStats > div {
  background-color:    rgba(255,245,220,0.16) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
/* Label stat */
[data-theme="wood-legendary"] #cpStats > div > div:first-child {
  color: rgba(42,18,0,0.58) !important;
}
/* Valeur stat — or noble, lisible sur bois clair */
[data-theme="wood-legendary"] #cpStats > div > div:last-child {
  color: #8B4A00 !important;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3) !important;
}

/* ══ LISTE CLIENTS (#cpList) — bois sombre élégant ══ */
[data-theme="wood-legendary"] #cpList {
  background-color:    rgba(30,10,0,0.55) !important;
  background-image:    var(--wood-body) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.18) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}
/* En-tête de table */
[data-theme="wood-legendary"] #cpList thead tr {
  border-bottom-color: rgba(212,164,76,0.22) !important;
}
[data-theme="wood-legendary"] #cpList th {
  color: rgba(212,164,76,0.75) !important;
  background: transparent !important;
}
/* Lignes */
[data-theme="wood-legendary"] #cpList tbody tr {
  border-bottom-color: rgba(212,164,76,0.08) !important;
}
[data-theme="wood-legendary"] #cpList tbody tr:hover {
  background: rgba(212,164,76,0.06) !important;
}
/* Texte dans les cellules */
[data-theme="wood-legendary"] #cpList td strong {
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #cpList td {
  color: #DCC8A8 !important;
}
/* État vide */
[data-theme="wood-legendary"] #cpList > div[style*="text-align:center"] {
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #cpList > div p {
  color: rgba(255,255,255,0.75) !important;
}

/* Bouton "Renvoyer le lien" — bois medium */
[data-theme="wood-legendary"] #cpList button[onclick*="resend"] {
  background-color:    rgba(160,110,50,0.18) !important;
  background-image:    var(--wood-medium) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #cpList button[onclick*="resend"]:hover {
  border-color: rgba(212,164,76,0.50) !important;
  color: #F2E8D8 !important;
}

/* Bouton "Retirer" — danger bois foncé */
[data-theme="wood-legendary"] #cpList button[onclick*="disable"] {
  background: rgba(192,96,64,0.12) !important;
  border: 1px solid rgba(192,96,64,0.28) !important;
  color: #C06040 !important;
}
[data-theme="wood-legendary"] #cpList button[onclick*="disable"]:hover {
  background: rgba(192,96,64,0.20) !important;
}

/* ══ MODAL "Inviter un client" — bois medium profond ══ */
[data-theme="wood-legendary"] #cpAddModal > div {
  background-color:    rgba(120,70,20,0.30) !important;
  background-image:    var(--wood-medium) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.38) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.60), inset 0 1px 0 rgba(255,220,140,0.14) !important;
}
[data-theme="wood-legendary"] #cpAddModal h3 {
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #cpAddModal p {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #cpAddModal label {
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #cpSelect {
  background: rgba(20,8,0,0.50) !important;
  border: 1px solid rgba(212,164,76,0.25) !important;
  color: #F2E8D8 !important;
}
/* Bouton "Annuler" */
[data-theme="wood-legendary"] #cpAddModal button[onclick*="hideAdd"] {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #cpAddModal button[onclick*="hideAdd"]:hover {
  border-color: rgba(212,164,76,0.40) !important;
  color: #F2E8D8 !important;
}
/* Bouton "Envoyer l'invitation" — bois très clair */
[data-theme="wood-legendary"] #cpActBtn {
  background-color:    rgba(255,248,230,0.92) !important;
  background-image:    var(--wood-light) !important;
  background-size:     cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important;
  border: 1px solid rgba(212,164,76,0.40) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,240,180,0.45) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #cpActBtn:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,240,180,0.55) !important;
  transform: translateY(-1px) !important;
}



/* ══════════════════════════════════════════════════════════════════════
   GIRI TOOLS SUITE — BOIS LÉGENDAIRE v1
   21 outils : Drive, Word, Sign, Studio, Slides, Draw, Mind, Forms,
   Calc, Timer, Map, PDF, Scan, Compress, Translate, QR, Brain,
   Prompt Forge, Pause & Bien-Être, Giri Games, Classement XP
   
   RÈGLES ARTISTIQUES :
   ─ ≥3 textures par page (wood-dark / wood-medium / wood-light)
   ─ Fond clair → texte marron foncé (#2A1200)
   ─ Fond sombre → texte crème (#F2E8D8)
   ─ Boutons principaux = bois très clair avec ombre premium
   ─ Jeux d'ombres pour relief et profondeur
   ══════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   MIXINS internes (répétés volontairement pour clarté)
   ──────────────────────────────────────────────────────────── */
/* wood-light card  → rgba(255,245,220,0.14) + var(--wood-light) */
/* wood-medium card → rgba(140,85,30,0.28)   + var(--wood-medium) */
/* wood-dark card   → rgba(20,10,0,0.60)     + var(--wood-dark) */
/* btn-wood-light   → rgba(255,248,230,0.92) + var(--wood-light) + box-shadow premium */
/* ══════════════════════════════════════════════════════════════
   1. GIRI DRIVE
   Hero=dark · Toolbar/Stats/Tabs=medium · Cards=light
   ══════════════════════════════════════════════════════════════ */

/* — Hero header — */
[data-theme="wood-legendary"] #view-giri-drive .gd-hero {
  background-color: rgba(20,10,0,0.62) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-hero * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-title { color: #F2E8D8 !important; font-weight: 800 !important; }

/* — Breadcrumb — */
[data-theme="wood-legendary"] #view-giri-drive .gd-breadcrumb {
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-bc-item { color: rgba(242,232,216,0.70) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-bc-root { color: #F2E8D8 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-bc-sep  { color: rgba(242,232,216,0.35) !important; }

/* — Toolbar (search + tri + vue) = bois medium — */
[data-theme="wood-legendary"] #view-giri-drive .gd-toolbar {
  background-color: rgba(120,70,20,0.30) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.18) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-search-input {
  background: rgba(20,8,0,0.40) !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-search-input::placeholder { color: rgba(242,232,216,0.45) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-search-icon { color: rgba(242,232,216,0.55) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-sort-select {
  background: rgba(20,8,0,0.40) !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
  color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-view-btn {
  background: rgba(212,164,76,0.10) !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-view-btn.active {
  background: rgba(212,164,76,0.25) !important;
  color: #2A1200 !important; font-weight: 700 !important;
}

/* — Stats bar (quota) = bois très clair — */
[data-theme="wood-legendary"] #view-giri-drive .gd-stats-bar {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,235,160,0.30) !important;
}

[data-theme="wood-legendary"] #view-giri-drive .gd-stat-item,
[data-theme="wood-legendary"] #view-giri-drive .gd-quota-label { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-quota-bar {
  background: rgba(42,18,0,0.18) !important;
  border-radius: 99px !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-quota-fill {
  background: linear-gradient(90deg, #8B4A00, #D4A44C) !important;
  box-shadow: 0 0 6px rgba(212,164,76,0.30) !important;
}

/* — Tabs = bois dark — */
[data-theme="wood-legendary"] #view-giri-drive .gd-tabs {
  background-color: rgba(25,12,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-tab { color: rgba(242,232,216,0.55) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-tab.active {
  color: #F2E8D8 !important; font-weight: 700 !important;
  border-bottom: 2px solid #D4A44C !important;
}

/* — Zone fichiers = transparent, on voit le fond naturel de l'app — */
[data-theme=wood-legendary] #view-giri-drive .gd-tab-panel {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0.75rem !important;
}

/* — File cards = bois clair — */
[data-theme="wood-legendary"] #view-giri-drive .gd-file-card {
  background-color: rgba(255,245,220,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-file-card:hover {
  border-color: rgba(212,164,76,0.50) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,235,160,0.30) !important;
  transform: translateY(-2px) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-card-name  { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-card-info  { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-card-size  { color: rgba(42,18,0,0.50) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-ext-badge {
  background: rgba(139,74,0,0.14) !important;
  color: #8B4A00 !important; font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-card-thumb {
  background: rgba(212,164,76,0.08) !important;
  border-bottom: 1px solid rgba(212,164,76,0.14) !important;
}
/* Trash cards */
[data-theme="wood-legendary"] #view-giri-drive .gd-trash-card {
  background-color: rgba(255,245,220,0.85) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-trash-name { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-trash-meta,
[data-theme="wood-legendary"] #view-giri-drive .gd-trash-info { color: rgba(42,18,0,0.60) !important; }

/* — List view rows — */
[data-theme="wood-legendary"] #view-giri-drive .gd-files-list {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-list-name-text { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-list-meta,
[data-theme="wood-legendary"] #view-giri-drive .gd-list-size,
[data-theme="wood-legendary"] #view-giri-drive .gd-list-date { color: rgba(42,18,0,0.58) !important; }

/* — Drop zone = transparent par défaut, visible uniquement au drag — */
[data-theme="wood-legendary"] #view-giri-drive .gd-drop-zone {
  background: transparent !important;
  border: 2px dashed transparent !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-drop-zone.gd-drag-over {
  background-color: rgba(212,164,76,0.08) !important;
  border-color: #D4A44C !important;
  box-shadow: 0 0 30px rgba(212,164,76,0.22) !important;
}

/* — Buttons — */
[data-theme="wood-legendary"] #view-giri-drive .gd-btn,
[data-theme="wood-legendary"] #view-giri-drive .gd-btn-primary,
[data-theme="wood-legendary"] #view-giri-drive .gd-icon-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-btn:hover,
[data-theme="wood-legendary"] #view-giri-drive .gd-btn-primary:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,235,160,0.55) !important;
  transform: translateY(-1px) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-btn-ghost {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  color: #DCC8A8 !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-btn-danger {
  background: rgba(192,96,64,0.10) !important;
  border: 1px solid rgba(192,96,64,0.28) !important;
  color: #C06040 !important;
  box-shadow: none !important;
}

/* — Context menu = bois medium — */
[data-theme="wood-legendary"] #view-giri-drive .gd-context-menu {
  background-color: rgba(120,70,20,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.32) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.50) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-ctx-item { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-ctx-item:hover { background: rgba(212,164,76,0.14) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-ctx-danger { color: #C06040 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-ctx-sep { border-color: rgba(212,164,76,0.15) !important; }

/* — Bulk bar = bois dark — */
[data-theme="wood-legendary"] #view-giri-drive .gd-bulk-bar {
  background-color: rgba(20,10,0,0.70) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-top: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-bulk-bar * { color: #F2E8D8 !important; }

/* — Modals (nouveau dossier, déplacer, partager, prévisualiser) = bois medium — */
[data-theme="wood-legendary"] #view-giri-drive .gd-newfolder-panel,
[data-theme="wood-legendary"] #view-giri-drive .gd-move-panel,
[data-theme="wood-legendary"] #view-giri-drive .gd-share-panel,
[data-theme="wood-legendary"] #view-giri-drive .gd-preview-panel {
  background-color: rgba(120,70,20,0.38) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.60) !important;
}
[data-theme="wood-legendary"] #view-giri-drive .gd-newfolder-title,
[data-theme="wood-legendary"] #view-giri-drive .gd-move-title,
[data-theme="wood-legendary"] #view-giri-drive .gd-share-title,
[data-theme="wood-legendary"] #view-giri-drive .gd-preview-name { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-newfolder-sub,
[data-theme="wood-legendary"] #view-giri-drive .gd-newfolder-path { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-newfolder-input,
[data-theme="wood-legendary"] #view-giri-drive .gd-share-url-input,
[data-theme="wood-legendary"] #view-giri-drive .gd-move-select {
  background: rgba(20,8,0,0.40) !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  color: #F2E8D8 !important;
}

/* — Empty state — */
[data-theme="wood-legendary"] #view-giri-drive .gd-empty-title { color: #DCC8A8 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-drive .gd-empty-hint  { color: rgba(220,200,168,0.65) !important; }
/* ══════════════════════════════════════════════════════════════
   2. GIRI WORD
   Toolbar=dark · Document=wood-light (papier) · Badges=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-word .gw-root,
[data-theme="wood-legendary"] #view-giri-word .gw-body { background: transparent !important; }
[data-theme="wood-legendary"] #view-giri-word .gw-toolbar {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center top !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-word .gw-toolbar * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-word .gw-toolbar button {
  background-color: rgba(255,248,230,0.10) !important;
  border: 1px solid rgba(212,164,76,0.18) !important; color: #F2E8D8 !important;
  border-radius: 6px !important;
}
[data-theme="wood-legendary"] #view-giri-word .gw-toolbar button:hover {
  background-color: rgba(212,164,76,0.20) !important;
  border-color: rgba(212,164,76,0.40) !important;
}
/* Document = bois clair (papier de luxe) */
[data-theme="wood-legendary"] #view-giri-word [contenteditable],
[data-theme="wood-legendary"] #view-giri-word .gw-doc,
[data-theme="wood-legendary"] #view-giri-word .gw-page {
  background-color: rgba(255,248,235,0.95) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #1A0A00 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.20) !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-word .gw-badge {
  background-color: rgba(140,85,30,0.28) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.30) !important; color: #2A1200 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-giri-word .gw-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-word .gw-achievement-popup {
  background-color: rgba(100,60,15,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.40) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.50) !important;
}
[data-theme="wood-legendary"] #view-giri-word .gw-ach-header,
[data-theme="wood-legendary"] #view-giri-word .gw-ach-body { color: #2A1200 !important; }

/* ══════════════════════════════════════════════════════════════
   3. GIRI SIGN
   Drop=medium · Canvas=light (pour signer) · Controls=dark
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-sign .gs-header {
  background-color: rgba(20,10,0,0.60) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-sign .gs-drop-area {
  background-color: rgba(140,85,30,0.24) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 2px dashed rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-drop-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-sign .gs-drop-sub  { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-sign .gs-canvas-wrap {
  background-color: rgba(255,248,235,0.94) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,230,160,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-btn-primary,
[data-theme="wood-legendary"] #view-giri-sign .gs-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-btn-secondary {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-font-selector {
  background-color: rgba(100,60,15,0.30) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-font-opt { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-sign .gs-download-section {
  background-color: rgba(140,85,30,0.24) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.26) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.26) !important;
}
[data-theme="wood-legendary"] #view-giri-sign .gs-download-info { color: #2A1200 !important; }

/* ══════════════════════════════════════════════════════════════
   4. GIRI STUDIO (auto-shorts)
   Header=dark · Tabs=medium · Clips=light · Record area=dark
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-studio .gs-header,
[data-theme="wood-legendary"] #view-giri-studio .gs-wrapper > header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-studio .gs-tabs {
  background-color: rgba(100,60,15,0.32) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-tab { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-studio .gs-tab.active,
[data-theme="wood-legendary"] #view-giri-studio .gs-tab[class*="active"] {
  color: #2A1200 !important; font-weight: 700 !important;
  border-bottom: 2px solid #D4A44C !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-clip-item {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-clip-title { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-giri-studio .gs-clip-meta  { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-studio .gs-record-area {
  background-color: rgba(15,7,0,0.72) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.18) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,200,100,0.08) !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-btn--primary,
[data-theme="wood-legendary"] #view-giri-studio .gs-btn--export {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-btn--secondary {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-btn--stop,
[data-theme="wood-legendary"] #view-giri-studio .gs-btn--rec {
  background: rgba(192,64,40,0.15) !important;
  border: 1px solid rgba(220,80,50,0.35) !important; color: #E05030 !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-input,
[data-theme="wood-legendary"] #view-giri-studio .gs-select {
  background: rgba(20,8,0,0.42) !important;
  border: 1px solid rgba(212,164,76,0.26) !important; color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-modal-content {
  background-color: rgba(100,60,15,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.60) !important;
}
[data-theme="wood-legendary"] #view-giri-studio .gs-modal-content * { color: #2A1200 !important; }

/* ══════════════════════════════════════════════════════════════
   5. GIRI SLIDES
   Toolbar=dark · Strip=medium · Canvas=light · Props=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-slides .gs-toolbar {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-toolbar * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-slides .gs-toolbar .gs-tb {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.18) !important;
  color: #F2E8D8 !important; border-radius: 6px !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-toolbar .gs-tb:hover {
  background: rgba(212,164,76,0.20) !important; color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-strip {
  background-color: rgba(100,60,15,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-right: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-thumb {
  border: 2px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.30) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-thumb-a,
[data-theme="wood-legendary"] #view-giri-slides .gs-thumb.active {
  border-color: #D4A44C !important;
  box-shadow: 0 2px 12px rgba(212,164,76,0.35) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-thumb-num { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-slides .gs-canvas-area {
  background: rgba(255,245,220,0.06) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-props-panel {
  background-color: rgba(100,60,15,0.32) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-left: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-props-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-slides .gs-props-body * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-slides .gs-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-slides .gs-inp,
[data-theme="wood-legendary"] #view-giri-slides .gs-range {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(212,164,76,0.24) !important; color: #F2E8D8 !important;
}

/* ══════════════════════════════════════════════════════════════
   6. GIRI MIND (Mind Map)
   Toolbar=dark · Canvas=transparent · Ctx menu=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-mind .gm-toolbar {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-mind .gm-toolbar * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-mind .gm-tb {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.18) !important; color: #F2E8D8 !important; border-radius: 6px !important;
}
[data-theme="wood-legendary"] #view-giri-mind .gm-tb:hover { background: rgba(212,164,76,0.22) !important; }
[data-theme="wood-legendary"] #view-giri-mind .gm-ctx {
  background-color: rgba(100,60,15,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.32) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-mind .gm-ctx * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-mind .gm-hint {
  background: rgba(212,164,76,0.12) !important;
  border: 1px solid rgba(212,164,76,0.25) !important; color: #DCC8A8 !important;
}

/* ══════════════════════════════════════════════════════════════
   7. GIRI FORMS
   Panel/sidebar=dark · Field cards=light · Preview=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-forms .gf-panel {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-right: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 4px 0 16px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] #view-giri-forms .gf-panel * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-forms .gf-palette-title { color: rgba(242,232,216,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-forms .gf-field-card {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-giri-forms .gf-field-card * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-forms .gf-field-badge,
[data-theme="wood-legendary"] #view-giri-forms .gf-badge {
  background: rgba(139,74,0,0.15) !important; color: #8B4A00 !important;
}
[data-theme="wood-legendary"] #view-giri-forms .gf-preview-form {
  background-color: rgba(140,85,30,0.24) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-giri-forms .gf-preview-form * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-forms .gf-preview-input,
[data-theme="wood-legendary"] #view-giri-forms .gf-preview-textarea {
  background: rgba(255,248,235,0.85) !important;
  border: 1px solid rgba(42,18,0,0.22) !important; color: #1A0A00 !important;
}
[data-theme="wood-legendary"] #view-giri-forms .gf-btn,
[data-theme="wood-legendary"] #view-giri-forms .gf-icon-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}

/* ══════════════════════════════════════════════════════════════
   8. GIRI CALC (Spreadsheet)
   Toolbar=dark · Col/Row headers=medium · Cells=light
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-calc .gc-toolbar {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-calc .gc-toolbar * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-calc .gc-formula-bar {
  background-color: rgba(100,60,15,0.30) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.18) !important;
}
[data-theme="wood-legendary"] #view-giri-calc .gc-formula-input {
  background: rgba(20,8,0,0.40) !important;
  border: 1px solid rgba(212,164,76,0.24) !important; color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-calc .gc-fx-label { color: #DCC8A8 !important; }
[data-theme="wood-legendary"] #view-giri-calc .gc-col-header,
[data-theme="wood-legendary"] #view-giri-calc .gc-row-header,
[data-theme="wood-legendary"] #view-giri-calc .gc-corner {
  background-color: rgba(100,60,15,0.32) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 600 !important;
  border-color: rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-calc .gc-cell {
  background: rgba(255,248,235,0.88) !important;
  border-color: rgba(212,164,76,0.14) !important; color: #1A0A00 !important;
}
[data-theme="wood-legendary"] #view-giri-calc .gc-cell:focus,
[data-theme="wood-legendary"] #view-giri-calc .gc-cell.selected {
  background: rgba(212,164,76,0.18) !important;
  border-color: #D4A44C !important;
  box-shadow: 0 0 0 2px rgba(212,164,76,0.30) !important;
}
[data-theme="wood-legendary"] #view-giri-calc .gc-cell-addr { color: rgba(42,18,0,0.55) !important; }

/* ══════════════════════════════════════════════════════════════
   9. GIRI TIMER
   Hero=medium · Panel=light · Controls=dark
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-timer .gt-hero {
  background-color: rgba(140,85,30,0.26) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.32) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-hero-title { color: #2A1200 !important; font-weight: 900 !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-hero-sub   { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-panel,
[data-theme="wood-legendary"] #view-giri-timer .gt-card {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-panel * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-panel-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-disp {
  color: #8B4A00 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.20), 0 1px 0 rgba(255,230,160,0.35) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-btn-main {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 800 !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,235,160,0.50) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-btn,
[data-theme="wood-legendary"] #view-giri-timer .gt-btn-sm {
  background-color: rgba(255,248,230,0.88) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 600 !important;
  border: 1px solid rgba(212,164,76,0.38) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,235,160,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-mode-tab {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.18) !important; color: rgba(42,18,0,0.65) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-mode-tab.active {
  background: rgba(212,164,76,0.20) !important; color: #2A1200 !important; font-weight: 700 !important;
  border-color: rgba(212,164,76,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-dot { background: rgba(212,164,76,0.25) !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-dot.active { background: #D4A44C !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-hist-row {
  border-bottom: 1px solid rgba(212,164,76,0.12) !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-hist-task { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-hist-t,
[data-theme="wood-legendary"] #view-giri-timer .gt-hist-dur { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-timer .gt-hist-badge {
  background: rgba(139,74,0,0.14) !important; color: #8B4A00 !important;
}
[data-theme="wood-legendary"] #view-giri-timer .gt-dur-in {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(212,164,76,0.24) !important; color: #F2E8D8 !important;
}

/* ══════════════════════════════════════════════════════════════
   10. GIRI MAP
   Header=dark · Sidebar contacts=light · Map overlay=medium · Popup=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-map .gm-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-map .gm-contact-list {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-right: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 4px 0 16px rgba(0,0,0,0.24) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-contact-item {
  border-bottom: 1px solid rgba(212,164,76,0.12) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-contact-item:hover {
  background: rgba(212,164,76,0.08) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-contact-name { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-giri-map .gm-contact-info,
[data-theme="wood-legendary"] #view-giri-map .gm-contact-meta { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-map .gm-popup {
  background-color: rgba(100,60,15,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.48) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-popup-name { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-map .gm-popup-type,
[data-theme="wood-legendary"] #view-giri-map .gm-popup-meta { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-map .gm-btn-primary,
[data-theme="wood-legendary"] #view-giri-map .gm-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-search {
  background: rgba(20,8,0,0.40) !important;
  border: 1px solid rgba(212,164,76,0.25) !important; color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-filter-tag {
  background: rgba(212,164,76,0.10) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: rgba(42,18,0,0.70) !important;
}
[data-theme="wood-legendary"] #view-giri-map .gm-filter-tag.active {
  background: rgba(212,164,76,0.22) !important; color: #2A1200 !important; font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════
   11. GIRI PDF
   Dropzone=medium · File list=light · Action bar=dark
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-dropzone {
  background-color: rgba(140,85,30,0.24) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 2px dashed rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-drop-text  { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-drop-sub   { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-drop-limit { color: rgba(42,18,0,0.50) !important; font-size: 11px !important; }
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-dropzone.gpdf-drag-over {
  border-color: #D4A44C !important;
  box-shadow: 0 0 30px rgba(212,164,76,0.22), 0 4px 20px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-file-list {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-file-item  { color: #2A1200 !important; border-bottom: 1px solid rgba(212,164,76,0.12) !important; }
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-file-count { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-action-bar {
  background-color: rgba(20,10,0,0.60) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-top: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-btn-primary,
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-download-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-pdf .gpdf-btn-outline {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}

/* ══════════════════════════════════════════════════════════════
   12. GIRI SCAN
   Header=dark · Camera=très dark · Controls=dark · Results=light · History=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-scan .gs-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-scan .gs-camera-wrap {
  background: rgba(10,5,0,0.82) !important;
  border: 1px solid rgba(212,164,76,0.18) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(200,150,60,0.08) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-scan-overlay {
  border: 2px solid rgba(212,164,76,0.50) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-scan-line {
  background: linear-gradient(transparent, rgba(212,164,76,0.70), transparent) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-corner { border-color: #D4A44C !important; }
[data-theme="wood-legendary"] #view-giri-scan .gs-panel {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-panel * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-scan .gs-result-area {
  background: rgba(255,248,235,0.88) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #1A0A00 !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-history {
  background-color: rgba(100,60,15,0.30) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-history-title  { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-scan .gs-history-preview { color: rgba(42,18,0,0.75) !important; }
[data-theme="wood-legendary"] #view-giri-scan .gs-history-meta   { color: rgba(42,18,0,0.55) !important; }
[data-theme="wood-legendary"] #view-giri-scan .gs-btn-primary,
[data-theme="wood-legendary"] #view-giri-scan .gs-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-btn-secondary {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-scan .gs-btn-danger {
  background: rgba(192,96,64,0.10) !important;
  border: 1px solid rgba(192,96,64,0.28) !important; color: #C06040 !important;
}

/* ══════════════════════════════════════════════════════════════
   13. GIRI COMPRESS
   Header=dark · Dropzone=medium · File list=light
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-compress .gc-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-compress .gc-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-dropzone {
  background-color: rgba(140,85,30,0.24) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 2px dashed rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.26) !important;
}
[data-theme="wood-legendary"] #view-giri-compress .gc-drop-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-drop-sub   { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-dropzone.gc-drag-over {
  border-color: #D4A44C !important;
  box-shadow: 0 0 28px rgba(212,164,76,0.22), 0 4px 18px rgba(0,0,0,0.32) !important;
}
[data-theme="wood-legendary"] #view-giri-compress .gc-item {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20) !important;
}
[data-theme="wood-legendary"] #view-giri-compress .gc-item * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-item-name { color: #2A1200 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-item-size { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-btn-primary,
[data-theme="wood-legendary"] #view-giri-compress .gc-compress-btn,
[data-theme="wood-legendary"] #view-giri-compress .gc-browse-btn,
[data-theme="wood-legendary"] #view-giri-compress .gc-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-compress .gc-btn-ghost {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-compress .gc-badge-loading { background: rgba(212,164,76,0.15) !important; color: #8B4A00 !important; }
[data-theme="wood-legendary"] #view-giri-compress .gc-badge-error   { background: rgba(192,96,64,0.12) !important; color: #C06040 !important; }

/* ══════════════════════════════════════════════════════════════
   14. GIRI TRANSLATE
   Header=dark · Source panel=medium · Target=light · History=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-translate .gt-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-translate .gt-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-app {
  background: transparent !important;
}
/* Panneau source — bois medium */
[data-theme="wood-legendary"] #view-giri-translate textarea:first-of-type,
[data-theme="wood-legendary"] #view-giri-translate [class*="source"],
[data-theme="wood-legendary"] #view-giri-translate [class*="input-panel"],
[data-theme="wood-legendary"] #view-giri-translate [class*="left-panel"] {
  background-color: rgba(140,85,30,0.22) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  color: #2A1200 !important;
}
/* Panneau cible — bois clair */
[data-theme="wood-legendary"] #view-giri-translate textarea:last-of-type,
[data-theme="wood-legendary"] #view-giri-translate [class*="target"],
[data-theme="wood-legendary"] #view-giri-translate [class*="output-panel"],
[data-theme="wood-legendary"] #view-giri-translate [class*="right-panel"] {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] #view-giri-translate .gt-lang-select {
  background: rgba(20,8,0,0.40) !important;
  border: 1px solid rgba(212,164,76,0.24) !important; color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-translate .gt-btn-icon,
[data-theme="wood-legendary"] #view-giri-translate .gt-btn-switch,
[data-theme="wood-legendary"] #view-giri-translate .gt-btn-copy {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.40) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,235,160,0.40) !important;
}
[data-theme="wood-legendary"] #view-giri-translate .gt-history-panel {
  background-color: rgba(100,60,15,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-translate .gt-history-item { border-bottom: 1px solid rgba(212,164,76,0.12) !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-history-item-src { color: rgba(42,18,0,0.80) !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-history-item-tgt { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-history-time { color: rgba(42,18,0,0.55) !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-char-count { color: rgba(42,18,0,0.55) !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-char-warn  { color: #8B3A10 !important; }
[data-theme="wood-legendary"] #view-giri-translate .gt-badge {
  background: rgba(139,74,0,0.14) !important; color: #8B4A00 !important;
}

/* ══════════════════════════════════════════════════════════════
   15. GIRI QR
   Header=dark · Form=light · Preview=medium · Gallery=light
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-qr .gq-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-card,
[data-theme="wood-legendary"] #view-giri-qr .gq-form {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-card * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-content-label { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-content-text,
[data-theme="wood-legendary"] #view-giri-qr .gq-content-preview { color: rgba(42,18,0,0.70) !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-preview-card {
  background-color: rgba(140,85,30,0.26) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.28) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-gallery {
  background-color: rgba(255,245,220,0.12) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-gallery-item {
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-gallery-info    { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-gallery-count,
[data-theme="wood-legendary"] #view-giri-qr .gq-gallery-date   { color: rgba(42,18,0,0.58) !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-gallery-type   { color: #8B4A00 !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-btn-primary,
[data-theme="wood-legendary"] #view-giri-qr .gq-btn-export {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-btn-ghost {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-hint { color: rgba(42,18,0,0.58) !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-field input,
[data-theme="wood-legendary"] #view-giri-qr .gq-field textarea,
[data-theme="wood-legendary"] #view-giri-qr .gq-field select {
  background: rgba(20,8,0,0.35) !important;
  border: 1px solid rgba(212,164,76,0.24) !important; color: #F2E8D8 !important;
}
[data-theme="wood-legendary"] #view-giri-qr .gq-badge { background: rgba(139,74,0,0.14) !important; color: #8B4A00 !important; }
[data-theme="wood-legendary"] #view-giri-qr .gq-info  { color: rgba(42,18,0,0.65) !important; }

/* ══════════════════════════════════════════════════════════════
   16. GIRI BRAIN
   Header=dark · Drop zone=medium · Export cards=light · Blog=light
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-giri-brain .gb-detail-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-detail-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-drop-zone {
  background-color: rgba(140,85,30,0.24) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 2px dashed rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-drop-text { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-drop-hint { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-drop-zone.gb-drop-over {
  border-color: #D4A44C !important;
  box-shadow: 0 0 28px rgba(212,164,76,0.22), 0 4px 20px rgba(0,0,0,0.32) !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-export-card {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-export-card * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-export-desc { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-blog-content {
  background-color: rgba(255,248,235,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-blog-text { color: #1A0A00 !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-detail-title { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-btn-primary,
[data-theme="wood-legendary"] #view-giri-brain .gb-btn-lg,
[data-theme="wood-legendary"] #view-giri-brain .gb-btn-export {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-btn-ghost,
[data-theme="wood-legendary"] #view-giri-brain .gb-btn-sm {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.22) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-btn-danger,
[data-theme="wood-legendary"] #view-giri-brain .gb-delete-btn {
  background: rgba(192,96,64,0.10) !important;
  border: 1px solid rgba(192,96,64,0.28) !important; color: #C06040 !important;
}
[data-theme="wood-legendary"] #view-giri-brain .gb-badge { background: rgba(139,74,0,0.14) !important; color: #8B4A00 !important; }
[data-theme="wood-legendary"] #view-giri-brain .gb-audio-player {
  background-color: rgba(100,60,15,0.28) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
}

/* ══════════════════════════════════════════════════════════════
   17. PROMPT FORGE
   Categories=light · Forge view=dark · Overlay=body · Cards=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-prompt-forge .pf-body { background: transparent !important; }
[data-theme="wood-legendary"] #view-prompt-forge .pf-cat-group {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-cat-title,
[data-theme="wood-legendary"] #view-prompt-forge .pf-cat-name { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-prompt-forge .pf-cat-count { color: rgba(42,18,0,0.58) !important; }
[data-theme="wood-legendary"] #view-prompt-forge .pf-cat-tag {
  background: rgba(139,74,0,0.12) !important; color: #8B4A00 !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-example-card {
  background-color: rgba(140,85,30,0.22) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.24) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-example-card * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-prompt-forge .pf-forge-view {
  background-color: rgba(15,7,0,0.70) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-generate-btn,
[data-theme="wood-legendary"] #view-prompt-forge .pf-forge-cta,
[data-theme="wood-legendary"] #view-prompt-forge .pf-example-use-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-copy-btn,
[data-theme="wood-legendary"] #view-prompt-forge .pf-go-forge {
  background: rgba(212,164,76,0.10) !important;
  border: 1px solid rgba(212,164,76,0.24) !important; color: #DCC8A8 !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-forging-overlay {
  background: rgba(10,5,0,0.82) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-forging-label { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-prompt-forge .pf-error-msg {
  background: rgba(192,96,64,0.12) !important;
  border: 1px solid rgba(192,96,64,0.28) !important; color: #C06040 !important;
}
/* === PromptForge v2 — Hero + Tabs + Bouton Forge ===
   Fonds opaques pour que #2A1200 (marron tres fonce) soit lisible
*/

/* HERO : fond bois clair opaque */
[data-theme="wood-legendary"] #view-prompt-forge .pf-hero {
  background-color: rgba(255,248,230,0.95) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: luminosity !important;
  border-radius: 0 !important;
  padding-bottom: 12px !important;
}
/* Titre hero — conserver le gradient or */
[data-theme="wood-legendary"] #view-prompt-forge .pf-hero-title {
  background: linear-gradient(135deg, #B8860B 0%, #8B4A00 50%, #6B3000 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
/* Sous-titre hero */
[data-theme="wood-legendary"] #view-prompt-forge .pf-hero-sub {
  color: #2A1200 !important; font-weight: 600 !important;
}
/* Pilule flow : fond clair solide + texte marron fonce */
[data-theme="wood-legendary"] #view-prompt-forge .pf-hero-flow {
  background: rgba(255,240,200,0.92) !important;
  border: 1px solid rgba(139,74,0,0.28) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-hf-label {
  color: #2A1200 !important; font-weight: 600 !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-hf-arrow {
  color: rgba(42,18,0,0.40) !important;
}

/* TABS : fond bois moyen opaque + texte marron fonce */
[data-theme="wood-legendary"] #view-prompt-forge .pf-tabs {
  background-color: rgba(240,220,170,0.92) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: luminosity !important;
  border-bottom: 2px solid rgba(139,74,0,0.30) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-tab {
  color: rgba(42,18,0,0.60) !important;
  font-weight: 500 !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-tab:hover {
  color: #2A1200 !important;
  background: rgba(139,74,0,0.10) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-tab.active {
  color: #2A1200 !important;
  background: rgba(255,245,220,0.55) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-tab.active::after {
  background: linear-gradient(90deg, transparent, #8B4A00, transparent) !important;
}

/* BOUTON FORGER — ombre renforcee thème bois */
[data-theme="wood-legendary"] #view-prompt-forge .pf-forge-cta {
  box-shadow: 0 4px 20px rgba(139,74,0,0.48), 0 8px 36px rgba(212,164,76,0.26), 0 2px 6px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,235,160,0.58) !important;
}
[data-theme="wood-legendary"] #view-prompt-forge .pf-forge-cta:hover {
  box-shadow: 0 6px 28px rgba(139,74,0,0.60), 0 12px 44px rgba(212,164,76,0.34), 0 2px 8px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,235,160,0.70) !important;
  transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════════
   18. PAUSE ET BIEN-ÊTRE (Wellness)
   Meditation cards=light · Quote=dark · Wheel=transparent · Items=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-pause-bien-etre { background: transparent !important; }
/* Cards de méditation — déjà dans la section WELLNESS existante */
/* On renforce avec les éléments interactifs */
[data-theme="wood-legendary"] #view-pause-bien-etre .meditation-item,
[data-theme="wood-legendary"] #view-pause-bien-etre [class*="med-card"],
[data-theme="wood-legendary"] #view-pause-bien-etre [class*="meditation-card"] {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-pause-bien-etre [class*="med-title"],
[data-theme="wood-legendary"] #view-pause-bien-etre [class*="meditation-title"] { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-pause-bien-etre [class*="med-desc"],
[data-theme="wood-legendary"] #view-pause-bien-etre [class*="meditation-desc"] { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-pause-bien-etre .quote-display {
  background-color: rgba(20,10,0,0.60) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  color: #F2E8D8 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,200,100,0.08) !important;
}
[data-theme="wood-legendary"] #view-pause-bien-etre button {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}

/* ══════════════════════════════════════════════════════════════
   19. GIRI GAMES
   Player bar=medium · Game cards=light · Header=dark · Leaderboard=dark
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-games .games-header {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.44) !important;
}
[data-theme="wood-legendary"] #view-games .games-header * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-games .games-player-bar {
  background-color: rgba(100,60,15,0.32) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,210,120,0.14) !important;
}
[data-theme="wood-legendary"] #view-games .player-name { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-games .player-title-badge,
[data-theme="wood-legendary"] #view-games .player-rank-info { color: rgba(42,18,0,0.70) !important; }
[data-theme="wood-legendary"] #view-games .games-stat-badge {
  background: rgba(255,245,220,0.18) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  color: #2A1200 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22) !important;
}
[data-theme="wood-legendary"] #view-games .game-card {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-games .game-card:hover {
  border-color: rgba(212,164,76,0.45) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35) !important;
  transform: translateY(-2px) !important;
}
[data-theme="wood-legendary"] #view-games .game-name { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-games .game-best-score,
[data-theme="wood-legendary"] #view-games .game-play-count { color: rgba(42,18,0,0.60) !important; }
[data-theme="wood-legendary"] #view-games .game-tag {
  background: rgba(139,74,0,0.12) !important; color: #8B4A00 !important;
}
[data-theme="wood-legendary"] #view-games .games-daily-challenge {
  background-color: rgba(100,60,15,0.32) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.26) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,210,120,0.14) !important;
}
[data-theme="wood-legendary"] #view-games .daily-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-games .daily-desc  { color: rgba(42,18,0,0.65) !important; }
[data-theme="wood-legendary"] #view-games .daily-btn,
[data-theme="wood-legendary"] #view-games .games-btn {
  background-color: rgba(255,248,230,0.92) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,235,160,0.45) !important;
}
[data-theme="wood-legendary"] #view-games .games-panel {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.20) !important;
}
[data-theme="wood-legendary"] #view-games .games-panel-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-games .activity-row { border-bottom: 1px solid rgba(212,164,76,0.10) !important; }
[data-theme="wood-legendary"] #view-games .activity-text { color: rgba(42,18,0,0.72) !important; }
[data-theme="wood-legendary"] #view-games .activity-time { color: rgba(42,18,0,0.50) !important; }
/* Topbar en jeu */
[data-theme="wood-legendary"] #view-games .game-topbar {
  background-color: rgba(20,10,0,0.70) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border-bottom: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme="wood-legendary"] #view-games .game-title { color: #F2E8D8 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-games .game-back-btn {
  background-color: rgba(255,248,230,0.90) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  color: #2A1200 !important; font-weight: 700 !important;
  border: 1px solid rgba(212,164,76,0.38) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}
/* Modal games */
[data-theme="wood-legendary"] #view-games .games-modal-box {
  background-color: rgba(100,60,15,0.38) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.60) !important;
}
[data-theme="wood-legendary"] #view-games .games-modal-title { color: #2A1200 !important; font-weight: 800 !important; }

/* ══════════════════════════════════════════════════════════════
   20. CLASSEMENT XP / GAMIFICATION (#view-gamification)
   Hero=dark · Skills=light · Leaderboard=dark · Badges=medium
   ══════════════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] #view-gamification [class*="gv-hero"],
[data-theme="wood-legendary"] #view-gamification [class*="hero-card"],
[data-theme="wood-legendary"] #view-gamification [class*="xp-hero"] {
  background-color: rgba(20,10,0,0.65) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.50), inset 0 1px 0 rgba(200,150,60,0.10) !important;
}
[data-theme="wood-legendary"] #view-gamification [class*="gv-hero"] * { color: #F2E8D8 !important; }
[data-theme="wood-legendary"] #view-gamification [class*="skill-card"],
[data-theme="wood-legendary"] #view-gamification [class*="gv-skill"],
[data-theme="wood-legendary"] #view-gamification [class*="xp-card"] {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.22) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,230,160,0.18) !important;
}
[data-theme="wood-legendary"] #view-gamification [class*="skill-card"] *,
[data-theme="wood-legendary"] #view-gamification [class*="gv-skill"] * { color: #2A1200 !important; }
[data-theme="wood-legendary"] #view-gamification [class*="badge-card"],
[data-theme="wood-legendary"] #view-gamification [class*="gv-badge"] {
  background-color: rgba(140,85,30,0.26) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.25) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.24) !important;
}
[data-theme="wood-legendary"] #view-gamification [class*="badge-card"] * { color: #2A1200 !important; }
/* Leaderboard — bois sombre élégant */
[data-theme="wood-legendary"] #view-gamification [class*="leaderboard"],
[data-theme="wood-legendary"] #view-gamification [class*="lb-container"],
[data-theme="wood-legendary"] #view-gamification [class*="ranking"] {
  background-color: rgba(20,10,0,0.60) !important;
  background-image: var(--wood-body) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.18) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.40) !important;
}
[data-theme="wood-legendary"] #view-gamification .lb-rank   { color: #D4A44C !important; font-weight: 800 !important; }
[data-theme="wood-legendary"] #view-gamification .lb-name   { color: #F2E8D8 !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] #view-gamification .lb-score  { color: #E8C870 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] #view-gamification .lb-giris  { color: #DCC8A8 !important; }
[data-theme="wood-legendary"] #view-gamification .leaderboard-row { border-bottom: 1px solid rgba(212,164,76,0.10) !important; }
[data-theme="wood-legendary"] #view-gamification .leaderboard-row:hover { background: rgba(212,164,76,0.06) !important; }
/* Tabs gamification */
[data-theme="wood-legendary"] #view-gamification [class*="gv-tab"],
[data-theme="wood-legendary"] #view-gamification [class*="xp-tab"] {
  color: rgba(42,18,0,0.65) !important;
  border-bottom: 2px solid transparent !important;
}
[data-theme="wood-legendary"] #view-gamification [class*="gv-tab"].active,
[data-theme="wood-legendary"] #view-gamification [class*="xp-tab"].active {
  color: #2A1200 !important; font-weight: 700 !important;
  border-bottom-color: #D4A44C !important;
}
/* Progress bars XP */
[data-theme="wood-legendary"] #view-gamification [class*="xp-bar"],
[data-theme="wood-legendary"] #view-gamification [class*="progress-bar"],
[data-theme="wood-legendary"] #view-gamification [class*="skill-bar"] {
  background: rgba(212,164,76,0.15) !important;
  border-radius: 99px !important;
}
[data-theme="wood-legendary"] #view-gamification [class*="xp-fill"],
[data-theme="wood-legendary"] #view-gamification [class*="progress-fill"],
[data-theme="wood-legendary"] #view-gamification [class*="skill-fill"] {
  background: linear-gradient(90deg, #8B4A00, #D4A44C) !important;
  box-shadow: 0 0 8px rgba(212,164,76,0.30) !important;
}
/* Profile modal gamification */
[data-theme="wood-legendary"] #view-gamification .profile-stat-card {
  background-color: rgba(255,245,220,0.14) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important; background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20) !important;
}
[data-theme="wood-legendary"] #view-gamification .profile-stat-val { color: #8B4A00 !important; font-weight: 800 !important; }
[data-theme="wood-legendary"] #view-gamification .profile-stat-lbl { color: rgba(42,18,0,0.60) !important; }


/* ── WELLNESS ── */
[data-theme="wood-legendary"] .emotion-wheel-container { background: transparent !important; }
[data-theme="wood-legendary"] .meditation-item {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .med-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .quote-display { color: #FFF5DC !important; }

/* ── GAMIFICATION SHOP (.shop-*) ── */
[data-theme="wood-legendary"] .gv-hex-name { color: #FFF5DC !important; }
[data-theme="wood-legendary"] .gv-leaderboard { background: transparent !important; }

/* ── DASHBOARD PREMIUM (.dp-*, .dash-*) ── */
[data-theme="wood-legendary"] .dash-chart-card,
[data-theme="wood-legendary"] .dp-ai-section {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
}
[data-theme="wood-legendary"] .dp-ai-score-num { color: #FFF5DC !important; font-weight: 900 !important; }

/* ── LIVE SESSIONS (.gl-*, .ga-*) ── */
[data-theme="wood-legendary"] .gl-session-card {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .ga-modal {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
}

/* ── MAIL CAMPAIGNS (.mc-ai-*) ── */
[data-theme="wood-legendary"] .mc-ai-panel {
  background-color: rgba(200,155,80,0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .mc-ai-title { color: #FFE8A0 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .mc-btn-primary { background: linear-gradient(180deg,#8B6914,#705210) !important; color: #FFF0D4 !important; }

/* ── GIRI VISION (.vision-*) ── */
[data-theme="wood-legendary"] .vision-chart-card {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .vision-chart-title { color: #2A1200 !important; font-weight: 700 !important; }
[data-theme="wood-legendary"] .vision-btn-primary { background: linear-gradient(180deg,#8B6914,#705210) !important; color: #FFF0D4 !important; }

/* ── QUIZ PLAYER (.aqp-*) ── */
[data-theme="wood-legendary"] .aqp-header {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .aqp-btn-start,
[data-theme="wood-legendary"] .aqp-btn-next { background: linear-gradient(180deg,#8B6914,#705210) !important; color: #FFF0D4 !important; }

/* ── COURSE SYSTEMIO (.csio-*) ── */
[data-theme="wood-legendary"] .csio-card,
[data-theme="wood-legendary"] .csio-compare-card {
  background-color: rgba(255,245,220,0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .csio-hero {
  background-color: rgba(80,45,15,0.15) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .csio-cta,
[data-theme="wood-legendary"] .csio-cta-gold { background: linear-gradient(180deg,#8B6914,#705210) !important; color: #FFF0D4 !important; }

/* ══════════════════════════════════════════════════════
   DASHBOARD — RESTAURÉ DEPUIS BACKUP PRE-V6
   Ces règles écrasent les génériques v6 ci-dessus
   ══════════════════════════════════════════════════════ */
[data-theme="wood-legendary"] .db-insight-bar {
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}
[data-theme="wood-legendary"] .db-charts-grid {
  background: transparent !important;
}
[data-theme="wood-legendary"] .db-kpi-big {
  background-color: rgba(255, 245, 220, 0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 4px 16px rgba(0,0,0,0.35) !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .db-kpi-small {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 4px 16px rgba(0,0,0,0.35) !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .db-kpi-small:hover {
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.3), 0 6px 20px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .db-kpi-small-val {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.4), 0px -1px 0px rgba(255,200,100,0.2) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-val--warn {
  color: #7A1800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.4) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .db-kpi-big-val span[style*="opacity"] {
  color: rgba(42, 18, 0, 0.45) !important;
  opacity: 1 !important;
}
[data-theme="wood-legendary"] .db-kpi-small-label {
  color: #3B1A00 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35), 0px 1px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}
[data-theme="wood-legendary"] .db-kpi-big-sub {
  color: rgba(50, 22, 0, 0.72) !important;
  text-shadow: 0px 1px 1px rgba(255,180,70,0.25) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge {
  background: rgba(61, 31, 0, 0.08) !important;
  color: rgba(50, 22, 0, 0.65) !important;
  border: 1px solid rgba(61, 31, 0, 0.12) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge.good {
  background: rgba(40, 80, 20, 0.1) !important;
  color: rgba(30, 60, 10, 0.75) !important;
  border-color: rgba(40, 80, 20, 0.2) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-badge.warn {
  background: rgba(122, 24, 0, 0.1) !important;
  color: #7A1800 !important;
  border-color: rgba(122, 24, 0, 0.2) !important;
}
[data-theme="wood-legendary"] .db-kpi-big-icon {
  background: rgba(61, 31, 0, 0.08) !important;
  border: 1px solid rgba(61, 31, 0, 0.1) !important;
}
[data-theme="wood-legendary"] .db-kpi-progress {
  background: rgba(61, 31, 0, 0.12) !important;
}
[data-theme="wood-legendary"] .db-hero {
  background-color: rgba(40, 20, 5, 0.5) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 80px rgba(0,0,0,0.35), 0 8px 32px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,220,120,0.1) !important;
  border-radius: 16px !important;
  padding: 32px 40px 28px 40px !important;
  margin-bottom: 16px !important;
}
[data-theme="wood-legendary"] .db-hero-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.7), 0px 1px 0px rgba(255,230,100,0.4) !important;
  font-weight: 300 !important;
  font-size: 2.2rem !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.02em !important;
}
[data-theme="wood-legendary"] .db-hero-name { color: #FFE8A0 !important; text-shadow: 0px 2px 6px rgba(0,0,0,0.6), 0px 1px 0px rgba(255,220,120,0.3) !important; font-weight: 800 !important; }
[data-theme="wood-legendary"] .db-hero-sub { color: rgba(255,225,160,0.65) !important; text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important; font-weight: 300 !important; letter-spacing: 0.04em !important; margin-top: 0 !important; font-size: 0.95rem !important; }
[data-theme="wood-legendary"] .db-hero-eyebrow { margin-bottom: 12px !important; font-size: 0.8rem !important; letter-spacing: 0.05em !important; opacity: 0.6 !important; }
[data-theme="wood-legendary"] .db-live-dot { background: rgba(255,200,100,0.6) !important; box-shadow: none !important; }
[data-theme="wood-legendary"] .db-refresh-btn {
  background: rgba(255,220,150,0.08) !important;
  color: rgba(255,215,140,0.7) !important;
  border: 1px solid rgba(255,220,150,0.15) !important;
}
[data-theme="wood-legendary"] .db-actions-panel {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .db-actions-panel:hover {
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 6px 20px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .db-qa-item {
  background-color: rgba(255, 245, 220, 0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 12px !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
}
[data-theme="wood-legendary"] .db-qa-item:hover {
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.3), 0 4px 12px rgba(0,0,0,0.35) !important;
  border-color: rgba(212, 164, 76, 0.4) !important;
}
[data-theme="wood-legendary"] .db-qa-item.db-qa-item--hl {
  border-color: rgba(212, 164, 76, 0.5) !important;
}
[data-theme="wood-legendary"] .db-actions-panel .db-panel-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .db-actions-panel .db-panel-icon {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)) !important;
}
[data-theme="wood-legendary"] .db-qa-label {
  color: #2A1200 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-qa-icon {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)) !important;
}
[data-theme="wood-legendary"] .db-brief-panel {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .db-card {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.15), 0 4px 16px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] .db-chart-card {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.15), 0 4px 16px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] .db-chart-title {
  color: #FFE0A0 !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.65) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-panel-icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)) !important;
}
[data-theme="wood-legendary"] .db-badge {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
  background: rgba(255, 220, 150, 0.08) !important;
  border: 1px solid rgba(255, 220, 150, 0.15) !important;
}
[data-theme="wood-legendary"] .db-act-item {
  border-bottom: 1px solid rgba(255, 220, 150, 0.08) !important;
}
[data-theme="wood-legendary"] .db-act-item:hover {
  background: rgba(255, 220, 150, 0.04) !important;
}
[data-theme="wood-legendary"] .db-act-icon {
  background: rgba(255, 220, 150, 0.06) !important;
  border: 1px solid rgba(255, 220, 150, 0.1) !important;
}
[data-theme="wood-legendary"] .db-donut-legend span {
  color: rgba(255, 215, 140, 0.8) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .db-empty-state { color: rgba(255, 215, 140, 0.6) !important; }
[data-theme="wood-legendary"] .db-cta-btn {
  background: rgba(255, 220, 150, 0.08) !important;
  color: rgba(255, 215, 140, 0.8) !important;
  border: 1px solid rgba(255, 220, 150, 0.2) !important;
}
[data-theme="wood-legendary"] .db-chart-card tspan {
  fill: rgba(255, 240, 200, 0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .db-chart-card text[text-anchor="middle"] {
  fill: rgba(255, 240, 200, 0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .db-chart-card svg tspan {
  fill: rgba(255, 240, 200, 0.9) !important;
}
[data-theme="wood-legendary"] .mb-container {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .mb-stat-card {
  background: rgba(20, 8, 0, 0.25) !important;
  border-radius: 12px !important;
}
[data-theme="wood-legendary"] .mb-conseil-wrap {
  background: rgba(20, 8, 0, 0.3) !important;
  border-radius: 10px !important;
  border-left: 2px solid rgba(255, 190, 80, 0.45) !important;
}
[data-theme="wood-legendary"] .mb-slide-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .mb-slide-subtitle {
  color: rgba(50, 22, 0, 0.65) !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .mb-revenue-val {
  color: #2A1200 !important;
  text-shadow: 0px 1px 2px rgba(255,180,70,0.3) !important;
}
[data-theme="wood-legendary"] .mb-section-title {
  color: #3B1A00 !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
}
[data-theme="wood-legendary"] .mb-stat-val {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .mb-stat-label {
  color: #3B1A00 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
}
[data-theme="wood-legendary"] .mb-conseil-badge { color: #3B1A00 !important; }
[data-theme="wood-legendary"] .mb-tts-btn {
  background: rgba(20, 8, 0, 0.15) !important;
  color: #3B1A00 !important;
  border: 1px solid rgba(59, 26, 0, 0.2) !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.3) !important;
}
[data-theme="wood-legendary"] .mb-dot { background: rgba(59, 26, 0, 0.25) !important; }
[data-theme="wood-legendary"] .mb-dot.active { background: #3B1A00 !important; }
[data-theme="wood-legendary"] .mb-progress-bar { background: rgba(20, 8, 0, 0.3) !important; }
[data-theme="wood-legendary"] body .mb-stat-val[style] { color: #2A1200 !important; }
[data-theme="wood-legendary"] body .mb-container {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] body .mb-conseil-wrap {
  background: rgba(20, 8, 0, 0.25) !important;
}
[data-theme="wood-legendary"] body .mb-stat-card {
  background: rgba(20, 8, 0, 0.25) !important;
}
[data-theme="wood-legendary"] .db-prog-wrap {
  text-shadow: 0px 1px 2px rgba(255, 240, 200, 0.6), 0px -1px 1px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] .db-badge {
  text-shadow: 0px 1px 1px rgba(255, 235, 180, 0.5) !important;
}
[data-theme="wood-legendary"] .db-kpi-small-val {
  text-shadow: 0px 2px 3px rgba(255, 245, 210, 0.5), 0px -1px 1px rgba(0,0,0,0.2) !important;
}
[data-theme="wood-legendary"] .mb-container * {
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .db-chart-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.85) !important;
}
[data-theme="wood-legendary"] .db-chart-card .db-prog-bar div {
  color: inherit !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .mbw-card {
  background-color: rgba(200, 155, 80, 0.15) !important;
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border: 1px solid rgba(180, 130, 70, 0.4) !important;
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .mbw-card-glow {
  background: linear-gradient(90deg, transparent, rgba(212, 164, 76, 0.5) 30%, rgba(232, 192, 96, 0.6) 70%, transparent) !important;
}
[data-theme="wood-legendary"] .mbw-card:hover {
  border-color: rgba(212, 164, 76, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 6px 20px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .mbw-stat {
  background-color: rgba(255, 245, 220, 0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 12px !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
}
[data-theme="wood-legendary"] .mbw-stat--warn {
  border-color: rgba(192, 96, 64, 0.4) !important;
}
[data-theme="wood-legendary"] .mbw-stat:hover {
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.3), 0 4px 12px rgba(0,0,0,0.35) !important;
  transform: translateY(-2px) !important;
}
[data-theme="wood-legendary"] .mbw-event-chip {
  background: rgba(20, 8, 0, 0.25) !important;
  border: 1px solid rgba(180, 130, 70, 0.25) !important;
}
[data-theme="wood-legendary"] .mbw-deal-row {
  background: rgba(20, 8, 0, 0.25) !important;
  border: 1px solid rgba(180, 130, 70, 0.2) !important;
}
[data-theme="wood-legendary"] .mbw-ai-section {
  background: rgba(20, 8, 0, 0.3) !important;
  background-image: none !important;
  border-radius: 10px !important;
  border-left: 2px solid rgba(255, 190, 80, 0.45) !important;
  padding: 12px !important;
}
[data-theme="wood-legendary"] .mbw-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .mbw-subtitle {
  color: rgba(50, 22, 0, 0.65) !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.3) !important;
}
[data-theme="wood-legendary"] .mbw-stat-val {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .mbw-stat--warn .mbw-stat-val {
  color: #7A1800 !important;
}
[data-theme="wood-legendary"] .mbw-stat-lbl {
  color: #3B1A00 !important;
  text-shadow: 0px 1px 0px rgba(255,190,90,0.35) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .mbw-stat-icon {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)) !important;
}
[data-theme="wood-legendary"] .mbw-event-time {
  color: #2A1200 !important;
  text-shadow: 0px 1px 1px rgba(255,190,90,0.3) !important;
}
[data-theme="wood-legendary"] .mbw-deal-name { color: #FFF5DC !important; text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important; font-weight: 600 !important; }
[data-theme="wood-legendary"] .mbw-deal-contact { color: rgba(255,235,180,0.7) !important; text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important; }
[data-theme="wood-legendary"] .mbw-divider { background: rgba(180, 130, 70, 0.3) !important; }
[data-theme="wood-legendary"] .mbw-ai-badge {
  color: #FFE8A0 !important;
  background: rgba(20, 8, 0, 0.2) !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .mbw-ai-text h4 {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .mbw-ai-gen span { color: rgba(255,232,160,0.6) !important; }
[data-theme="wood-legendary"] .mbw-refresh-btn {
  background: rgba(20, 8, 0, 0.15) !important;
  color: #3B1A00 !important;
  border: 1px solid rgba(180, 130, 70, 0.25) !important;
}
[data-theme="wood-legendary"] .db-insight-bar {
  background-color: rgba(255, 245, 220, 0.15) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 190, 80, 0.4) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  padding: 10px 16px !important;
}
[data-theme="wood-legendary"] .db-insight-bar strong {
  color: #2A1200 !important;
  text-shadow: 0px 1px 0px rgba(255,200,100,0.4) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-insight-dot {
  background: #D4A44C !important;
  box-shadow: 0 0 6px rgba(212, 164, 76, 0.4) !important;
}
[data-theme="wood-legendary"] .db-chart-title {
  color: #FFFAF0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .db-act-text {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.85) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .db-act-time {
  color: rgba(255, 240, 200, 0.85) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .db-prog-rate {
  color: rgba(255, 235, 180, 0.9) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .db-prog-warn {
  color: #E08060 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* ── TÂCHES — textes sombres sur bois clair (todo + inprogress) ── */
[data-theme="wood-legendary"] .bubble.todo .bubble-text,
[data-theme="wood-legendary"] .bubble.inprogress .bubble-text {
  color: #1A0800 !important;
  text-shadow: 0px 1px 0px rgba(255,190,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .bubble.todo .task-project,
[data-theme="wood-legendary"] .bubble.inprogress .task-project,
[data-theme="wood-legendary"] .bubble.todo .task-label,
[data-theme="wood-legendary"] .bubble.inprogress .task-label,
[data-theme="wood-legendary"] .bubble.todo .bubble-project,
[data-theme="wood-legendary"] .bubble.inprogress .bubble-project {
  color: #2A1200 !important;
  font-weight: 600 !important;
}

/* ── MAHAYAWEN ORB MINI (#mos-mini) — thème bois ── */
[data-theme="wood-legendary"] #mos-mini {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,164,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(180,130,70,0.05) 0%, transparent 50%),
    rgba(30, 20, 10, 0.94) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  box-shadow:
    0 0 0 1px rgba(212,164,76,0.06) inset,
    0 24px 80px rgba(0,0,0,0.65),
    0 0 40px rgba(212,164,76,0.08) !important;
}
[data-theme="wood-legendary"] .mos-mini-header {
  background: linear-gradient(180deg, rgba(212,164,76,0.08) 0%, transparent 100%) !important;
  border-bottom: 1px solid rgba(212,164,76,0.12) !important;
}
[data-theme="wood-legendary"] .mos-mini-avatar-ring {
  border-color: rgba(212,164,76,0.5) !important;
}
[data-theme="wood-legendary"] .mos-mini-avatar-img {
  border-color: rgba(212,164,76,0.4) !important;
}
[data-theme="wood-legendary"] .mos-mini-title {
  color: #FFD700 !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.7), 0px 1px 0px rgba(255,220,100,0.5) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .mos-mini-status-text {
  color: rgba(255,235,180,0.7) !important;
}
[data-theme="wood-legendary"] .mos-mini-state-dot {
  background: #D4A44C !important;
}
[data-theme="wood-legendary"] .mos-mini-hbtn {
  color: rgba(255,235,180,0.6) !important;
  border-color: rgba(212,164,76,0.15) !important;
}
[data-theme="wood-legendary"] .mos-mini-hbtn:hover {
  background: rgba(212,164,76,0.12) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .mos-mini-body {
  scrollbar-color: rgba(212,164,76,0.2) transparent !important;
}
[data-theme="wood-legendary"] .mos-msg-bot {
  background: rgba(212,164,76,0.08) !important;
  border-color: rgba(212,164,76,0.12) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .mos-msg-user {
  background: linear-gradient(135deg, rgba(212,164,76,0.25), rgba(180,130,70,0.15)) !important;
  border-color: rgba(212,164,76,0.2) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .mos-qbtn {
  background: rgba(212,164,76,0.08) !important;
  border: 1px solid rgba(212,164,76,0.15) !important;
  color: rgba(255,235,180,0.8) !important;
}
[data-theme="wood-legendary"] .mos-qbtn:hover {
  background: rgba(212,164,76,0.15) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .mos-mini-input {
  background: rgba(20,8,0,0.4) !important;
  border: 1px solid rgba(212,164,76,0.2) !important;
  color: #FFF5DC !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .mos-mini-send {
  color: #D4A44C !important;
}

/* ── PAGE TÂCHES — titre + sous-titre ── */
[data-theme="wood-legendary"] #view-tasks .app-title,
[data-theme="wood-legendary"] #view-tasks h1 {
  color: #F5E6C8 !important;
  -webkit-text-fill-color: #F5E6C8 !important;
  text-shadow: 1px 1px 0px rgba(255,210,130,0.6), -1px -1px 0px rgba(0,0,0,0.4), 0px 2px 4px rgba(0,0,0,0.5) !important;
  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-stroke: 0 !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  animation: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
[data-theme="wood-legendary"] #view-tasks .app-title::after {
  display: none !important;
}
[data-theme="wood-legendary"] #view-tasks .app-title::before {
  display: none !important;
}
[data-theme="wood-legendary"] #tasks-dynamic-subtitle {
  color: rgba(245, 225, 190, 0.7) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.5) !important;
  opacity: 1 !important;
}

/* ── PAGE TÂCHES — header nettoyé ── */
[data-theme="wood-legendary"] #view-tasks .app-header {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}
[data-theme="wood-legendary"] #view-tasks .app-header::before {
  display: none !important;
}
[data-theme="wood-legendary"] #view-tasks .app-header::after {
  display: none !important;
}

/* ── TÂCHES — input nouvelle tâche + barre filtres ── */
[data-theme="wood-legendary"] .task-input-section {
  background-image: var(--wood-medium) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .task-input-section input,
[data-theme="wood-legendary"] .task-input-section select,
[data-theme="wood-legendary"] #task-input {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .user-filter-bar {
  background-image: var(--wood-medium) !important;
  background-size: 400px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  border-radius: 12px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}

/* ── TÂCHES — ombres cartes, input, filtres ── */
[data-theme="wood-legendary"] .bubble {
  box-shadow: 0 4px 12px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.2) !important;
}
[data-theme="wood-legendary"] .task-input-section input,
[data-theme="wood-legendary"] #task-input {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.15) !important;
}
[data-theme="wood-legendary"] .user-filter-bar select,
[data-theme="wood-legendary"] .user-filter-bar button,
[data-theme="wood-legendary"] .user-filter-bar label {
  box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.15) !important;
}

/* Gyrophare : cercle toujours transparent (--bg-card=#4A3525 le rendait marron) */
[data-theme=wood-legendary] .urgent-filter-btn {
  background: transparent !important;
}

/* ── TÂCHES — icônes barre filtres : marron foncé (stroke override) ── */
[data-theme="wood-legendary"] .user-filter-bar svg,
[data-theme="wood-legendary"] .user-filter-bar .icon,
[data-theme="wood-legendary"] .tasks-toolbar svg,
[data-theme="wood-legendary"] .tasks-toolbar .icon {
  color: #3B1A00 !important;
  fill: #3B1A00 !important;
  opacity: 1 !important;
  filter: none !important;
}
/* Stroke des paths/formes : ecrase le gradient doré url(#g...) */
[data-theme="wood-legendary"] #view-tasks .user-filter-bar svg path,
[data-theme="wood-legendary"] #view-tasks .user-filter-bar svg circle,
[data-theme="wood-legendary"] #view-tasks .user-filter-bar svg rect,
[data-theme="wood-legendary"] #view-tasks .user-filter-bar svg polyline,
[data-theme="wood-legendary"] #view-tasks .user-filter-bar svg line,
[data-theme="wood-legendary"] #view-tasks .user-filter-bar svg ellipse {
  stroke: #3B1A00 !important;
  stroke-width: 2.2 !important;
  fill: none !important;
}

/* ── TÂCHES — labels VOIR + Colonnes égales ── */
[data-theme="wood-legendary"] .user-filter-bar label {
  color: #FFF5DC !important;
  font-weight: 800 !important;
  text-shadow: 0px 1px 0px rgba(255,190,80,0.3) !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
}
[data-theme="wood-legendary"] .crr-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 0px rgba(255,190,80,0.3) !important;
}

/* ── TÂCHES — supprimer halo Eye of Horus ── */
[data-theme="wood-legendary"] .galaxy-icon {
  filter: none !important;
  opacity: 0.7 !important;
}
[data-theme="wood-legendary"] .galaxy-icon-container::before,
[data-theme="wood-legendary"] .galaxy-icon-container::after,
[data-theme="wood-legendary"] .divine-particles,
[data-theme="wood-legendary"] .divine-particles::before,
[data-theme="wood-legendary"] .divine-particles::after {
  display: none !important;
}

/* ── Masquer breadcrumb sur toutes les pages ── */
[data-theme="wood-legendary"] .breadcrumbs {
  display: none !important;
}

/* ── Masquer hub banner (Accueil > ✅ Tâches) ── */
[data-theme="wood-legendary"] .hub-banner {
  display: none !important;
}

/* ── TÂCHES — Tiroir de tri TERMINÉ (dpf) ── */
/* Bouton trigger : ambre/or visible sur fond sombre */
[data-theme="wood-legendary"] #view-tasks .dpf-trigger {
  background: rgba(212,164,76,0.22) !important;
  border: 1.5px solid rgba(212,164,76,0.58) !important;
  color: #F5E6C8 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,220,130,0.18) !important;
}
[data-theme="wood-legendary"] #view-tasks .dpf-trigger:hover {
  background: rgba(212,164,76,0.38) !important;
  border-color: rgba(212,164,76,0.82) !important;
  color: #FFF3D0 !important;
  box-shadow: 0 3px 12px rgba(139,74,0,0.38), 0 0 0 2px rgba(212,164,76,0.18), inset 0 1px 0 rgba(255,220,130,0.28) !important;
}
[data-theme="wood-legendary"] #view-tasks .dpf-wrap.open .dpf-trigger {
  background: rgba(212,164,76,0.42) !important;
  border-color: rgba(212,164,76,0.88) !important;
  box-shadow: 0 3px 14px rgba(139,74,0,0.42), 0 0 0 2px rgba(212,164,76,0.22) !important;
}
/* Menu deroulant : fond bois sombre + options ambre */
[data-theme="wood-legendary"] #view-tasks .dpf-menu {
  background: rgba(22,10,0,0.96) !important;
  border: 1px solid rgba(212,164,76,0.42) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.58), 0 2px 8px rgba(139,74,0,0.28), inset 0 1px 0 rgba(255,200,100,0.06) !important;
}
[data-theme="wood-legendary"] #view-tasks .dpf-opt {
  color: rgba(212,185,130,0.85) !important;
}
[data-theme="wood-legendary"] #view-tasks .dpf-opt:hover {
  background: rgba(212,164,76,0.12) !important;
  color: #F5E6C8 !important;
}
[data-theme="wood-legendary"] #view-tasks .dpf-opt.selected {
  color: #F5B84C !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] #view-tasks .dpf-opt.selected::before {
  color: #F5B84C !important;
}

/* ══════════════════════════════════════════
   WOOD CALENDAR NAV — Navigation mois
   ══════════════════════════════════════════ */
[data-theme="wood-legendary"] .wood-cal-nav {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  z-index: 100 !important;
  margin: 0 auto !important;
}
[data-theme="wood-legendary"] .wood-cal-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  background-image: var(--wood-medium) !important;
  background-size: 200px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(74,56,40,0.8) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.1) !important;
  transition: all 0.2s ease !important;
}
[data-theme="wood-legendary"] .wood-cal-arrow:hover {
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.45), 0 0 15px rgba(212,164,76,0.15), inset 0 1px 0 rgba(255,220,150,0.15) !important;
  transform: scale(1.05) !important;
}
[data-theme="wood-legendary"] .wood-cal-arrow svg {
  stroke: #FFE8A0 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)) !important;
}
[data-theme="wood-legendary"] .wood-cal-label {
  display: inline-block !important;
  color: #FFE8A0 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 20px rgba(212,164,76,0.25) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.5px !important;
  min-width: 200px !important;
  text-align: center !important;
  z-index: 100 !important;
}

/* Masquer les anciens boutons de nav du header original */
[data-theme="wood-legendary"] .gcal-header > .gcal-header-left,
[data-theme="wood-legendary"] .gcal-header > .gcal-header-center,
[data-theme="wood-legendary"] .gcal-header > .gcal-header-nav {
  display: none !important;
}

/* ╔══════════════════════════════════════════════════════════════╗
   ║  BOIS LÉGENDAIRE v7 — ENHANCEMENTS                         ║
   ║  Profondeur, Relief, Animations, Finitions Artisanales      ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ─────────────────────────────────────────
   1. KEYFRAMES — Animations subtiles
   ───────────────────────────────────────── */

/* Lueur dorée pulsante (chandelle) */
@keyframes woodGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 0 0 rgba(212,164,76,0); }
  50% { box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 25px 2px rgba(212,164,76,0.06); }
}

/* Lueur dorée pour la sidebar active */
@keyframes sidebarActiveGlow {
  0%, 100% { border-left-color: rgba(255,190,80,0.55); }
  50% { border-left-color: rgba(255,190,80,0.85); }
}

/* Shimmer sur les badges legendary */
@keyframes woodShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Grain de bois animé (subtil) */
@keyframes grainShift {
  0%, 100% { filter: contrast(1) brightness(1); }
  50% { filter: contrast(1.02) brightness(1.01); }
}

/* ─────────────────────────────────────────
   2. SIDEBAR — Bois sculpté avec rainures
   ───────────────────────────────────────── */

/* Rainures de grain subtiles */
[data-theme="wood-legendary"] .sidebar::after,
[data-theme="wood-legendary"] #app-sidebar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 28px,
    rgba(0,0,0,0.04) 28px,
    rgba(0,0,0,0.04) 29px,
    rgba(255,200,100,0.02) 29px,
    rgba(255,200,100,0.02) 30px
  );
  pointer-events: none;
  z-index: 0;
}

/* Items sidebar — relief bois indenté */
[data-theme="wood-legendary"] .sidebar-item {
  position: relative;
  border-radius: 8px !important;
  margin: 2px 8px !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

[data-theme="wood-legendary"] .sidebar-item:hover {
  background: rgba(255,190,80,0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.08), 0 1px 4px rgba(0,0,0,0.2) !important;
  transform: translateX(2px) !important;
}

[data-theme="wood-legendary"] .sidebar-item.active,
[data-theme="wood-legendary"] .sidebar-item.active span {
  animation: none !important;
  box-shadow: none !important;
}

/* ─────────────────────────────────────────
   3. CARTES — Relief 3D bois sculpté
   ───────────────────────────────────────── */

/* Effet cadre bois sur les cartes principales */
[data-theme="wood-legendary"] .glass-card,
[data-theme="wood-legendary"] .kpi-card,
[data-theme="wood-legendary"] .card,
[data-theme="wood-legendary"] .stat-card,
[data-theme="wood-legendary"] .metric-card,
[data-theme="wood-legendary"] .widget-card,
[data-theme="wood-legendary"] .dashboard-widget,
[data-theme="wood-legendary"] .db-kpi-big,
[data-theme="wood-legendary"] .db-kpi-small {
  border: none !important;
  box-shadow:
    /* Cadre externe — ombre portée profonde */
    0 6px 24px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.3),
    /* Bordure sculptée — ridge bois */
    inset 0 1px 0 rgba(255,220,150,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    inset 1px 0 0 rgba(255,220,150,0.08),
    inset -1px 0 0 rgba(0,0,0,0.15) !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  animation: woodGlow 6s ease-in-out infinite !important;
}

/* Hover cartes — lueur lampe à huile */
[data-theme="wood-legendary"] .glass-card:hover,
[data-theme="wood-legendary"] .kpi-card:hover,
[data-theme="wood-legendary"] .card:hover,
[data-theme="wood-legendary"] .stat-card:hover,
[data-theme="wood-legendary"] .metric-card:hover,
[data-theme="wood-legendary"] .widget-card:hover,
[data-theme="wood-legendary"] .dashboard-widget:hover,
[data-theme="wood-legendary"] .db-kpi-big:hover,
[data-theme="wood-legendary"] .db-kpi-small:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    0 3px 10px rgba(0,0,0,0.3),
    0 0 30px rgba(212,164,76,0.08),
    inset 0 1px 0 rgba(255,220,150,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    inset 1px 0 0 rgba(255,220,150,0.12),
    inset -1px 0 0 rgba(0,0,0,0.15) !important;
}

/* Cartes secondaires — même traitement */
[data-theme="wood-legendary"] .db-card,
[data-theme="wood-legendary"] .db-chart-card,
[data-theme="wood-legendary"] .mbw-card,
[data-theme="wood-legendary"] .crm-auto-card,
[data-theme="wood-legendary"] .adv-card {
  box-shadow:
    0 6px 24px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,150,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.25) !important;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
}

[data-theme="wood-legendary"] .db-card:hover,
[data-theme="wood-legendary"] .db-chart-card:hover,
[data-theme="wood-legendary"] .mbw-card:hover,
[data-theme="wood-legendary"] .crm-auto-card:hover,
[data-theme="wood-legendary"] .adv-card:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 10px 36px rgba(0,0,0,0.5),
    0 0 25px rgba(212,164,76,0.07),
    inset 0 1px 0 rgba(255,220,150,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.25) !important;
}

/* ─────────────────────────────────────────
   4. BUBBLES TÂCHES — Effet planche de bois
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .bubble,
[data-theme="wood-legendary"] .task-bubble {
  border: none !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.4),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,150,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}

[data-theme="wood-legendary"] .bubble:hover,
[data-theme="wood-legendary"] .task-bubble:hover {
  transform: translateY(-1px) scale(1.005) !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 2px 6px rgba(0,0,0,0.3),
    0 0 20px rgba(212,164,76,0.06),
    inset 0 1px 0 rgba(255,220,150,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
}

/* Bubble inprogress — bordure dorée luminescente */
[data-theme="wood-legendary"] .bubble.inprogress {
  border-left: 3px solid rgba(212,164,76,0.6) !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.4),
    0 1px 3px rgba(0,0,0,0.3),
    -3px 0 12px rgba(212,164,76,0.08),
    inset 0 1px 0 rgba(255,220,150,0.18) !important;
}

/* Bubble done — aspect bois patiné */
[data-theme="wood-legendary"] .bubble.done {
  border-left: 3px solid rgba(122,158,90,0.5) !important;
  filter: saturate(0.85) !important;
}

/* ─────────────────────────────────────────
   5. BOUTONS — Effet bois pressé/enfoncement
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .btn-primary,
[data-theme="wood-legendary"] button[class*="primary"],
[data-theme="wood-legendary"] #add-task-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.35),
    0 1px 2px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,230,160,0.25) !important;
  color: #2A1200 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1) !important;
  will-change: auto !important;
}

/* Effet d'enfoncement au clic */
[data-theme="wood-legendary"] .btn-primary:active,
[data-theme="wood-legendary"] button[class*="primary"]:active,
[data-theme="wood-legendary"] #add-task-btn:active {
  transform: translateY(1px) !important;
  box-shadow:
    0 1px 4px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(0,0,0,0.3),
    inset 0 -1px 0 rgba(255,230,160,0.1) !important;
  background: linear-gradient(180deg, #6A4E08 0%, #7A5E10 50%, #9A7818 100%) !important;
}

/* Hover bouton — lueur dorée */
[data-theme="wood-legendary"] .btn-primary:hover,
[data-theme="wood-legendary"] button[class*="primary"]:hover,
[data-theme="wood-legendary"] #add-task-btn:hover {
  background: linear-gradient(180deg, #AA8820 0%, #8B6914 50%, #7A5E10 100%) !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.45),
    0 0 18px rgba(212,164,76,0.12),
    inset 0 1px 0 rgba(255,230,160,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
}

/* #add-task-btn — aucun changement visuel au survol */
[data-theme="wood-legendary"] #add-task-btn:hover {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.35),
    0 1px 2px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,230,160,0.25) !important;
  transform: none !important;
  filter: none !important;
}

/* Boutons secondaires — aspect bois brut */
[data-theme="wood-legendary"] .btn-secondary,
[data-theme="wood-legendary"] button[class*="secondary"],
[data-theme="wood-legendary"] .btn-outline {
  box-shadow:
    0 2px 6px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,150,0.06) !important;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1) !important;
}

[data-theme="wood-legendary"] .btn-secondary:active,
[data-theme="wood-legendary"] button[class*="secondary"]:active {
  transform: translateY(1px) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* ─────────────────────────────────────────
   6. SÉPARATEURS — Groove bois sculpté
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] hr,
[data-theme="wood-legendary"] .divider,
[data-theme="wood-legendary"] .mbw-divider {
  height: 3px !important;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.15) 33%,
      rgba(255,210,130,0.08) 50%,
      rgba(0,0,0,0.1) 67%,
      rgba(0,0,0,0.2) 100%
    ) !important;
  border-radius: 1px !important;
}

/* ─────────────────────────────────────────
   7. SCROLLBAR — Bois tourné avec détails
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

[data-theme="wood-legendary"] ::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg,
      rgba(20,14,8,0.7) 0%,
      rgba(30,20,12,0.5) 40%,
      rgba(30,20,12,0.5) 60%,
      rgba(20,14,8,0.7) 100%
    );
  border-left: 1px solid rgba(0,0,0,0.2);
}

[data-theme="wood-legendary"] ::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg,
      #7A6050 0%,
      #6A5040 15%,
      #5A3E2E 30%,
      #6A5040 45%,
      #7A6050 50%,
      #6A5040 55%,
      #5A3E2E 70%,
      #6A5040 85%,
      #7A6050 100%
    );
  border-radius: 6px;
  border: 2px solid rgba(20,14,8,0.6);
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

[data-theme="wood-legendary"] ::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg,
      #8A7060 0%,
      #7A6050 15%,
      #6A4E3E 30%,
      #7A6050 45%,
      #8A7060 50%,
      #7A6050 55%,
      #6A4E3E 70%,
      #7A6050 85%,
      #8A7060 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 6px rgba(212,164,76,0.1);
}

[data-theme="wood-legendary"] ::-webkit-scrollbar-corner {
  background: rgba(20,14,8,0.7);
}

/* ─────────────────────────────────────────
   8. INPUTS — Focus ring doré & inset bois
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] input,
[data-theme="wood-legendary"] textarea,
[data-theme="wood-legendary"] select {
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(0,0,0,0.1),
    0 1px 0 rgba(255,220,150,0.05) !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

[data-theme="wood-legendary"] input:focus,
[data-theme="wood-legendary"] textarea:focus,
[data-theme="wood-legendary"] select:focus {
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.3),
    0 0 0 3px rgba(212,164,76,0.12),
    0 0 15px rgba(212,164,76,0.08) !important;
  outline: none !important;
}

/* ─────────────────────────────────────────
   9. MODALES — Cadre bois massif
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .modal-box,
[data-theme="wood-legendary"] .modal-content,
[data-theme="wood-legendary"] .modal-card {
  box-shadow:
    /* Ombre portée profonde */
    0 20px 70px rgba(0,0,0,0.7),
    0 8px 25px rgba(0,0,0,0.5),
    /* Cadre bois sculpté */
    inset 0 1px 0 rgba(255,220,150,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    inset 1px 0 0 rgba(255,220,150,0.06),
    inset -1px 0 0 rgba(0,0,0,0.2),
    /* Lueur ambiante */
    0 0 40px rgba(212,164,76,0.05) !important;
}

/* Overlay modale — effet obscurcissement chaleureux */
[data-theme="wood-legendary"] .modal-overlay {
  background: rgba(10,5,0,0.8) !important;
  backdrop-filter: blur(6px) saturate(0.8) !important;
  -webkit-backdrop-filter: blur(6px) saturate(0.8) !important;
}

/* ─────────────────────────────────────────
   10. HEADER APP — Ombre portée bois massif
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .app-header {
  box-shadow:
    0 4px 20px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,220,150,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.3) !important;
}

/* ─────────────────────────────────────────
   11. TOASTS — Encadrement bois avec accent
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .toast,
[data-theme="wood-legendary"] [class*="toast"] {
  border-left: 4px solid #D4A44C !important;
  box-shadow:
    0 6px 24px rgba(0,0,0,0.5),
    0 2px 6px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,150,0.08) !important;
  border-radius: 0 12px 12px 0 !important;
}

/* Toast success */
[data-theme="wood-legendary"] .toast.success,
[data-theme="wood-legendary"] .toast-success {
  border-left-color: #7A9E5A !important;
}

/* Toast error */
[data-theme="wood-legendary"] .toast.error,
[data-theme="wood-legendary"] .toast-error {
  border-left-color: #C06040 !important;
}

/* ─────────────────────────────────────────
   12. DROPDOWNS — Aspect bois massif
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .dropdown-menu,
[data-theme="wood-legendary"] .context-menu,
[data-theme="wood-legendary"] .menu-dropdown {
  box-shadow:
    0 10px 40px rgba(0,0,0,0.65),
    0 3px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,220,150,0.06),
    0 0 0 1px rgba(180,130,70,0.15) !important;
  border-radius: 12px !important;
}

[data-theme="wood-legendary"] .dropdown-menu li:hover,
[data-theme="wood-legendary"] .context-menu li:hover,
[data-theme="wood-legendary"] .menu-dropdown li:hover,
[data-theme="wood-legendary"] .dropdown-item:hover {
  background: rgba(212,164,76,0.1) !important;
  box-shadow: inset 2px 0 0 rgba(212,164,76,0.4) !important;
}

/* ─────────────────────────────────────────
   13. COLONNES TÂCHES — Panneaux bois profond
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .task-column {
  box-shadow:
    0 6px 24px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,220,150,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
  transition: box-shadow 0.3s ease !important;
}

/* ─────────────────────────────────────────
   14. BADGES & TAGS — Effet bois incrusté
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .badge,
[data-theme="wood-legendary"] .tag,
[data-theme="wood-legendary"] .task-project,
[data-theme="wood-legendary"] .task-priority {
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.15),
    0 1px 0 rgba(255,220,150,0.05) !important;
  transition: all 0.2s ease !important;
}

[data-theme="wood-legendary"] .task-priority.urgent {
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.15),
    0 0 8px rgba(192,96,64,0.15) !important;
}

/* ─────────────────────────────────────────
   15. SELECTION — Dorée ambrée
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] ::selection {
  background: rgba(212,164,76,0.4) !important;
  color: #FFF8E8 !important;
  text-shadow: none !important;
}

/* ─────────────────────────────────────────
   16. TOOLTIPS — Bois foncé avec flèche
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] [data-tooltip]::after,
[data-theme="wood-legendary"] .tooltip,
[data-theme="wood-legendary"] .tippy-box {
  background-color: #1E140C !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,220,150,0.06) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}

/* ─────────────────────────────────────────
   17. PROGRESS BARS — Dégradé bois doré
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .progress-bar,
[data-theme="wood-legendary"] .db-prog-bar div,
[data-theme="wood-legendary"] .db-kpi-progress div {
  background: linear-gradient(90deg,
    #705210 0%,
    #8B6914 30%,
    #D4A44C 60%,
    #E0B860 80%,
    #D4A44C 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,230,160,0.3),
    0 1px 3px rgba(0,0,0,0.3) !important;
  border-radius: 4px !important;
}

/* Track des progress bars */
[data-theme="wood-legendary"] .progress-track,
[data-theme="wood-legendary"] .db-prog-bar,
[data-theme="wood-legendary"] .db-kpi-progress {
  background: rgba(20,10,0,0.4) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
}

/* ─────────────────────────────────────────
   18. THEME SELECTOR CARD — Premium look
   ───────────────────────────────────────── */

.theme-card-legendary {
  position: relative !important;
  overflow: hidden !important;
}

.theme-card-legendary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212,164,76,0.08) 30deg,
    transparent 60deg,
    rgba(212,164,76,0.05) 120deg,
    transparent 180deg,
    rgba(212,164,76,0.08) 240deg,
    transparent 300deg,
    rgba(212,164,76,0.05) 330deg,
    transparent 360deg
  );
  animation: spin 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.theme-card-legendary::after {
  background:
    linear-gradient(90deg, #8B6914, #D4A44C, #E0B860, #D4A44C, #8B6914) !important;
  background-size: 200% 100% !important;
  animation: woodShimmer 4s ease-in-out infinite !important;
}

/* ─────────────────────────────────────────
   19. LOADING SPINNER — Anneau de bois doré
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .spinner,
[data-theme="wood-legendary"] .loading-spinner,
[data-theme="wood-legendary"] .loader {
  border-color: rgba(180,130,70,0.15) !important;
  border-top-color: #D4A44C !important;
  border-right-color: rgba(212,164,76,0.4) !important;
}

/* ─────────────────────────────────────────
   20. LINKS — Or subtil avec transition
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] a {
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

[data-theme="wood-legendary"] a:hover {
  color: #E0B860 !important;
  text-shadow: 0 0 12px rgba(212,164,76,0.2) !important;
}

/* ─────────────────────────────────────────
   21. MORNING BRIEF OVERLAY — Profondeur
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .mb-container {
  box-shadow:
    0 12px 48px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,150,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
}

/* ─────────────────────────────────────────
   22. KPI — Chiffres gravés dans le bois
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .db-kpi-big-val,
[data-theme="wood-legendary"] .db-kpi-small-val {
  text-shadow:
    1px 1px 0px rgba(255,200,100,0.5),
    -1px -1px 0px rgba(0,0,0,0.15),
    0px 2px 4px rgba(0,0,0,0.25) !important;
  letter-spacing: -0.02em !important;
}

/* ─────────────────────────────────────────
   23. EMPTY STATE — Plus chaleureux
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .empty-state,
[data-theme="wood-legendary"] .db-empty-state {
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
  opacity: 0.8 !important;
}

[data-theme="wood-legendary"] .empty-state svg,
[data-theme="wood-legendary"] .db-empty-state svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) !important;
  opacity: 0.6 !important;
}

/* ─────────────────────────────────────────
   24. NOTIFICATIONS — Accent latéral bois
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .notif-section-card {
  box-shadow:
    0 4px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
}

[data-theme="wood-legendary"] .notif-card-premium {
  box-shadow:
    0 3px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,150,0.1) !important;
  transition: all 0.2s ease !important;
}

[data-theme="wood-legendary"] .notif-card-premium:hover {
  transform: translateX(3px) !important;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.35),
    -3px 0 10px rgba(212,164,76,0.06),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
}

/* ─────────────────────────────────────────
   25. TABLEAU CRM — Colonnes avec profondeur
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .gcrm-column {
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,220,150,0.04) !important;
}

[data-theme="wood-legendary"] .gcrm-deal-card {
  box-shadow:
    0 3px 12px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,150,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.15) !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}

[data-theme="wood-legendary"] .gcrm-deal-card:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.4),
    0 0 15px rgba(212,164,76,0.06),
    inset 0 1px 0 rgba(255,220,150,0.15) !important;
}

/* ─────────────────────────────────────────
   26. CHECKBOX — Style bois
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] input[type="checkbox"] {
  accent-color: #D4A44C !important;
}

[data-theme="wood-legendary"] .bubble-checkbox,
[data-theme="wood-legendary"] .task-checkbox {
  border: 2px solid rgba(180,130,70,0.4) !important;
  background: rgba(20,10,0,0.3) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3) !important;
  transition: all 0.15s ease !important;
}

[data-theme="wood-legendary"] .bubble-checkbox:hover,
[data-theme="wood-legendary"] .task-checkbox:hover {
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.3),
    0 0 8px rgba(212,164,76,0.1) !important;
}

/* ─────────────────────────────────────────
   27. GLOBAL — Transitions douces partout
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .sidebar-item,
[data-theme="wood-legendary"] .dropdown-item,
[data-theme="wood-legendary"] a,
[data-theme="wood-legendary"] button,
[data-theme="wood-legendary"] .btn-primary,
[data-theme="wood-legendary"] .btn-secondary {
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}

/* ─────────────────────────────────────────
   28. ACCENT HIGHLIGHTS — Barres dorées
   ───────────────────────────────────────── */

/* Barre dorée en haut des cartes principales */
[data-theme="wood-legendary"] .db-kpi-big::before,
[data-theme="wood-legendary"] .db-kpi-small::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,164,76,0.3), rgba(255,220,150,0.15), rgba(212,164,76,0.3), transparent);
  border-radius: 0 0 2px 2px;
  z-index: 1;
}

[data-theme="wood-legendary"] .db-kpi-big,
[data-theme="wood-legendary"] .db-kpi-small {
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   29. SEARCH BAR — Aspect bois encastré
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] .search-container input,
[data-theme="wood-legendary"] .global-search input {
  background: rgba(12,6,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(0,0,0,0.1) !important;
  border-radius: 10px !important;
}

[data-theme="wood-legendary"] .search-container input:focus,
[data-theme="wood-legendary"] .global-search input:focus {
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.35),
    0 0 0 3px rgba(212,164,76,0.1),
    0 0 20px rgba(212,164,76,0.06) !important;
}

/* ─────────────────────────────────────────
   30. MAHAYAWEN ORB — Lueur dorée subtile
   ───────────────────────────────────────── */

[data-theme="wood-legendary"] #mos-mini {
  animation: woodGlow 4s ease-in-out infinite !important;
}

[data-theme="wood-legendary"] .mos-mini-avatar-ring {
  box-shadow: 0 0 12px rgba(212,164,76,0.2) !important;
}

/* ── Sidebar — texture unifiée sans mosaïque ── */
[data-theme="wood-legendary"] .sidebar,
[data-theme="wood-legendary"] #app-sidebar {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* ── Sidebar — ombre portée à droite ── */
[data-theme="wood-legendary"] .sidebar,
[data-theme="wood-legendary"] #app-sidebar {
  box-shadow: 4px 0 20px rgba(0,0,0,0.5), 1px 0 0 rgba(212,164,76,0.08) !important;
  z-index: 10 !important;
}

/* ── Fix décalage notes — retirer transform GPU sur body/main-content ── */
[data-theme="wood-legendary"] body,
[data-theme="wood-legendary"] .main-content,
[data-theme="wood-legendary"] main.main-content {
  transform: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

/* ── Notes — toolbar + zone de saisie en bois clair ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky {
  background: url('textures/wood-light-premium.jpg') center / cover no-repeat !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
}

[data-theme="wood-legendary"] #view-notes .notes-document-page,
[data-theme="wood-legendary"] #view-notes .gn3-doc-wrap {
  background: url('textures/wood-light-premium.jpg') center / cover no-repeat !important;
}

/* ── Notes — texte sombre sur bois clair ── */
[data-theme="wood-legendary"] #view-notes .note-textarea,
[data-theme="wood-legendary"] #view-notes .note-content-area,
[data-theme="wood-legendary"] #view-notes .notes-doc-content,
[data-theme="wood-legendary"] #view-notes .gn3-doc-wrap,
[data-theme="wood-legendary"] #view-notes .gn3-doc-wrap *,
[data-theme="wood-legendary"] #view-notes .notes-document-page *,
[data-theme="wood-legendary"] #view-notes .note-title-input,
[data-theme="wood-legendary"] #view-notes .note-title-h1 {
  color: #1A0800 !important;
  text-shadow: 0px 1px 0px rgba(255,190,80,0.25) !important;
}

/* Placeholder */
[data-theme="wood-legendary"] #view-notes .note-textarea::placeholder,
[data-theme="wood-legendary"] #view-notes .note-content-area::placeholder,
[data-theme="wood-legendary"] #view-notes .note-title-input::placeholder {
  color: rgba(50,22,0,0.4) !important;
}

/* Toolbar — icônes sombres */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky *,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky svg {
  color: #2A1200 !important;
  stroke: #2A1200 !important;
  fill: none !important;
}

/* ── Notes sidebar — bois foncé ── */
[data-theme="wood-legendary"] #view-notes .gn3-sidebar,
[data-theme="wood-legendary"] #view-notes .notes-v6-sidebar,
[data-theme="wood-legendary"] #view-notes .notes-app-sidebar {
  background: url('textures/wood-dark.jpg') center / cover no-repeat !important;
}

/* Enfants transparents pour laisser voir la texture */
[data-theme="wood-legendary"] #view-notes .gn3-sidebar > *,
[data-theme="wood-legendary"] #view-notes .notes-v6-sidebar > *,
[data-theme="wood-legendary"] #view-notes .notes-app-sidebar > * {
  background: transparent !important;
}

/* Textes sidebar — clair sur fond foncé */
[data-theme="wood-legendary"] #view-notes .gn3-sidebar *,
[data-theme="wood-legendary"] #view-notes .notes-v6-sidebar *,
[data-theme="wood-legendary"] #view-notes .notes-app-sidebar * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important;
}

/* Notes sélectionnables — carte bois clair */
[data-theme="wood-legendary"] #view-notes .gn3-note-item,
[data-theme="wood-legendary"] #view-notes .note-item {
  background: url('textures/wood-light-premium.jpg') center / cover no-repeat !important;
  border-radius: 8px !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  margin-bottom: 4px !important;
}

/* Texte des cartes de notes — sombre sur bois clair */
[data-theme="wood-legendary"] #view-notes .gn3-note-item *,
[data-theme="wood-legendary"] #view-notes .note-item * {
  color: #2A1200 !important;
  text-shadow: 0px 1px 0px rgba(255,190,80,0.25) !important;
}

/* Hover */
[data-theme="wood-legendary"] #view-notes .gn3-note-item:hover,
[data-theme="wood-legendary"] #view-notes .note-item:hover {
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4) !important;
}

/* Note active */
[data-theme="wood-legendary"] #view-notes .gn3-note-item.active,
[data-theme="wood-legendary"] #view-notes .note-item.active {
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,164,76,0.2) !important;
}

/* ── Notes sidebar — bois medium (override) ── */
[data-theme="wood-legendary"] #view-notes .gn3-sidebar,
[data-theme="wood-legendary"] #view-notes .notes-v6-sidebar,
[data-theme="wood-legendary"] #view-notes .notes-app-sidebar {
  background: url('textures/wood-medium.jpg') center / cover no-repeat !important;
}

/* ── Notes sidebar — ombre portée droite forte ── */
[data-theme="wood-legendary"] #view-notes .gn3-sidebar,
[data-theme="wood-legendary"] #view-notes .notes-v6-sidebar,
[data-theme="wood-legendary"] #view-notes .notes-app-sidebar {
  box-shadow: 6px 0 30px rgba(0,0,0,0.6), 2px 0 8px rgba(0,0,0,0.4) !important;
  z-index: 5 !important;
}

/* ── Notes layout — supprimer le cadre/ombre du gn3-layout (inline JS) ── */
html[data-theme="wood-legendary"] body .gn3-layout,
html[data-theme="wood-legendary"] body #gn3-root,
html[data-theme="wood-legendary"] body .main-content .gn3-layout {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}


/* ── Notes toolbar — angles arrondis ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky {
  border-radius: 12px !important;
}

/* ── Notes toolbar — largeur réduite centrée ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky {
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Notes toolbar — plus fine ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky {
  padding: 2px 10px !important;
  min-height: unset !important;
}

/* ── Notes toolbar — ultra fine ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky {
  padding: 0px 8px !important;
  line-height: 1 !important;
}
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-btn {
  padding: 2px !important;
  font-size: 12px !important;
}

/* ── Notes toolbar — boutons premium bois ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-btn,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky [class*="btn"] {
  background: rgba(60,35,10,0.15) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
  margin: 2px 1px !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.15), 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* Hover — lueur dorée */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button:hover,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-btn:hover,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky [class*="btn"]:hover {
  background: rgba(212,164,76,0.15) !important;
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.25), 0 2px 6px rgba(0,0,0,0.25), 0 0 8px rgba(212,164,76,0.1) !important;
}

/* Active / pressed — enfoncement bois */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button:active,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-btn:active {
  transform: translateY(1px) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
  background: rgba(60,35,10,0.25) !important;
}

/* Bouton actif (gras, italique, etc.) */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button.active,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-btn.active {
  background: linear-gradient(180deg, rgba(139,105,20,0.3), rgba(112,82,16,0.2)) !important;
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 0 10px rgba(212,164,76,0.12) !important;
}

/* Icônes SVG — couleur dorée foncée */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button svg,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke: #3B1A00 !important;
  filter: drop-shadow(0 1px 0 rgba(255,190,80,0.2)) !important;
}

[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky button:hover svg {
  stroke: #1A0800 !important;
}

/* Séparateurs toolbar */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .separator,
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky [class*="sep"],
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky [class*="divider"] {
  background: rgba(180,130,70,0.3) !important;
  width: 1px !important;
  height: 16px !important;
  margin: 0 4px !important;
}

/* ── Notes — barre slim bar premium bois ── */
[data-theme="wood-legendary"] .gn-slim-bar {
  background: url('textures/wood-medium.jpg') center / cover no-repeat !important;
  backdrop-filter: none !important;
  border-top: none !important;
}

/* Boutons slim bar */
[data-theme="wood-legendary"] .gn-slim-btn,
[data-theme="wood-legendary"] .gn-slim-graph,
[data-theme="wood-legendary"] .gn-ia-trigger {
  background: rgba(255,220,150,0.1) !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  border-radius: 6px !important;
  color: #FFF5DC !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.1), 0 1px 3px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important;
}

[data-theme="wood-legendary"] .gn-slim-btn:hover,
[data-theme="wood-legendary"] .gn-slim-graph:hover,
[data-theme="wood-legendary"] .gn-ia-trigger:hover {
  background: rgba(212,164,76,0.2) !important;
  border-color: rgba(212,164,76,0.5) !important;
  color: #FFE8A0 !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.2), 0 2px 6px rgba(0,0,0,0.35), 0 0 8px rgba(212,164,76,0.15) !important;
}

[data-theme="wood-legendary"] .gn-slim-btn svg,
[data-theme="wood-legendary"] .gn-slim-graph svg,
[data-theme="wood-legendary"] .gn-ia-trigger svg {
  stroke: #FFF5DC !important;
  color: #FFF5DC !important;
}

[data-theme="wood-legendary"] .gn-slim-info {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important;
}

/* Floating format toolbar (apparait à la sélection de texte) */
[data-theme="wood-legendary"] .gn-float-toolbar {
  background: url('textures/wood-medium.jpg') center / cover no-repeat !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,220,150,0.1) !important;
}

[data-theme="wood-legendary"] .gn-ft-btn {
  color: #FFF5DC !important;
  border-radius: 5px !important;
  transition: all 0.15s ease !important;
}

[data-theme="wood-legendary"] .gn-ft-btn:hover {
  background: rgba(212,164,76,0.2) !important;
  color: #FFE8A0 !important;
}

[data-theme="wood-legendary"] .gn-ft-btn svg {
  stroke: #FFF5DC !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)) !important;
}

[data-theme="wood-legendary"] .gn-ft-sep {
  background: rgba(180,130,70,0.3) !important;
}

/* Boutons d'action sur la note (en haut à droite) */
[data-theme="wood-legendary"] #gn-editor-pane .note-action-btn {
  background: rgba(60,35,10,0.1) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #2A1200 !important;
  box-shadow: inset 0 1px 0 rgba(255,220,150,0.12), 0 1px 3px rgba(0,0,0,0.15) !important;
}

[data-theme="wood-legendary"] #gn-editor-pane .note-action-btn:hover {
  background: rgba(212,164,76,0.15) !important;
  border-color: rgba(212,164,76,0.5) !important;
  color: #1A0800 !important;
}

[data-theme="wood-legendary"] #gn-editor-pane .note-action-btn svg {
  stroke: #2A1200 !important;
  color: #2A1200 !important;
}

/* ── Notes — Ombre noire MASSIVE autour de la zone de saisie ── */
[data-theme="wood-legendary"] #view-notes .gn-text-box {
  position: relative !important;
  z-index: 10 !important;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.85),
    0 0 25px 10px rgba(0,0,0,0.8),
    0 0 60px 20px rgba(0,0,0,0.55),
    0 0 100px 40px rgba(0,0,0,0.3),
    inset 0 0 15px rgba(0,0,0,0.2) !important;
  border: 2px solid rgba(0,0,0,0.7) !important;
  border-radius: 10px !important;
}




/* ═══ FONT PICKER — Theme Bois Noble ═══ */
[data-theme="wood-legendary"] .toolbar-font-trigger {
    background: rgba(60,35,10,0.15) !important;
    border: 1px solid rgba(180,130,70,0.3) !important;
    color: #2A1200 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 1px 0 rgba(255,220,150,0.15), 0 1px 3px rgba(0,0,0,0.2) !important;
}
[data-theme="wood-legendary"] .toolbar-font-trigger:hover {
    background: rgba(212,164,76,0.15) !important;
    border-color: rgba(212,164,76,0.5) !important;
    color: #1A0800 !important;
}
[data-theme="wood-legendary"] .font-picker-dropdown {
    background: url('textures/wood-medium.jpg') center / cover no-repeat !important;
    border: 1px solid rgba(180,130,70,0.5) !important;
    box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,164,76,0.15), inset 0 1px 0 rgba(255,220,150,0.1) !important;
}
[data-theme="wood-legendary"] .font-picker-header {
    color: rgba(255,225,150,0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    border-bottom: 1px solid rgba(180,130,70,0.2) !important;
    margin: 0 6px 4px !important;
    padding-bottom: 8px !important;
}
[data-theme="wood-legendary"] .font-picker-item {
    border-radius: 8px !important;
}
[data-theme="wood-legendary"] .font-picker-item:hover {
    background: rgba(212,164,76,0.15) !important;
    box-shadow: inset 0 0 0 1px rgba(180,130,70,0.25) !important;
}
[data-theme="wood-legendary"] .font-picker-name {
    color: #FFF5DC !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .font-picker-preview {
    color: rgba(255,240,200,0.4) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .font-picker-dropdown::-webkit-scrollbar-thumb {
    background: rgba(180,130,70,0.3) !important;
}


/* ── DEBUG — Identifier notes-app-editor (le cadre marron?) ── */
[data-theme="wood-legendary"] #view-notes .notes-app-editor {
  outline: 4px dashed red !important;
  outline-offset: -4px !important;
}



/* ── Notes — Supprimer le cadre marron (gn-title-box + gn-text-box) ── */
[data-theme="wood-legendary"] #view-notes .gn-title-box,
[data-theme="wood-legendary"] #view-notes .gn-text-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ── Notes — Relief premium sur la zone bois clair ── */
[data-theme="wood-legendary"] #view-notes .notes-document-page,
[data-theme="wood-legendary"] #view-notes .gn3-doc-wrap,
[data-theme="wood-legendary"] #view-notes .notes-document-wrapper {
  border-radius: 12px !important;
  position: relative !important;
  z-index: 5 !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
  border: 1px solid rgba(0,0,0,0.28) !important;
  overflow: hidden !important;
}

/* ── Notes toolbar — ombre relief premium identique ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky {
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
  border: 1px solid rgba(0,0,0,0.28) !important;
}

/* ── Notes — Ombre douce du background sur la slim bar ── */
[data-theme="wood-legendary"] .gn-slim-bar {
  box-shadow: inset 0 12px 24px -6px rgba(0,0,0,0.55), inset 0 4px 8px -2px rgba(0,0,0,0.35) !important;
}




/* ── Notes slim bar — boutons sans bordure, barre plus haute ── */
html[data-theme="wood-legendary"] body .gn-slim-bar {
  height: 42px !important;
  min-height: 42px !important;
}
html[data-theme="wood-legendary"] body .gn-slim-bar .gn-slim-btn,
html[data-theme="wood-legendary"] body .gn-slim-bar .gn-slim-graph,
html[data-theme="wood-legendary"] body .gn-slim-bar .gn-ia-trigger,
html[data-theme="wood-legendary"] body .gn-slim-bar button {
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ========================================
   GIRI STORE — Wood Theme
   ======================================== */

/* Fond général page Store */
[data-theme="wood-legendary"] #view-giri-store {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-wrap {
  background: transparent !important;
}

/* Header Giri Store */
[data-theme="wood-legendary"] #view-giri-store .gs-header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border-color: rgba(180,130,70,0.4) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-header * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-header__icon-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

/* 4 cartes KPI (Produits / Publiés / Ventes / Revenus) */
[data-theme="wood-legendary"] #view-giri-store .gs-kpi {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-kpi * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-kpi__icon-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

/* Bande boutique publique */
[data-theme="wood-legendary"] #view-giri-store .gs-store-link {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border-color: rgba(180,130,70,0.4) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-store-link * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}

/* Cartes produits */
[data-theme="wood-legendary"] #view-giri-store .gs-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__desc {
  color: rgba(255,245,220,0.7) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__price {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__content {
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__actions {
  border-top-color: rgba(180,130,70,0.25) !important;
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__actions * {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__type-tag {
  background: rgba(0,0,0,0.2) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__status-badge--live {
  background: rgba(74,124,16,0.25) !important;
  color: #c8e6a0 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__status-badge--draft {
  background: rgba(180,130,70,0.2) !important;
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__sales-badge,
[data-theme="wood-legendary"] #view-giri-store .gs-card__files-badge {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-card__thumb-placeholder {
  background: rgba(0,0,0,0.15) !important;
}

/* Boutons */
[data-theme="wood-legendary"] #view-giri-store .gs-btn--primary,
[data-theme="wood-legendary"] #view-giri-store .gs-btn--cta {
  background: linear-gradient(180deg, #8B6914, #705210) !important;
  color: #FFF0D4 !important;
  border: 1px solid rgba(139,105,20,0.5) !important;
}

/* Bouton + Nouveau Produit — bois clair */
[data-theme="wood-legendary"] #view-giri-store .gs-btn--cta[data-action="add-product"] {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-btn--secondary,
[data-theme="wood-legendary"] #view-giri-store .gs-btn--ghost-premium {
  background: rgba(255,220,150,0.08) !important;
  color: #FFF5DC !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.07) !important;
}
/* Bouton Modifier - bois tres clair */
[data-theme="wood-legendary"] #view-giri-store .gs-btn--edit {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-btn--edit:hover {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  filter: brightness(1.05) !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-btn--copy,
[data-theme="wood-legendary"] #view-giri-store .gs-btn--link,
[data-theme="wood-legendary"] #view-giri-store .gs-btn--publish,
[data-theme="wood-legendary"] #view-giri-store .gs-btn--unpublish {
  color: #2A1200 !important;
  text-shadow: 0 1px 0 rgba(255,235,170,0.30) !important;
  border-color: rgba(180,130,70,0.3) !important;
  background: rgba(255,220,150,0.06) !important;
}

/* Empty state */
[data-theme="wood-legendary"] #view-giri-store .gs-empty {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-empty * {
  color: #FFF5DC !important;
}

/* Bande Mes produits */
[data-theme="wood-legendary"] #view-giri-store .gs-products__header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  padding: 12px 18px !important;
}
[data-theme="wood-legendary"] #view-giri-store .gs-products__header * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}

/* Ombre projetée du bas (zone bois) vers le haut sur l'image */
[data-theme="wood-legendary"] #view-giri-store .gs-card__content {
  box-shadow: 0 -25px 30px -5px rgba(0,0,0,0.65) !important;
  z-index: 2 !important;
  position: relative !important;
}

/* Relief et ombre tout autour des cartes produits */
[data-theme="wood-legendary"] #view-giri-store .gs-card {
  border-radius: 16px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
}

/* Relief et ombre tout autour des 4 cartes KPI */
[data-theme="wood-legendary"] #view-giri-store .gs-kpi {
  border-radius: 16px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
}

/* ========================================
   GIRI STORE — Modales (créer/modifier produit)
   ======================================== */

/* Fond overlay modale */
[data-theme="wood-legendary"] .gstore-modal-overlay {
  background: rgba(10, 5, 0, 0.85) !important;
}

/* Conteneur principal modale */
[data-theme="wood-legendary"] .gstore-modal {
  background-image: var(--wood-dark) !important;
  background-color: #1a0f05 !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
}

/* Header modale */
[data-theme="wood-legendary"] .gstore-modal__header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4) !important;
}
[data-theme="wood-legendary"] .gstore-modal__header * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}

/* Labels des champs */
[data-theme="wood-legendary"] .gstore-modal label,
[data-theme="wood-legendary"] .gstore-modal .gs-form-group > label {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* Inputs et textarea */
[data-theme="wood-legendary"] .gstore-modal .gs-input,
[data-theme="wood-legendary"] .gstore-modal input,
[data-theme="wood-legendary"] .gstore-modal textarea,
[data-theme="wood-legendary"] .gstore-modal select {
  background: rgba(20, 10, 0, 0.6) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-input:focus,
[data-theme="wood-legendary"] .gstore-modal input:focus,
[data-theme="wood-legendary"] .gstore-modal textarea:focus {
  border-color: rgba(201, 168, 76, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2), inset 0 2px 4px rgba(0,0,0,0.5) !important;
  outline: none !important;
}
[data-theme="wood-legendary"] .gstore-modal input::placeholder,
[data-theme="wood-legendary"] .gstore-modal textarea::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}

/* Zone upload fichier */
[data-theme="wood-legendary"] .gstore-modal .gs-upload-zone {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 2px dashed rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-upload-zone:hover {
  border-color: rgba(201, 168, 76, 0.9) !important;
  background: rgba(201, 168, 76, 0.08) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-upload-zone * {
  color: #FFF5DC !important;
}

/* Textes secondaires */
[data-theme="wood-legendary"] .gstore-modal .gs-help-text,
[data-theme="wood-legendary"] .gstore-modal .gs-hint,
[data-theme="wood-legendary"] .gstore-modal small,
[data-theme="wood-legendary"] .gstore-modal__body p,
[data-theme="wood-legendary"] .gstore-modal .gs-form-group small,
[data-theme="wood-legendary"] .gstore-modal .gs-form-group p {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.95) !important;
}

/* Texte général modale */
[data-theme="wood-legendary"] .gstore-modal__body {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gstore-modal__body h3,
[data-theme="wood-legendary"] .gstore-modal__body h4 {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}

/* Type selector buttons */
[data-theme="wood-legendary"] .gstore-modal .gs-type-btn {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-type-btn.active {
  background: rgba(10, 5, 0, 0.85) !important;
  border-color: rgba(201, 168, 76, 0.6) !important;
  color: #FFE8A0 !important;
}

/* Bouton principal (Sauvegarder / Créer) */
[data-theme="wood-legendary"] .gstore-modal .gs-btn--primary,
[data-theme="wood-legendary"] .gstore-modal #gs-modal-save {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-btn--primary:hover,
[data-theme="wood-legendary"] .gstore-modal #gs-modal-save:hover {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; filter: brightness(1.1) !important;
}

/* Bouton secondaire */
[data-theme="wood-legendary"] .gstore-modal .gs-btn--secondary {
  background: rgba(255,220,150,0.08) !important;
  color: #FFF5DC !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
}

/* File rows */
[data-theme="wood-legendary"] .gstore-modal .gs-file-row {
  background: rgba(20, 10, 0, 0.3) !important;
  border: 1px solid rgba(180,130,70,0.2) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-file-row * {
  color: #FFF5DC !important;
}

/* Bouton close modale */
[data-theme="wood-legendary"] .gstore-modal__close {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .gstore-modal__close:hover {
  color: #FFF5DC !important;
}

/* gs-modal-overlay (autre type de modale Store) */
[data-theme="wood-legendary"] .gs-modal-overlay {
  background: rgba(10, 5, 0, 0.85) !important;
}
[data-theme="wood-legendary"] .gs-modal-overlay > div {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

/* gsm-v2 modale (boutique settings) */
[data-theme="wood-legendary"] .gsm-v2-overlay {
  background: rgba(10, 5, 0, 0.85) !important;
}
[data-theme="wood-legendary"] .gsm-v2-modal {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border-color: rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] .gsm-v2-settings-col {
  background: transparent !important;
  border-color: rgba(201, 168, 76, 0.2) !important;
  overflow: visible !important;
}
[data-theme="wood-legendary"] .gsm-v2-settings-header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  position: relative !important;
  z-index: 2 !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.65), 0 3px 10px rgba(0,0,0,0.50), 12px 0 24px rgba(0,0,0,0.45) !important;
}
[data-theme="wood-legendary"] .gsm-v2-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
}
[data-theme="wood-legendary"] .gsm-v2-close {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .gsm-v2-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}
[data-theme="wood-legendary"] .gsm-v2-settings-body {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gsm-v2-settings-body label {
  color: #C9A84C !important;
}
[data-theme="wood-legendary"] .gsm-v2-settings-body .gs-input,
[data-theme="wood-legendary"] .gsm-v2-settings-body input,
[data-theme="wood-legendary"] .gsm-v2-settings-body textarea,
[data-theme="wood-legendary"] .gsm-v2-settings-body select {
  background: rgba(20, 10, 0, 0.6) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gsm-v2-settings-footer {
  border-top-color: rgba(201, 168, 76, 0.3) !important;
  background: transparent !important;
}
[data-theme="wood-legendary"] .gsm-v2-save {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
}

/* Fix 1 — Scrollbar modale produit */
[data-theme="wood-legendary"] .gstore-modal {
  scrollbar-color: rgba(201, 168, 76, 0.5) rgba(0,0,0,0.3) !important;
  scrollbar-width: thin !important;
}
[data-theme="wood-legendary"] .gstore-modal::-webkit-scrollbar {
  width: 6px !important;
}
[data-theme="wood-legendary"] .gstore-modal::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2) !important;
  border-radius: 3px !important;
}
[data-theme="wood-legendary"] .gstore-modal::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.5) !important;
  border-radius: 3px !important;
}

/* Fix 2 — Header modale : ombre douce au lieu d'agressive */
[data-theme="wood-legendary"] .gstore-modal__header {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}

/* ── Modale Store — Section basse (IA, video, animations, publish) ── */

/* Bloc Generer avec IA */
[data-theme="wood-legendary"] .gstore-modal .gs-ai-gen {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-ai-gen__header {
  color: #C9A84C !important;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-ai-gen__icon,
[data-theme="wood-legendary"] .gstore-modal .gs-ai-gen__label {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-ai-gen__input {
  background: rgba(20, 10, 0, 0.6) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-ai-gen__btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Boutons style IA */
[data-theme="wood-legendary"] .gstore-modal .gs-ai-style-btn {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-ai-style-btn--active {
  background: rgba(10, 5, 0, 0.85) !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #C9A84C !important;
}

/* Boutons position video */
[data-theme="wood-legendary"] .gstore-modal .gs-video-pos .gs-btn {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-video-pos .gs-btn--primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Cartes animation - normal */
[data-theme="wood-legendary"] .gstore-modal .gs-anim-btn {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-anim-btn:hover {
  border-color: rgba(201, 168, 76, 0.5) !important;
  background: rgba(201, 168, 76, 0.08) !important;
}
/* Carte animation - active */
[data-theme="wood-legendary"] .gstore-modal .gs-anim-btn--active {
  background: rgba(10, 5, 0, 0.85) !important;
  border: 1px solid rgba(201, 168, 76, 0.8) !important;
  color: #C9A84C !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-anim-btn__name {
  color: inherit !important;
}

/* Section video - textes */
[data-theme="wood-legendary"] .gstore-modal .gs-video-section,
[data-theme="wood-legendary"] .gstore-modal .gs-video-hint {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.95) !important;
}

/* Bouton Publier / Enregistrer en bas */
[data-theme="wood-legendary"] .gstore-modal .gs-btn--publish,
[data-theme="wood-legendary"] .gstore-modal #gs-modal-save {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] .gstore-modal .gs-btn--publish:hover,
[data-theme="wood-legendary"] .gstore-modal #gs-modal-save:hover {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; filter: brightness(1.1) !important;
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.5) !important;
}

/* Grille animations */
[data-theme="wood-legendary"] .gstore-modal .gs-anim-grid {
  background: transparent !important;
}



/* ── Modale Store (appendée à body) — textes helper lisibles ── */
[data-theme="wood-legendary"] .gstore-modal-overlay .gs-hint,
[data-theme="wood-legendary"] .gstore-modal-overlay .gs-help-text,
[data-theme="wood-legendary"] .gstore-modal-overlay .gs-video-hint,
[data-theme="wood-legendary"] .gstore-modal-overlay small,
[data-theme="wood-legendary"] .gstore-modal-overlay p {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.95) !important;
  opacity: 1 !important;
}

/* ── Modale Store — Section vidéo : bordure dorée au lieu de bleue ── */
[data-theme="wood-legendary"] .gstore-modal-overlay .gs-video-section {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px dashed rgba(201, 168, 76, 0.4) !important;
}

/* ========================================
   ADMIN — Wood Theme
   ======================================== */

/* Header Centre de Surveillance */
[data-theme="wood-legendary"] .admin-header,
[data-theme="wood-legendary"] .admin-header.sticky-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
}
[data-theme="wood-legendary"] .admin-header h1,
[data-theme="wood-legendary"] .admin-header h2,
[data-theme="wood-legendary"] .admin-header * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  -webkit-text-fill-color: #FFF5DC !important;
}

/* Boutons Auto/Son/Actualiser */
[data-theme="wood-legendary"] .admin-header button {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .admin-header button:hover {
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
}

/* 4 cartes stats */
[data-theme="wood-legendary"] .admin-dashboard .stat-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .admin-dashboard .stat-card:hover {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
}
[data-theme="wood-legendary"] .admin-dashboard .stat-card .stat-value {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .admin-dashboard .stat-card .stat-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .admin-dashboard .stat-card .stat-icon {
  background: rgba(60,35,10,0.15) !important;
}

/* Barre onglets */
[data-theme="wood-legendary"] .admin-tabs {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  backdrop-filter: none !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Onglet normal — texture bois medium */
[data-theme="wood-legendary"] .admin-tab {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .admin-tab:hover {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  color: #2A1200 !important;
  border-color: rgba(180,130,70,0.6) !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3), 0px 1px 3px rgba(0,0,0,0.2) !important;
}

/* Onglet actif */
[data-theme="wood-legendary"] .admin-tab.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3) !important;
}

/* Section sentinel */
[data-theme="wood-legendary"] .sentinel-section {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .sentinel-section * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Score sentinel */
[data-theme="wood-legendary"] .sentinel-score-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .sentinel-score-card * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
}

/* Sentinel controls / actions */
[data-theme="wood-legendary"] .sentinel-controls button,
[data-theme="wood-legendary"] .sentinel-actions button {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .sentinel-controls button:hover,
[data-theme="wood-legendary"] .sentinel-actions button:hover {
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
}

/* Diagnostic cards */
[data-theme="wood-legendary"] .diagnostic-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .diagnostic-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Activity cards */
[data-theme="wood-legendary"] .activity-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .activity-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Bug stat cards */
[data-theme="wood-legendary"] .bug-stat-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .bug-stat-card * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
}

/* Chart cards */
[data-theme="wood-legendary"] .admin-dashboard .chart-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .admin-dashboard .chart-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Admin sections / subtitles */
[data-theme="wood-legendary"] .admin-section {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .admin-subtitle {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Textes generaux admin */
[data-theme="wood-legendary"] .admin-dashboard h3,
[data-theme="wood-legendary"] .admin-dashboard h4 {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}

/* IA Docteur panel */
[data-theme="wood-legendary"] .ai-doctor-panel {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .ai-doctor-panel * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .ai-doctor-textarea {
  background: rgba(20, 10, 0, 0.6) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ai-doctor-send-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
}

/* ── Admin — Neutraliser le fond noir opaque de .admin-dashboard ── */
[data-theme="wood-legendary"] .admin-dashboard {
  background: transparent !important;
}

/* ── Admin — Cartes stats: forcer bois clair via shorthand direct ── */
[data-theme="wood-legendary"] .stat-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] .stat-card:hover {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
}
[data-theme="wood-legendary"] .stat-card * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}

/* ── Admin — Fonds opaques à neutraliser ── */
[data-theme="wood-legendary"] .admin-section,
[data-theme="wood-legendary"] .admin-grid,
[data-theme="wood-legendary"] .bugs-section,
[data-theme="wood-legendary"] .analytics-section,
[data-theme="wood-legendary"] .performance-section,
[data-theme="wood-legendary"] .system-section,
[data-theme="wood-legendary"] .user-reports-section,
[data-theme="wood-legendary"] .admin-tab-content {
  background: transparent !important;
}

/* ── Admin — Panels / cartes de contenu → wood-medium ── */
[data-theme="wood-legendary"] .perf-card,
[data-theme="wood-legendary"] .realtime-card,
[data-theme="wood-legendary"] .health-card,
[data-theme="wood-legendary"] .metric-card,
[data-theme="wood-legendary"] .chart-card,
[data-theme="wood-legendary"] .activity-card,
[data-theme="wood-legendary"] .diagnostic-card,
[data-theme="wood-legendary"] .ur-card,
[data-theme="wood-legendary"] .endpoints-section,
[data-theme="wood-legendary"] .feature-engagement {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .perf-card *,
[data-theme="wood-legendary"] .realtime-card *,
[data-theme="wood-legendary"] .health-card *,
[data-theme="wood-legendary"] .metric-card *,
[data-theme="wood-legendary"] .chart-card *,
[data-theme="wood-legendary"] .activity-card *,
[data-theme="wood-legendary"] .diagnostic-card *,
[data-theme="wood-legendary"] .ur-card *,
[data-theme="wood-legendary"] .endpoints-section *,
[data-theme="wood-legendary"] .feature-engagement * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* ── Admin — Cartes score / métriques → wood-light ── */
[data-theme="wood-legendary"] .bug-stat-card,
[data-theme="wood-legendary"] .sentinel-score-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 12px !important;
}
[data-theme="wood-legendary"] .bug-stat-card *,
[data-theme="wood-legendary"] .sentinel-score-card * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}

/* ── Admin — Tableaux / listes → fond sombre transparent ── */
[data-theme="wood-legendary"] .errors-table-container,
[data-theme="wood-legendary"] .errors-table,
[data-theme="wood-legendary"] .members-table,
[data-theme="wood-legendary"] .api-tests-table,
[data-theme="wood-legendary"] .error-list {
  background: rgba(10, 5, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .errors-table *,
[data-theme="wood-legendary"] .members-table *,
[data-theme="wood-legendary"] .api-tests-table *,
[data-theme="wood-legendary"] .error-list *,
[data-theme="wood-legendary"] .error-item {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}
[data-theme="wood-legendary"] .error-item {
  border-bottom-color: rgba(201, 168, 76, 0.15) !important;
}

/* ── Admin — Filtres bugs ── */
[data-theme="wood-legendary"] .bugs-filters {
  background: rgba(10, 5, 0, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .bugs-filters select,
[data-theme="wood-legendary"] .bugs-filters input,
[data-theme="wood-legendary"] .bugs-filters button {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}

/* ── Admin — Boutons généraux ── */
[data-theme="wood-legendary"] .admin-dashboard .btn-primary,
[data-theme="wood-legendary"] .admin-dashboard .btn-sentinel-start,
[data-theme="wood-legendary"] .admin-dashboard .btn-sentinel-scan {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .admin-dashboard .btn-refresh,
[data-theme="wood-legendary"] .admin-dashboard .btn-refresh-small,
[data-theme="wood-legendary"] .admin-dashboard .btn-export,
[data-theme="wood-legendary"] .admin-dashboard .btn-sentinel-export,
[data-theme="wood-legendary"] .admin-dashboard .btn-sentinel-stop,
[data-theme="wood-legendary"] .admin-dashboard .btn-sentinel-auto,
[data-theme="wood-legendary"] .admin-dashboard .btn-details,
[data-theme="wood-legendary"] .admin-dashboard .btn-action,
[data-theme="wood-legendary"] .admin-dashboard .btn-view-all,
[data-theme="wood-legendary"] .admin-dashboard .btn-quick-filter {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .admin-dashboard .btn-resolve,
[data-theme="wood-legendary"] .admin-dashboard .btn-delete {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}

/* ── Admin — Sentinel status ── */
[data-theme="wood-legendary"] .sentinel-status {
  background: rgba(10, 5, 0, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .sentinel-status * {
  color: #FFF5DC !important;
}

/* ── Admin — Engagement items ── */
[data-theme="wood-legendary"] .engagement-item {
  border-bottom-color: rgba(201, 168, 76, 0.15) !important;
}
[data-theme="wood-legendary"] .engagement-fill {
  background: linear-gradient(90deg, #C9A84C, #8B6914) !important;
}

/* ── Admin — Endpoint items ── */
[data-theme="wood-legendary"] .endpoint-item {
  border-bottom-color: rgba(201, 168, 76, 0.15) !important;
}

/* ── Admin — Quick pills IA ── */
[data-theme="wood-legendary"] .ai-quick-pill {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ai-quick-pill:hover {
  background: rgba(10, 5, 0, 0.85) !important;
  border-color: rgba(201, 168, 76, 0.6) !important;
}

/* ── Admin — AI message bubbles ── */
[data-theme="wood-legendary"] .ai-msg-bubble {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  color: #FFF5DC !important;
}

/* ── Admin — UR (user reports) ── */
[data-theme="wood-legendary"] .ur-header * {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ur-btn {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ur-btn-validate,
[data-theme="wood-legendary"] .ur-btn-apply {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
}

/* ── Admin — Neutraliser TOUS les fonds opaques intérieurs ── */
[data-theme="wood-legendary"] .admin-tab-content > *,
[data-theme="wood-legendary"] .sentinel-controls,
[data-theme="wood-legendary"] .sentinel-actions,
[data-theme="wood-legendary"] .sentinel-empty,
[data-theme="wood-legendary"] .bugs-stats-grid,
[data-theme="wood-legendary"] .perf-stats-grid,
[data-theme="wood-legendary"] .perf-metrics-grid,
[data-theme="wood-legendary"] .realtime-stats-grid,
[data-theme="wood-legendary"] .diagnostic-grid,
[data-theme="wood-legendary"] .analytics-grid,
[data-theme="wood-legendary"] .activity-grid,
[data-theme="wood-legendary"] .user-activity-stats,
[data-theme="wood-legendary"] .engagement-list,
[data-theme="wood-legendary"] .endpoints-list,
[data-theme="wood-legendary"] .slow-scripts {
  background: transparent !important;
  background-color: transparent !important;
}

/* ── Admin — Tous les boutons (sauf onglets) ── */
[data-theme="wood-legendary"] .admin-dashboard button:not(.admin-tab) {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .admin-dashboard button:not(.admin-tab):hover {
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.7) !important;
}

/* ── Admin — Tableaux et th/td ── */
[data-theme="wood-legendary"] .admin-dashboard table {
  background: rgba(10, 5, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .admin-dashboard th {
  background: rgba(10, 5, 0, 0.85) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  border-color: rgba(201, 168, 76, 0.2) !important;
}
[data-theme="wood-legendary"] .admin-dashboard td {
  color: rgba(255, 245, 220, 0.85) !important;
  border-color: rgba(201, 168, 76, 0.15) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* ── Admin — Score circle SVG ── */
[data-theme="wood-legendary"] .score-circle {
  background: transparent !important;
}
[data-theme="wood-legendary"] .score-value {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .score-label {
  color: rgba(255, 245, 220, 0.7) !important;
}
[data-theme="wood-legendary"] .score-fill {
  stroke: #C9A84C !important;
}

/* ── Admin — Select all / error detail ── */
[data-theme="wood-legendary"] .select-all-container,
[data-theme="wood-legendary"] .error-detail-content,
[data-theme="wood-legendary"] .error-detail-header,
[data-theme="wood-legendary"] .error-detail-body,
[data-theme="wood-legendary"] .error-detail-footer {
  background: rgba(10, 5, 0, 0.5) !important;
  color: #FFF5DC !important;
  border-color: rgba(201, 168, 76, 0.2) !important;
}
[data-theme="wood-legendary"] .error-detail-content * {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .stack-trace {
  background: rgba(10, 5, 0, 0.6) !important;
  color: #FFE8A0 !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
}

/* ── Admin — Empty states ── */
[data-theme="wood-legendary"] .empty-state,
[data-theme="wood-legendary"] .sentinel-empty {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .empty-state *,
[data-theme="wood-legendary"] .sentinel-empty * {
  color: rgba(255, 245, 220, 0.6) !important;
}

/* ── Admin — Refresh time ── */
[data-theme="wood-legendary"] .refresh-time {
  color: rgba(255, 245, 220, 0.5) !important;
}

/* ── Admin — Shortcuts hint ── */
[data-theme="wood-legendary"] .shortcuts-hint {
  background: rgba(10, 5, 0, 0.3) !important;
  color: rgba(255, 245, 220, 0.6) !important;
  border-color: rgba(201, 168, 76, 0.15) !important;
}

/* ── Admin — Scrollbar horizontale onglets bien visible ── */
[data-theme="wood-legendary"] .admin-tabs {
  scrollbar-color: rgba(201, 168, 76, 0.7) rgba(60,35,10,0.4) !important;
  scrollbar-width: auto !important;
}
[data-theme="wood-legendary"] .admin-tabs::-webkit-scrollbar {
  height: 10px !important;
}
[data-theme="wood-legendary"] .admin-tabs::-webkit-scrollbar-track {
  background: rgba(60,35,10,0.4) !important;
  border-radius: 5px !important;
}
[data-theme="wood-legendary"] .admin-tabs::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.7) !important;
  border-radius: 5px !important;
}
[data-theme="wood-legendary"] .admin-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.9) !important;
}

/* ── Admin — Masquer le badge rouge Rapports ── */
[data-theme="wood-legendary"] .reports-badge {
  display: none !important;
}

/* ── Admin — Ombre relief + coins arrondis sur toutes les cartes/rectangles ── */
[data-theme="wood-legendary"] .stat-card,
[data-theme="wood-legendary"] .bug-stat-card,
[data-theme="wood-legendary"] .sentinel-score-card,
[data-theme="wood-legendary"] .sentinel-section,
[data-theme="wood-legendary"] .sentinel-status,
[data-theme="wood-legendary"] .perf-card,
[data-theme="wood-legendary"] .realtime-card,
[data-theme="wood-legendary"] .health-card,
[data-theme="wood-legendary"] .metric-card,
[data-theme="wood-legendary"] .chart-card,
[data-theme="wood-legendary"] .activity-card,
[data-theme="wood-legendary"] .diagnostic-card,
[data-theme="wood-legendary"] .ur-card,
[data-theme="wood-legendary"] .endpoints-section,
[data-theme="wood-legendary"] .feature-engagement,
[data-theme="wood-legendary"] .ai-doctor-panel,
[data-theme="wood-legendary"] .errors-table-container,
[data-theme="wood-legendary"] .bugs-filters,
[data-theme="wood-legendary"] .admin-tabs,
[data-theme="wood-legendary"] .admin-header.sticky-header,
[data-theme="wood-legendary"] .error-detail-content,
[data-theme="wood-legendary"] .shortcuts-hint,
[data-theme="wood-legendary"] .admin-dashboard table {
  border-radius: 16px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
}

/* ── Admin — Statut de la Sentinelle : bois premium ── */
[data-theme="wood-legendary"] .sentinel-controls {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .sentinel-controls .sentinel-status {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .sentinel-controls h3 {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .sentinel-controls .status-text {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .sentinel-controls .status-subtext {
  color: rgba(255,245,220,0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .sentinel-controls .sentinel-actions button {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 10px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .sentinel-controls .sentinel-actions button:hover {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  border-color: rgba(180,130,70,0.6) !important;
}

/* ── Admin — Aucun scan effectué : bois premium ── */
[data-theme="wood-legendary"] .sentinel-empty {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .sentinel-empty h3 {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .sentinel-empty p {
  color: rgba(255,245,220,0.75) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .sentinel-empty .btn-primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}


/* ========================================
   RAPPORT SYSTEME — Wood Theme (minimal)
   ======================================== */

/* Fond transparent */
[data-theme="wood-legendary"] #view-giri-report,
[data-theme="wood-legendary"] .gr-dashboard {
  background: transparent !important;
}

/* Cartes — bois medium */
[data-theme="wood-legendary"] .gr-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .gr-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Cartes ressources / PM2 — bois clair */
[data-theme="wood-legendary"] .gr-card--resource,
[data-theme="wood-legendary"] .gr-card--pm2 {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
}
[data-theme="wood-legendary"] .gr-card--resource *,
[data-theme="wood-legendary"] .gr-card--pm2 * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
}

/* ── Rapport Système — titre centré ── */
[data-theme="wood-legendary"] .gr-title {
  text-align: center !important;
  -webkit-text-fill-color: inherit !important;
}
[data-theme="wood-legendary"] .gr-header {
  justify-content: center !important;
  text-align: center !important;
}

/* ========================================
   COMMAND CENTER — Wood Theme
   ======================================== */

/* Fond page */
[data-theme="wood-legendary"] #view-commandCenter,
[data-theme="wood-legendary"] .cc-page {
  background: transparent !important;
}

/* Header */
[data-theme="wood-legendary"] .cc-page-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  padding: 20px 28px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .cc-page-icon {
  background: transparent !important;
}
[data-theme="wood-legendary"] .cc-page-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  -webkit-text-fill-color: #FFF5DC !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .cc-page-subtitle {
  color: rgba(255,245,220,0.7) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}

/* Stats row */
[data-theme="wood-legendary"] .cc-stat {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
}
[data-theme="wood-legendary"] .cc-stat-num {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] .cc-stat-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
}
[data-theme="wood-legendary"] .cc-stat-critical,
[data-theme="wood-legendary"] .cc-stat-high,
[data-theme="wood-legendary"] .cc-stat-medium,
[data-theme="wood-legendary"] .cc-stat-done {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
}
[data-theme="wood-legendary"] .cc-stat-critical .cc-stat-num,
[data-theme="wood-legendary"] .cc-stat-high .cc-stat-num,
[data-theme="wood-legendary"] .cc-stat-medium .cc-stat-num,
[data-theme="wood-legendary"] .cc-stat-done .cc-stat-num {
  color: #2A1200 !important;
}

/* Action cards */
[data-theme="wood-legendary"] .cc-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .cc-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .cc-card-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .cc-card-badge {
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .cc-card-check {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .cc-card-check:hover {
  background: rgba(201,168,76,0.2) !important;
}
[data-theme="wood-legendary"] .cc-card-check svg {
  stroke: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cc-card-impact {
  background: rgba(0,0,0,0.15) !important;
  border-color: rgba(180,130,70,0.25) !important;
}
[data-theme="wood-legendary"] .cc-card-steps-list li {
  color: rgba(255,245,220,0.8) !important;
}

/* Done cards */
[data-theme="wood-legendary"] .cc-card-done {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  opacity: 0.8 !important;
}
[data-theme="wood-legendary"] .cc-done-divider {
  color: rgba(255,245,220,0.5) !important;
  border-color: rgba(180,130,70,0.2) !important;
}

/* Notes card */
[data-theme="wood-legendary"] .cc-notes-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .cc-notes-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .cc-notes-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .cc-notes-input {
  background: rgba(20,10,0,0.6) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cc-notes-input::placeholder {
  color: rgba(255,245,220,0.35) !important;
}
[data-theme="wood-legendary"] .cc-notes-add {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .cc-note-item {
  border-bottom-color: rgba(180,130,70,0.2) !important;
}

/* Server card */
[data-theme="wood-legendary"] .cc-server-card {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .cc-server-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .cc-server-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}

/* ========================================
   MAHAYAWEN HUB — Wood Theme
   ======================================== */

/* Container principal — transparent pour laisser le body bois */
[data-theme="wood-legendary"] .mh-container {
  background: transparent !important;
}
[data-theme="wood-legendary"] .mh-container::before,
[data-theme="wood-legendary"] .mh-container::after {
  display: none !important;
}

/* Hero section */
[data-theme="wood-legendary"] .mh-hero {
  background: transparent !important;
}
[data-theme="wood-legendary"] .mh-hero-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 4px 16px rgba(0,0,0,0.8), 0px 0px 40px rgba(0,0,0,0.5) !important;
  -webkit-text-fill-color: #FFF5DC !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .mh-hero-tagline {
  color: rgba(255,245,220,0.7) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}
[data-theme="wood-legendary"] .mh-hero-version {
  color: #C9A84C !important;
  border-color: rgba(201,168,76,0.3) !important;
  background: rgba(20,10,0,0.4) !important;
}

/* Orb — doré */
[data-theme="wood-legendary"] .mh-orb-core {
  background: radial-gradient(circle, #C9A84C, #8B6914) !important;
  box-shadow: 0 0 30px rgba(201,168,76,0.5), 0 0 60px rgba(201,168,76,0.2) !important;
}
[data-theme="wood-legendary"] .mh-orb-ring {
  border-color: rgba(201,168,76,0.4) !important;
}
[data-theme="wood-legendary"] .mh-orb-ring::after {
  background: #C9A84C !important;
  box-shadow: 0 0 12px #C9A84C, 0 0 24px rgba(201,168,76,0.5) !important;
}
[data-theme="wood-legendary"] .mh-orb-ring-2 {
  border-color: rgba(180,130,70,0.35) !important;
}
[data-theme="wood-legendary"] .mh-orb-ring-2::after {
  background: #B4824A !important;
  box-shadow: 0 0 12px #B4824A !important;
}

/* Status bar — bois clair, bien visible */
[data-theme="wood-legendary"] .mh-status-bar {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
  padding: 14px 32px !important;
  font-size: 14px !important;
  max-width: min(1000px, 80%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
[data-theme="wood-legendary"] .mh-status-bar,
[data-theme="wood-legendary"] .mh-status-bar *,
[data-theme="wood-legendary"] .mh-status-bar span,
[data-theme="wood-legendary"] .mh-status-bar div {
  color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: #1A0800 !important;
}

/* Section titles */
[data-theme="wood-legendary"] .mh-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
  -webkit-text-fill-color: #C9A84C !important;
}

/* Stats row */
[data-theme="wood-legendary"] .mh-stat {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
}
[data-theme="wood-legendary"] .mh-stat-value {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .mh-stat-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  font-weight: 700 !important;
}

/* Module cards */
[data-theme="wood-legendary"] .mh-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .mh-card::before,
[data-theme="wood-legendary"] .mh-card::after {
  display: none !important;
}
[data-theme="wood-legendary"] .mh-card:hover {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border-color: rgba(201,168,76,0.6) !important;
}
[data-theme="wood-legendary"] .mh-card-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .mh-card-desc {
  color: rgba(255,245,220,0.75) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .mh-card-icon-wrap {
  background: rgba(20,10,0,0.3) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .mh-card-badge {
  background: rgba(201,168,76,0.15) !important;
  color: #C9A84C !important;
  border: 1px solid rgba(201,168,76,0.3) !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .mh-card-footer {
  border-top-color: rgba(180,130,70,0.2) !important;
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .mh-card:hover .mh-card-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
}
[data-theme="wood-legendary"] .mh-card:hover .mh-card-desc {
  color: #3B1A00 !important;
}

/* Chat CTA */
[data-theme="wood-legendary"] .mh-chat-cta {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .mh-chat-cta * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .mh-chat-cta-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  will-change: auto !important;
}

/* V2 insight cards */
[data-theme="wood-legendary"] .mhv2-insight-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21) !important;
}
[data-theme="wood-legendary"] .mhv2-insight-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* V2 memory items */
[data-theme="wood-legendary"] .mhv2-mem-item {
  background: rgba(20,10,0,0.3) !important;
  border: 1px solid rgba(180,130,70,0.2) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .mhv2-mem-item * {
  color: #FFF5DC !important;
}

/* ========================================
   PSYCHO-AUDIT — Wood Theme
   ======================================== */

/* Container */
[data-theme="wood-legendary"] #view-psycho-audit {
  background: transparent !important;
}
[data-theme="wood-legendary"] .pa-premium-wrapper {
  background: transparent !important;
}

/* Header */
[data-theme="wood-legendary"] .pa-premium-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  will-change: auto !important;
  border-radius: 16px !important;
  margin: 12px 12px 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
}
[data-theme="wood-legendary"] .pa-premium-header::before,
[data-theme="wood-legendary"] .pa-premium-header::after {
  display: none !important;
}
[data-theme="wood-legendary"] .pa-premium-title {
  color: #FFF5DC !important;
  -webkit-text-fill-color: #FFF5DC !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 4px 16px rgba(0,0,0,0.8) !important;
  background: none !important;
}
[data-theme="wood-legendary"] .pa-premium-badge {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  color: #2A1200 !important;
  -webkit-text-fill-color: #2A1200 !important;
  border: 1px solid rgba(180,130,70,0.5) !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 30px rgba(201,168,76,0.2) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-premium-subtitle {
  color: rgba(255,245,220,0.7) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Tabs */
[data-theme="wood-legendary"] .pa-premium-tabs {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-tab-btn {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .pa-tab-btn * {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .pa-tab-btn.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201,168,76,0.8) !important;
  color: #2A1200 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .pa-tab-btn.active * {
  color: #2A1200 !important;
}

/* Content area */
[data-theme="wood-legendary"] .pa-premium-content {
  background: transparent !important;
}

/* Question cards */
[data-theme="wood-legendary"] .pa-qcard {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-left: 3px solid rgba(201,168,76,0.6) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-qcard * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .pa-qcard--done {
  border-left-color: #8B6914 !important;
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
}
[data-theme="wood-legendary"] .pa-qcard--done * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
}

/* Rating buttons */
[data-theme="wood-legendary"] .pa-rbtn {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .pa-rbtn:hover {
  background: rgba(201,168,76,0.15) !important;
  border-color: rgba(201,168,76,0.6) !important;
}

/* Score hero */
[data-theme="wood-legendary"] .pa-score-hero {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 22px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-score-hero::before {
  display: none !important;
}
[data-theme="wood-legendary"] .pa-score-hero * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
}

/* Recommendations */
[data-theme="wood-legendary"] .pa-rec-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-left: 3px solid rgba(201,168,76,0.6) !important;
  border-radius: 13px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-rec-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Exercise cards */
[data-theme="wood-legendary"] .pa-exercise-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 18px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-exercise-card::before {
  display: none !important;
}
[data-theme="wood-legendary"] .pa-exercise-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .pa-ex-card-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .pa-ex-card-cta {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  text-shadow: none !important;
}

/* Category sections */
[data-theme="wood-legendary"] .pa-category-header {
  color: #C9A84C !important;
}
[data-theme="wood-legendary"] .pa-category-info h3 {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .pa-category-info p {
  color: rgba(255,245,220,0.6) !important;
}

/* Buttons */
[data-theme="wood-legendary"] .pa-btn-primary {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-btn-secondary {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}

/* AI Analysis */
[data-theme="wood-legendary"] .pa-ai-analysis {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-ai-analysis * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Axes / Radar */
[data-theme="wood-legendary"] .pa-axis-bar-track {
  background: rgba(20,10,0,0.3) !important;
}
[data-theme="wood-legendary"] .pa-axis-bar-fill {
  background: linear-gradient(90deg, #C9A84C, #8B6914) !important;
}

/* History */
[data-theme="wood-legendary"] .pa-history-item {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-history-item * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .pa-history-fill {
  background: linear-gradient(90deg, #C9A84C, #8B6914) !important;
}

/* Evidence boxes */
[data-theme="wood-legendary"] .pa-ex-evidence-box {
  background: rgba(20,10,0,0.3) !important;
  border: 1px solid rgba(180,130,70,0.2) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .pa-ex-evidence-box * {
  color: #FFF5DC !important;
}

/* Daily routine */
[data-theme="wood-legendary"] .pa-daily-routine {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 14px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-daily-routine * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .pa-daily-slot {
  border-bottom-color: rgba(180,130,70,0.2) !important;
}

/* ── Psycho-Audit — Page intro ── */

/* Grande carte centrale */
[data-theme="wood-legendary"] .pa-intro-text {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  border-radius: 16px !important;
  will-change: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* Titre */
[data-theme="wood-legendary"] .pa-intro-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #FFF5DC !important;
}

/* Sous-titre */
[data-theme="wood-legendary"] .pa-intro-subtitle {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}

/* Badges */
[data-theme="wood-legendary"] .pa-intro-meta span {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}

/* Bouton Commencer */
[data-theme="wood-legendary"] .pa-intro-cta {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,230,160,0.2) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-intro-cta:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
}

/* Titre 5 dimensions */
[data-theme="wood-legendary"] .pa-intro-dims-title {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* Cartes dimensions */
[data-theme="wood-legendary"] .pa-intro-dim-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-left: 3px solid var(--dim-color, rgba(201,168,76,0.8)) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-right: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21) !important;
  border-radius: 14px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-intro-dim-label {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .pa-intro-dim-desc {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 500 !important;
}

/* Conteneur 5 dimensions — bois très foncé */
[data-theme="wood-legendary"] .pa-intro-dims {
  background: url("textures/wood-body.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  padding: 20px !important;
  will-change: auto !important;
}

/* Hint historique — bois très clair */
[data-theme="wood-legendary"] .pa-intro-history-hint {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .pa-intro-history-hint,
[data-theme="wood-legendary"] .pa-intro-history-hint *,
[data-theme="wood-legendary"] .pa-intro-history-hint span,
[data-theme="wood-legendary"] .pa-intro-history-hint button {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: #2A1200 !important;
}

/* ── Psycho-Audit — Badge PREMIUM au-dessus du titre ── */
[data-theme="wood-legendary"] .pa-premium-title-row {
  flex-direction: column-reverse !important;
  gap: 8px !important;
}

/* ── Psycho-Audit — Bouton CTA aligné à droite ── */
[data-theme="wood-legendary"] .pa-intro-text {
  text-align: left !important;
}
[data-theme="wood-legendary"] .pa-intro-cta {
  float: right !important;
  margin-bottom: 12px !important;
  margin-right: 8px !important;
}

/* ── Psycho-Audit — Silhouette bonhomme en or premium ── */
[data-theme="wood-legendary"] .pa-intro-silhouette {
  filter: sepia(1) saturate(3) hue-rotate(-10deg) brightness(1.1) !important;
}
[data-theme="wood-legendary"] .pa-intro-silhouette svg ellipse {
  fill: rgba(201,168,76,0.15) !important;
  stroke: rgba(201,168,76,0.6) !important;
}
[data-theme="wood-legendary"] .pa-intro-silhouette svg path {
  fill: rgba(139,105,20,0.12) !important;
  stroke: rgba(201,168,76,0.4) !important;
}
[data-theme="wood-legendary"] .pa-intro-silhouette svg circle {
  fill: #C9A84C !important;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.6)) drop-shadow(0 0 16px rgba(201,168,76,0.3)) !important;
}
[data-theme="wood-legendary"] .pa-intro-silhouette svg line {
  stroke: rgba(201,168,76,0.35) !important;
}

/* ── Psycho-Audit — Décaler le contenu intro vers le bas ── */
[data-theme="wood-legendary"] .pa-intro-title {
  margin-top: 20px !important;
}

/* ── Psycho-Audit — Grosse ombre derrière la silhouette ── */
[data-theme="wood-legendary"] .pa-intro-silhouette svg {
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.8)) drop-shadow(0 0 40px rgba(0,0,0,0.5)) drop-shadow(0 0 60px rgba(0,0,0,0.3)) !important;
}

/* ========================================
   VISION EQUIPE — Wood Theme
   ======================================== */

/* Root — bois foncé */
[data-theme="wood-legendary"] .tv-root {
  background: transparent !important;
}
[data-theme="wood-legendary"] .tv-root::before {
  display: none !important;
}

/* Header */
[data-theme="wood-legendary"] .tv-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.4) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-header * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .tv-brand-orb {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4) !important;
}
[data-theme="wood-legendary"] .tv-brand-name {
  -webkit-text-fill-color: #FFF5DC !important;
}

/* Tab bar */
[data-theme="wood-legendary"] .tv-tab-bar {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
}
[data-theme="wood-legendary"] .tv-tab {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .tv-tab--active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

/* Sidebar droite */
[data-theme="wood-legendary"] .tv-sidebar {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border-left: 1px solid rgba(180,130,70,0.3) !important;
  will-change: auto !important;
}

/* KPIs sidebar */
[data-theme="wood-legendary"] .tv-skpi {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .tv-skpi-val {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .tv-skpi-lbl {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .tv-skpi--alert {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-color: rgba(180,100,50,0.5) !important;
}

/* Stat cards (membres) */
[data-theme="wood-legendary"] .tv-stat-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-stat-card * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .tv-stat-card--online {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-color: rgba(180,130,70,0.5) !important;
}
[data-theme="wood-legendary"] .tv-stat-card--cta {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
}
[data-theme="wood-legendary"] .tv-stat-card--cta * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
}
[data-theme="wood-legendary"] .tv-stat-badge {
  background: rgba(201,168,76,0.2) !important;
  color: #C9A84C !important;
}

/* Body central */
[data-theme="wood-legendary"] .tv-body {
  background: transparent !important;
}

/* Zone centrale — bois clair noble */
[data-theme="wood-legendary"] .tv-center {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  will-change: auto !important;
}

/* Chat */
[data-theme="wood-legendary"] .tv-chat-header {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.4) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-chat-header *,
[data-theme="wood-legendary"] .tv-chat-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .tv-composer {
  background: rgba(20,10,0,0.6) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}

/* Tasks panel */
[data-theme="wood-legendary"] .tv-tasks-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-tasks-header * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .tv-tasks-chip {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .tv-tasks-chip--active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border-color: rgba(201,168,76,0.7) !important;
}
[data-theme="wood-legendary"] .tv-task-row {
  border-bottom-color: rgba(180,130,70,0.15) !important;
}
[data-theme="wood-legendary"] .tv-task-row * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* Drawer (panneau membre) */
[data-theme="wood-legendary"] .tv-drawer {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-drawer * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .tv-drawer-hero {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-drawer-kpis {
  background: transparent !important;
}
[data-theme="wood-legendary"] .tv-drawer-close {
  color: rgba(255,245,220,0.6) !important;
}

/* Splash */
[data-theme="wood-legendary"] .tv-splash {
  background: transparent !important;
}
[data-theme="wood-legendary"] .tv-splash * {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
}
[data-theme="wood-legendary"] .tv-splash-ring {
  border-color: rgba(201,168,76,0.4) !important;
}

/* Empty state */
[data-theme="wood-legendary"] .tv-empty-state {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .tv-empty-state * {
  color: rgba(255,245,220,0.6) !important;
}

/* Boutons */
[data-theme="wood-legendary"] .tv-btn-ghost {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .tv-btn-ghost:hover {
  background: rgba(201,168,76,0.2) !important;
  border-color: rgba(180,130,70,0.7) !important;
}
[data-theme="wood-legendary"] .tv-vision-launch-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Assign modal */
[data-theme="wood-legendary"] .tv-assign-modal {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-assign-modal-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-assign-modal * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .tv-assign-input,
[data-theme="wood-legendary"] .tv-assign-textarea,
[data-theme="wood-legendary"] .tv-assign-select {
  background: rgba(20,10,0,0.6) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .tv-assign-submit {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* PTab */
[data-theme="wood-legendary"] .tv-ptab {
  color: rgba(255,245,220,0.5) !important;
}
[data-theme="wood-legendary"] .tv-ptab--active {
  color: #C9A84C !important;
  border-bottom-color: #C9A84C !important;
}

/* ── Team Vision — Messages sur bois clair ── */
[data-theme="wood-legendary"] .tv-msgs-wrap,
[data-theme="wood-legendary"] .tv-msgs {
  background: transparent !important;
}
[data-theme="wood-legendary"] .tv-msg {
  background: rgba(42, 18, 0, 0.08) !important;
  border-bottom: 1px solid rgba(180,130,70,0.12) !important;
}
[data-theme="wood-legendary"] .tv-msg:hover {
  background: rgba(42, 18, 0, 0.15) !important;
}
[data-theme="wood-legendary"] .tv-msg-text,
[data-theme="wood-legendary"] .tv-msg-text * {
  color: #2A1200 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .tv-msg-sender {
  color: #6B3A00 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .tv-msg-time,
[data-theme="wood-legendary"] .tv-msg-meta {
  color: rgba(42,18,0,0.5) !important;
  text-shadow: none !important;
}

/* Zone de saisie sur bois clair */
[data-theme="wood-legendary"] .tv-composer {
  background: rgba(42,18,0,0.1) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #2A1200 !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
}
[data-theme="wood-legendary"] .tv-composer::placeholder {
  color: rgba(42,18,0,0.4) !important;
}
[data-theme="wood-legendary"] .tv-send-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .tv-composer-icon {
  color: #6B3A00 !important;
}

/* Messages vide */
[data-theme="wood-legendary"] .tv-msgs-empty {
  color: rgba(42,18,0,0.4) !important;
}
[data-theme="wood-legendary"] .tv-msgs-empty * {
  color: rgba(42,18,0,0.4) !important;
  text-shadow: none !important;
}

/* ── Team Vision — Panneau gauche membres en bois foncé ── */
[data-theme="wood-legendary"] .tv-members-panel {
  background: url("textures/wood-medium.jpg") center / 300px auto repeat scroll !important;
  border-right: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  margin: 8px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}

/* Header panneau — EQUIPE centré */
[data-theme="wood-legendary"] .tv-panel-hdr {
  border-bottom: none !important;
  color: #FFF5DC !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  padding: 14px 14px 12px !important;
  justify-content: center !important;
}
[data-theme="wood-legendary"] .tv-panel-count {
  display: none !important;
}

/* Cartes membres — bois clair */
[data-theme="wood-legendary"] .tv-member-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .tv-member-card:hover {
  box-shadow: 0 0 14px 4px rgba(0,0,0,0.4) !important;
  border-color: rgba(180,130,70,0.6) !important;
}
[data-theme="wood-legendary"] .tv-member-card--on {
  border-color: rgba(180,130,70,0.6) !important;
}

/* Noms — foncé sur bois clair */
[data-theme="wood-legendary"] .tv-member-name {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  font-weight: 700 !important;
}

/* Rôles — foncé discret */
[data-theme="wood-legendary"] .tv-member-role {
  color: rgba(42,18,0,0.5) !important;
}

/* Scroll zone */
[data-theme="wood-legendary"] .tv-members-scroll {
  background: transparent !important;
}

/* ── Team Vision — Ombres relief + coins arrondis sur tous les éléments ── */
[data-theme="wood-legendary"] .tv-header,
[data-theme="wood-legendary"] .tv-tab-bar,
[data-theme="wood-legendary"] .tv-member-card,
[data-theme="wood-legendary"] .tv-stat-card,
[data-theme="wood-legendary"] .tv-skpi,
[data-theme="wood-legendary"] .tv-chat-header,
[data-theme="wood-legendary"] .tv-tasks-header,
[data-theme="wood-legendary"] .tv-composer,
[data-theme="wood-legendary"] .tv-drawer,
[data-theme="wood-legendary"] .tv-drawer-hero,
[data-theme="wood-legendary"] .tv-assign-modal,
[data-theme="wood-legendary"] .tv-tasks-chip,
[data-theme="wood-legendary"] .tv-btn-ghost,
[data-theme="wood-legendary"] .tv-vision-launch-btn {
  border-radius: 12px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
}

/* ── Team Vision — Coins arrondis zone messages bois clair ── */
[data-theme="wood-legendary"] .tv-center {
  border-radius: 16px !important;
  box-shadow:
    0 0 12px 4px rgba(0,0,0,0.35),
    0 0 32px 8px rgba(0,0,0,0.21),
    inset 0 1px 0 rgba(255,220,150,0.12) !important;
  margin: 8px !important;
}

/* ========================================
   TEAM MESSAGING (TeamTalk) — Wood Theme
   ======================================== */

/* Container principal */
[data-theme="wood-legendary"] #view-team-messaging {
  background: transparent !important;
}
[data-theme="wood-legendary"] .msg-container {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  overflow: hidden !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .msg-container::before {
  display: none !important;
}

/* Sidebar conversations — bois moyen */
[data-theme="wood-legendary"] .msg-sidebar {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-right: 1px solid rgba(180,130,70,0.4) !important;
  backdrop-filter: none !important;
  border-radius: 16px 0 0 16px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .msg-sidebar::after {
  display: none !important;
}

/* Header sidebar */
[data-theme="wood-legendary"] .msg-sidebar-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .msg-sidebar-title,
[data-theme="wood-legendary"] .msg-sidebar-title * {
  color: #1A0800 !important;
  -webkit-text-fill-color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
  background: none !important;
}

/* Bouton nouveau message */
[data-theme="wood-legendary"] .msg-new-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .msg-new-btn::before {
  display: none !important;
}

/* Search */
[data-theme="wood-legendary"] .msg-search-input {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .msg-search-input::placeholder {
  color: rgba(255,245,220,0.35) !important;
}
[data-theme="wood-legendary"] .msg-search-icon {
  color: rgba(255,245,220,0.4) !important;
}

/* Liste conversations */
[data-theme="wood-legendary"] .msg-conv-list * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Zone chat — bois clair */
[data-theme="wood-legendary"] .msg-chat {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border-radius: 0 20px 20px 0 !important;
  will-change: auto !important;
  overflow: hidden !important;
}

/* Chat header */
[data-theme="wood-legendary"] .msg-chat-header {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .msg-chat-header::after {
  display: none !important;
}
[data-theme="wood-legendary"] .msg-chat-name {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  -webkit-text-fill-color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .msg-chat-status {
  color: rgba(42,18,0,0.5) !important;
}
[data-theme="wood-legendary"] .msg-chat-actions .msg-chat-action,
[data-theme="wood-legendary"] .msg-action-btn {
  color: #6B3A00 !important;
  border-color: rgba(180,130,70,0.3) !important;
}

/* Messages — texte foncé sur bois clair */
[data-theme="wood-legendary"] .msg-user-name {
  color: #6B3A00 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .msg-chat .msg-input-area * {
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* Zone saisie — nette et premium */
[data-theme="wood-legendary"] .msg-input-area {
  background: transparent !important;
  border-top: 1px solid rgba(180,130,70,0.3) !important;
  backdrop-filter: none !important;
}
[data-theme="wood-legendary"] .msg-input-area::before {
  display: none !important;
}
[data-theme="wood-legendary"] .msg-input-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .msg-input {
  color: #1A0800 !important;
  background: rgba(255,250,235,0.8) !important;
  border: 2px solid rgba(180,130,70,0.5) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.15) !important;
  font-weight: 500 !important;
}
[data-theme="wood-legendary"] .msg-input::placeholder {
  color: rgba(42,18,0,0.35) !important;
}

/* Bouton envoyer */
[data-theme="wood-legendary"] .msg-send-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
}
[data-theme="wood-legendary"] .msg-send-btn::before {
  display: none !important;
}

/* Boutons emoji/upload */
[data-theme="wood-legendary"] .msg-emoji-btn,
[data-theme="wood-legendary"] .msg-input-actions button,
[data-theme="wood-legendary"] .msg-action-btn {
  color: #6B3A00 !important;
  background: rgba(255,250,235,0.7) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 10px !important;
}

/* Empty state — ultra premium noble sur bois clair */
[data-theme="wood-legendary"] .msg-empty-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .msg-empty-icon svg {
  stroke: #8B6914 !important;
  filter: drop-shadow(0 4px 12px rgba(139,105,20,0.4)) drop-shadow(0 0 30px rgba(201,168,76,0.2)) !important;
}
[data-theme="wood-legendary"] .msg-empty-title {
  color: #1A0800 !important;
  -webkit-text-fill-color: #1A0800 !important;
  background: none !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.5), 0px 3px 6px rgba(0,0,0,0.25) !important;
}
[data-theme="wood-legendary"] .msg-empty-text {
  color: #3B1A00 !important;
  -webkit-text-fill-color: #3B1A00 !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  line-height: 1.8 !important;
  opacity: 1 !important;
}

/* Modal */
[data-theme="wood-legendary"] .msg-modal {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .msg-modal-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .msg-modal * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .msg-modal input,
[data-theme="wood-legendary"] .msg-modal .msg-group-input {
  background: rgba(20,10,0,0.6) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .msg-modal-btn.primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* ── TeamTalk — Cartes conversations bien définies ── */
[data-theme="wood-legendary"] .msg-conv-item {
  background: rgba(255,240,200,0.55) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  margin: 4px 8px !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.12) !important;
}
[data-theme="wood-legendary"] .msg-conv-item * {
  color: #2A1200 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .msg-conv-item:hover {
  box-shadow: 0 0 14px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.15) !important;
  border-color: rgba(180,130,70,0.5) !important;
}
[data-theme="wood-legendary"] .msg-conv-item.active {
  border-color: rgba(201,168,76,0.7) !important;
  box-shadow: 0 0 14px 4px rgba(0,0,0,0.4), 0 0 8px rgba(201,168,76,0.2), inset 0 1px 0 rgba(255,220,150,0.15) !important;
}

/* ── TeamTalk — Sidebar projette ombre sur la droite ── */
[data-theme="wood-legendary"] .msg-sidebar {
  box-shadow: 8px 0 24px -4px rgba(0,0,0,0.5), 12px 0 40px -8px rgba(0,0,0,0.3) !important;
  z-index: 3 !important;
}

/* Enlever fond des emojis */
[data-theme="wood-legendary"] .msg-emoji-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── TeamTalk — Coins arrondis droite haut et bas ── */
[data-theme="wood-legendary"] .msg-chat-header {
  border-radius: 0 20px 0 0 !important;
}

/* ── TeamTalk — Enlever fond emoji avatars ── */
[data-theme="wood-legendary"] .msg-conv-avatar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .msg-conv-avatar::after {
  display: none !important;
}

/* ── TeamTalk — Enlever fond emoji avatars dans les conversations ── */
[data-theme="wood-legendary"] .msg-chat-avatar,
[data-theme="wood-legendary"] .msg-user-avatar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .msg-chat-avatar::after,
[data-theme="wood-legendary"] .msg-user-avatar::after {
  display: none !important;
}

/* ========================================
   GIRI VISION — Wood Theme
   ======================================== */

/* Container */
[data-theme="wood-legendary"] #view-giri-vision {
  background: transparent !important;
}
[data-theme="wood-legendary"] .vision-home-wrapper {
  background: transparent !important;
}

/* Header Pro */
[data-theme="wood-legendary"] .vision-pro-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-pro-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 4px 16px rgba(0,0,0,0.8) !important;
  -webkit-text-fill-color: #FFF5DC !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .vision-pro-greeting {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .vision-pro-logo {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.2) !important;
  border: 1px solid rgba(180,130,70,0.5) !important;
  border-radius: 14px !important;
}
[data-theme="wood-legendary"] .vision-pro-logo svg circle {
  fill: transparent !important;
}
[data-theme="wood-legendary"] .vision-pro-logo svg rect,
[data-theme="wood-legendary"] .vision-pro-logo svg polygon,
[data-theme="wood-legendary"] .vision-pro-logo svg path {
  fill: #8B6914 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) !important;
}
[data-theme="wood-legendary"] .vision-btn-history {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}

/* 4 Stats */
[data-theme="wood-legendary"] .vision-stat-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-stat-value {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .vision-stat-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .vision-stat-icon {
  color: #6B3A00 !important;
}

/* Action buttons */
[data-theme="wood-legendary"] .vision-action-btn {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-action-btn:hover {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border-color: rgba(180,130,70,0.6) !important;
}
[data-theme="wood-legendary"] .vision-action-btn * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .vision-action-btn:hover * {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
}
[data-theme="wood-legendary"] .vision-action-btn-icon {
  background: rgba(0,0,0,0.15) !important;
  border-radius: 12px !important;
}

/* Col titles */
[data-theme="wood-legendary"] .vision-col-title {
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
  -webkit-text-fill-color: #C9A84C !important;
}

/* Join section */
[data-theme="wood-legendary"] .vision-join-title {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .vision-input {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .vision-btn-join-small {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
}

/* Recent / Scheduled items */
[data-theme="wood-legendary"] .vision-recent-item,
[data-theme="wood-legendary"] .vision-scheduled-item {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-recent-item *,
[data-theme="wood-legendary"] .vision-scheduled-item * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .vision-recent-title,
[data-theme="wood-legendary"] .vision-scheduled-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}

/* Chart cards */
[data-theme="wood-legendary"] .vision-chart-card {
  background: url("textures/wood-medium.jpg") center top / 120% auto no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-chart-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
}

/* Buttons */
[data-theme="wood-legendary"] .vision-btn-primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .vision-btn-secondary {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .vision-btn-packages {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}

/* Modal */
[data-theme="wood-legendary"] .vision-modal {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-modal-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .vision-modal * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .vision-modal input,
[data-theme="wood-legendary"] .vision-modal textarea,
[data-theme="wood-legendary"] .vision-modal select {
  background: rgba(20,10,0,0.6) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .vision-modal .vision-btn-primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* Empty states */
[data-theme="wood-legendary"] .vision-empty-small {
  color: rgba(255,245,220,0.5) !important;
}

/* Quickbar mobile */
[data-theme="wood-legendary"] .vision-mobile-quickbar-btn {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #FFF5DC !important;
}

/* ── Giri Vision — Zoom sur les chart cards pour cacher watermark bas ── */
[data-theme="wood-legendary"] .vision-chart-card {
  overflow: hidden !important;
  background: url("textures/wood-medium.jpg") center top / 130% auto no-repeat scroll !important;
}

/* ========================================
   GIRI ACADEMY — Wood Theme
   ======================================== */

/* Container */
[data-theme="wood-legendary"] #view-giri-academy {
  background: transparent !important;
}
[data-theme="wood-legendary"] .ga-dashboard {
  background: transparent !important;
  padding-top: 16px !important;
}

/* Header */
[data-theme="wood-legendary"] .ga-dash-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
  margin-bottom: 16px !important;
}
[data-theme="wood-legendary"] .ga-dash-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 4px 16px rgba(0,0,0,0.8) !important;
  -webkit-text-fill-color: #FFF5DC !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .ga-dash-subtitle {
  color: rgba(255,245,220,0.7) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}
[data-theme="wood-legendary"] .ga-dash-header-icon {
  background: transparent !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .ga-dash-header .btn-academy {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ga-dash-header .btn-academy.btn-primary {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201,168,76,0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  text-shadow: none !important;
  will-change: auto !important;
}

/* KPI Cards — bois clair */
[data-theme="wood-legendary"] .ga-kpi-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-kpi-card::before {
  display: none !important;
}
[data-theme="wood-legendary"] .ga-kpi-value {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #2A1200 !important;
}
[data-theme="wood-legendary"] .ga-kpi-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-kpi-sub {
  color: rgba(42,18,0,0.6) !important;
}
[data-theme="wood-legendary"] .ga-kpi-icon-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
[data-theme="wood-legendary"] .ga-kpi-icon {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55)) drop-shadow(0 1px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 12px rgba(201,168,76,0.25)) !important;
  display: inline-block !important;
}
[data-theme="wood-legendary"] .ga-kpi-purple .ga-kpi-value,
[data-theme="wood-legendary"] .ga-kpi-green .ga-kpi-value,
[data-theme="wood-legendary"] .ga-kpi-blue .ga-kpi-value,
[data-theme="wood-legendary"] .ga-kpi-amber .ga-kpi-value {
  color: #2A1200 !important;
  -webkit-text-fill-color: #2A1200 !important;
}

/* Sections */
[data-theme="wood-legendary"] .ga-dash-section {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  padding: 20px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-section-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: #FFE8A0 !important;
}

/* Top formations list */
[data-theme="wood-legendary"] .ga-top-item {
  background: rgba(255,240,200,0.55) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
}
[data-theme="wood-legendary"] .ga-top-item {
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
}
[data-theme="wood-legendary"] .ga-top-item:hover {
  background: rgba(255,240,200,0.7) !important;
}
[data-theme="wood-legendary"] .ga-top-item,
[data-theme="wood-legendary"] .ga-top-item *,
[data-theme="wood-legendary"] .ga-top-item span,
[data-theme="wood-legendary"] .ga-top-name,
[data-theme="wood-legendary"] .ga-top-meta,
[data-theme="wood-legendary"] .ga-top-meta span,
[data-theme="wood-legendary"] .ga-top-rank {
  color: #1A0800 !important;
  -webkit-text-fill-color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-top-rank {
  font-weight: 900 !important;
}

/* Activity items */
[data-theme="wood-legendary"] .ga-activity-item {
  background: rgba(255,240,200,0.55) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  margin-bottom: 4px !important;
}
[data-theme="wood-legendary"] .ga-activity-item:hover {
  background: rgba(255,240,200,0.7) !important;
}
[data-theme="wood-legendary"] .ga-activity-text,
[data-theme="wood-legendary"] .ga-activity-verb {
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .ga-activity-formation {
  color: #6B3A00 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-activity-time {
  color: rgba(42,18,0,0.5) !important;
}
[data-theme="wood-legendary"] .ga-activity-badge,
[data-theme="wood-legendary"] #ga-activity-count {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Revenue section */
[data-theme="wood-legendary"] .ga-rev-row {
  border-bottom-color: rgba(180,130,70,0.15) !important;
}
[data-theme="wood-legendary"] .ga-rev-name {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .ga-rev-label {
  color: rgba(255,245,220,0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] #ga-revenue-widget .ga-empty-msg,
[data-theme="wood-legendary"] #ga-revenue-widget div[style*="color"],
[data-theme="wood-legendary"] #ga-revenue-widget p {
  color: rgba(255,245,220,0.9) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .ga-rev-val,
[data-theme="wood-legendary"] .ga-rev-amount {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-rev-total {
  color: #FFE8A0 !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .ga-rev-btn-compta {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}

/* Formation stats */
[data-theme="wood-legendary"] .ga-fstat-item {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  margin-bottom: 6px !important;
  padding: 10px 14px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-fstat-name {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-fstat-meta,
[data-theme="wood-legendary"] .ga-fstat-meta * {
  color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .ga-fstat-month {
  color: #1A0800 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-fstat-emoji {
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .ga-fstat-item,
[data-theme="wood-legendary"] .ga-fstat-item *,
[data-theme="wood-legendary"] .ga-fstat-item span,
[data-theme="wood-legendary"] .ga-fstat-item div,
[data-theme="wood-legendary"] .ga-fstat-header,
[data-theme="wood-legendary"] .ga-fstat-header *,
[data-theme="wood-legendary"] .ga-fstat-name,
[data-theme="wood-legendary"] .ga-fstat-month,
[data-theme="wood-legendary"] .ga-fstat-meta,
[data-theme="wood-legendary"] .ga-fstat-meta span {
  color: #1A0800 !important;
  -webkit-text-fill-color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-fstat-bar-track {
  background: rgba(0,0,0,0.2) !important;
}
[data-theme="wood-legendary"] .ga-fstat-bar-fill {
  background: linear-gradient(90deg, #C9A84C, #8B6914) !important;
}

/* Chart */
[data-theme="wood-legendary"] .ga-chart-wrap {
  background: transparent !important;
}


/* Storage */
[data-theme="wood-legendary"] .ga-storage-plan-tag {
  background: rgba(201,168,76,0.2) !important;
  color: #C9A84C !important;
}

/* Empty */
[data-theme="wood-legendary"] .ga-empty-msg,
[data-theme="wood-legendary"] .ga-chart-empty,
[data-theme="wood-legendary"] .ga-dash-section p,
[data-theme="wood-legendary"] .ga-dash-section span:not([class*="kpi"]):not([class*="badge"]):not([class*="value"]):not([class*="rank"]) {
  color: rgba(255,245,220,0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
}

/* Body grid transparent */
[data-theme="wood-legendary"] .ga-dash-body,
[data-theme="wood-legendary"] .ga-dash-main,
[data-theme="wood-legendary"] .ga-dash-side {
  background: transparent !important;
}

/* Section headers */
[data-theme="wood-legendary"] .ga-section-header {
  border-bottom-color: rgba(180,130,70,0.2) !important;
}

/* ── Giri Academy — Masquer emoji header ── */
[data-theme="wood-legendary"] .ga-dash-header-icon {
  font-size: 0 !important;
  line-height: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Academy — Stockage textes plus clairs ── */
[data-theme="wood-legendary"] #ga-storage-widget,
[data-theme="wood-legendary"] #ga-storage-widget *,
[data-theme="wood-legendary"] #ga-storage-widget span,
[data-theme="wood-legendary"] #ga-storage-widget div,
[data-theme="wood-legendary"] #ga-storage-widget p,
[data-theme="wood-legendary"] #ga-storage-widget small {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: #FFF5DC !important;
  opacity: 1 !important;
}

/* ── Academy — Titres sections sans retour à la ligne ── */
[data-theme="wood-legendary"] .ga-section-title {
  white-space: nowrap !important;
}

/* ── Academy — Stockage : mot utilisé en clair ── */
[data-theme="wood-legendary"] .sw-gauge-label {
  fill: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .sw-gauge-pct {
  fill: #FFF5DC !important;
  font-weight: 900 !important;
}

/* ── Academy — Ombre subtile autour du widget stockage ── */
[data-theme="wood-legendary"] .ga-storage-plan-tag {
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
}

/* ========================================
   GIRI ACADEMIE — DASHBOARD REVENUS
   ======================================== */

/* Conteneur page */
[data-theme="wood-legendary"] .rv-page {
  background: transparent !important;
}

/* Header */
[data-theme="wood-legendary"] .rv-header {
  background: transparent !important;
}
[data-theme="wood-legendary"] .rv-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .rv-subtitle {
  color: rgba(255,245,220,0.65) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}
[data-theme="wood-legendary"] .rv-live-dot {
  background: #C9A84C !important;
  box-shadow: 0 0 8px #C9A84C !important;
}

/* Barre onglets principaux — bois clair */
[data-theme="wood-legendary"] .rv-main-tabs {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .rv-main-tab {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .rv-main-tab:hover {
  border-color: rgba(180,130,70,0.6) !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.25) !important;
}
[data-theme="wood-legendary"] .rv-main-tab.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201,168,76,0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .rv-intel-badge,
[data-theme="wood-legendary"] #rv-intel-badge {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* 4 KPI cards — bois clair */
[data-theme="wood-legendary"] .rv-kpi-card {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .rv-kpi-value {
  color: #2A1200 !important;
  -webkit-text-fill-color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .rv-kpi-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .rv-kpi-sub {
  color: rgba(42,18,0,0.65) !important;
}
[data-theme="wood-legendary"] .rv-kpi-icon {
  color: #6B3A00 !important;
}

/* Cards sections — bois moyen */
[data-theme="wood-legendary"] .rv-card,
[data-theme="wood-legendary"] .rv-panel,
[data-theme="wood-legendary"] .rv-forecast-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .rv-card-title {
  color: #FFE8A0 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .rv-card-badge {
  background: rgba(201,168,76,0.2) !important;
  color: #C9A84C !important;
}

/* Onglets période */
[data-theme="wood-legendary"] .rv-period-btn {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  color: rgba(255,245,220,0.7) !important;
  border-radius: 6px !important;
}
[data-theme="wood-legendary"] .rv-period-btn.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201,168,76,0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Chart tabs */
[data-theme="wood-legendary"] .rv-chart-tab {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .rv-chart-tab.active {
  color: #C9A84C !important;
  border-bottom-color: #C9A84C !important;
}

/* Top formation rows */
[data-theme="wood-legendary"] .rv-top-row {
  background: rgba(255,240,200,0.55) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 10px !important;
  margin-bottom: 6px !important;
}
[data-theme="wood-legendary"] .rv-top-row * {
  color: #1A0800 !important;
  -webkit-text-fill-color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
}
[data-theme="wood-legendary"] .rv-top-row:hover {
  background: rgba(255,240,200,0.7) !important;
}
[data-theme="wood-legendary"] .rv-top-rank {
  font-weight: 900 !important;
}

/* Sale rows */
[data-theme="wood-legendary"] .rv-sale-row {
  border-bottom: 1px solid rgba(180,130,70,0.15) !important;
}
[data-theme="wood-legendary"] .rv-sale-row * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .rv-sale-amount {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .rv-sale-email {
  color: rgba(255,245,220,0.5) !important;
}

/* Source badges */
[data-theme="wood-legendary"] .rv-src-badge {
  text-shadow: none !important;
}

/* Chart wrap */
[data-theme="wood-legendary"] .rv-chart-wrap {
  background: rgba(10,5,0,0.2) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .rv-chart-empty {
  color: rgba(255,245,220,0.6) !important;
}

/* Donut */
[data-theme="wood-legendary"] .rv-donut-wrap {
  background: transparent !important;
}
[data-theme="wood-legendary"] .rv-legend-label {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .rv-legend-pct {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}

/* Forecast */
[data-theme="wood-legendary"] .rv-forecast-curr-val {
  color: #FFE8A0 !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .rv-forecast-curr-label,
[data-theme="wood-legendary"] .rv-forecast-month-label {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .rv-forecast-month-val {
  color: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .rv-forecast-message {
  color: rgba(255,245,220,0.7) !important;
}

/* Grilles transparentes */
[data-theme="wood-legendary"] .rv-main-grid,
[data-theme="wood-legendary"] .rv-secondary-grid,
[data-theme="wood-legendary"] .rv-kpi-grid {
  background: transparent !important;
}

/* Textes généraux */
[data-theme="wood-legendary"] .rv-page p,
[data-theme="wood-legendary"] .rv-page small {
  color: rgba(255,245,220,0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Boutons */
[data-theme="wood-legendary"] .rv-header .btn-academy {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .rv-back {
  color: #FFF5DC !important;
  border-color: rgba(180,130,70,0.3) !important;
}

/* Empty state */
[data-theme="wood-legendary"] .rv-empty-state {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .rv-empty-state * {
  color: rgba(255,245,220,0.6) !important;
}

/* ── Revenue — Centrer texte onglets ── */
[data-theme="wood-legendary"] .rv-main-tab {
  text-align: center !important;
  justify-content: center !important;
}

/* ── Revenue — Neutraliser les zones bleues opaques ── */
[data-theme="wood-legendary"] .rv-shimmer,
[data-theme="wood-legendary"] .rv-shimmer-line,
[data-theme="wood-legendary"] .rv-kpi-value.rv-shimmer {
  background: rgba(180,130,70,0.15) !important;
  animation: none !important;
}
[data-theme="wood-legendary"] .rv-chart-wrap {
  background: transparent !important;
}
[data-theme="wood-legendary"] .rv-chart-wrap canvas {
  background: transparent !important;
}
[data-theme="wood-legendary"] .rv-top-row,
[data-theme="wood-legendary"] .rv-card .rv-top-row {
  background: rgba(255,240,200,0.55) !important;
}
/* Forcer tous les fonds sombres intérieurs à transparent */
[data-theme="wood-legendary"] .rv-card > div,
[data-theme="wood-legendary"] .rv-panel > div {
  background: transparent !important;
}

/* ── Revenue — Neutraliser TOUS les fonds bleus restants ── */
[data-theme="wood-legendary"] #rv-recent-sales,
[data-theme="wood-legendary"] #rv-top-formations,
[data-theme="wood-legendary"] #rv-main-chart,
[data-theme="wood-legendary"] #rv-donut-formations,
[data-theme="wood-legendary"] #rv-donut-sources,
[data-theme="wood-legendary"] #rv-forecast-content,
[data-theme="wood-legendary"] #rv-panel-overview,
[data-theme="wood-legendary"] #rv-panel-intelligence,
[data-theme="wood-legendary"] #rv-panel-experiments,
[data-theme="wood-legendary"] #rv-panel-reports {
  background: transparent !important;
  background-color: transparent !important;
}

/* Badge LIVE — doré discret */
[data-theme="wood-legendary"] .rv-live-dot {
  background: transparent !important;
  color: #C9A84C !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  box-shadow: none !important;
}

/* Top badge */
[data-theme="wood-legendary"] #rv-top-badge {
  background: rgba(201,168,76,0.2) !important;
  color: #C9A84C !important;
}

/* ── Revenue — Tuer TOUS les fonds bleus/shimmers restants ── */
[data-theme="wood-legendary"] .rv-shimmer,
[data-theme="wood-legendary"] .rv-shimmer-line,
[data-theme="wood-legendary"] .rv-shimmer-row,
[data-theme="wood-legendary"] .rv-kpi-value.rv-shimmer,
[data-theme="wood-legendary"] [class*="rv-shimmer"] {
  background: rgba(180,130,70,0.12) !important;
  animation: none !important;
  color: transparent !important;
}

/* Forcer les avatar sale et top rank transparents */
[data-theme="wood-legendary"] .rv-sale-avatar {
  background: rgba(180,130,70,0.2) !important;
  border-color: rgba(180,130,70,0.4) !important;
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .rv-top-rank {
  background: rgba(180,130,70,0.2) !important;
  color: #2A1200 !important;
  font-weight: 900 !important;
}

/* Tous les divs enfants de rv-card transparents */
[data-theme="wood-legendary"] .rv-card div:not([class*="rv-card-"]):not([class*="rv-chart"]):not([class*="rv-donut"]):not([class*="rv-legend"]):not([class*="rv-top-"]):not([class*="rv-sale-"]):not([class*="rv-period"]):not([class*="rv-forecast"]) {
  background-color: transparent !important;
}

/* Style inline bleu sur le conteneur flex des donuts */
[data-theme="wood-legendary"] .rv-secondary-grid > div[style] {
  background: transparent !important;
}

/* Empty states bien visibles */
[data-theme="wood-legendary"] .rv-empty-state {
  color: rgba(255,245,220,0.7) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  background: transparent !important;
}

/* ── Revenue — Textes clés très visibles ── */
[data-theme="wood-legendary"] .rv-chart-tab {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .rv-chart-tab.active {
  color: #FFE8A0 !important;
  -webkit-text-fill-color: #FFE8A0 !important;
  border-bottom-color: #C9A84C !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .rv-card-badge,
[data-theme="wood-legendary"] #rv-top-badge {
  color: #FFF5DC !important;
  -webkit-text-fill-color: #FFF5DC !important;
  background: rgba(201,168,76,0.25) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .rv-live-dot {
  color: #FFE8A0 !important;
  -webkit-text-fill-color: #FFE8A0 !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

/* ========================================
   GIRI ACADEMIE — STRIPE CONNECT
   ======================================== */

/* Page, header, grille — transparents */
[data-theme="wood-legendary"] .ga-connect-page,
[data-theme="wood-legendary"] .ga-connect-header,
[data-theme="wood-legendary"] .ga-connect-grid {
  background: transparent !important;
}

/* Titre et sous-titre */
[data-theme="wood-legendary"] .ga-connect-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ga-connect-subtitle {
  color: rgba(255,245,220,0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* Cards — bois moyen */
[data-theme="wood-legendary"] .ga-connect-card,
[data-theme="wood-legendary"] .ga-connect-main-card,
[data-theme="wood-legendary"] .ga-connect-info-card {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}

/* Card inactive — bois foncé */
[data-theme="wood-legendary"] .ga-connect-inactive {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.2) !important;
}

/* Titres cartes */
[data-theme="wood-legendary"] .ga-connect-card-title {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

/* Hero section */
[data-theme="wood-legendary"] .ga-connect-hero {
  background: transparent !important;
}
[data-theme="wood-legendary"] .ga-connect-hero-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-connect-hero-desc {
  color: rgba(255,245,220,0.75) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .ga-connect-hero-icon {
  background: transparent !important;
}

/* Features */
[data-theme="wood-legendary"] .ga-connect-feature {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Info rows */
[data-theme="wood-legendary"] .ga-connect-info-row,
[data-theme="wood-legendary"] .ga-connect-info-item {
  border-bottom-color: rgba(180,130,70,0.2) !important;
}
[data-theme="wood-legendary"] .ga-connect-info-label {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .ga-connect-info-value {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}

/* Steps */
[data-theme="wood-legendary"] .ga-connect-step {
  color: rgba(255,245,220,0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .ga-connect-step-num {
  background: rgba(201,168,76,0.2) !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-connect-step-done {
  background: rgba(180,130,70,0.3) !important;
  border-color: rgba(201,168,76,0.6) !important;
}

/* Commission box — bois clair */
[data-theme="wood-legendary"] .ga-connect-commission-box {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-connect-commission-box * {
  color: #1A0800 !important;
  -webkit-text-fill-color: #1A0800 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}

/* Status badges */
[data-theme="wood-legendary"] .ga-connect-status-active {
  background: rgba(20,80,20,0.6) !important;
  border: 1px solid rgba(100,200,100,0.5) !important;
  color: #90EE90 !important;
}
[data-theme="wood-legendary"] .ga-connect-status-inactive {
  background: rgba(80,20,20,0.6) !important;
  border: 1px solid rgba(200,80,80,0.5) !important;
  color: #FFB0B0 !important;
}

/* Bouton onboard */
[data-theme="wood-legendary"] .ga-connect-onboard-btn,
[data-theme="wood-legendary"] .ga-connect-card .btn-academy.btn-primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .ga-connect-onboard-btn:hover {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; filter: brightness(1.1) !important;
}

/* Bouton retour */
[data-theme="wood-legendary"] .ga-connect-back {
  color: #FFF5DC !important;
  border-color: rgba(180,130,70,0.3) !important;
}

/* Icône big */
[data-theme="wood-legendary"] .ga-connect-icon-big {
  background: transparent !important;
}

/* Textes généraux */
[data-theme="wood-legendary"] .ga-connect-page p,
[data-theme="wood-legendary"] .ga-connect-page span,
[data-theme="wood-legendary"] .ga-connect-page small {
  color: rgba(255,245,220,0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* ── Stripe Connect — Ombre sur les info items ── */
[data-theme="wood-legendary"] .ga-connect-info-item {
  background: rgba(255,240,200,0.30) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 0 10px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.1) !important;
}

/* ── Stripe Connect — Ombre autour du bouton Stripe ── */
html[data-theme="wood-legendary"] body #rv-stripe-btn,
html[data-theme="wood-legendary"] body button#rv-stripe-btn,
html[data-theme="wood-legendary"] body .rv-header-actions #rv-stripe-btn {
  border-radius: 12px !important;
  box-shadow: 0 0 10px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,150,0.1) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  background: rgba(255,240,200,0.30) !important;
  color: #FFF5DC !important;
  -webkit-text-fill-color: #FFF5DC !important;
}

/* ── Stripe Connect — Ombre derrière les cercles étapes ── */
html[data-theme="wood-legendary"] .ga-connect-step-num {
  box-shadow: 0 0 10px 3px rgba(0,0,0,0.28), 0 0 20px 6px rgba(0,0,0,0.17) !important;
  background: rgba(201,168,76,0.25) !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  color: #C9A84C !important;
}
html[data-theme="wood-legendary"] .ga-connect-step-done {
  box-shadow: 0 0 10px 3px rgba(0,0,0,0.28), 0 0 20px 6px rgba(0,0,0,0.17) !important;
  background: rgba(180,130,70,0.3) !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  color: #C9A84C !important;
}

/* ========================================
   GIRI ACADEMIE — AFFILIES
   ======================================== */

/* Conteneur + header — transparents */
[data-theme="wood-legendary"] .ga-affiliates,
[data-theme="wood-legendary"] .ga-aff-header,
[data-theme="wood-legendary"] .ga-aff-kpi-grid {
  background: transparent !important;
}

/* Titres */
[data-theme="wood-legendary"] .ga-aff-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
  -webkit-text-fill-color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ga-aff-subtitle {
  color: rgba(255,245,220,0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}
[data-theme="wood-legendary"] .ga-aff-header-icon {
  background: transparent !important;
}

/* KPI cards — bois clair */
[data-theme="wood-legendary"] .ga-aff-kpi {
  background: url("textures/wood-light-premium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-aff-kpi-val {
  color: #2A1200 !important;
  -webkit-text-fill-color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .ga-aff-kpi-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-kpi-sub {
  color: rgba(42,18,0,0.60) !important;
}

/* Toolbar */
[data-theme="wood-legendary"] .ga-aff-toolbar {
  background: transparent !important;
}
[data-theme="wood-legendary"] .ga-aff-search,
[data-theme="wood-legendary"] .ga-aff-search-wrap input {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ga-aff-search::placeholder,
[data-theme="wood-legendary"] .ga-aff-search-wrap input::placeholder {
  color: rgba(255,245,220,0.35) !important;
}
[data-theme="wood-legendary"] .ga-aff-filter,
[data-theme="wood-legendary"] .ga-aff-select {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}

/* Table wrap + panel — bois moyen */
[data-theme="wood-legendary"] .ga-aff-table-wrap,
[data-theme="wood-legendary"] .ga-aff-panel {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 12px 4px rgba(0,0,0,0.35), 0 0 32px 8px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,220,150,0.12) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-aff-panel-title {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-panel-subtitle {
  color: rgba(255,245,220,0.6) !important;
}

/* Tableaux */
[data-theme="wood-legendary"] .ga-aff-table,
[data-theme="wood-legendary"] .ga-aff-sales-table {
  background: transparent !important;
}
[data-theme="wood-legendary"] .ga-aff-table th,
[data-theme="wood-legendary"] .ga-aff-sales-table th {
  background: rgba(201,168,76,0.15) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  border-color: rgba(201,168,76,0.2) !important;
}
[data-theme="wood-legendary"] .ga-aff-table td,
[data-theme="wood-legendary"] .ga-aff-sales-table td {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
  border-color: rgba(201,168,76,0.15) !important;
  background: transparent !important;
}
[data-theme="wood-legendary"] .ga-aff-table tr:hover td,
[data-theme="wood-legendary"] .ga-aff-sales-table tr:hover td {
  background: rgba(201,168,76,0.1) !important;
}

/* Noms et emails */
[data-theme="wood-legendary"] .ga-aff-name {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-email {
  color: rgba(255,245,220,0.5) !important;
}
[data-theme="wood-legendary"] .ga-aff-comm {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-code {
  color: #C9A84C !important;
}

/* Status badges */
[data-theme="wood-legendary"] .ga-aff-status {
  text-shadow: none !important;
}

/* Stat rows */
[data-theme="wood-legendary"] .ga-aff-stat-row {
  border-color: rgba(180,130,70,0.15) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ga-aff-stats-mini {
  color: rgba(255,245,220,0.6) !important;
}

/* Link/token/code boxes */
[data-theme="wood-legendary"] .ga-aff-link-box,
[data-theme="wood-legendary"] .ga-aff-code-wrap,
[data-theme="wood-legendary"] .ga-aff-token-box {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #C9A84C !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .ga-aff-link-url {
  color: #FFE8A0 !important;
}
[data-theme="wood-legendary"] .ga-aff-link-label,
[data-theme="wood-legendary"] .ga-aff-token-label {
  color: rgba(255,245,220,0.5) !important;
}
[data-theme="wood-legendary"] .ga-aff-copy-btn {
  background: rgba(201,168,76,0.2) !important;
  color: #C9A84C !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
}

/* Modal — bois foncé */
[data-theme="wood-legendary"] .ga-aff-modal {
  background: url("textures/wood-dark.jpg") center / cover no-repeat scroll !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-aff-modal-header {
  background: url("textures/wood-medium.jpg") center / cover no-repeat scroll !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .ga-aff-modal-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-modal-body * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .ga-aff-modal-body .ga-aff-label {
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-modal-body .ga-aff-input,
[data-theme="wood-legendary"] .ga-aff-modal-body .ga-aff-select {
  background: rgba(20,10,0,0.6) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #FFF5DC !important;
}

/* Boutons */
[data-theme="wood-legendary"] .ga-aff-btn.primary,
[data-theme="wood-legendary"] .ga-aff-gen-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201,168,76,0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .ga-aff-btn.ghost {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .ga-aff-btn-icon {
  color: #FFF5DC !important;
  border-color: rgba(180,130,70,0.3) !important;
}
[data-theme="wood-legendary"] .ga-aff-payout-btn {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(180,130,70,0.4) !important;
  color: #FFF5DC !important;
}

/* Empty state */
[data-theme="wood-legendary"] .ga-aff-empty {
  color: rgba(255,245,220,0.6) !important;
}
[data-theme="wood-legendary"] .ga-aff-empty-title {
  color: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .ga-aff-empty-desc {
  color: rgba(255,245,220,0.6) !important;
}

/* ========================================
   GIRI ACADÉMIE — CODES PROMO
   ======================================== */

/* Conteneur + header — transparents */
[data-theme="wood-legendary"] #view-giri-academy .ga-coupons,
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-header,
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-kpi-grid,
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-toolbar {
  background: transparent !important;
  background-color: transparent !important;
}

/* Titres */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-subtitle {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* KPI cards → --wood-light */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-kpi {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-kpi-val {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-kpi-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-kpi-sub {
  color: rgba(42, 18, 0, 0.60) !important;
}

/* Recherche + filtre */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-search,
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-search-wrap input {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-search::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-filter,
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-filter select {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}

/* Table wrapper → --wood-medium */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table-wrap {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Table lignes */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table table {
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table th {
  background: rgba(10, 5, 0, 0.85) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  border-color: rgba(201, 168, 76, 0.25) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table td {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
  border-color: rgba(201, 168, 76, 0.15) !important;
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table tr:nth-child(odd) td {
  background: rgba(42, 18, 0, 0.10) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table tr:hover td {
  background: rgba(201, 168, 76, 0.10) !important;
}

/* Code coupon (cellule CODE) */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-code {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* Badges réduction — remplacer couleurs vives */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-badge.percent {
  background: rgba(201, 168, 76, 0.2) !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-badge.fixed {
  background: rgba(42, 18, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
}

/* Barre d'utilisation */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-uses-track {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-uses-fill {
  background: linear-gradient(90deg, #8B6914, #C9A84C) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-uses-text {
  color: #FFF5DC !important;
}

/* Status actif/inactif */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-status {
  font-weight: 600 !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* Boutons icônes actions */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-btn-icon {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-btn-icon:hover {
  background: rgba(10, 5, 0, 0.85) !important;
  border-color: rgba(201, 168, 76, 0.7) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-btn-icon.danger {
  border-color: rgba(200, 80, 80, 0.4) !important;
  color: #FFB0B0 !important;
}

/* Modal → --wood-dark */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-modal {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-modal-header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-modal-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}

/* Formulaire modal */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-label {
  color: #C9A84C !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-input {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-input:focus {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-input::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}

/* Toggle type (% / fixe) */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-type-toggle {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-type-opt {
  color: rgba(255, 245, 220, 0.65) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-type-opt.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* Bouton générer code */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-gen-btn {
  background: rgba(10, 5, 0, 0.85) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #C9A84C !important;
  font-weight: 600 !important;
}

/* Boutons primary / ghost */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-btn.primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-btn.ghost {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
}

/* ========================================
   GIRI ACADÉMIE — CHECKOUT PROMO (STUDENT)
   ======================================== */

/* Zone promo checkout */
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-promo-row {
  background: rgba(20, 10, 0, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-promo-label {
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-promo-input {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-promo-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-promo-remove {
  color: #FFB0B0 !important;
}

/* Affichage réduction */
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-discount-wrap {
  background: rgba(20, 10, 0, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-discount-code {
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-discount-info,
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-discount-detail {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-discount.success {
  border-color: rgba(100, 180, 100, 0.5) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-discount.error {
  border-color: rgba(200, 80, 80, 0.5) !important;
  color: #FFB0B0 !important;
}

/* Prix checkout */
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-price-wrap {
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-price-original {
  color: rgba(255, 245, 220, 0.45) !important;
  text-decoration: line-through !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-checkout-price-final {
  color: #C9A84C !important;
  font-weight: 900 !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8) !important;
}

/* Toggle switch (admin) */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-toggle-track {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-toggle-label {
  color: rgba(255, 245, 220, 0.70) !important;
}

/* Empty state */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-empty {
  background: transparent !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-empty-icon {
  color: rgba(201, 168, 76, 0.4) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-empty-title {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-empty-desc {
  color: rgba(255, 245, 220, 0.55) !important;
}

/* Spinner */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-spinner {
  border-color: rgba(201, 168, 76, 0.2) !important;
  border-top-color: #C9A84C !important;
}

/* Modal close button */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-modal-close {
  color: rgba(255, 245, 220, 0.65) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-modal-close:hover {
  color: #FFF5DC !important;
}

/* Modal footer */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-modal-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.2) !important;
  background: transparent !important;
}

/* Code copy button */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-code-copy {
  color: rgba(201, 168, 76, 0.7) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-code-copy:hover {
  color: #C9A84C !important;
}

/* Descriptions sous le code (colonne Code) — très clair */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table td span[style*="color:rgba(255,255,255,0.4)"] {
  color: #FFF5DC !important;
  opacity: 0.85 !important;
}

/* Colonne Validité — très clair */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table td[style*="color:rgba(255,255,255,0.6)"] {
  color: #FFF5DC !important;
  opacity: 0.9 !important;
}

/* Illimitée (opacity:0.45) — remonter */
[data-theme="wood-legendary"] #view-giri-academy .ga-coup-table td span[style*="opacity:0.45"] {
  opacity: 0.85 !important;
  color: #FFF5DC !important;
}

/* Badge % — fond moins transparent */
[data-theme=wood-legendary] #view-giri-academy .ga-coup-badge.percent {
  background: rgba(201, 168, 76, 0.55) !important;
  border: 1px solid rgba(201, 168, 76, 0.85) !important;
}

/* Statut Actif — vert moins transparent */
[data-theme=wood-legendary] #view-giri-academy .ga-coup-status.active {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #6effd3 !important;
}

/* Statut Inactif */
[data-theme=wood-legendary] #view-giri-academy .ga-coup-status.inactive {
  background: rgba(239, 68, 68, 0.30) !important;
  color: #ffb0b0 !important;
}

/* Statut Expiré */
[data-theme=wood-legendary] #view-giri-academy .ga-coup-status.expired {
  background: rgba(156, 163, 175, 0.30) !important;
  color: #e0e0e0 !important;
}

/* Header icon — fond transparent (enlève le dégradé violet du bundle) */
[data-theme=wood-legendary] #view-giri-academy .ga-coup-header-icon {
  background: transparent !important;
  box-shadow: none !important;
}

/* ========================================
   GIRI ACADÉMIE — PACKS DE FORMATIONS
   ======================================== */

[data-theme=wood-legendary] #view-giri-academy .bm-subtitle {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* ========================================
   GIRI ACADÉMIE — UNIVERS & FORMATIONS
   ======================================== */

/* Conteneurs — transparents */
[data-theme=wood-legendary] #view-giri-academy .fu-wrapper,
[data-theme=wood-legendary] #view-giri-academy .fu-grid,
[data-theme=wood-legendary] #view-giri-academy .academy-body,
[data-theme=wood-legendary] #view-giri-academy .formation-grid {
  background: transparent !important;
  background-color: transparent !important;
}

/* Header partagé */
[data-theme=wood-legendary] #view-giri-academy .academy-header {
  background: transparent !important;
  background-color: transparent !important;
}
[data-theme=wood-legendary] #view-giri-academy .academy-header-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}
[data-theme=wood-legendary] #view-giri-academy .academy-header-subtitle {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* ── CARTES UNIVERS → --wood-medium ── */
[data-theme=wood-legendary] #view-giri-academy .fu-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] #view-giri-academy .fu-card:hover {
  border-color: rgba(201, 168, 76, 0.7) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5) !important;
}

/* Carte Toutes les formations → --wood-light */
[data-theme=wood-legendary] #view-giri-academy .fu-card--all {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-color: rgba(201, 168, 76, 0.5) !important;
}
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-title,
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-count {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
}

/* Textes cartes univers sur bois moyen */
[data-theme=wood-legendary] #view-giri-academy .fu-card-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] #view-giri-academy .fu-card-count {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 500 !important;
}

/* Icône univers */
[data-theme=wood-legendary] #view-giri-academy .fu-card-icon {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

/* Flèche navigation */
[data-theme=wood-legendary] #view-giri-academy .fu-card-arrow {
  color: rgba(201, 168, 76, 0.6) !important;
}

/* ── CARTES FORMATIONS → --wood-medium ── */
[data-theme=wood-legendary] #view-giri-academy .formation-card,
[data-theme=wood-legendary] #view-giri-academy .fcard {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] #view-giri-academy .formation-card:hover,
[data-theme=wood-legendary] #view-giri-academy .fcard:hover {
  border-color: rgba(201, 168, 76, 0.7) !important;
}

/* Titre et description formation */
[data-theme=wood-legendary] #view-giri-academy .formation-card-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] #view-giri-academy .formation-card-desc {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Métadonnées */
[data-theme=wood-legendary] #view-giri-academy .formation-meta-item,
[data-theme=wood-legendary] #view-giri-academy .formation-meta-value {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* Miniature formation */
[data-theme=wood-legendary] #view-giri-academy .formation-thumbnail,
[data-theme=wood-legendary] #view-giri-academy .fcard-thumb {
  background: rgba(20, 10, 0, 0.4) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
}

/* Footer carte */
[data-theme=wood-legendary] #view-giri-academy .fcard-footer {
  background: rgba(20, 10, 0, 0.3) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.2) !important;
}

/* Badge certificat */
[data-theme=wood-legendary] #view-giri-academy .fcard-cert-badge {
  background: rgba(201, 168, 76, 0.2) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #C9A84C !important;
  font-weight: 600 !important;
}

/* Boutons éditer / tunnel */
[data-theme=wood-legendary] #view-giri-academy .fca-btn-edit,
[data-theme=wood-legendary] #view-giri-academy .fca-btn-tunnel {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] #view-giri-academy .fca-btn-edit:hover,
[data-theme=wood-legendary] #view-giri-academy .fca-btn-tunnel:hover {
  background: rgba(201, 168, 76, 0.15) !important;
  border-color: rgba(201, 168, 76, 0.7) !important;
}

/* Recherche */
[data-theme=wood-legendary] #view-giri-academy .ga-search-input {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] #view-giri-academy .ga-search-input::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}

/* Modal partagée → --wood-dark */
[data-theme=wood-legendary] #view-giri-academy .academy-modal {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] #view-giri-academy .academy-modal-header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme=wood-legendary] #view-giri-academy .academy-modal-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}

/* Formulaires dans modal */
[data-theme=wood-legendary] #view-giri-academy .form-label {
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] #view-giri-academy .form-control {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] #view-giri-academy .form-control::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}

/* Boutons primary / secondary */
[data-theme=wood-legendary] #view-giri-academy .btn-academy.btn-primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] #view-giri-academy .btn-academy.btn-secondary {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
}

/* Empty state */
[data-theme=wood-legendary] #view-giri-academy .academy-empty-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
}
[data-theme=wood-legendary] #view-giri-academy .academy-empty-desc {
  color: rgba(255, 245, 220, 0.60) !important;
}

/* ── UNIVERS — corrections ciblées ── */

/* Bouton + Élève */
[data-theme=wood-legendary] #view-giri-academy #fu-btn-add-student {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3) !important;
}

/* Icônes cartes univers */
[data-theme=wood-legendary] #view-giri-academy .fu-card-icon {
  background: rgba(42, 18, 0, 0.55) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
}

/* Carte Toutes les formations — texte sombre sur bois clair */
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-count {
  color: rgba(42, 18, 0, 0.65) !important;
  text-shadow: none !important;
}

/* ── UNIVERS — corrections lisibilité ── */

/* C1 — Titre MES UNIVERS — ombre renforcée */
[data-theme=wood-legendary] #view-giri-academy .academy-header-title,
[data-theme=wood-legendary] #view-giri-academy [class*=header-title] {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.99), 0px 0px 20px rgba(0,0,0,0.8) !important;
  font-weight: 900 !important;
}

/* C2 — Bouton Tableau de bord */
[data-theme=wood-legendary] #view-giri-academy .ga-btn-back-dashboard,
[data-theme=wood-legendary] #view-giri-academy [class*=back-dashboard],
[data-theme=wood-legendary] #view-giri-academy [class*=btn-back] {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.95) !important;
  font-weight: 600 !important;
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
}

/* C3 — Icône carte Toutes les formations — dégradé or noble */
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-icon {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.7) !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3) !important;
}

/* Titre MES UNIVERS — quasi blanc */
[data-theme=wood-legendary] #view-giri-academy .academy-header-title,
[data-theme=wood-legendary] #view-giri-academy [class*=header-title] {
  color: #FFFFFF !important;
  text-shadow: 0px 2px 10px rgba(0,0,0,1), 0px 0px 30px rgba(0,0,0,0.95) !important;
}

/* Icône Toutes les formations — fond transparent */
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Logo Toutes les formations — marron premium + ombre noble */
[data-theme=wood-legendary] #view-giri-academy .fu-card--all .fu-card-icon {
  filter: sepia(1) saturate(2.5) hue-rotate(350deg) brightness(0.55)
          drop-shadow(0 3px 14px rgba(139,69,19,0.75))
          drop-shadow(0 1px 4px rgba(0,0,0,0.95)) !important;
}

/* Titre Mes Univers — annule le gradient-clip transparent du bundle */
[data-theme=wood-legendary] #view-giri-academy h1.academy-header-title,
[data-theme=wood-legendary] #view-giri-academy .academy-header-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.99), 0px 0px 20px rgba(0,0,0,0.8) !important;
  font-weight: 900 !important;
}

/* Boutons + Élèves et + Créer un univers — bois très clair */
[data-theme=wood-legendary] #view-giri-academy #fu-btn-add-student,
[data-theme=wood-legendary] #view-giri-academy #fu-btn-create-universe {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] #view-giri-academy #fu-btn-add-student:hover,
[data-theme=wood-legendary] #view-giri-academy #fu-btn-create-universe:hover {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
}

/* ========================================
   GIRI ACADÉMIE — LISTE FORMATIONS (améliorations)
   ======================================== */

/* C1 — Bouton + Créer une formation → bois clair noble */
[data-theme=wood-legendary] #view-giri-academy #btn-create-formation,
[data-theme=wood-legendary] #view-giri-academy #btn-create-empty {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* C2 — Miniature formation — ombre fondue + bordure or */
[data-theme=wood-legendary] #view-giri-academy .fcard-thumb,
[data-theme=wood-legendary] #view-giri-academy .formation-thumbnail {
  box-shadow: 0 8px 20px rgba(0,0,0,0.6) !important;
  border-bottom: 3px solid rgba(201, 168, 76, 0.4) !important;
}

/* C3 — Bouton Éditer → bois foncé */
[data-theme=wood-legendary] #view-giri-academy .fca-btn-edit {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] #view-giri-academy .fca-btn-edit:hover {
  border-color: rgba(201, 168, 76, 0.8) !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2) !important;
}

/* C3 — Bouton Tunnel → override style inline vert */
[data-theme=wood-legendary] #view-giri-academy .fca-btn-tunnel,
[data-theme=wood-legendary] #view-giri-academy .btn-tunnel-formation {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  box-shadow: none !important;
}
[data-theme=wood-legendary] #view-giri-academy .fca-btn-tunnel:hover,
[data-theme=wood-legendary] #view-giri-academy .btn-tunnel-formation:hover {
  border-color: rgba(201, 168, 76, 0.8) !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.2) !important;
}

/* C4 — Métadonnées plus lisibles */
[data-theme=wood-legendary] #view-giri-academy .formation-meta-item,
[data-theme=wood-legendary] #view-giri-academy .formation-meta-value {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 500 !important;
}

/* C5 — Titre formation plus présent */
[data-theme=wood-legendary] #view-giri-academy .formation-card-title {
  color: #FFF5DC !important;
  -webkit-text-fill-color: #FFF5DC !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
}

/* C1 — Description + métadonnées renforcées */
[data-theme=wood-legendary] #view-giri-academy .formation-card-desc {
  color: rgba(255, 245, 220, 0.90) !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.95) !important;
  font-weight: 500 !important;
}
[data-theme=wood-legendary] #view-giri-academy .formation-meta-item,
[data-theme=wood-legendary] #view-giri-academy .formation-meta-value,
[data-theme=wood-legendary] #view-giri-academy .fcard-meta * {
  color: rgba(255, 245, 220, 0.90) !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.95) !important;
  font-weight: 600 !important;
}

/* C2 — Boutons Éditer / Tunnel — ombre omnidirectionnelle douce */
[data-theme=wood-legendary] #view-giri-academy .fca-btn-edit,
[data-theme=wood-legendary] #view-giri-academy .fca-btn-tunnel,
[data-theme=wood-legendary] #view-giri-academy .btn-tunnel-formation {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 8px !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 12px rgba(0,0,0,0.5), 0 0 4px rgba(201,168,76,0.15) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] #view-giri-academy .fca-btn-edit:hover,
[data-theme=wood-legendary] #view-giri-academy .fca-btn-tunnel:hover,
[data-theme=wood-legendary] #view-giri-academy .btn-tunnel-formation:hover {
  border-color: rgba(201, 168, 76, 0.8) !important;
  box-shadow: 0 0 16px rgba(0,0,0,0.6), 0 0 8px rgba(201,168,76,0.25) !important;
}

/* Footer carte — supprime la bande sombre */
[data-theme=wood-legendary] #view-giri-academy .fcard-footer,
[data-theme=wood-legendary] #view-giri-academy .formation-card-footer,
[data-theme=wood-legendary] #view-giri-academy [class*=fcard-footer] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-top: 1px solid rgba(201, 168, 76, 0.2) !important;
  box-shadow: none !important;
}

/* Header dashboard — alignement avec kpi-grid et dash-body (padding 32px) */
[data-theme=wood-legendary] .ga-dash-header {
  margin-left: 32px !important;
  margin-right: 32px !important;
}

/* Footer carte — sans filet */
[data-theme=wood-legendary] #view-giri-academy .fcard-footer,
[data-theme=wood-legendary] #view-giri-academy [class*=fcard-footer] {
  border-top: none !important;
}


/* ========================================
   GIRI ACADÉMIE — MODALE CRÉER UN UNIVERS
   ======================================== */

/* C1 — Angles arrondis modale */
[data-theme="wood-legendary"] #view-giri-academy .academy-modal,
[data-theme="wood-legendary"] #view-giri-academy [class*="fu-modal"] {
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] #view-giri-academy .academy-modal-body,
[data-theme="wood-legendary"] #view-giri-academy .fu-icon-grid {
  border-radius: 12px !important;
}

/* C2 — Titre modale */
[data-theme="wood-legendary"] #view-giri-academy .academy-modal-title,
[data-theme="wood-legendary"] #view-giri-academy [class*="modal-title"] {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
}

/* C2 — Labels */
[data-theme="wood-legendary"] #view-giri-academy .academy-modal .form-label,
[data-theme="wood-legendary"] #view-giri-academy .academy-modal label {
  color: #C9A84C !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

/* C2 — Input */
[data-theme="wood-legendary"] #view-giri-academy .academy-modal input,
[data-theme="wood-legendary"] #view-giri-academy .academy-modal .form-control {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] #view-giri-academy .academy-modal input::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}
[data-theme="wood-legendary"] #view-giri-academy .academy-modal input:focus {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}

/* C2 — Textes generaux modale */
[data-theme="wood-legendary"] #view-giri-academy .academy-modal p,
[data-theme="wood-legendary"] #view-giri-academy .academy-modal span,
[data-theme="wood-legendary"] #view-giri-academy .academy-modal small {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* C3 — Footer modale */
[data-theme="wood-legendary"] #view-giri-academy .academy-modal-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.25) !important;
  background: transparent !important;
  border-radius: 0 0 16px 16px !important;
}


/* ========================================
   GIRI ACADÉMIE — MODALES (injectées dans body)
   Sélecteur correct : [data-theme] .academy-modal-overlay
   ======================================== */

/* Overlay backdrop */
[data-theme="wood-legendary"] .academy-modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
}

/* Modale — texture bois foncé */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 16px !important;
  will-change: auto !important;
}

/* Header modale — bois medium */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Titre */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-title {
  color: #FFF5DC !important;
  -webkit-text-fill-color: #FFF5DC !important;
  background: none !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
}

/* Bouton fermer */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-close {
  color: rgba(255, 245, 220, 0.65) !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-close:hover {
  color: #FFF5DC !important;
}

/* Corps modale — transparent sur le bois foncé */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-body {
  background: transparent !important;
}

/* Labels */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal label,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal .form-label {
  color: #C9A84C !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

/* Inputs */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal input,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal .form-control,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal textarea,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal select {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal input::placeholder,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal textarea::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal input:focus,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal textarea:focus {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}

/* Textes generaux */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal p,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal span,
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal small {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* Boutons dans modale */
[data-theme="wood-legendary"] .academy-modal-overlay .btn-academy.btn-primary {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .btn-academy.btn-secondary {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
}

/* Footer modale */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-footer {
  background: transparent !important;
  border-top: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 0 0 16px 16px !important;
}

/* Grille icones univers */
[data-theme="wood-legendary"] .academy-modal-overlay .fu-icon-grid {
  background: rgba(20, 10, 0, 0.3) !important;
  border-radius: 10px !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .fu-icon-btn {
  background: rgba(20, 10, 0, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .fu-icon-btn--active,
[data-theme="wood-legendary"] .academy-modal-overlay .fu-icon-btn:hover {
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.7) !important;
}

/* Modales — sans filets dorés */
[data-theme=wood-legendary] .academy-modal-overlay .academy-modal {
  border: none !important;
}
[data-theme=wood-legendary] .academy-modal-overlay .academy-modal-header {
  border-bottom: none !important;
}
[data-theme=wood-legendary] .academy-modal-overlay .academy-modal-footer {
  border-top: none !important;
}

/* Modales — angles arrondis partout */
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-header {
  border-radius: 16px !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-body {
  border-radius: 0 !important;
}
[data-theme="wood-legendary"] .academy-modal-overlay .academy-modal-footer {
  border-radius: 0 0 16px 16px !important;
}

/* Bouton "Creer l'univers" — bois tres clair */
[data-theme="wood-legendary"] .academy-modal-overlay #fu-confirm {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}

/* ========================================
   GIRI ACADÉMIE — MODALE "INSCRIRE UN ÉLÈVE"
   #fu-bulk-overlay (body appendChild)
   ======================================== */

/* Arbre de sélection — bois clair */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-tree {
  background: transparent !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: rgba(230, 200, 155, 0.25) !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.18) !important;
  will-change: auto !important;
  padding: 4px 0 !important;
}

/* Enfants directs — transparents pour laisser voir le bois clair du .be-tree */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe,
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formations,
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-item {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

/* Bloc univers — séparateur doré entre univers */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe {
  border-bottom: 2px solid rgba(201, 168, 76, 0.25) !important;
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* En-tête univers — cb + icone + nom sur la même ligne */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe-header {
  gap: 8px !important;
  align-items: center !important;
  padding: 10px 4px !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe-cb {
  order: 1 !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe-icon {
  display: none !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe-name {
  order: 3 !important;
  color: #1A0A00 !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.06em !important;
  padding-left: 8px !important;
  margin-top: -3px !important;
  align-self: center !important;
  text-shadow: 0 1px 0 rgba(255, 200, 100, 0.3), 0 1px 4px rgba(0,0,0,0.08) !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

/* Badge compteur — masqué */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe-count {
  display: none !important;
}

/* Items formations — fond crème, ombre douce */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  margin: 4px 8px !important;
  border-bottom: none !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 8px !important;
  background: rgba(255, 245, 220, 0.45) !important;
  box-shadow: 0 2px 6px rgba(42, 18, 0, 0.18), 0 1px 2px rgba(42, 18, 0, 0.12) !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-item:last-child {
  border-bottom: none !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-item:hover {
  background: rgba(255, 245, 220, 0.65) !important;
  box-shadow: 0 4px 10px rgba(42, 18, 0, 0.25), 0 1px 3px rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.45) !important;
}

/* Checkbox formation — espacement */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-cb {
  flex-shrink: 0 !important;
  margin-right: 0 !important;
}

/* Titre formation */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-title {
  color: #1A0A00 !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.04em !important;
  padding-left: 6px !important;
  margin-top: -1px !important;
  text-shadow: 0 1px 0 rgba(255, 200, 100, 0.25) !important;
  line-height: 1.2 !important;
}

/* Checkboxes — doré */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-universe-cb,
[data-theme="wood-legendary"] #fu-bulk-overlay .be-formation-cb,
[data-theme="wood-legendary"] #fu-bulk-overlay #be-select-all {
  accent-color: #8B6914 !important;
}

/* "Tout sélectionner" */
[data-theme="wood-legendary"] #fu-bulk-overlay .be-select-all-label {
  color: #C9A84C !important;
  border-bottom-color: rgba(201, 168, 76, 0.25) !important;
}

/* Compteur sélection */
[data-theme="wood-legendary"] #fu-bulk-overlay #be-selected-count {
  color: rgba(255, 245, 220, 0.65) !important;
}

/* Instruction helper text */
[data-theme="wood-legendary"] #fu-bulk-overlay .academy-modal-body > .form-group > p {
  color: rgba(255, 245, 220, 0.82) !important;
}

/* Bouton "Inscrire l'élève" — bois clair */
[data-theme="wood-legendary"] #fu-bulk-overlay #be-confirm {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] #fu-bulk-overlay #be-confirm:disabled {
  opacity: 0.45 !important;
  box-shadow: none !important;
}


/* ========================================
   GIRI ACADÉMIE — MES UNIVERS
   Boutons Renommer + Supprimer : petits,
   empilés à droite, toujours visibles
   ======================================== */

/* Espace pour les boutons absolus */
[data-theme="wood-legendary"] #view-giri-academy .fu-card--draggable {
  padding-right: 52px !important;
}

/* Boutons — position absolue empilée à droite */
[data-theme="wood-legendary"] #view-giri-academy .fu-card-rename,
[data-theme="wood-legendary"] #view-giri-academy .fu-card-delete {
  position: absolute !important;
  right: 10px !important;
  opacity: 0.45 !important;
  padding: 5px !important;
  border-radius: 6px !important;
  border: none !important;
  background: none !important;
  color: #3A1E00 !important;
  box-shadow: none !important;
  transition: opacity .18s !important;
}

/* Renommer — en haut */
[data-theme="wood-legendary"] #view-giri-academy .fu-card-rename {
  top: calc(50% - 26px) !important;
}

/* Supprimer — en bas */
[data-theme="wood-legendary"] #view-giri-academy .fu-card-delete {
  top: calc(50% + 2px) !important;
}

/* Hover — simple hausse d'opacité */
[data-theme="wood-legendary"] #view-giri-academy .fu-card:hover .fu-card-rename,
[data-theme="wood-legendary"] #view-giri-academy .fu-card:hover .fu-card-delete,
[data-theme="wood-legendary"] #view-giri-academy .fu-card-rename:hover,
[data-theme="wood-legendary"] #view-giri-academy .fu-card-delete:hover {
  opacity: 1 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Handle drag — légèrement décalé pour ne pas gêner */
[data-theme="wood-legendary"] #view-giri-academy .fu-card-handle {
  display: none !important;
}


/* ========================================
   TeamMessaging — bouton + Nouvelle conversation
   ======================================== */
[data-theme=wood-legendary] .msg-new-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* ========================================
   GiriVision — boutons bois très clair
   ======================================== */

/* Bouton → Rejoindre par code */
[data-theme=wood-legendary] .vision-btn-join-small {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* Bouton ▶ Démarrer / Enregistrer (modal + header) */
[data-theme=wood-legendary] #view-giri-vision .vision-btn-primary,
[data-theme=wood-legendary] #vision-create-modal .vision-btn-primary {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* Bouton Mes formations — bois très clair */
[data-theme=wood-legendary] #ga-dash-btn-formations {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  text-shadow: none !important;
  will-change: auto !important;
}

/* Bouton Mes formations — bois très clair (spécificité max) */
[data-theme=wood-legendary] #view-giri-academy #ga-dash-btn-formations {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  text-shadow: none !important;
  will-change: auto !important;
}

/* Mes formations — background shorthand pour écraser le gradient */
[data-theme=wood-legendary] #view-giri-academy #ga-dash-btn-formations {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  text-shadow: none !important;
}

/* ========================================
   GIRI ACADÉMIE — ÉDITEUR DE FORMATION
   ======================================== */

/* Layout global — transparent */
[data-theme="wood-legendary"] .editor-layout,
[data-theme="wood-legendary"] #modules-list {
  background: transparent !important;
  background-color: transparent !important;
}

/* Barre onglets du haut */
[data-theme="wood-legendary"] .fce-tabs {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,220,120,0.15) !important;
  align-items: flex-end !important;
  justify-content: center !important;
  margin: 0 28px !important;
  padding: 12px 16px 0 16px !important;
  overflow: visible !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .fce-tab {
  background: rgba(20, 10, 0, 0.35) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  color: rgba(255, 245, 220, 0.75) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 10px !important;
  align-self: stretch !important;
  margin-bottom: 0 !important;
  padding-bottom: 10px !important;
}
[data-theme="wood-legendary"] .fce-tab--active {
  background-color: #8B5E1A !important;
  background-image: url("textures/wood-light-premium.jpg?v=1774293320") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  margin-bottom: -10px !important;
  padding-bottom: 18px !important;
}

/* Zone centrale éditeur */
[data-theme="wood-legendary"] .editor-main {
  background: transparent !important;
  background-color: transparent !important;
}

/* Modules items — wood-medium */
[data-theme="wood-legendary"] .module-item {
  background-image:
    linear-gradient(to right, rgba(10,4,0,0.70) 0px, transparent 70px, transparent 830px, rgba(10,4,0,0.70) 900px),
    linear-gradient(to bottom, rgba(10,4,0,0.70) 0px, transparent 70px, transparent 830px, rgba(10,4,0,0.70) 900px),
    url("textures/wood-medium.jpg") !important;
  background-size: 900px 900px !important;
  background-repeat: repeat !important;
  background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
  overflow: hidden !important;
  will-change: auto !important;
}

/* Input titre module */
[data-theme="wood-legendary"] .module-title-input {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .module-title-input:focus {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}

/* Leçons items */
[data-theme="wood-legendary"] .lesson-item {
  background: rgba(255, 245, 220, 0.50) !important;
  border: 1px solid rgba(201, 168, 76, 0.15) !important;
  border-radius: 8px !important;
  margin: 4px 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}
[data-theme="wood-legendary"] .lesson-item:hover {
  background: rgba(201, 168, 76, 0.1) !important;
  border-color: rgba(201, 168, 76, 0.35) !important;
}
[data-theme="wood-legendary"] .lesson-title {
  color: #2A1200 !important;
  text-shadow: 0px 1px 2px rgba(255,180,80,0.2) !important;
  font-weight: 600 !important;
}

/* Bouton + Ajouter une lecon */
[data-theme="wood-legendary"] .lessons-list .btn-academy.btn-secondary {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px dashed rgba(201, 168, 76, 0.4) !important;
  color: #C9A84C !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .lessons-list .btn-academy.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.12) !important;
  border-color: rgba(201, 168, 76, 0.7) !important;
}

/* Panneau deblocage contenu */
[data-theme="wood-legendary"] .module-drip-panel {
  background: rgba(20, 10, 0, 0.35) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 8px !important;
  color: rgba(255, 245, 220, 0.80) !important;
}
[data-theme="wood-legendary"] .drip-type-select,
[data-theme="wood-legendary"] .drip-days-input,
[data-theme="wood-legendary"] .drip-module-select {
  background: rgba(20, 10, 0, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}

/* Panneau lateral droit — wood-dark */
[data-theme="wood-legendary"] .editor-sidebar {
  background-image:
    linear-gradient(to right, rgba(10,4,0,0.70) 0px, transparent 50px, transparent 450px, rgba(10,4,0,0.70) 500px),
    linear-gradient(to bottom, rgba(10,4,0,0.70) 0px, transparent 50px, transparent 450px, rgba(10,4,0,0.70) 500px),
    url("textures/wood-medium.jpg") !important;
  background-size: 500px 500px !important;
  background-repeat: repeat !important;
  background-attachment: scroll !important;
  border-left: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  will-change: auto !important;
}

/* Sections du panneau */
[data-theme="wood-legendary"] .editor-section {
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
  background: transparent !important;
}
[data-theme="wood-legendary"] .editor-section-title {
  color: #FFFFFF !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 1px 0px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
}

/* Inputs panneau lateral */
[data-theme="wood-legendary"] #f-title,
[data-theme="wood-legendary"] #f-category,
[data-theme="wood-legendary"] #f-desc,
[data-theme="wood-legendary"] #f-price {
  background: rgba(20, 10, 0, 0.82) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] #f-title:focus,
[data-theme="wood-legendary"] #f-desc:focus,
[data-theme="wood-legendary"] #f-price:focus {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}
[data-theme="wood-legendary"] #f-title::placeholder,
[data-theme="wood-legendary"] #f-desc::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}

/* Bascule Gratuit/Payant */
[data-theme="wood-legendary"] #f-toggle-free,
[data-theme="wood-legendary"] #f-toggle-paid {
  background: rgba(20, 10, 0, 0.4) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: rgba(255, 245, 220, 0.75) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] #f-toggle-free.active,
[data-theme="wood-legendary"] #f-toggle-paid.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* Bouton + Ajouter un module */
[data-theme="wood-legendary"] #btn-add-module {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3) !important;
  text-shadow: none !important;
}
[data-theme="wood-legendary"] #btn-add-module:hover {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; filter: brightness(1.1) !important;
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.5) !important;
}

/* Labels generaux editeur */
[data-theme="wood-legendary"] .editor-sidebar label,
[data-theme="wood-legendary"] .editor-sidebar .form-label {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 1px 0px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.05em !important;
}

/* ========================================
   ÉDITEUR — CORRECTIONS BOUTONS & POLISH
   ======================================== */

/* + Ajouter un module — wood-light (background shorthand pour override fiable) */
[data-theme="wood-legendary"] #view-giri-academy #btn-add-module {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] #view-giri-academy #btn-add-module:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.4), 0 0 8px rgba(201,168,76,0.3) !important;
}

/* + Ajouter une leçon — wood-light */
[data-theme="wood-legendary"] .lessons-list .btn-academy.btn-secondary,
[data-theme="wood-legendary"] [data-action="add-lesson"] {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* Bouton Enregistrer / btn-primary panneau lateral */
[data-theme="wood-legendary"] .editor-sidebar .btn-academy.btn-primary {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 6px rgba(201,168,76,0.2) !important;
  will-change: auto !important;
}

/* Bascule Gratuit/Payant */
[data-theme="wood-legendary"] #f-toggle-free,
[data-theme="wood-legendary"] #f-toggle-paid {
  background: rgba(20, 10, 0, 0.78) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  color: rgba(255, 245, 220, 0.65) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] #f-toggle-free.active,
[data-theme="wood-legendary"] #f-toggle-paid.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Statistiques rapides — valeurs en dore */
[data-theme="wood-legendary"] .editor-sidebar [class*="stat-value"],
[data-theme="wood-legendary"] .editor-sidebar [class*="stats"] td:last-child,
[data-theme="wood-legendary"] .editor-sidebar [class*="stats"] span:last-child {
  color: #C9A84C !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Textes secondaires sidebar lisibles */
[data-theme="wood-legendary"] .editor-sidebar small {
  color: rgba(255, 245, 220, 0.92) !important;
  text-shadow: 0px 2px 5px rgba(0,0,0,0.95) !important;
}

/* Supprimer cette formation — rouge brique tamise */
[data-theme="wood-legendary"] .editor-sidebar .btn-danger {
  background: rgba(80, 20, 20, 0.5) !important;
  border: 1px solid rgba(180, 60, 60, 0.4) !important;
  color: rgba(255, 180, 180, 0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .editor-sidebar .btn-danger:hover {
  background: rgba(120, 30, 30, 0.6) !important;
  border-color: rgba(200, 80, 80, 0.6) !important;
}

/* Enregistrer — ID direct + background shorthand */
[data-theme="wood-legendary"] #btn-save-settings {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 6px rgba(201,168,76,0.2) !important;
  will-change: auto !important;
}

/* + Ajouter une lecon — data-action direct */
[data-theme="wood-legendary"] [data-action="add-lesson"] {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* Enregistrer — spécificité maximale (2 IDs) */
[data-theme="wood-legendary"] #view-giri-academy #btn-save-settings {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 6px rgba(201,168,76,0.2) !important;
  will-change: auto !important;
}

/* + Ajouter une leçon — ID + attribut bat toutes les classes */
[data-theme="wood-legendary"] #view-giri-academy [data-action="add-lesson"] {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
}

/* Boutons actions leçon — ombre premium */
[data-theme=wood-legendary] .btn-lesson-action {
  box-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,150,0.15) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  background: rgba(42, 18, 0, 0.55) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}
[data-theme=wood-legendary] .btn-lesson-action:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,220,150,0.25) !important;
  border-color: rgba(201, 168, 76, 0.65) !important;
  background: rgba(60, 28, 0, 0.70) !important;
}

/* Statistiques rapides — labels et valeurs bien lisibles */
[data-theme=wood-legendary] .editor-sidebar .editor-section-body span {
  color: #FFFFFF !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95), 0px 1px 0px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .editor-sidebar .editor-section-body strong {
  color: #C9A84C !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
}

/* Labels sidebar éditeur — spécificité max (1,3,0) */
[data-theme=wood-legendary] #view-giri-academy .editor-sidebar .form-label,
[data-theme=wood-legendary] #view-giri-academy .editor-sidebar label {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 1px 0px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.05em !important;
}

/* Titres de section sidebar (TARIFICATION, MINIATURE…) */
[data-theme=wood-legendary] #view-giri-academy .editor-sidebar .editor-section-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,1), 0px 1px 0px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.07em !important;
}

/* Icônes modules — visibles sur fond bois */
[data-theme=wood-legendary] .module-expand-icon,
[data-theme=wood-legendary] .module-drag-handle {
  color: #FFF5DC !important;
  filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.9)) !important;
  opacity: 1 !important;
}

/* Badge nombre de leçons par module */
[data-theme=wood-legendary] .module-lesson-count {
  background: rgba(80, 35, 5, 0.46) !important;
  color: #FFF5DC !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

/* Espacement entre Tarification et Miniature (éditeur formation) */
[data-theme="wood-legendary"] .editor-sidebar .form-group:has(#f-thumbnail) {
  margin-top: 20px !important;
}


/* ========================================
   GIRI ACADÉMIE — ÉDITEUR DE CERTIFICAT (cev2)
   ======================================== */

/* Layout global */
[data-theme="wood-legendary"] .cev2-layout {
  background: transparent !important;
}

/* Panel gauche — mosaïque bois medium avec fondu */
[data-theme="wood-legendary"] .cev2-panel {
  background-image:
    linear-gradient(to right, rgba(10,4,0,0.70) 0px, transparent 50px, transparent 330px, rgba(10,4,0,0.70) 380px),
    linear-gradient(to bottom, rgba(10,4,0,0.70) 0px, transparent 50px, transparent 330px, rgba(10,4,0,0.70) 380px),
    url("textures/wood-medium.jpg") !important;
  background-size: 380px 380px !important;
  background-repeat: repeat !important;
  background-attachment: scroll !important;
  border-right: 1px solid rgba(201, 168, 76, 0.35) !important;
}

/* Header panel gauche */
[data-theme="wood-legendary"] .cev2-panel-header {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4) !important;
}

[data-theme="wood-legendary"] .cev2-panel-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
}

/* Sections */
[data-theme="wood-legendary"] .cev2-section {
  border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
  background: transparent !important;
}

[data-theme="wood-legendary"] .cev2-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
}

/* Template cards */
[data-theme="wood-legendary"] .cev2-template-card {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
}
[data-theme="wood-legendary"] .cev2-template-card:hover {
  background: rgba(201, 168, 76, 0.12) !important;
  border-color: rgba(201, 168, 76, 0.5) !important;
}
[data-theme="wood-legendary"] .cev2-template-card.active {
  background: rgba(201, 168, 76, 0.18) !important;
  border-color: rgba(201, 168, 76, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] .cev2-tpl-name {
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cev2-tpl-desc {
  color: rgba(255, 245, 220, 0.45) !important;
}

/* Labels */
[data-theme="wood-legendary"] .cev2-label {
  color: rgba(201, 168, 76, 0.85) !important;
}

/* Inputs & selects */
[data-theme="wood-legendary"] .cev2-input,
[data-theme="wood-legendary"] .cev2-select {
  background: rgba(20, 10, 0, 0.55) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cev2-input::placeholder {
  color: rgba(255, 245, 220, 0.25) !important;
}
[data-theme="wood-legendary"] .cev2-input:focus,
[data-theme="wood-legendary"] .cev2-select:focus {
  border-color: rgba(201, 168, 76, 0.8) !important;
  background: rgba(20, 10, 0, 0.65) !important;
}
[data-theme="wood-legendary"] .cev2-color-hex {
  background: rgba(20, 10, 0, 0.55) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cev2-color-pick {
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  background: rgba(20, 10, 0, 0.4) !important;
}

/* Toggles */
[data-theme="wood-legendary"] .cev2-toggle-row {
  border-bottom: 1px solid rgba(201, 168, 76, 0.08) !important;
}
[data-theme="wood-legendary"] .cev2-toggle-label {
  color: rgba(255, 245, 220, 0.75) !important;
}

/* Variable chips */
[data-theme="wood-legendary"] .cev2-var-chip {
  background: rgba(201, 168, 76, 0.12) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #C9A84C !important;
}
[data-theme="wood-legendary"] .cev2-var-chip:hover {
  background: rgba(201, 168, 76, 0.22) !important;
}

/* Boutons */
[data-theme="wood-legendary"] .cev2-btn-primary {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  text-shadow: none !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35) !important;
}
[data-theme="wood-legendary"] .cev2-btn-ghost {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: rgba(255, 245, 220, 0.7) !important;
}
[data-theme="wood-legendary"] .cev2-btn-ghost:hover {
  background: rgba(20, 10, 0, 0.65) !important;
  color: #FFF5DC !important;
}
[data-theme="wood-legendary"] .cev2-btn-icon {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  color: rgba(255, 245, 220, 0.6) !important;
}
[data-theme="wood-legendary"] .cev2-btn-export {
  background: rgba(201, 168, 76, 0.15) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  color: #C9A84C !important;
}

/* Preview droite — header */
[data-theme="wood-legendary"] .cev2-preview-header {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme="wood-legendary"] .cev2-preview-label {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .cev2-preview-hint {
  color: rgba(255, 245, 220, 0.4) !important;
}

/* Status bar */
[data-theme="wood-legendary"] .cev2-canvas-status {
  background: rgba(10, 5, 0, 0.6) !important;
  color: rgba(255, 245, 220, 0.35) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
}

/* Scrollbar */
[data-theme="wood-legendary"] .cev2-scroll::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.25) !important;
}

/* ========================================
   GIRI ACADÉMIE — ANALYTICS FORMATION
   ======================================== */

[data-theme="wood-legendary"] .anat-wrapper {
  background: transparent !important;
  background-color: transparent !important;
}
[data-theme="wood-legendary"] .anat-header {
  background: transparent !important;
}
[data-theme="wood-legendary"] .anat-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .anat-subtitle {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Boutons période */
[data-theme="wood-legendary"] .anat-period-btn {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: rgba(255, 245, 220, 0.70) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .anat-period-btn.active {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
[data-theme="wood-legendary"] .anat-period-btn:hover {
  background: rgba(201, 168, 76, 0.15) !important;
  border-color: rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
}

/* 4 KPI cards */
[data-theme="wood-legendary"] .anat-kpi {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .anat-kpi-value {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .anat-kpi--students .anat-kpi-value,
[data-theme="wood-legendary"] .anat-kpi--completion .anat-kpi-value,
[data-theme="wood-legendary"] .anat-kpi--revenue .anat-kpi-value,
[data-theme="wood-legendary"] .anat-kpi--time .anat-kpi-value {
  color: #2A1200 !important;
}
[data-theme="wood-legendary"] .anat-kpi-label {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .anat-kpi-sub {
  color: rgba(42, 18, 0, 0.60) !important;
  font-weight: 500 !important;
}
[data-theme="wood-legendary"] .anat-kpi-bar {
  background: rgba(42, 18, 0, 0.15) !important;
  border-radius: 4px !important;
}
[data-theme="wood-legendary"] .anat-kpi-bar-fill {
  background: linear-gradient(90deg, #8B6914, #C9A84C) !important;
  border-radius: 4px !important;
}

/* Cartes graphiques */
[data-theme="wood-legendary"] .anat-chart-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .anat-chart-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .anat-chart-wrap canvas {
  background: transparent !important;
  background-color: transparent !important;
}

/* Heatmap */
[data-theme="wood-legendary"] .anat-heatmap-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .anat-hm-label {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.95) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .anat-hm-cell {
  border-radius: 3px !important;
  opacity: 0.85 !important;
}

/* Sections bas de page (décrochage + risque) — bois foncé */
[data-theme="wood-legendary"] .anat-section {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .anat-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .anat-dropout-item {
  background: rgba(20, 10, 0, 0.3) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .anat-dropout-lesson,
[data-theme="wood-legendary"] .anat-dropout-module {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* Boîte IA */
[data-theme="wood-legendary"] .anat-ai-box {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 12px !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .anat-ai-text {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  font-weight: 600 !important;
}

/* Table risque */
[data-theme="wood-legendary"] .anat-risk-table {
  background: transparent !important;
}
[data-theme="wood-legendary"] .anat-risk-row {
  background: rgba(20, 10, 0, 0.25) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
  color: rgba(255, 245, 220, 0.85) !important;
}
[data-theme="wood-legendary"] .anat-risk-row:hover {
  background: rgba(201, 168, 76, 0.1) !important;
}
[data-theme="wood-legendary"] .anat-risk-badge {
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* Textes généraux dans le wrapper (pas span — trop large) */
[data-theme="wood-legendary"] .anat-wrapper p,
[data-theme="wood-legendary"] .anat-wrapper small {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* KPI cards — ombre premium sur les emojis */
[data-theme="wood-legendary"] .anat-kpi-icon {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55)) drop-shadow(0 1px 2px rgba(0,0,0,0.4)) drop-shadow(0 0 12px rgba(201,168,76,0.25)) !important;
  display: inline-block !important;
}

/* ========================================
   GIRI ACADÉMIE — SESSIONS LIVE
   ======================================== */

/* Bouton "+ Créer une session live" (état vide) */
[data-theme="wood-legendary"] .gl-session-empty-cta {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
  border-radius: 10px !important;
  will-change: auto !important;
}

/* Bouton "+ Nouvelle session" (en haut à droite) */
[data-theme="wood-legendary"] .gl-btn-new-session {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}

/* État vide */
[data-theme="wood-legendary"] .gl-session-empty-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
}
[data-theme="wood-legendary"] .gl-session-empty-sub {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Bouton "+ Nouvelle session" — renforcement spécificité via ID */
[data-theme="wood-legendary"] #btn-add-live-session {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}

/* Angles bas arrondis — seulement onglet actif */
[data-theme="wood-legendary"] .fce-tab:not(.fce-tab--active) {
  border-radius: 10px 10px 0 0 !important;
}

/* État vide Sessions Live — supprimer fond bleu + bouton marron clair */
[data-theme="wood-legendary"] .gl-session-empty {
  background: rgba(20, 10, 0, 0.25) !important;
  border: 1px dashed rgba(201, 168, 76, 0.35) !important;
}
[data-theme="wood-legendary"] .gl-session-empty-cta,
[data-theme="wood-legendary"] #btn-empty-new-session {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
  border-radius: 10px !important;
  will-change: auto !important;
}

/* Filet sous le header Sessions Live — remplace violet par or */
[data-theme="wood-legendary"] .gl-sessions-header {
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
}

/* Bouton + Nouvelle session — override !important du fichier source */
[data-theme="wood-legendary"] #btn-add-live-session,
[data-theme="wood-legendary"] .btn-add-live-session {
  background: url('textures/wood-light-premium.jpg?v=1774293320') center / cover no-repeat scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}

/* Filet violet sous header — supprimer ::after animé, remplacer par filet or */
[data-theme="wood-legendary"] .academy-header {
  border-bottom: 1px solid rgba(201, 168, 76, 0.30) !important;
}
[data-theme="wood-legendary"] .academy-header::after {
  display: none !important;
  content: none !important;
}

/* ========================================
   GIRI STORE — AFFILIATION (gsa-)
   ======================================== */

/* Panel principal */
[data-theme="wood-legendary"] .gsa-panel {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 16px !important;
  will-change: auto !important;
}

/* Sections */
[data-theme="wood-legendary"] .gsa-section {
  background: rgba(20, 10, 0, 0.25) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 12px !important;
}

/* Titres */
[data-theme="wood-legendary"] .gsa-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #FFF5DC !important;
  background: none !important;
}
[data-theme="wood-legendary"] .gsa-subtitle {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}
[data-theme="wood-legendary"] .gsa-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

/* Header */
[data-theme="wood-legendary"] .gsa-header {
  border-bottom: 1px solid rgba(201, 168, 76, 0.25) !important;
}

/* KPIs */
[data-theme="wood-legendary"] .gsa-kpi {
  background: rgba(20, 10, 0, 0.35) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 12px !important;
}
[data-theme="wood-legendary"] .gsa-kpi-value {
  color: #C9A84C !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.9) !important;
  font-weight: 800 !important;
}
[data-theme="wood-legendary"] .gsa-kpi-label {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.06em !important;
}

/* Inputs */
[data-theme="wood-legendary"] .gsa-link-input,
[data-theme="wood-legendary"] .gsa-field input,
[data-theme="wood-legendary"] .gsa-invite-fields input {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .gsa-link-input::placeholder,
[data-theme="wood-legendary"] .gsa-field input::placeholder,
[data-theme="wood-legendary"] .gsa-invite-fields input::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}
[data-theme="wood-legendary"] .gsa-link-input:focus,
[data-theme="wood-legendary"] .gsa-field input:focus,
[data-theme="wood-legendary"] .gsa-invite-fields input:focus {
  border-color: rgba(201, 168, 76, 0.9) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}

/* Bouton Copier */
[data-theme="wood-legendary"] .gsa-copy-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .gsa-copy-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.45) !important;
}

/* Bouton Inviter */
[data-theme="wood-legendary"] .gsa-invite-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  will-change: auto !important;
}

/* Bouton Save */
[data-theme="wood-legendary"] .gsa-save-btn {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Bouton Supprimer affilié */
[data-theme="wood-legendary"] .gsa-remove-btn {
  background: rgba(180, 40, 20, 0.25) !important;
  border: 1px solid rgba(200, 60, 40, 0.4) !important;
  color: rgba(255, 180, 160, 0.85) !important;
  border-radius: 8px !important;
}
[data-theme="wood-legendary"] .gsa-remove-btn:hover {
  background: rgba(200, 50, 30, 0.4) !important;
}

/* Carte affilié */
[data-theme="wood-legendary"] .gsa-affiliate-card {
  background: rgba(20, 10, 0, 0.35) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 12px !important;
}

/* Avatar affilié */
[data-theme="wood-legendary"] .gsa-aff-avatar {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border: 2px solid rgba(201, 168, 76, 0.5) !important;
}

/* Infos affilié */
[data-theme="wood-legendary"] .gsa-aff-name {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .gsa-aff-email,
[data-theme="wood-legendary"] .gsa-aff-link {
  color: rgba(255, 245, 220, 0.60) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
}

/* Stats affilié */
[data-theme="wood-legendary"] .gsa-aff-stat-lbl {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.06em !important;
}
[data-theme="wood-legendary"] .gsa-aff-stat-val {
  color: #C9A84C !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}

/* Commission */
[data-theme="wood-legendary"] .gsa-commission {
  background: rgba(20, 10, 0, 0.35) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 12px !important;
}
[data-theme="wood-legendary"] .gsa-commission-label {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gsa-commission-value {
  color: #C9A84C !important;
  font-weight: 800 !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.9) !important;
}

/* Range slider */
[data-theme="wood-legendary"] .gsa-range {
  accent-color: #C9A84C !important;
}
[data-theme="wood-legendary"] .gsa-range-labels {
  color: rgba(255, 245, 220, 0.65) !important;
}

/* Switch */
[data-theme="wood-legendary"] .gsa-switch-track {
  background: rgba(201, 168, 76, 0.5) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
}
[data-theme="wood-legendary"] .gsa-switch-thumb {
  background: #C9A84C !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
}
[data-theme="wood-legendary"] .gsa-switch-text {
  color: rgba(255, 245, 220, 0.80) !important;
}

/* Textes généraux */
[data-theme="wood-legendary"] .gsa-section p,
[data-theme="wood-legendary"] .gsa-invite-hint,
[data-theme="wood-legendary"] .gsa-public-hint {
  color: rgba(255, 245, 220, 0.75) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
}

/* Features */
[data-theme="wood-legendary"] .gsa-feature {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
}

/* Empty / Disabled state */
[data-theme="wood-legendary"] .gsa-empty-state,
[data-theme="wood-legendary"] .gsa-disabled-state {
  background: rgba(20, 10, 0, 0.25) !important;
  border: 1px dashed rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  color: rgba(255, 245, 220, 0.60) !important;
}
[data-theme="wood-legendary"] .gsa-empty-icon,
[data-theme="wood-legendary"] .gsa-disabled-icon {
  filter: sepia(0.6) saturate(1.5) hue-rotate(-10deg) !important;
}

/* ========================================
   GIRI STORE — AFFILIATION — Relief v2
   ======================================== */

/* C1 — KPI cards → bois très clair (ressortent) */
[data-theme="wood-legendary"] .gsa-kpi {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .gsa-kpi-value {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.3) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .gsa-kpi-label {
  color: rgba(42, 18, 0, 0.65) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* C2 — Section commission → bois medium */
[data-theme="wood-legendary"] .gsa-commission {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35) !important;
  will-change: auto !important;
}
[data-theme="wood-legendary"] .gsa-commission-label {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gsa-commission-value {
  color: #FFF5DC !important;
  font-weight: 800 !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.9) !important;
}

/* C3 — Carte affilié individuel → bois medium */
[data-theme="wood-legendary"] .gsa-affiliate-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35) !important;
  will-change: auto !important;
}

/* C4 — Titres de section → or */
[data-theme="wood-legendary"] .gsa-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}

/* C5 — Stats affilié sur bois medium → texte lisible */
[data-theme="wood-legendary"] .gsa-aff-stat-val {
  color: #C9A84C !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme="wood-legendary"] .gsa-aff-stat-lbl {
  color: rgba(255, 245, 220, 0.65) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

/* ========================================
   GIRI NETWORK — Wood Theme
   ======================================== */

/* Barre d'onglets → --wood-medium */
[data-theme="wood-legendary"] .gn-tabs {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 14px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .gn-tab {
  background: rgba(20, 10, 0, 0.35) !important;
  border-radius: 10px !important;
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}
[data-theme="wood-legendary"] .gn-tab--on {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #0F0500 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.4) !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
}

/* Cartes → assurer --wood-medium sur le corps */
[data-theme="wood-legendary"] .gn-card {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Zone thumbnail placeholder sans image */
[data-theme="wood-legendary"] .gn-thumb--ph {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
}

/* Corps de carte */
[data-theme="wood-legendary"] .gn-card-mid {
  background: transparent !important;
}
[data-theme="wood-legendary"] .gn-card-t {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
}
[data-theme="wood-legendary"] .gn-card-d {
  color: rgba(255, 245, 220, 0.75) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Bas de carte */
[data-theme="wood-legendary"] .gn-card-bot {
  background: rgba(20, 10, 0, 0.3) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.25) !important;
}

/* Prix gratuit → doré au lieu de vert */
[data-theme="wood-legendary"] .gn-price--free {
  color: #C9A84C !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Boutons Obtenir / Acheter → --wood-light */
[data-theme="wood-legendary"] .gn-card-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme="wood-legendary"] .gn-card-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 6px rgba(201,168,76,0.2) !important;
}

/* Bouton détail pleine largeur */
[data-theme="wood-legendary"] .gn-detail-buy {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  border-radius: 10px !important;
}

/* Titres de section */
[data-theme="wood-legendary"] .gn-section-title {
  color: #C9A84C !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}
[data-theme="wood-legendary"] .gn-section-count {
  background: rgba(201, 168, 76, 0.15) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #C9A84C !important;
  border-radius: 999px !important;
}

/* Header page */
[data-theme="wood-legendary"] .gn h1,
[data-theme="wood-legendary"] .gn-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}
[data-theme="wood-legendary"] .gn-subtitle {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Bouton Mettre en vente → bois très clair */
[data-theme=wood-legendary] .gn-cta {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #0F0500 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  text-shadow: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.4) !important;
  transition: all 0.2s ease !important;
}
[data-theme=wood-legendary] .gn-cta:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 10px rgba(201,168,76,0.2), inset 0 1px 0 rgba(255,240,180,0.4) !important;
  transform: translateY(-1px) !important;
}

/* Titre carte + meta (ventes) → beaucoup plus clair */
[data-theme=wood-legendary] .gn-card-t {
  color: #FFFFFF !important;
  text-shadow: 0px 1px 6px rgba(0,0,0,0.95), 0px 0px 12px rgba(0,0,0,0.6) !important;
}
[data-theme=wood-legendary] .gn-card-meta,
[data-theme=wood-legendary] .gn-card-meta span,
[data-theme=wood-legendary] .gn-sales {
  color: rgba(255, 245, 220, 0.9) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* ========================================
   GIRI NETWORK — Onglet Missions (Délégations)
   ======================================== */

/* Carte mission → bois clair */
[data-theme=wood-legendary] .gn-deleg {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-blend-mode: normal !important;
  background-color: transparent !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,240,180,0.1) !important;
}
[data-theme=wood-legendary] .gn-deleg:hover {
  border-color: rgba(201,168,76,0.6) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 16px rgba(201,168,76,0.12) !important;
}

/* Titre mission → blanc clair */
[data-theme=wood-legendary] .gn-deleg-head h3 {
  color: #FFFFFF !important;
  text-shadow: 0px 1px 6px rgba(0,0,0,0.95) !important;
}

/* Budget → doré lumineux */
[data-theme=wood-legendary] .gn-deleg-budget {
  color: #D4A44C !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.7) !important;
}

/* Description → crème clair */
[data-theme=wood-legendary] .gn-deleg-desc {
  color: rgba(255,245,220,0.85) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Footer meta (Par / Deadline / candidatures) → crème lisible */
[data-theme=wood-legendary] .gn-deleg-foot,
[data-theme=wood-legendary] .gn-deleg-foot span {
  color: rgba(255,245,220,0.75) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* Bouton Postuler → bois très clair */
[data-theme=wood-legendary] .gn-deleg-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  color: #0F0500 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,240,180,0.4) !important;
  transition: all 0.2s ease !important;
}
[data-theme=wood-legendary] .gn-deleg-btn:hover {
  border-color: rgba(201,168,76,0.75) !important;
  color: #0F0500 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 10px rgba(201,168,76,0.2) !important;
  transform: translateY(-1px) !important;
}

/* Sous-titre Giri Network → éclairci */
[data-theme=wood-legendary] .gn-sub {
  color: rgba(255,245,220,0.82) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}

/* Missions — tous les textes des cartes encore plus clairs */
[data-theme=wood-legendary] .gn-deleg * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.85) !important;
}
[data-theme=wood-legendary] .gn-deleg-budget {
  color: #F0C84A !important;
}
[data-theme=wood-legendary] .gn-deleg-btn,
[data-theme=wood-legendary] .gn-deleg-btn * {
  color: #0F0500 !important;
  text-shadow: none !important;
}

/* Dashboard — bouton Actualiser → bois très clair */
[data-theme=wood-legendary] .db-refresh-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #0F0500 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  text-shadow: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.4) !important;
  transition: all 0.2s ease !important;
}
[data-theme=wood-legendary] .db-refresh-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 10px rgba(201,168,76,0.2) !important;
  transform: translateY(-1px) !important;
}
[data-theme=wood-legendary] .db-refresh-btn svg {
  stroke: #0F0500 !important;
}

/* Dashboard KPI — bois très clair renforcé + suppression fond emoji */
[data-theme=wood-legendary] .db-kpi-big {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  background-blend-mode: normal !important;
}

/* Suppression du fond carré derrière les emojis */
[data-theme=wood-legendary] .db-kpi-big-icon,
[data-theme=wood-legendary] .db-kpi-big-icon--warn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Emojis KPI — ombre premium flottante */
[data-theme=wood-legendary] .db-kpi-big-icon {
  filter:
    drop-shadow(0px 4px 8px rgba(0,0,0,0.55))
    drop-shadow(0px 2px 4px rgba(0,0,0,0.4))
    drop-shadow(0px 0px 12px rgba(212,164,76,0.25))
    !important;
}

/* Badges ovales KPI — 25% opacité */
[data-theme=wood-legendary] .db-kpi-big-badge {
  opacity: 0.25 !important;
}

/* Dashboard — Mahayawen IA · samedi 28 mars → éclairci */
[data-theme=wood-legendary] .mbw-subtitle {
  color: rgba(255,245,220,0.78) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.6) !important;
}

/* Badges ovales KPI — opacité pleine (correction) */
[data-theme=wood-legendary] .db-kpi-big-badge {
  opacity: 1 !important;
}

/* mbw-subtitle — même couleur que mbw-title */
[data-theme=wood-legendary] .mbw-subtitle {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 3px rgba(0,0,0,0.3) !important;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD — Actions Rapides : mosaïque exceptionnelle
   ══════════════════════════════════════════════════════ */

[data-theme=wood-legendary] .db-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding: 4px 0 !important;
}

[data-theme=wood-legendary] .db-qa-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 18px 10px 14px !important;
  min-height: 88px !important;
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 14px !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.25),
    0 6px 18px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,240,180,0.35)
    !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}

[data-theme=wood-legendary] .db-qa-item:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.3),
    0 10px 28px rgba(0,0,0,0.25),
    0 0 14px rgba(212,164,76,0.15),
    inset 0 1px 0 rgba(255,240,180,0.45)
    !important;
}

[data-theme=wood-legendary] .db-qa-item:active {
  transform: translateY(0) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Emoji — grand et avec ombre premium */
[data-theme=wood-legendary] .db-qa-icon {
  font-size: 30px !important;
  line-height: 1 !important;
  filter:
    drop-shadow(0 3px 6px rgba(0,0,0,0.5))
    drop-shadow(0 0 10px rgba(212,164,76,0.2))
    !important;
}

/* Label — centré, marron foncé */
[data-theme=wood-legendary] .db-qa-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #1A0800 !important;
  text-shadow: 0 1px 0 rgba(255,200,100,0.3) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

/* Tuile Mode Focus — dorée */
[data-theme=wood-legendary] .db-qa-item.db-qa-item--hl {
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.3),
    0 6px 20px rgba(0,0,0,0.25),
    0 0 16px rgba(212,164,76,0.2),
    inset 0 1px 0 rgba(255,240,180,0.45)
    !important;
}

/* Mahayawen IA · samedi 28 mars → gras */
[data-theme=wood-legendary] .mbw-subtitle {
  font-weight: 700 !important;
}

/* Bouton Actualiser — texte marron foncé */
[data-theme=wood-legendary] .db-refresh-btn span {
  color: #1A0800 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Calendrier — ombre relief droite + bas sur chaque case */
[data-theme=wood-legendary] .gcal-mcell {
  box-shadow:
    2px 2px 5px rgba(0,0,0,0.22),
    1px 1px 0 rgba(0,0,0,0.08)
    !important;
}
[data-theme=wood-legendary] .gcal-mcell.today {
  box-shadow:
    inset 0 0 0 2px var(--gcal-today-ring),
    2px 2px 5px rgba(0,0,0,0.22)
    !important;
}


/* ========================================
   TUNNEL CLUB — Wood Theme
   ======================================== */

/* Header */
[data-theme=wood-legendary] .tc-header-v4 {
  background: transparent !important;
}
[data-theme=wood-legendary] .tc-title-v4 {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}

/* Stats inline */
[data-theme=wood-legendary] .tc-stat-pill {
  color: rgba(255, 245, 220, 0.80) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .tc-stat-dot {
  color: rgba(201, 168, 76, 0.5) !important;
}

/* Bouton "✨ Créer avec Maha" */
[data-theme=wood-legendary] #tc-btn-maha-create {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border: 1px solid rgba(201, 168, 76, 0.7) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4) !important;
}
[data-theme=wood-legendary] #tc-btn-maha-create:hover {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; filter: brightness(1.1) !important;
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.6) !important;
}

/* Filtres */
[data-theme=wood-legendary] .tc-filters-v4 {
  background: transparent !important;
}
[data-theme=wood-legendary] .tc-filter-v4 {
  background: rgba(20, 10, 0, 0.35) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  color: rgba(255, 245, 220, 0.65) !important;
  border-radius: 8px !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .tc-filter-v4.active {
  background-image: var(--wood-light) !important; background-size: 320px auto !important; background-repeat: repeat !important; background-attachment: scroll !important;
  border-color: rgba(201, 168, 76, 0.8) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Recherche */
[data-theme=wood-legendary] .tc-search-v4 {
  background: rgba(20, 10, 0, 0.45) !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .tc-search-input-v4 {
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .tc-search-input-v4::placeholder {
  color: rgba(255, 245, 220, 0.35) !important;
}

/* Cartes tunnels */
/* ═══════════════════════════════════════════════════════
   TUNNEL CARDS BOIS v3 — Planche claire, marron sur ivoire
   Barre actions bois sculpté ultra-classe
   ═══════════════════════════════════════════════════════ */

[data-theme=wood-legendary] .tc-card-v4 {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(160, 100, 30, 0.4) !important;
  border-radius: 16px !important;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.12) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  overflow: hidden !important;
}

[data-theme=wood-legendary] .tc-card-v4:hover {
  border-color: rgba(180, 120, 30, 0.75) !important;
  box-shadow:
    0 10px 32px rgba(0,0,0,0.38),
    0 0 0 1px rgba(201,168,76,0.25),
    0 0 20px rgba(201,168,76,0.1),
    inset 0 1px 0 rgba(255,255,255,0.55) !important;
  transform: translateY(-4px) translateZ(0) !important;
}

/* CORPS : transparent — on voit le bois directement */
[data-theme=wood-legendary] .tc-card-v4-body {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 12px 14px !important;
}

/* Nom : beige clair sur bois sombre */
[data-theme=wood-legendary] .tc-card-v4-name {
  color: #FFF5DC !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

/* Meta & URL */
[data-theme=wood-legendary] .tc-card-v4-meta,
[data-theme=wood-legendary] .tc-card-v4-url {
  color: rgba(255, 235, 180, 0.65) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
  font-size: 0.72rem !important;
}

/* Badge statut */
[data-theme=wood-legendary] .tc-status-draft {
  background: rgba(240,220,150,0.9) !important;
  border: 1px solid rgba(160,100,20,0.5) !important;
  color: #4A2C06 !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .tc-status-published {
  background: rgba(15,100,15,0.88) !important;
  border: 1px solid rgba(60,200,60,0.4) !important;
  color: #C8FFC8 !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme=wood-legendary] .tc-status-paused {
  background: rgba(120,70,10,0.88) !important;
  border: 1px solid rgba(220,150,50,0.4) !important;
  color: #FFD080 !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* ── BOUTONS PARTAGE — style "tablette bois gravée" ── */
[data-theme=wood-legendary] .tc-share-row {
  background: rgba(200,170,100,0.15) !important;
  border-radius: 8px !important;
  padding: 4px !important;
  gap: 4px !important;
}

[data-theme=wood-legendary] .tc-share-btn {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  border-radius: 7px !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  transition: all 0.18s ease !important;
  letter-spacing: 0.02em !important;
}
[data-theme=wood-legendary] .tc-share-btn:hover {
  border-color: rgba(201,168,76,0.9) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 8px rgba(201,168,76,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateY(-1px) !important;
  color: #FFE9A0 !important;
}
[data-theme=wood-legendary] .tc-share-copy { color: #FFE9C8 !important; }
[data-theme=wood-legendary] .tc-share-wa   { color: #A8FFCA !important; }
[data-theme=wood-legendary] .tc-share-email{ color: #C8D8FF !important; }
[data-theme=wood-legendary] .tc-share-qr   { color: #FFD87A !important; }

/* ── BARRE D'ACTIONS — bois sculpté ultra-classe ── */
[data-theme=wood-legendary] .tc-card-v4-header {
  background: rgba(0,0,0,0.25) !important;
  border-right: 1px solid rgba(201,168,76,0.2) !important;
  border-bottom: none !important;
}
[data-theme=wood-legendary] .tc-card-v4-content {
  background: transparent !important;
  border-left: 1px solid rgba(201,168,76,0.12) !important;
}
[data-theme=wood-legendary] .tc-card-v4-actions {
  background: rgba(0,0,0,0.2) !important;
  border-left: 1px solid rgba(201,168,76,0.15) !important;
  border-top: none !important;
  padding: 10px 12px !important;
  gap: 6px !important;
}

/* Petits boutons icônes — "chevilles bois dorées" */
[data-theme=wood-legendary] .tc-card-act {
  background: linear-gradient(
    160deg,
    rgba(80,50,15,0.9) 0%,
    rgba(50,30,8,0.95) 100%
  ) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  border-radius: 8px !important;
  color: rgba(255,230,160,0.85) !important;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,220,100,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.3) !important;
  transition: all 0.15s ease !important;
}
[data-theme=wood-legendary] .tc-card-act:hover {
  background: linear-gradient(
    160deg,
    rgba(201,168,76,0.5) 0%,
    rgba(150,110,30,0.7) 100%
  ) !important;
  border-color: rgba(201,168,76,0.85) !important;
  color: #FFE9A0 !important;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.55),
    0 0 10px rgba(201,168,76,0.25),
    inset 0 1px 0 rgba(255,230,100,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.2) !important;
  transform: translateY(-1px) !important;
}

/* Bouton "voir en ligne" — léger accent vert bois */
[data-theme=wood-legendary] .tc-card-v4-actions a.tc-card-act {
  border-color: rgba(80,180,80,0.4) !important;
  color: rgba(180,255,180,0.85) !important;
}
[data-theme=wood-legendary] .tc-card-v4-actions a.tc-card-act:hover {
  border-color: rgba(100,220,100,0.7) !important;
  color: #AFFFAF !important;
}

/* Dropdown actions */
[data-theme=wood-legendary] .tc-card-dropdown {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
}
[data-theme=wood-legendary] .tc-dd-item {
  color: #FFF5DC !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .tc-dd-item:hover {
  background: rgba(201,168,76,0.15) !important;
  color: #FFD87A !important;
}
[data-theme=wood-legendary] .tc-dd-danger {
  color: #FF9090 !important;
}

/* Menu ··· */
[data-theme=wood-legendary] .tc-menu-dropdown {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 10px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] .tc-menu-item {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .tc-menu-item:hover {
  background: rgba(201, 168, 76, 0.12) !important;
  color: #C9A84C !important;
}

/* Hero sub */
[data-theme=wood-legendary] .tc-hero-sub {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Titre hero */
[data-theme=wood-legendary] .tc-hero-title {background: none !important;-webkit-background-clip: unset !important;background-clip: unset !important;-webkit-text-fill-color: #FFF8F0 !important;color: #FFF8F0 !important;text-shadow: 0px 2px 8px rgba(0,0,0,0.95) !important;font-weight: 900 !important;}
[data-theme=wood-legendary] .tc-hero-title-UNUSED,
[data-theme=wood-legendary] [class*="tc-hero"] h2,
[data-theme=wood-legendary] [class*="tc-hero"] h3 {
  color: #C9A84C !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 800 !important;
}

/* Icône emoji tunnel — fond transparent + ombre premium */
[data-theme=wood-legendary] .tc-card-v4-icon {
  background: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8)) drop-shadow(0 0 12px rgba(201,168,76,0.4)) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 16px rgba(201,168,76,0.5) !important;
}

/* ========================================
   GIRI AMPLIFY — Wood Theme
   ======================================== */

/* Titre "Giri Amplify" — neutraliser gradient text violet/bleu */
[data-theme=wood-legendary] .amp-hero h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFF5DC !important;
  background-clip: unset !important;
  color: #FFF5DC !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}
[data-theme=wood-legendary] .amp-hero p {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Barre navigation onglets → --wood-medium */
[data-theme=wood-legendary] .amp-nav {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 14px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] .amp-nav-btn {
  background: rgba(20, 10, 0, 0.35) !important;
  color: rgba(255, 245, 220, 0.70) !important;
  border-radius: 10px !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .amp-nav-btn.active {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3) !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Zone éditeur → --wood-medium */
[data-theme=wood-legendary] .amp-editor {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-position: center center !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.35), inset 0 2px 6px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Textarea */
[data-theme=wood-legendary] .amp-editor textarea {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.4) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .amp-editor textarea::placeholder {
  color: rgba(42, 18, 0, 0.4) !important;
}

/* Barre IA (input + bouton) */
[data-theme=wood-legendary] .amp-ai-bar {
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .amp-ai-input {
  background: transparent !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-ai-input::placeholder {
  color: rgba(42, 18, 0, 0.4) !important;
}

/* Bouton "⚡ IA" → doré */
[data-theme=wood-legendary] .amp-ai-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3) !important;
  border-radius: 8px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Bouton "✨ Générer un post avec Maha" → bois medium */
[data-theme=wood-legendary] .amp-maha-toggle-btn {
  background-image: var(--wood-light) !important;
  background-size: 320px auto !important;
  background-repeat: repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 10px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Panneau Maha déroulant */
[data-theme=wood-legendary] .amp-maha-panel {
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 10px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}
[data-theme=wood-legendary] .amp-maha-panel * {
  color: #FFF5DC !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
}

/* Bouton "Générer le post" → doré */
[data-theme=wood-legendary] .amp-maha-gen-btn {
  background: linear-gradient(135deg, #C9A84C, #8B6914) !important;
  border: none !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 8px !important;
}

/* Boutons réseaux sociaux */
[data-theme=wood-legendary] .amp-plat-btn {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .amp-plat-btn.selected {
  border-color: rgba(42, 18, 0, 0.7) !important;
  box-shadow: inset 0 0 0 2px rgba(42,18,0,0.5) !important;
  font-weight: 700 !important;
}

/* Zone media upload */
[data-theme=wood-legendary] .amp-media-zone,
[data-theme=wood-legendary] .amp-video-zone {
  background: transparent !important;
}
[data-theme=wood-legendary] .amp-media-add-btn,
[data-theme=wood-legendary] .amp-video-drop {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 2px dashed rgba(42, 18, 0, 0.4) !important;
  color: #2A1200 !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .amp-media-add-btn:hover,
[data-theme=wood-legendary] .amp-video-drop:hover {
  border-color: rgba(42, 18, 0, 0.7) !important;
  background: rgba(42, 18, 0, 0.15) !important;
}

/* Section Hashtags */
[data-theme=wood-legendary] .amp-ht-zone {
  background: transparent !important;
}
[data-theme=wood-legendary] .amp-ht-bar label {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Bouton "⚡ Hashtags IA" → doré */
[data-theme=wood-legendary] .amp-ht-btn {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 8px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Chips hashtags */
[data-theme=wood-legendary] .amp-ht-chip {
  background: rgba(42, 18, 0, 0.12) !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  color: #2A1200 !important;
  border-radius: 6px !important;
}
[data-theme=wood-legendary] .amp-ht-chip.selected {
  background: rgba(42, 18, 0, 0.28) !important;
  border-color: rgba(42, 18, 0, 0.7) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* Bouton primary (Publier...) → bois clair */
[data-theme=wood-legendary] .amp-btn-primary {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  border-radius: 10px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
}

/* Panneau Aperçu → --wood-dark */
[data-theme=wood-legendary] .amp-preview {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 12px !important;
  will-change: auto !important;
  transform: translateZ(0) !important;
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.35), inset 0 2px 6px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-preview * {
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* Cartes aperçu plateforme */
[data-theme=wood-legendary] .amp-prev-card {
  background: rgba(255, 245, 220, 0.40) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* GIRI AMPLIFY — Textes hints plus clairs */

/* "Planifie et publie..." sous le titre hero */
[data-theme=wood-legendary] .amp-hero p {
  opacity: 1 !important;
  color: rgba(255, 245, 220, 0.85) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
}

/* "Sélectionne des plateformes pour voir l'aperçu" (inline opacity dans #amp-preview-cards) */
[data-theme=wood-legendary] #amp-preview-cards p {
  opacity: 1 !important;
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* "Cliquez sur Hashtags IA pour générer..." (div inline opacity dans .amp-ht-zone) */
[data-theme=wood-legendary] .amp-ht-zone div[style] {
  opacity: 1 !important;
  color: rgba(42, 18, 0, 0.70) !important;
}

/* "Meilleur moment :" et "Sélectionne des plateformes d'abord" (spans inline opacity) */
[data-theme=wood-legendary] .amp-compose span[style*="opacity"],
[data-theme=wood-legendary] .amp-editor span[style*="opacity"] {
  opacity: 1 !important;
  color: rgba(42, 18, 0, 0.70) !important;
}

/* Barre "🎬 Format Stories / Reels (9:16)" → bois très clair */
[data-theme=wood-legendary] .amp-stories-toggle {
  background-image: none !important;
  background: rgba(255, 245, 220, 0.40) !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 0 0 1px rgba(42,18,0,0.2), 0 4px 16px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.25) !important;
}
[data-theme=wood-legendary] .amp-stories-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .amp-stories-badge {
  background: rgba(42, 18, 0, 0.15) !important;
  color: #2A1200 !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
}

/* Labels et textes généraux dans l'éditeur (fond clair) */
[data-theme=wood-legendary] .amp-editor label,
[data-theme=wood-legendary] .amp-editor .amp-char-count,
[data-theme=wood-legendary] .amp-media-zone label,
[data-theme=wood-legendary] .amp-video-zone-title,
[data-theme=wood-legendary] .amp-ht-counter,
[data-theme=wood-legendary] .amp-ht-selected,
[data-theme=wood-legendary] .amp-ht-insert-btn,
[data-theme=wood-legendary] .amp-recur-label,
[data-theme=wood-legendary] .amp-sched-zone label {
  color: #2A1200 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .amp-ht-counter {
  background: rgba(42, 18, 0, 0.12) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] #amp-preview-cards p {
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* GIRI AMPLIFY — Opacités */

/* Ovales (boutons réseau + chips hashtag + onglets) → 85% */
[data-theme=wood-legendary] .amp-plat-btn,
[data-theme=wood-legendary] .amp-ht-chip,
[data-theme=wood-legendary] .amp-nav-btn {
  opacity: 0.85 !important;
}
[data-theme=wood-legendary] .amp-plat-btn.selected,
[data-theme=wood-legendary] .amp-ht-chip.selected,
[data-theme=wood-legendary] .amp-nav-btn.active {
  opacity: 1 !important;
}

/* Rectangles (zones, barres) → 85% */
[data-theme=wood-legendary] .amp-ai-bar,
[data-theme=wood-legendary] .amp-ht-zone,
[data-theme=wood-legendary] .amp-media-zone,
[data-theme=wood-legendary] .amp-video-zone,
[data-theme=wood-legendary] .amp-sched-zone,
[data-theme=wood-legendary] .amp-maha-panel {
  opacity: 0.85 !important;
}

/* Zones de saisie → fond crème 40% (texte reste lisible) */
[data-theme=wood-legendary] .amp-editor textarea {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(42, 18, 0, 0.4) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-ai-input {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  border: 2px solid rgba(42,18,0,0.55) !important;
  box-shadow: 0 0 0 1px rgba(42,18,0,0.25), 0 2px 12px rgba(0,0,0,0.35), 0 4px 20px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-sched-input {
  background: rgba(255, 245, 220, 0.40) !important;
  color: #2A1200 !important;
  border-color: rgba(42, 18, 0, 0.3) !important;
}
[data-theme=wood-legendary] .amp-maha-input,
[data-theme=wood-legendary] .amp-maha-select {
  background: rgba(255, 245, 220, 0.80) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border-color: rgba(42, 18, 0, 0.3) !important;
  box-shadow: 0 0 0 1px rgba(42,18,0,0.15), 0 2px 6px rgba(0,0,0,0.2) !important;
}

/* Titre "Nouveau post" → brun très foncé */
[data-theme=wood-legendary] .amp-editor .amp-section-title {
  color: #2A1200 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

/* Tous les boutons du cadre Nouveau Post → ombre premium */
[data-theme=wood-legendary] .amp-ai-btn,
[data-theme=wood-legendary] .amp-plat-btn,
[data-theme=wood-legendary] .amp-maha-toggle-btn,
[data-theme=wood-legendary] .amp-ht-btn,
[data-theme=wood-legendary] .amp-btn,
[data-theme=wood-legendary] .amp-btn-primary,
[data-theme=wood-legendary] .amp-btn-publish,
[data-theme=wood-legendary] .amp-media-add-btn,
[data-theme=wood-legendary] .amp-ht-insert-btn,
[data-theme=wood-legendary] .amp-maha-gen-btn {
  box-shadow: 0 0 0 1px rgba(42,18,0,0.2), 0 2px 8px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.2) !important;
}

/* Boutons Templates, Plan 30j, Créer série, Optimal → texte brun foncé */
[data-theme=wood-legendary] .amp-btn,
[data-theme=wood-legendary] .amp-sched-optimal-btn {
  color: #2A1200 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

/* Menus déroulants Maha (inspirant, LinkedIn...) → lisibles */
[data-theme=wood-legendary] .amp-maha-select {
  background: rgba(255, 245, 220, 0.90) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(42, 18, 0, 0.4) !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
[data-theme=wood-legendary] .amp-maha-select option {
  background: #FFF5DC !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-maha-select option:hover,
[data-theme=wood-legendary] .amp-maha-select option:checked {
  background: #C9A84C !important;
  color: #2A1200 !important;
}

/* ========================================
   GIRI AMPLIFY — Calendrier Wood Theme
   (inspiré de #calendar)
   ======================================== */

/* Conteneur principal */
[data-theme=wood-legendary] .amp-cal {
  background-image: var(--wood-dark) !important;
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
  border-radius: 18px !important;
}

/* Header : titre mois + nav */
[data-theme=wood-legendary] .amp-cal-header {
  border-bottom: 1px solid rgba(180, 130, 70, 0.25) !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
}
[data-theme=wood-legendary] .amp-cal-title {
  color: #FFE8A0 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
}
[data-theme=wood-legendary] .amp-cal-nav {
  background-image: var(--wood-medium) !important;
  background-size: 150px auto !important;
  background-repeat: repeat !important;
  background-color: rgba(74, 56, 40, 0.7) !important;
  color: #FFE8A0 !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-cal-today {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* En-têtes jours (Lun Mar...) */
[data-theme=wood-legendary] .amp-cal-dh {
  color: #DCC8A8 !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* Cellules jours */
[data-theme=wood-legendary] .amp-cal-cell {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-color: rgba(74, 53, 37, 0.5) !important;
  border: 1px solid rgba(140, 100, 50, 0.2) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .amp-cal-cell.amp-cal-today-cell {
  background-image: var(--wood-light) !important;
  border-color: rgba(212, 164, 76, 0.5) !important;
  box-shadow: 0 0 12px rgba(212, 164, 76, 0.15) !important;
}
[data-theme=wood-legendary] .amp-cal-cell.amp-cal-other {
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-cal-clickable:hover {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  border-color: rgba(201, 168, 76, 0.5) !important;
}
[data-theme=wood-legendary] .amp-cal-drop-over {
  background-image: none !important;
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.6) !important;
  border-style: dashed !important;
}

/* Numéro du jour */
[data-theme=wood-legendary] .amp-cal-day {
  color: #DCC8A8 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-cal-day-today {
  color: #2A1200 !important;
}

/* Événements dans les cellules */
[data-theme=wood-legendary] .amp-cal-ev {
  background: rgba(20, 10, 0, 0.45) !important;
  color: #FFE8A0 !important;
  border-left-color: rgba(201, 168, 76, 0.8) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-cal-more {
  color: #D4A44C !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-cal-hint {
  color: #DCC8A8 !important;
  opacity: 1 !important;
}

/* ========================================
   GIRI AMPLIFY — Hub Social Wood Theme
   ======================================== */

/* Cartes principales (grille 2 colonnes) */
[data-theme=wood-legendary] .amp-hub-card {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.3), inset 0 2px 6px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.25) !important;
}

/* Titres des cartes h3 */
[data-theme=wood-legendary] .amp-hub-card h3 {
  color: #2A1200 !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

/* Comptes connectés (.amp-hub-acc) */
[data-theme=wood-legendary] .amp-hub-acc {
  background-image: var(--wood-medium) !important;
  background-size: 320px auto !important;
  background-repeat: repeat !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  opacity: 0.9 !important;
}
[data-theme=wood-legendary] .amp-hub-acc-name {
  color: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-hub-acc-handle {
  color: rgba(255, 245, 220, 0.65) !important;
  opacity: 1 !important;
}

/* Posts récents */
[data-theme=wood-legendary] .amp-hub-post {
  background: rgba(255, 245, 220, 0.40) !important;
  border-left: 3px solid rgba(42, 18, 0, 0.5) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .amp-hub-post-text {
  color: #2A1200 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-hub-post-meta {
  color: rgba(42, 18, 0, 0.60) !important;
  opacity: 1 !important;
}

/* Boutons d'action */
[data-theme=wood-legendary] .amp-hub-action-btn {
  background-image: var(--wood-medium) !important;
  background-size: 320px auto !important;
  background-repeat: repeat !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(42,18,0,0.15), 0 2px 8px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
  opacity: 0.9 !important;
}
[data-theme=wood-legendary] .amp-hub-action-btn:hover {
  opacity: 1 !important;
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 4px 16px rgba(0,0,0,0.4) !important;
}

/* Stats */
[data-theme=wood-legendary] .amp-hub-stat {
  background: rgba(255, 245, 220, 0.40) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .amp-hub-stat-num {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-hub-stat-label {
  color: rgba(42, 18, 0, 0.65) !important;
  opacity: 1 !important;
}

/* Empty state */
[data-theme=wood-legendary] .amp-hub-empty {
  color: rgba(42, 18, 0, 0.5) !important;
  opacity: 1 !important;
}

/* ========================================
   GIRI AMPLIFY — Médias Wood Theme
   ======================================== */

/* Sous-onglets (Upload / Médiathèque) */
[data-theme=wood-legendary] .amp-media-subtabs {
  border-bottom: 1px solid rgba(42, 18, 0, 0.25) !important;
}
[data-theme=wood-legendary] .amp-media-subtab {
  color: rgba(42, 18, 0, 0.65) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-media-subtab.active {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-color: rgba(42, 18, 0, 0.4) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Bouton upload dashed */
[data-theme=wood-legendary] .amp-media-add-btn {
  background: rgba(255, 245, 220, 0.40) !important;
  border: 2px dashed rgba(42, 18, 0, 0.4) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .amp-media-add-btn:hover {
  border-color: rgba(42, 18, 0, 0.7) !important;
  background: rgba(255, 245, 220, 0.65) !important;
}

/* Miniatures media */
[data-theme=wood-legendary] .amp-media-thumb {
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  background: rgba(42, 18, 0, 0.15) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-media-uploading {
  color: rgba(42, 18, 0, 0.60) !important;
  opacity: 1 !important;
}

/* Grille médiathèque */
[data-theme=wood-legendary] .amp-media-lib-item {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-media-lib-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45) !important;
  border-color: rgba(201, 168, 76, 0.5) !important;
}

/* Info bar sous chaque item */
[data-theme=wood-legendary] .amp-media-lib-info {
  background: rgba(20, 10, 0, 0.55) !important;
}
[data-theme=wood-legendary] .amp-media-lib-stat {
  color: rgba(255, 245, 220, 0.80) !important;
  opacity: 1 !important;
}

/* Boutons action (hover sur item) */
[data-theme=wood-legendary] .amp-media-lib-action {
  background: rgba(20, 10, 0, 0.75) !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .amp-media-lib-action:hover {
  background: rgba(201, 168, 76, 0.5) !important;
}

/* Badge "utilisé" */
[data-theme=wood-legendary] .amp-media-lib-used {
  background: rgba(20, 10, 0, 0.75) !important;
  color: rgba(255, 245, 220, 0.85) !important;
}

/* Perf badges */
[data-theme=wood-legendary] .amp-media-lib-perf.high {
  background: rgba(52, 211, 153, 0.3) !important;
  color: #065f46 !important;
}
[data-theme=wood-legendary] .amp-media-lib-perf.med {
  background: rgba(201, 168, 76, 0.3) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .amp-media-lib-perf.low {
  background: rgba(42, 18, 0, 0.2) !important;
  color: rgba(42, 18, 0, 0.6) !important;
}

/* Filtres */
[data-theme=wood-legendary] .amp-media-filter-btn {
  background: rgba(255, 245, 220, 0.40) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .amp-media-filter-btn.active {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-color: rgba(42, 18, 0, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}
[data-theme=wood-legendary] .amp-media-filter-btn:hover {
  background: rgba(255, 245, 220, 0.70) !important;
}

/* Header médiathèque */
[data-theme=wood-legendary] .amp-media-lib-header * {
  color: #2A1200 !important;
  text-shadow: none !important;
}

/* Empty state */
[data-theme=wood-legendary] .amp-media-lib-empty {
  color: rgba(42, 18, 0, 0.50) !important;
  opacity: 1 !important;
}

/* Médiathèque — fond bois clair (sans le trait) */
[data-theme=wood-legendary] .amp-media-lib {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-radius: 14px !important;
  border: none !important;
  padding: 16px !important;
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.3), inset 0 2px 6px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.2) !important;
}

/* Textes médiathèque — foncés */
[data-theme=wood-legendary] .amp-media-lib-empty div {
  color: #2A1200 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-media-lib-header div[style*="opacity"] {
  color: #2A1200 !important;
  opacity: 1 !important;
}

/* Boutons Médiathèque + Recycler — angles arrondis partout */
[data-theme=wood-legendary] .amp-media-subtab {
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .amp-media-subtab.active {
  border-radius: 8px !important;
}

/* ========================================
   GIRI AMPLIFY — Analytics Wood Theme
   ======================================== */

/* Cartes réseaux (grille par plateforme) */
[data-theme=wood-legendary] .amp-an-net-card {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 5px 16px rgba(0,0,0,0.28), inset 0 2px 5px rgba(0,0,0,0.18), 0 4px 14px rgba(0,0,0,0.22) !important;
}
[data-theme=wood-legendary] .amp-an-net-name {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-an-net-handle {
  color: rgba(42, 18, 0, 0.55) !important;
  opacity: 1 !important;
}

/* Stats dans les cartes réseau */
[data-theme=wood-legendary] .amp-an-stat {
  background: rgba(255, 245, 220, 0.50) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .amp-an-stat-val {
  color: #8B4513 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-an-stat-eng .amp-an-stat-val {
  color: #2D6A2D !important;
}
[data-theme=wood-legendary] .amp-an-stat-lbl {
  color: rgba(42, 18, 0, 0.60) !important;
  opacity: 1 !important;
}

/* Graphiques */
[data-theme=wood-legendary] .amp-an-chart-wrap {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 5px 16px rgba(0,0,0,0.28), 0 4px 14px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-an-chart-title {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-an-chart-sub {
  color: #2A1200 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-an-chart-labels {
  color: #2A1200 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-an-chart-labels span {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-an-legend-item {
  color: #2A1200 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Top posts */
[data-theme=wood-legendary] .amp-an-top-posts {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 5px 16px rgba(0,0,0,0.28), 0 4px 14px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-an-post-row {
  border-bottom: 1px solid rgba(42, 18, 0, 0.15) !important;
}
[data-theme=wood-legendary] .amp-an-post-thumb {
  background: rgba(255, 245, 220, 0.50) !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .amp-an-post-thumb-icon {
  opacity: 0.4 !important;
}
[data-theme=wood-legendary] .amp-an-post-text {
  color: #2A1200 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-an-metric {
  color: rgba(42, 18, 0, 0.65) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-an-badge {
  background: rgba(139, 69, 19, 0.15) !important;
  color: #8B4513 !important;
  font-weight: 700 !important;
}

/* Heatmap */
[data-theme=wood-legendary] .amp-an-heatmap-wrap {
  background-image: var(--wood-dark) !important;
  background-size: 500px auto !important;
  background-repeat: repeat !important;
  background-color: #1E140C !important;
  border: 1px solid rgba(180, 130, 70, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-an-heatmap-wrap .amp-an-chart-title {
  color: #FFE8A0 !important;
}
[data-theme=wood-legendary] .amp-an-heatmap-wrap .amp-an-chart-sub {
  color: rgba(255, 245, 220, 0.60) !important;
}
[data-theme=wood-legendary] .amp-an-hm-label,
[data-theme=wood-legendary] .amp-an-hm-hlabel {
  color: rgba(255, 245, 220, 0.55) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-an-hm-scale {
  color: rgba(255, 245, 220, 0.55) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-an-hm-cell {
  background: rgba(255, 245, 220, 0.05) !important;
}

/* Panneau insights IA */
[data-theme=wood-legendary] .amp-an-insight {
  background-image: var(--wood-medium) !important;
  background-size: 320px auto !important;
  background-repeat: repeat !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .amp-an-insight-title {
  color: #FFE8A0 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-an-insight-sub {
  color: rgba(255, 245, 220, 0.65) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-an-insight-item {
  background: rgba(20, 10, 0, 0.35) !important;
  border-radius: 10px !important;
  color: #FFF5DC !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-an-suggestion {
  background: rgba(20, 10, 0, 0.30) !important;
  border-left: 3px solid rgba(201, 168, 76, 0.7) !important;
  border-radius: 12px !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .amp-an-suggestion-label {
  color: #C9A84C !important;
}

/* Loading */
[data-theme=wood-legendary] .amp-an-loading {
  color: rgba(42, 18, 0, 0.55) !important;
  opacity: 1 !important;
}

/* Modal stats */
[data-theme=wood-legendary] .amp-stats-modal {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 5px 16px rgba(0,0,0,0.25) !important;
}
[data-theme=wood-legendary] .amp-stats-modal-title {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-stats-modal-content {
  background: rgba(255, 245, 220, 0.50) !important;
  color: #2A1200 !important;
  opacity: 1 !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .amp-stats-plat-block {
  background: rgba(255, 245, 220, 0.45) !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
  border-radius: 14px !important;
}
[data-theme=wood-legendary] .amp-stats-plat-name {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-stats-plat-status {
  color: rgba(42, 18, 0, 0.55) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-stat-box {
  background: rgba(255, 245, 220, 0.60) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .amp-stat-box-val {
  color: #8B4513 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-stat-box-val.green { color: #2D6A2D !important; }
[data-theme=wood-legendary] .amp-stat-box-val.orange { color: #8B4513 !important; }
[data-theme=wood-legendary] .amp-stat-box-val.blue { color: #1E4D8B !important; }
[data-theme=wood-legendary] .amp-stat-box-lbl {
  color: rgba(42, 18, 0, 0.60) !important;
  opacity: 1 !important;
}

/* ========================================
   GIRI AMPLIFY — Croissance Wood Theme
   ======================================== */

[data-theme=wood-legendary] .amp-growth-kpi {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 5px 16px rgba(0,0,0,0.25), 0 3px 10px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-growth-kpi-val {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-growth-kpi-lbl {
  color: rgba(42, 18, 0, 0.60) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-growth-chart-wrap {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 5px 16px rgba(0,0,0,0.25), 0 4px 14px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-growth-chart-title {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-growth-chart-sub {
  color: rgba(42, 18, 0, 0.55) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-growth-plat-tab {
  background: rgba(255, 245, 220, 0.45) !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
  color: rgba(42, 18, 0, 0.65) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .amp-growth-plat-tab.active {
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-color: rgba(42, 18, 0, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}
[data-theme=wood-legendary] .amp-growth-chart-labels {
  color: rgba(42, 18, 0, 0.50) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-growth-projection {
  background-image: var(--wood-medium) !important;
  background-size: 320px auto !important;
  background-repeat: repeat !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
}
[data-theme=wood-legendary] .amp-growth-proj-title {
  color: #C9A84C !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme=wood-legendary] .amp-growth-proj-item {
  background: rgba(20, 10, 0, 0.30) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .amp-growth-proj-plat {
  color: rgba(255, 245, 220, 0.60) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-growth-proj-val {
  color: #C9A84C !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-growth-proj-rate {
  color: rgba(255, 245, 220, 0.55) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-growth-empty {
  color: #FFF5DC !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-growth-empty div {
  color: #FFF5DC !important;
}

/* Analytics — texte vide insights (Cliquez sur Analyser...) */
[data-theme=wood-legendary] .amp-an-insight div[style*=opacity:0.45],
[data-theme=wood-legendary] .amp-an-insight div[style*=opacity: 0.45] {
  opacity: 1 !important;
  color: #FFFFFF !important;
  font-size: 0.88rem !important;
}


/* Analytics — titre Top 3 posts (div inline font-weight:700) */
[data-theme=wood-legendary] .amp-an-top-posts div[style*="font-weight:700"],
[data-theme=wood-legendary] .amp-an-top-posts div[style*="font-weight: 700"] {
  color: #2A1200 !important;
}

/* Analytics — libellé Par réseau + message vide réseaux */
[data-theme=wood-legendary] div[style*=text-transform:uppercase][style*=opacity:0.5] {
  color: #FFF5DC !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] div[style*=opacity:0.4][style*=padding:20px] {
  color: #FFE8A0 !important;
  opacity: 1 !important;
}

/* Analytics — bouton Actualiser en bois très clair */
[data-theme=wood-legendary] #amp-analytics-refresh {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  border: 1px solid rgba(42, 18, 0, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 3px rgba(255,255,255,0.3) !important;
  text-shadow: none !important;
}

/* Analytics — cadre Rapport de performance en bois clair */
[data-theme=wood-legendary] .amp-weekly {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 5px 16px rgba(0,0,0,0.25), inset 0 2px 5px rgba(0,0,0,0.15), 0 4px 14px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .amp-weekly-title {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-weekly-toggle {
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .amp-weekly-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .amp-weekly-kpi-val,
[data-theme=wood-legendary] .amp-weekly-kpi-val[style] {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .amp-weekly-kpi-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-weekly-top-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-weekly-top-content {
  color: rgba(42, 18, 0, 0.8) !important;
}
[data-theme=wood-legendary] .amp-weekly-plat {
  color: rgba(42, 18, 0, 0.8) !important;
}

/* Analytics weekly — delta texts (→ stable, cette semaine, engagement max) */
[data-theme=wood-legendary] .amp-weekly-delta {
  color: #2A1200 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-weekly-delta.flat {
  color: #2A1200 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-weekly-delta.up {
  color: #2A5C00 !important;
}
[data-theme=wood-legendary] .amp-weekly-delta.down {
  color: #7A1500 !important;
}

/* Analytics — barre sync en bois clair */
[data-theme=wood-legendary] .amp-sync-bar {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.22), inset 0 2px 4px rgba(0,0,0,0.15), 0 3px 10px rgba(0,0,0,0.18) !important;
}
[data-theme=wood-legendary] .amp-sync-badge {
  color: #2A1200 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-sync-info {
  color: rgba(42, 18, 0, 0.8) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-sync-btn {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(42, 18, 0, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 3px rgba(255,255,255,0.25) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-sync-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.3) !important;
}

/* Analytics — bouton Analyser (même texture que Sync maintenant) */
[data-theme=wood-legendary] #amp-an-load-insights {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(42, 18, 0, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 3px rgba(255,255,255,0.25) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Croissance — bouton Actualiser en bois très clair */
[data-theme=wood-legendary] #amp-growth-refresh {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  border: 1px solid rgba(42, 18, 0, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 3px rgba(255,255,255,0.3) !important;
  text-shadow: none !important;
}

/* ============================================
   ONGLET COMPTES — Thème Bois Légendaire
   ============================================ */

/* Titres de section */
[data-theme=wood-legendary] #view-giriAmplify .amp-section-title {
  color: #FFF5DC !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* Cartes comptes connectés — barres bois clair */
[data-theme=wood-legendary] .amp-account-card {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.2), inset 0 2px 4px rgba(0,0,0,0.12), 0 3px 10px rgba(0,0,0,0.18) !important;
  padding: 14px 16px !important;
}

/* Icône plateforme — anneau coloré sur fond bois */
[data-theme=wood-legendary] .amp-account-icon {
  border-radius: 50% !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 3px 10px rgba(0,0,0,0.3) !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
}

/* Nom et handle du compte */
[data-theme=wood-legendary] .amp-account-name {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .amp-account-handle {
  color: rgba(42, 18, 0, 0.65) !important;
  font-weight: 500 !important;
}

/* Bouton Déconnecter */
[data-theme=wood-legendary] .amp-disconnect {
  background: rgba(42, 18, 0, 0.08) !important;
  color: #7A1500 !important;
  border: 1px solid rgba(122, 21, 0, 0.3) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Boutons Connecter un compte — barres bois clair */
[data-theme=wood-legendary] .amp-connect-platform {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(42, 18, 0, 0.28) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.15), 0 3px 10px rgba(0,0,0,0.18) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-connect-platform:hover {
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.2), 0 5px 16px rgba(0,0,0,0.25) !important;
  border-color: rgba(42, 18, 0, 0.45) !important;
}

/* Icône plateforme dans les boutons Connecter */
[data-theme=wood-legendary] .amp-plat-icon {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.25) !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

/* Composer — titre Nouveau post marron très foncé */
[data-theme=wood-legendary] .amp-compose .amp-editor .amp-section-title {
  color: #2A1200 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #2A1200 !important;
}

/* Composer — textes à foncer */
[data-theme=wood-legendary] .amp-editor div[style*=opacity:0.4][style*=font-size:0.75rem] {
  color: #2A1200 !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .amp-recur-label {
  color: #2A1200 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-editor span[style*=opacity:0.5][style*=font-size:0.75rem] {
  color: #2A1200 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .amp-editor span[style*=opacity:0.35] {
  color: rgba(42, 18, 0, 0.7) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* ============================================
   PAGE MAIL (#view-mail) — Thème Bois Légendaire
   ============================================ */

/* Wrapper principal */
[data-theme=wood-legendary] #view-mail > div {
  background: transparent !important;
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* --- SIDEBAR (220px, colonne gauche) --- */
[data-theme=wood-legendary] #view-mail > div > div:first-child {
  background: none !important;
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-right: 1px solid rgba(42, 18, 0, 0.5) !important;
}

/* Titre "Mail" dans la sidebar */
[data-theme=wood-legendary] #view-mail > div > div:first-child div[style*="font-weight:800"] {
  color: #FFF5DC !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
}
[data-theme=wood-legendary] #view-mail > div > div:first-child div[style*="font-weight: 800"] {
  color: #FFF5DC !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
}

/* Bouton + Composer */
[data-theme=wood-legendary] #gm-compose {
  background: none !important;
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(42, 18, 0, 0.35) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 3px rgba(255,255,255,0.3) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] #gm-compose:hover {
  box-shadow: 0 5px 16px rgba(0,0,0,0.4), inset 0 1px 3px rgba(255,255,255,0.35) !important;
}

/* Nav items (Réception, Envoyés, Brouillons) */
[data-theme=wood-legendary] [data-gm-folder] {
  color: rgba(255, 245, 220, 0.8) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  background: transparent !important;
}
[data-theme=wood-legendary] [data-gm-folder]:hover {
  background: rgba(255, 245, 220, 0.1) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] [data-gm-folder].active,
[data-theme=wood-legendary] [data-gm-folder][style*="background:rgba(212"],
[data-theme=wood-legendary] [data-gm-folder][style*="background: rgba(212"] {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Bordure header sidebar */
[data-theme=wood-legendary] #view-mail > div > div:first-child > div:first-child {
  border-bottom: 1px solid rgba(255, 245, 220, 0.15) !important;
}

/* --- LISTE EMAILS (colonne centrale) --- */
[data-theme=wood-legendary] .gm-list-panel,
[data-theme=wood-legendary] #view-mail > div > div:nth-child(2) {
  background: none !important;
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-right: 1px solid rgba(42, 18, 0, 0.4) !important;
}

/* Titre dossier (Boite de réception) */
[data-theme=wood-legendary] #gm-folder-title,
[data-theme=wood-legendary] .gm-list-title {
  color: #FFF5DC !important;
  font-weight: 800 !important;
}

/* Barre de recherche */
[data-theme=wood-legendary] #view-mail > div > div:nth-child(2) > div:first-child > div[style*="background:rgba"] {
  background: rgba(255, 245, 220, 0.75) !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
}
[data-theme=wood-legendary] #gm-search,
[data-theme=wood-legendary] .gm-search {
  color: #FFF5DC !important;
  background: rgba(20, 10, 0, 0.3) !important;
}
[data-theme=wood-legendary] #gm-search::placeholder,
[data-theme=wood-legendary] .gm-search::placeholder {
  color: rgba(255, 245, 220, 0.4) !important;
}
[data-theme=wood-legendary] #view-mail > div > div:nth-child(2) > div:first-child > div[style*="background:rgba"] span {
  color: rgba(42, 18, 0, 0.5) !important;
}

/* Header colonne liste */
[data-theme=wood-legendary] #view-mail > div > div:nth-child(2) > div:first-child {
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}

/* Select-all label */
[data-theme=wood-legendary] .gm-list-header-label {
  color: #FFF5DC !important;
}

/* Barres email rows — bois clair */
[data-theme=wood-legendary] .gm-row,
[data-theme=wood-legendary] .gm-email-item {
  background: rgba(0, 0, 0, 0.12) !important;
  border-bottom: 1px solid rgba(255, 245, 220, 0.07) !important;
  border-left-color: transparent !important;
}
[data-theme=wood-legendary] .gm-row:hover,
[data-theme=wood-legendary] .gm-email-item:hover {
  background: rgba(255, 245, 220, 0.12) !important;
}
[data-theme=wood-legendary] .gm-row.gm-active,
[data-theme=wood-legendary] .gm-email-item.gm-active {
  background: rgba(201, 168, 76, 0.2) !important;
  border-left-color: #C9A84C !important;
}
[data-theme=wood-legendary] .gm-row.gm-selected,
[data-theme=wood-legendary] .gm-email-item.gm-selected {
  background: rgba(201, 168, 76, 0.2) !important;
  border-left-color: #C9A84C !important;
}
[data-theme=wood-legendary] .gm-row.gm-unread,
[data-theme=wood-legendary] .gm-email-item.gm-unread {
  border-left-color: #C9A84C !important;
  background: rgba(255, 245, 220, 0.1) !important;
}
[data-theme=wood-legendary] .gm-row-from {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .gm-row.gm-unread .gm-row-from {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .gm-row-subject {
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gm-row.gm-unread .gm-row-subject {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gm-row-preview {
  color: rgba(255, 245, 220, 0.6) !important;
}
[data-theme=wood-legendary] .gm-row-date {
  color: rgba(255, 245, 220, 0.55) !important;
}
[data-theme=wood-legendary] .gm-row-trash {
  color: rgba(42, 18, 0, 0.25) !important;
}
[data-theme=wood-legendary] .gm-row-trash:hover {
  color: #7A1500 !important;
  background: rgba(122, 21, 0, 0.1) !important;
}

/* Action bar multi-sélection */
[data-theme=wood-legendary] .gm-action-bar {
  background: rgba(201, 168, 76, 0.15) !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .gm-action-btn {
  background: rgba(255, 245, 220, 0.7) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .gm-action-btn:hover {
  background: rgba(255, 245, 220, 0.95) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .gm-select-count {
  color: rgba(42, 18, 0, 0.55) !important;
}

/* --- LECTEUR EMAIL (colonne droite) --- */
[data-theme=wood-legendary] #gm-reader,
[data-theme=wood-legendary] .gm-reader {
  background: none !important;
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* Empty state lecteur */
[data-theme=wood-legendary] #gm-empty-state,
[data-theme=wood-legendary] .gm-reader-empty {
  color: rgba(255, 245, 220, 0.35) !important;
}
[data-theme=wood-legendary] #gm-empty-state p,
[data-theme=wood-legendary] .gm-reader-empty p {
  color: rgba(255, 245, 220, 0.6) !important;
}
[data-theme=wood-legendary] .gm-reader-empty span {
  color: rgba(255, 245, 220, 0.3) !important;
}

/* Détail email */
[data-theme=wood-legendary] .mail-detail-meta-label {
  color: rgba(42, 18, 0, 0.55) !important;
}
[data-theme=wood-legendary] .mail-detail-meta-value {
  color: #2A1200 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .mail-detail-body,
[data-theme=wood-legendary] .mail-detail-text-clean {
  color: #2A1200 !important;
  background: rgba(255, 248, 235, 0.6) !important;
  border-radius: 12px !important;
}

/* Stats mail */
[data-theme=wood-legendary] .mail-stat-card,
[data-theme=wood-legendary] .mail-stat-box {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.2), 0 3px 10px rgba(0,0,0,0.15) !important;
}
[data-theme=wood-legendary] .mail-stat-value,
[data-theme=wood-legendary] .mail-stat-box-value {
  color: #8B4513 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .mail-stat-label,
[data-theme=wood-legendary] .mail-stat-box-label {
  color: rgba(42, 18, 0, 0.7) !important;
  font-weight: 600 !important;
}

/* Icônes stats */
[data-theme=wood-legendary] .mail-stat-icon,
[data-theme=wood-legendary] .mail-stat-box-icon {
  opacity: 0.85 !important;
}

/* Loading / empty */
[data-theme=wood-legendary] .mail-loading,
[data-theme=wood-legendary] .mail-empty,
[data-theme=wood-legendary] .mail-inbox-empty,
[data-theme=wood-legendary] .mail-reading-empty {
  color: rgba(42, 18, 0, 0.45) !important;
}
[data-theme=wood-legendary] .mail-inbox-empty-icon,
[data-theme=wood-legendary] .mail-reading-empty-icon {
  opacity: 0.3 !important;
}

/* Tabs mail */
[data-theme=wood-legendary] .mail-tab {
  color: rgba(42, 18, 0, 0.65) !important;
}
[data-theme=wood-legendary] .mail-tab.active,
[data-theme=wood-legendary] .mail-tab[style*="border-bottom"] {
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* Hero header */
[data-theme=wood-legendary] .mail-hero-title {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .mail-hero-badge {
  background: rgba(42, 18, 0, 0.12) !important;
  color: #2A1200 !important;
}

/* Section headers */
[data-theme=wood-legendary] .mail-section-header {
  color: #2A1200 !important;
  font-weight: 800 !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}

/* Modal composer */
[data-theme=wood-legendary] .mail-modal {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.25), 0 20px 60px rgba(0,0,0,0.4) !important;
}
[data-theme=wood-legendary] .mail-modal-header {
  color: #2A1200 !important;
  font-weight: 800 !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .mail-modal-close {
  color: rgba(42, 18, 0, 0.5) !important;
}

/* ============================================
   MAIL — Vrais sélecteurs giri-mail.css (wood-medium)
   ============================================ */

/* Sidebar */
[data-theme=wood-legendary] .gm-sidebar {
  background: none !important;
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-right: 1px solid rgba(42, 18, 0, 0.5) !important;
}

/* En-tête compte */
[data-theme=wood-legendary] .gm-acct-top {
  border-bottom: 1px solid rgba(255, 245, 220, 0.12) !important;
}
[data-theme=wood-legendary] .gm-acct-top-name {
  color: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gm-acct-top-email {
  color: rgba(255, 245, 220, 0.45) !important;
}
[data-theme=wood-legendary] .gm-acct-top-chevron {
  color: rgba(255, 245, 220, 0.3) !important;
}
[data-theme=wood-legendary] .gm-acct-top-btn:hover {
  background: rgba(255, 245, 220, 0.08) !important;
}

/* Bouton Composer */
[data-theme=wood-legendary] .gm-compose-btn {
  background: none !important;
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(42, 18, 0, 0.3) !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35), inset 0 1px 3px rgba(255,255,255,0.25) !important;
  text-shadow: none !important;
}

/* Nav items */
[data-theme=wood-legendary] .gm-nav-item {
  color: rgba(255, 245, 220, 0.55) !important;
}
[data-theme=wood-legendary] .gm-nav-item:hover {
  background: rgba(255, 245, 220, 0.08) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gm-nav-item.active {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-color: rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .gm-nav-item.active::before {
  background: #8B4513 !important;
  box-shadow: 0 0 8px rgba(139, 69, 19, 0.5) !important;
}
[data-theme=wood-legendary] .gm-nav-item.active svg {
  stroke: #8B4513 !important;
}
[data-theme=wood-legendary] .gm-nav-divider {
  background: rgba(255, 245, 220, 0.08) !important;
}

/* Badge compteur */
[data-theme=wood-legendary] .gm-badge {
  background: #8B4513 !important;
  color: #FFF5DC !important;
  box-shadow: none !important;
}
[data-theme=wood-legendary] .gm-badge-gold {
  background: linear-gradient(135deg, #C9A84C, #E8C96A) !important;
  color: #2A1200 !important;
}

/* List header sur fond medium */
[data-theme=wood-legendary] .gm-list-header {
  background: rgba(0, 0, 0, 0.15) !important;
  border-bottom: 1px solid rgba(255, 245, 220, 0.1) !important;
}
[data-theme=wood-legendary] .gm-search-wrap .gm-search-ico {
  stroke: rgba(255, 245, 220, 0.35) !important;
}
[data-theme=wood-legendary] .gm-search {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 245, 220, 0.12) !important;
}
[data-theme=wood-legendary] .gm-search:focus {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(201, 168, 76, 0.4) !important;
}

/* Filtres / onglets (Tous, Non lus, Favoris…) */
[data-theme=wood-legendary] .gm-filters {
  background: rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 245, 220, 0.08) !important;
}
[data-theme=wood-legendary] .gm-filter-pill {
  color: rgba(255, 245, 220, 0.55) !important;
  background: rgba(255, 245, 220, 0.06) !important;
  border: 1px solid transparent !important;
}
[data-theme=wood-legendary] .gm-filter-pill:hover {
  color: #FFF5DC !important;
  background: rgba(255, 245, 220, 0.1) !important;
}
[data-theme=wood-legendary] .gm-filter-pill.active {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-color: rgba(42, 18, 0, 0.25) !important;
}

/* Items email — vrais sélecteurs */
[data-theme=wood-legendary] .gm-email-item {
  background: rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 245, 220, 0.06) !important;
}
[data-theme=wood-legendary] .gm-email-item:hover {
  background: rgba(255, 245, 220, 0.1) !important;
}
[data-theme=wood-legendary] .gm-email-item.gm-selected {
  background: rgba(201, 168, 76, 0.18) !important;
  border-left: 2px solid #C9A84C !important;
}
[data-theme=wood-legendary] .gm-email-item.gm-unread {
  background: rgba(255, 245, 220, 0.08) !important;
}
[data-theme=wood-legendary] .gm-item-from,
[data-theme=wood-legendary] .gm-email-sender {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .gm-email-item.gm-unread .gm-item-from,
[data-theme=wood-legendary] .gm-email-item.unread .gm-email-sender {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .gm-item-subject,
[data-theme=wood-legendary] .gm-email-subject {
  color: rgba(255, 245, 220, 0.85) !important;
}
[data-theme=wood-legendary] .gm-email-item.gm-unread .gm-item-subject,
[data-theme=wood-legendary] .gm-email-item.unread .gm-email-subject {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gm-item-preview,
[data-theme=wood-legendary] .gm-email-preview {
  color: rgba(255, 245, 220, 0.5) !important;
}
[data-theme=wood-legendary] .gm-item-date,
[data-theme=wood-legendary] .gm-email-date {
  color: rgba(255, 245, 220, 0.45) !important;
}

/* Avatar */
[data-theme=wood-legendary] .gm-avatar {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.4) !important;
}

/* Empty state lecteur */
[data-theme=wood-legendary] .gm-reader-empty p:first-of-type {
  color: rgba(255, 245, 220, 0.55) !important;
}
[data-theme=wood-legendary] .gm-reader-empty span {
  color: rgba(255, 245, 220, 0.28) !important;
}
[data-theme=wood-legendary] .gm-reader-empty-icon {
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.15)) !important;
}

/* Mail — emails : bois très clair 40% + ombre bas */
[data-theme=wood-legendary] .gm-email-item,
[data-theme=wood-legendary] .gm-row {
  background: transparent !important;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.38),
    0 2px 4px rgba(0,0,0,0.28) !important;
  border-bottom: 1px solid rgba(0,0,0,0.35) !important;
  position: relative !important;
}
[data-theme=wood-legendary] .gm-email-item:hover,
[data-theme=wood-legendary] .gm-row:hover {
  background: rgba(255, 245, 220, 0.08) !important;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.48),
    0 3px 6px rgba(0,0,0,0.32) !important;
  z-index: 2 !important;
}

/* Mail — lecteur bois clair → textes marron foncé */
[data-theme=wood-legendary] .gm-reader-inner,
[data-theme=wood-legendary] .gm-reader-header {
  background: transparent !important;
}
[data-theme=wood-legendary] .gm-reader .gm-reader-toolbar {
  background: transparent !important;
  border-bottom: none !important;
}
[data-theme=wood-legendary] .gm-reader .gm-reader-toolbar-btn {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border-color: rgba(42, 18, 0, 0.28) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
[data-theme=wood-legendary] .gm-reader .gm-reader-toolbar-btn:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  filter: brightness(1.05) !important;
}
[data-theme=wood-legendary] .gm-reader .gm-reader-toolbar-btn.primary {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  border-color: rgba(42, 18, 0, 0.3) !important;
}

/* Mail — layout wrapper transparent */
[data-theme=wood-legendary] .gm-layout {
  background: transparent !important;
}

/* Mail — supprimer le filet doré en haut (::before décoratif) */
[data-theme=wood-legendary] .gm-layout::before,
[data-theme=wood-legendary] .gm-reader::before {
  display: none !important;
  background: none !important;
  content: none !important;
}

/* ============================================
   LECTEUR EMAIL — bois très clair complet
   ============================================ */

/* Fond principal + tous les enfants transparents */
[data-theme=wood-legendary] .gm-reader,
[data-theme=wood-legendary] #gm-reader {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: transparent !important;
}
[data-theme=wood-legendary] .gm-reader-inner,
[data-theme=wood-legendary] .gm-reader-toolbar,
[data-theme=wood-legendary] .gm-reader-subject,
[data-theme=wood-legendary] .gm-reader-meta,
[data-theme=wood-legendary] .gm-reader-body,
[data-theme=wood-legendary] .gm-reader-reply-box,
[data-theme=wood-legendary] .gm-quick-reply {
  background: transparent !important;
}

/* Bordures adaptées au fond clair */
[data-theme=wood-legendary] .gm-reader-toolbar {
  border-bottom: 1px solid rgba(42, 18, 0, 0.15) !important;
}
[data-theme=wood-legendary] .gm-reader-meta {
  border-bottom: 1px solid rgba(42, 18, 0, 0.12) !important;
}
[data-theme=wood-legendary] .gm-quick-reply {
  border-top: 1px solid rgba(42, 18, 0, 0.12) !important;
}

/* Textes → marron foncé */
[data-theme=wood-legendary] .gm-reader-subject {
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .gm-reader-meta-sender,
[data-theme=wood-legendary] .gm-reader-from {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gm-reader-meta-to,
[data-theme=wood-legendary] .gm-reader-meta-date,
[data-theme=wood-legendary] .gm-reader-addr {
  color: rgba(42, 18, 0, 0.55) !important;
}
[data-theme=wood-legendary] .gm-reader-body {
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .gm-reader-body a {
  color: #8B4513 !important;
  border-bottom-color: rgba(139, 69, 19, 0.3) !important;
}

/* Boutons toolbar */
[data-theme=wood-legendary] .gm-reader-toolbar-btn {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  color: #2A1200 !important;
  border-color: rgba(42, 18, 0, 0.28) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
[data-theme=wood-legendary] .gm-reader-toolbar-btn:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  filter: brightness(1.05) !important;
}
[data-theme=wood-legendary] .gm-reader-toolbar-btn.primary {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  color: #2A1200 !important;
  border-color: rgba(42, 18, 0, 0.3) !important;
}

/* Quick reply */
[data-theme=wood-legendary] .gm-quick-reply input {
  background: rgba(42, 18, 0, 0.06) !important;
  border-color: rgba(42, 18, 0, 0.18) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .gm-quick-reply input::placeholder {
  color: rgba(42, 18, 0, 0.4) !important;
}
[data-theme=wood-legendary] .gm-quick-reply-send {
  background: rgba(42, 18, 0, 0.1) !important;
  border-color: rgba(42, 18, 0, 0.25) !important;
  color: #8B4513 !important;
}

/* Étoile favoris */
[data-theme=wood-legendary] .gm-star-btn {
  color: rgba(42, 18, 0, 0.35) !important;
}
[data-theme=wood-legendary] .gm-star-btn.starred {
  color: #C9A84C !important;
}

/* Mail — ombres de profondeur entre colonnes */
[data-theme=wood-legendary] .gm-sidebar {
  box-shadow: 6px 0 40px rgba(0,0,0,0.75), 3px 0 12px rgba(0,0,0,0.55) !important;
  z-index: 3 !important;
  position: relative !important;
}
[data-theme=wood-legendary] .gm-list-panel {
  box-shadow: 6px 0 32px rgba(0,0,0,0.6), 3px 0 10px rgba(0,0,0,0.4) !important;
  z-index: 2 !important;
  position: relative !important;
}
[data-theme=wood-legendary] .gm-reader {
  z-index: 1 !important;
  position: relative !important;
}

/* Mail — ombre bouton + Composer */
[data-theme=wood-legendary] .gm-compose-btn {
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.25) !important;
}
[data-theme=wood-legendary] .gm-compose-btn:hover {
  box-shadow: 0 6px 26px rgba(0,0,0,0.55), 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 3px rgba(255,255,255,0.3) !important;
}

/* Mail — ombres filtres Tous / Non lus / Favoris */
[data-theme=wood-legendary] .gm-filter-pill {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.18) !important;
}
[data-theme=wood-legendary] .gm-filter-pill.active {
  box-shadow: 0 3px 12px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.25), inset 0 1px 3px rgba(255,255,255,0.2) !important;
}
[data-theme=wood-legendary] .gm-filter-pill:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2) !important;
}

/* Mail — ombre autour du bloc Maha Giri */
[data-theme=wood-legendary] .gm-acct-top-btn {
  box-shadow:
    0 3px 10px rgba(0,0,0,0.45),
    0 1px 4px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,245,220,0.15) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .gm-acct-top-btn:hover {
  box-shadow:
    0 5px 16px rgba(0,0,0,0.55),
    0 2px 6px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,245,220,0.22) !important;
}

/* Mail — ombre autour de la barre de recherche (loupe) */
[data-theme=wood-legendary] .gm-search-wrap,
[data-theme=wood-legendary] div.gm-search {
  box-shadow:
    0 4px 14px rgba(0,0,0,0.5),
    0 2px 5px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,245,220,0.18) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] input.gm-search,
[data-theme=wood-legendary] #gm-search {
  box-shadow: none !important;
}

/* Mail — bouton Vider la corbeille */
[data-theme=wood-legendary] #gm-trash-action-bar button {
  background: rgba(239, 68, 68, 0.30) !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.45),
    0 2px 5px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,150,150,0.15) !important;
}
[data-theme=wood-legendary] #gm-trash-action-bar button:hover {
  background: rgba(239, 68, 68, 0.42) !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.55),
    0 3px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,150,150,0.2) !important;
}

/* Mail — ombre inset à gauche de la colonne liste (depuis la sidebar) */
[data-theme=wood-legendary] .gm-list-panel {
  box-shadow:
    6px 0 32px rgba(0,0,0,0.6),
    3px 0 10px rgba(0,0,0,0.4),
    inset 8px 0 20px rgba(0,0,0,0.35),
    inset 3px 0 8px rgba(0,0,0,0.22) !important;
}

/* Mail — ombre très marquée à gauche de la sidebar dossiers (séparation app principale) */
[data-theme=wood-legendary] .gm-sidebar {
  box-shadow:
    6px 0 40px rgba(0,0,0,0.75),
    3px 0 12px rgba(0,0,0,0.55),
    inset 12px 0 30px rgba(0,0,0,0.65),
    inset 5px 0 12px rgba(0,0,0,0.45) !important;
  border-left: 2px solid rgba(0,0,0,0.5) !important;
}

/* Mail — destinataire et date en marron foncé */
[data-theme=wood-legendary] .gm-reader-meta-to,
[data-theme=wood-legendary] .gm-reader-to {
  color: #3D1A00 !important;
}
[data-theme=wood-legendary] .gm-reader-meta-date,
[data-theme=wood-legendary] .gm-reader-date {
  color: #3D1A00 !important;
}

/* ── MAIL COMPOSER MODAL — wood legendary ──────────────────────── */

/* Fond modale — wood-light-premium cover */
[data-theme=wood-legendary] .mail-modal {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 16px !important;
}

/* En-tete transparent, titre marron noble */
[data-theme=wood-legendary] .mail-modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .mail-modal-header h3 {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.2) !important;
  font-weight: 800 !important;
}

/* Corps transparent */
[data-theme=wood-legendary] .mail-modal-body {
  background: transparent !important;
}

/* Labels marron fonce */
[data-theme=wood-legendary] .mail-modal label,
[data-theme=wood-legendary] .mail-form-group label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* Petits textes d'aide */
[data-theme=wood-legendary] .mail-form-group small {
  color: rgba(42, 18, 0, 0.5) !important;
}

/* Inputs */
[data-theme=wood-legendary] .mail-input {
  background: rgba(42, 18, 0, 0.12) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}
[data-theme=wood-legendary] .mail-input:focus {
  border-color: rgba(139, 105, 20, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2), inset 0 1px 3px rgba(0,0,0,0.1) !important;
  outline: none !important;
}
[data-theme=wood-legendary] .mail-input::placeholder {
  color: rgba(42, 18, 0, 0.4) !important;
}

/* Editeur de message */
[data-theme=wood-legendary] .mail-editor {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .mail-editor:empty::before {
  color: rgba(42, 18, 0, 0.35) !important;
}

/* Compteur destinataires valides */
[data-theme=wood-legendary] #composer-to-count {
  color: #5A8A2A !important;
  font-weight: 600 !important;
}

/* Toolbar formatage */
[data-theme=wood-legendary] .mail-editor-toolbar {
  background: rgba(42, 18, 0, 0.1) !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.15) !important;
  border-radius: 8px 8px 0 0 !important;
}
[data-theme=wood-legendary] .mail-toolbar-btn {
  color: #2A1200 !important;
  background: rgba(42, 18, 0, 0.08) !important;
  border-radius: 4px !important;
}
[data-theme=wood-legendary] .mail-toolbar-btn:hover {
  background: rgba(42, 18, 0, 0.18) !important;
}

/* Footer */
[data-theme=wood-legendary] .mail-modal-footer {
  background: transparent !important;
  border-top: 1px solid rgba(42, 18, 0, 0.2) !important;
}

/* Boutons Brouillon + Joindre — bois medium */
[data-theme=wood-legendary] .mail-modal-footer-left .btn {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  color: #FFF5DC !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 8px !important;
}

/* Bouton Annuler */
[data-theme=wood-legendary] .mail-modal-footer-right .btn-outline {
  background: rgba(42, 18, 0, 0.10) !important;
  background-image: none !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* Bouton Envoyer — bois medium noble */
[data-theme=wood-legendary] .mail-modal-footer-right .btn-primary {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
}

/* ── GIRI BOOKING — wood legendary ──────────────────────────────── */

/* Wrapper global */
[data-theme=wood-legendary] .bk-wrapper {
  background: transparent !important;
}

/* Header page */
[data-theme=wood-legendary] .bk-header {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
}
[data-theme=wood-legendary] .bk-subtitle {
  color: rgba(255, 245, 220, 0.65) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Bouton "Voir ma page" */
[data-theme=wood-legendary] .bk-btn-secondary {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
}

/* Barre d'onglets */
[data-theme=wood-legendary] .bk-tabs {
  background: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme=wood-legendary] .bk-tab {
  color: rgba(255, 245, 220, 0.70) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.7) !important;
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-tab.active,
[data-theme=wood-legendary] .bk-tab[class*="active"] {
  color: #C9A84C !important;
  border-bottom: 2px solid #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-tab-icon,
[data-theme=wood-legendary] .bk-tab-label {
  color: inherit !important;
}

/* Section header + titre de section */
[data-theme=wood-legendary] .bk-section-header {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-section-title {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-section-subtitle {
  color: rgba(255, 245, 220, 0.60) !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.7) !important;
}

/* Bouton + Nouvelle offre */
[data-theme=wood-legendary] #bk-add-offer,
[data-theme=wood-legendary] .bk-section-header .bk-btn-primary {
  background: linear-gradient(135deg, #C9A84C, #8B6914) !important;
  background-image: none !important;
  border: 1px solid rgba(201, 168, 76, 0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3) !important;
}

/* Cartes offres */
[data-theme=wood-legendary] .bk-offer-card {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .bk-offer-name {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4), 0px 2px 4px rgba(0,0,0,0.2) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-offer-desc {
  color: rgba(42, 18, 0, 0.75) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .bk-offer-body {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-offer-header-row {
  background: transparent !important;
}

/* Metas et stats des offres */
[data-theme=wood-legendary] .bk-offer-meta,
[data-theme=wood-legendary] .bk-offer-stats {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-offer-stat {
  color: rgba(42, 18, 0, 0.65) !important;
  font-weight: 500 !important;
}

/* Tags durée et prix */
[data-theme=wood-legendary] .bk-tag {
  background: rgba(42, 18, 0, 0.12) !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}
[data-theme=wood-legendary] .bk-tag-off {
  background: rgba(42, 18, 0, 0.06) !important;
  color: rgba(42, 18, 0, 0.45) !important;
}

/* Boutons d'action sur les cartes */
[data-theme=wood-legendary] .bk-offer-actions .bk-btn-ghost,
[data-theme=wood-legendary] .bk-offer-actions .bk-btn-icon {
  color: #2A1200 !important;
  background: rgba(42, 18, 0, 0.08) !important;
  border-color: rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .bk-offer-actions .bk-btn-ghost:hover,
[data-theme=wood-legendary] .bk-offer-actions .bk-btn-icon:hover {
  background: rgba(42, 18, 0, 0.18) !important;
}

/* Empty state */
[data-theme=wood-legendary] .bk-empty-state {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-empty-icon {
  color: rgba(255, 245, 220, 0.4) !important;
}
[data-theme=wood-legendary] .bk-empty-sub {
  color: rgba(255, 245, 220, 0.55) !important;
}

/* Sessions stats */
[data-theme=wood-legendary] .bk-sessions-stats {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-stat-chip {
  background: rgba(201, 168, 76, 0.12) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-stat-num {
  color: #FFF5DC !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-stat-accent {
  color: #C9A84C !important;
}

/* Sessions liste */
[data-theme=wood-legendary] .bk-session-date-header {
  color: rgba(255, 245, 220, 0.55) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
}
[data-theme=wood-legendary] .bk-session-row {
  background: rgba(201, 168, 76, 0.06) !important;
  border: 1px solid rgba(201, 168, 76, 0.12) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-session-row:hover {
  background: rgba(201, 168, 76, 0.12) !important;
}
[data-theme=wood-legendary] .bk-session-info,
[data-theme=wood-legendary] .bk-session-client {
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .bk-session-meta,
[data-theme=wood-legendary] .bk-session-time {
  color: rgba(255, 245, 220, 0.60) !important;
}

/* Filter tabs sessions */
[data-theme=wood-legendary] .bk-filter-tabs {
  background: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25) !important;
}
[data-theme=wood-legendary] .bk-filter-tab {
  color: rgba(255, 245, 220, 0.60) !important;
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-filter-tab.active {
  color: #C9A84C !important;
  border-bottom: 2px solid #C9A84C !important;
  font-weight: 700 !important;
}

/* Status badges */
[data-theme=wood-legendary] .bk-status-badge {
  border-radius: 6px !important;
  font-weight: 700 !important;
}

/* Search box */
[data-theme=wood-legendary] .bk-search-box {
  background: rgba(201, 168, 76, 0.08) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-search-box::placeholder {
  color: rgba(255, 245, 220, 0.40) !important;
}

/* Formulaires (modales) */
[data-theme=wood-legendary] .bk-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-input,
[data-theme=wood-legendary] .bk-textarea {
  background: rgba(42, 18, 0, 0.12) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-input:focus,
[data-theme=wood-legendary] .bk-textarea:focus {
  border-color: rgba(139, 105, 20, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}
[data-theme=wood-legendary] .bk-hint {
  color: rgba(42, 18, 0, 0.50) !important;
}

/* Modales offres/sessions */
[data-theme=wood-legendary] .bk-modal-overlay {
  background: rgba(0, 0, 0, 0.65) !important;
}
[data-theme=wood-legendary] .bk-modal {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 16px !important;
}
[data-theme=wood-legendary] .bk-modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.2) !important;
}
[data-theme=wood-legendary] .bk-modal-title {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0px rgba(255,180,80,0.4) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-modal-close {
  color: #2A1200 !important;
  background: rgba(42, 18, 0, 0.08) !important;
}
[data-theme=wood-legendary] .bk-modal-body {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-modal-footer {
  background: transparent !important;
  border-top: 1px solid rgba(42, 18, 0, 0.2) !important;
}

/* Bouton primaire dans modales */
[data-theme=wood-legendary] .bk-modal .bk-btn-primary {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-modal .bk-btn-ghost {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
}

/* Mypage editor */
[data-theme=wood-legendary] .bk-mypage-layout {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-mypage-editor {
  background: rgba(201, 168, 76, 0.06) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-radius: 12px !important;
}
[data-theme=wood-legendary] .bk-mypage-url-bar {
  background: rgba(42, 18, 0, 0.12) !important;
  border: 1px solid rgba(42, 18, 0, 0.2) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-mypage-url-label {
  color: rgba(42, 18, 0, 0.55) !important;
}
[data-theme=wood-legendary] .bk-mypage-url-link {
  color: #2A1200 !important;
  font-weight: 600 !important;
}

/* ── BOOKING — ombre emojis + restauration bouton Nouvelle offre ── */

/* Ombre derrière les emojis dans les cartes */
[data-theme=wood-legendary] .bk-offer-card .bk-offer-drag-handle {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.55)) !important;
}
[data-theme=wood-legendary] .bk-offer-card .bk-btn-icon {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)) !important;
}
[data-theme=wood-legendary] .bk-offer-card .bk-offer-stat {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)) !important;
}
[data-theme=wood-legendary] .bk-offer-card .bk-tag {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)) !important;
}

/* Restauration bouton + Nouvelle offre (apparence originale) */
[data-theme=wood-legendary] #bk-add-offer,
[data-theme=wood-legendary] .bk-section-header .bk-btn-primary {
  background: var(--accent, #8B5CF6) !important;
  background-image: none !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* ── BOOKING DISPONIBILITÉS — wood legendary ────────────────────── */

/* Grille des jours */
[data-theme=wood-legendary] .bk-avail-grid {
  background: transparent !important;
}

/* Carte jour — inactif : bois léger semi-transparent */
[data-theme=wood-legendary] .bk-avail-day {
  background: rgba(201, 168, 76, 0.06) !important;
  border: 1px solid rgba(201, 168, 76, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Carte jour — ACTIF : bois clair premium */
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2) !important;
}

/* Header de chaque jour */
[data-theme=wood-legendary] .bk-avail-day-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.15) !important;
}

/* Nom du jour — crème sur inactif, marron sur actif */
[data-theme=wood-legendary] .bk-avail-day .bk-day-name {
  color: rgba(255, 245, 220, 0.65) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on .bk-day-name {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.35) !important;
}

/* Slots horaires */
[data-theme=wood-legendary] .bk-avail-hours {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-avail-slots {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-slot-row {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 1px solid rgba(42, 18, 0, 0.15) !important;
  border-radius: 6px !important;
}

/* Inputs de temps */
[data-theme=wood-legendary] .bk-time-input {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .bk-time-input:focus {
  border-color: rgba(139, 105, 20, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
  outline: none !important;
}

/* Séparateur → entre les heures */
[data-theme=wood-legendary] .bk-slot-sep {
  color: rgba(42, 18, 0, 0.45) !important;
  font-weight: 700 !important;
}

/* Boutons + / - ajout de slot */
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on .bk-btn-xs,
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on .bk-btn-sm {
  color: #2A1200 !important;
  background: rgba(42, 18, 0, 0.10) !important;
  border-color: rgba(42, 18, 0, 0.2) !important;
}

/* Timeline visuelle */
[data-theme=wood-legendary] .bk-timeline-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25) !important;
}
[data-theme=wood-legendary] .bk-timeline-hour {
  color: rgba(255, 245, 220, 0.50) !important;
  font-size: 11px !important;
}
[data-theme=wood-legendary] .bk-timeline-label {
  color: rgba(255, 245, 220, 0.70) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-timeline-row {
  border-bottom: 1px solid rgba(201, 168, 76, 0.10) !important;
}
[data-theme=wood-legendary] .bk-timeline-bar {
  background: rgba(201, 168, 76, 0.08) !important;
  border-radius: 4px !important;
}

/* Blocs de plage sur la timeline — dorés */
[data-theme=wood-legendary] .bk-timeline-slot {
  background: linear-gradient(135deg, rgba(201,168,76,0.75), rgba(139,105,20,0.6)) !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35) !important;
}

/* Divider */
[data-theme=wood-legendary] .bk-divider {
  border-color: rgba(201, 168, 76, 0.2) !important;
}

/* Section exceptions */
[data-theme=wood-legendary] .bk-exc-list {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-exc-row {
  background: rgba(201, 168, 76, 0.07) !important;
  border: 1px solid rgba(201, 168, 76, 0.18) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-exc-date {
  color: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-exc-reason {
  color: rgba(255, 245, 220, 0.60) !important;
}

/* Badges disponible / indisponible */
[data-theme=wood-legendary] .bk-exc-type {
  border-radius: 6px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
}
[data-theme=wood-legendary] .bk-exc-avail {
  background: rgba(90, 138, 42, 0.25) !important;
  color: #9ACD5A !important;
  border: 1px solid rgba(90, 138, 42, 0.4) !important;
}
[data-theme=wood-legendary] .bk-exc-off {
  background: rgba(180, 60, 40, 0.20) !important;
  color: #E8826A !important;
  border: 1px solid rgba(180, 60, 40, 0.35) !important;
}

/* Bouton "Ajouter une exception" */
[data-theme=wood-legendary] #bk-exc-add,
[data-theme=wood-legendary] .bk-section-header .bk-btn-secondary {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Navigation mois exceptions (◀ ▶) */
[data-theme=wood-legendary] #bk-exc-prev,
[data-theme=wood-legendary] #bk-exc-next {
  color: rgba(255, 245, 220, 0.75) !important;
  background: rgba(201, 168, 76, 0.10) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 6px !important;
}
[data-theme=wood-legendary] #bk-exc-month-label {
  color: #FFF5DC !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7) !important;
}

/* Inputs génériques dans dispo */
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on .bk-input,
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on .bk-input-sm {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 6px !important;
}
[data-theme=wood-legendary] .bk-avail-day.bk-avail-day-on .bk-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* ── DISPONIBILITÉS — boutons du bas + flèches ─────────────────── */

/* Flèches navigation mois (◀ ▶) → bois très clair */
[data-theme=wood-legendary] #bk-exc-prev,
[data-theme=wood-legendary] #bk-exc-next {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* Heures de bureau + Copier Lun→Ven + Tout bloquer → ombre marquée */
[data-theme=wood-legendary] #bk-avail-business,
[data-theme=wood-legendary] #bk-avail-copy-week,
[data-theme=wood-legendary] #bk-avail-block-all {
  background: rgba(201, 168, 76, 0.10) !important;
  background-image: none !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  color: #FFF5DC !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.45),
    0 2px 6px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) !important;
}
[data-theme=wood-legendary] #bk-avail-business:hover,
[data-theme=wood-legendary] #bk-avail-copy-week:hover,
[data-theme=wood-legendary] #bk-avail-block-all:hover {
  background: rgba(201, 168, 76, 0.18) !important;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.5),
    0 3px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}

/* Bouton Enregistrer → bois très clair */
[data-theme=wood-legendary] #bk-avail-save {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.4) !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
[data-theme=wood-legendary] #bk-avail-save:hover {
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 3px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/* ── BOOKING TIMELINE — 3 coloris bois ─────────────────────────── */

/* Container global — bois sombre en fond */
[data-theme=wood-legendary] .bk-avail-timeline {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 12px !important;
  box-shadow:
    0 6px 24px rgba(0,0,0,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  overflow: hidden !important;
}

/* Header heures — bois medium en overlay sombre */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-header {
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-hour {
  color: rgba(201, 168, 76, 0.75) !important;
  font-weight: 600 !important;
}

/* Labels jours (Lun, Mar…) */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-label {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
}

/* Lignes de jour */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row {
  border-bottom: 1px solid rgba(201, 168, 76, 0.10) !important;
}
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:last-child {
  border-bottom: none !important;
}

/* Barre de fond — overlay très léger */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-bar {
  background: rgba(0,0,0,0.20) !important;
  border-radius: 3px !important;
}

/* Blocs actifs — rotation 3 textures bois */

/* Lundi (1er) → bois clair */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(1) .bk-timeline-slot {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* Mardi (2e) → bois medium */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(2) .bk-timeline-slot {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Mercredi (3e) → bois sombre */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(3) .bk-timeline-slot {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* Jeudi (4e) → bois clair */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(4) .bk-timeline-slot {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* Vendredi (5e) → bois medium */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(5) .bk-timeline-slot {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Samedi (6e) → bois sombre */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(6) .bk-timeline-slot {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* Dimanche (7e) → bois clair */
[data-theme=wood-legendary] .bk-avail-timeline .bk-timeline-row:nth-child(7) .bk-timeline-slot {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* ── MES OFFRES — bouton + Nouvelle offre → bois très clair ─────── */
[data-theme=wood-legendary] #bk-add-offer {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.4) !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
[data-theme=wood-legendary] #bk-add-offer:hover {
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 3px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/* ── DISPONIBILITÉS — contours jours inactifs plus visibles ─────── */
[data-theme=wood-legendary] .bk-avail-day:not(.bk-avail-day-on) {
  background: rgba(201, 168, 76, 0.07) !important;
  border: 1px solid rgba(201, 168, 76, 0.40) !important;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.18),
    0 2px 10px rgba(0,0,0,0.30) !important;
}

/* ── MON AGENDA — wood legendary ───────────────────────────────── */

/* Stats chips en haut — 3 bois différents */
[data-theme=wood-legendary] .bk-sessions-stats {
  background: transparent !important;
  gap: 10px !important;
}
[data-theme=wood-legendary] .bk-stat-chip:nth-child(1) {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
[data-theme=wood-legendary] .bk-stat-chip:nth-child(2) {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
[data-theme=wood-legendary] .bk-stat-chip:nth-child(3) {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* Chiffres dans les chips */
[data-theme=wood-legendary] .bk-stat-chip:nth-child(1) .bk-stat-num,
[data-theme=wood-legendary] .bk-stat-chip:nth-child(2) .bk-stat-num {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-stat-chip:nth-child(3) .bk-stat-num {
  color: #2A1200 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.4) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-stat-chip:nth-child(1),
[data-theme=wood-legendary] .bk-stat-chip:nth-child(2) {
  color: rgba(255, 245, 220, 0.75) !important;
}
[data-theme=wood-legendary] .bk-stat-chip:nth-child(3) {
  color: rgba(42, 18, 0, 0.65) !important;
}
[data-theme=wood-legendary] .bk-stat-chip.bk-stat-accent {
  background-image: url('textures/wood-medium.jpg') !important;
}

/* Header de date (Lundi 28 mars…) */
[data-theme=wood-legendary] .bk-session-date-header {
  color: #C9A84C !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
}

/* Groupe de sessions */
[data-theme=wood-legendary] .bk-session-group {
  background: transparent !important;
}

/* Ligne de session — bois clair premium */
[data-theme=wood-legendary] .bk-session-row {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.38) !important;
  border-radius: 10px !important;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.35),
    0 1px 4px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transition: box-shadow 0.2s !important;
}
[data-theme=wood-legendary] .bk-session-row:hover {
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.28) !important;
  border-color: rgba(201, 168, 76, 0.6) !important;
}

/* Sessions passées — bois foncé, atténuées */
[data-theme=wood-legendary] .bk-session-row.bk-session-past {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  border-color: rgba(201, 168, 76, 0.18) !important;
  opacity: 0.72 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Heure de session */
[data-theme=wood-legendary] .bk-session-row:not(.bk-session-past) .bk-session-time {
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.35) !important;
}
[data-theme=wood-legendary] .bk-session-row.bk-session-past .bk-session-time {
  color: rgba(255, 245, 220, 0.60) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}

/* Nom client */
[data-theme=wood-legendary] .bk-session-row:not(.bk-session-past) .bk-session-client {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-session-row.bk-session-past .bk-session-client {
  color: rgba(255, 245, 220, 0.80) !important;
  font-weight: 600 !important;
}

/* Meta (durée, email, offre) */
[data-theme=wood-legendary] .bk-session-row:not(.bk-session-past) .bk-session-meta {
  color: rgba(42, 18, 0, 0.60) !important;
}
[data-theme=wood-legendary] .bk-session-row.bk-session-past .bk-session-meta {
  color: rgba(255, 245, 220, 0.45) !important;
}

/* Badges de statut */
[data-theme=wood-legendary] .bk-status-confirmed {
  background: rgba(80, 140, 40, 0.22) !important;
  color: #9ACD5A !important;
  border: 1px solid rgba(80, 140, 40, 0.40) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
[data-theme=wood-legendary] .bk-status-cancelled {
  background: rgba(180, 60, 40, 0.18) !important;
  color: #E8826A !important;
  border: 1px solid rgba(180, 60, 40, 0.35) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-status-pending {
  background: rgba(201, 168, 76, 0.18) !important;
  color: #E8C96A !important;
  border: 1px solid rgba(201, 168, 76, 0.38) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-status-noshow {
  background: rgba(100, 80, 50, 0.22) !important;
  color: rgba(255, 245, 220, 0.55) !important;
  border: 1px solid rgba(100, 80, 50, 0.35) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

/* Badge paiement */
[data-theme=wood-legendary] .bk-pay-paid {
  background: rgba(80, 140, 40, 0.18) !important;
  color: #9ACD5A !important;
  border: 1px solid rgba(80, 140, 40, 0.35) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-pay-pending {
  background: rgba(201, 168, 76, 0.15) !important;
  color: #E8C96A !important;
  border: 1px solid rgba(201, 168, 76, 0.32) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

/* Bouton Rejoindre */
[data-theme=wood-legendary] .bk-btn-join {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.5) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.3) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* Barre de recherche */
[data-theme=wood-legendary] .bk-sessions-list .bk-search-box {
  background: rgba(201, 168, 76, 0.08) !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .bk-sessions-list .bk-search-box::placeholder {
  color: rgba(255, 245, 220, 0.38) !important;
}

/* Note ★ */
[data-theme=wood-legendary] .bk-session-rating {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)) !important;
}

/* Modal détail session — wood-light-premium (déjà défini) + detail grid */
[data-theme=wood-legendary] .bk-session-detail-grid {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-detail-block {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 1px solid rgba(42, 18, 0, 0.15) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-detail-label {
  color: rgba(42, 18, 0, 0.55) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
}
[data-theme=wood-legendary] .bk-detail-value {
  color: #2A1200 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .bk-detail-message {
  background: rgba(42, 18, 0, 0.06) !important;
  border-left: 3px solid rgba(201, 168, 76, 0.5) !important;
  color: rgba(42, 18, 0, 0.75) !important;
  border-radius: 0 6px 6px 0 !important;
}

/* Section notes */
[data-theme=wood-legendary] .bk-notes-section .bk-textarea {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 1px solid rgba(42, 18, 0, 0.20) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
}

/* Lien portail client */
[data-theme=wood-legendary] .bk-portal-link-row {
  background: rgba(42, 18, 0, 0.06) !important;
  border: 1px solid rgba(42, 18, 0, 0.15) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-link {
  color: #8B6914 !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .bk-copy-portal {
  background: rgba(42, 18, 0, 0.10) !important;
  border-color: rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
  border-radius: 6px !important;
}

/* ── MON AGENDA — filter tabs bois clair ───────────────────────── */

[data-theme=wood-legendary] .bk-filter-tab {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.38) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.3) !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  opacity: 0.72 !important;
}
[data-theme=wood-legendary] .bk-filter-tab.active {
  border-color: rgba(201, 168, 76, 0.70) !important;
  color: #1A0800 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.35) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .bk-filter-tab:hover:not(.active) {
  opacity: 0.90 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}

/* ── MON AGENDA — ombres fortes autour des réservations ─────────── */

[data-theme=wood-legendary] .bk-session-row {
  box-shadow:
    0 8px 28px rgba(0,0,0,0.65),
    0 4px 12px rgba(0,0,0,0.50),
    0 1px 4px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
[data-theme=wood-legendary] .bk-session-row:hover {
  box-shadow:
    0 12px 36px rgba(0,0,0,0.72),
    0 6px 16px rgba(0,0,0,0.55),
    0 2px 6px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.30) !important;
  border-color: rgba(201, 168, 76, 0.65) !important;
}
[data-theme=wood-legendary] .bk-session-row.bk-session-past {
  box-shadow:
    0 6px 20px rgba(0,0,0,0.55),
    0 3px 8px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* ── SÉQUENCES EMAIL — wood legendary ──────────────────────────── */

/* Layout global */
[data-theme=wood-legendary] .bk-seq-layout {
  background: transparent !important;
}

/* ── SIDEBAR — bois sombre ────────────────────────────────────── */
[data-theme=wood-legendary] .bk-seq-sidebar {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  border-radius: 12px !important;
  box-shadow:
    4px 0 20px rgba(0,0,0,0.50),
    2px 0 8px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  overflow: hidden !important;
}

/* Items sidebar — inactifs */
[data-theme=wood-legendary] .bk-seq-item {
  background: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12) !important;
  transition: background 0.18s !important;
}
[data-theme=wood-legendary] .bk-seq-item:last-child {
  border-bottom: none !important;
}
[data-theme=wood-legendary] .bk-seq-item:hover:not(.active) {
  background: rgba(201, 168, 76, 0.10) !important;
}

/* Item actif — bois medium lumineux */
[data-theme=wood-legendary] .bk-seq-item.active {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-left: 3px solid #C9A84C !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    2px 0 12px rgba(0,0,0,0.35) !important;
}

/* Emoji icône sidebar */
[data-theme=wood-legendary] .bk-seq-icon {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.70)) !important;
}

/* Label item */
[data-theme=wood-legendary] .bk-seq-item .bk-seq-item-label {
  color: rgba(255, 245, 220, 0.85) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}
[data-theme=wood-legendary] .bk-seq-item.active .bk-seq-item-label {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9) !important;
}

/* Description sous le label */
[data-theme=wood-legendary] .bk-seq-item .bk-seq-item-desc {
  color: rgba(255, 245, 220, 0.45) !important;
  font-size: 0.72rem !important;
}
[data-theme=wood-legendary] .bk-seq-item.active .bk-seq-item-desc {
  color: rgba(255, 245, 220, 0.65) !important;
}

/* Status ✅/⏸ */
[data-theme=wood-legendary] .bk-seq-status {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)) !important;
}

/* ── ÉDITEUR — bois clair premium ────────────────────────────── */
[data-theme=wood-legendary] .bk-seq-editor {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.40) !important;
  border-radius: 12px !important;
  box-shadow:
    0 6px 24px rgba(0,0,0,0.40),
    0 2px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.20) !important;
  overflow: hidden !important;
}

/* Header éditeur */
[data-theme=wood-legendary] .bk-seq-editor-header {
  background: rgba(42, 18, 0, 0.08) !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.15) !important;
}
[data-theme=wood-legendary] .bk-seq-editor-header h4 {
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.4) !important;
}
[data-theme=wood-legendary] .bk-seq-editor-desc {
  color: rgba(42, 18, 0, 0.58) !important;
}

/* Toggle actif/inactif label */
[data-theme=wood-legendary] .bk-seq-editor .bk-toggle-row {
  background: transparent !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
}

/* Labels champs */
[data-theme=wood-legendary] .bk-seq-editor .bk-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}

/* Input sujet */
[data-theme=wood-legendary] .bk-seq-editor .bk-input {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08) !important;
}
[data-theme=wood-legendary] .bk-seq-editor .bk-input:focus {
  border-color: rgba(139, 105, 20, 0.60) !important;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.20), inset 0 1px 3px rgba(0,0,0,0.08) !important;
  outline: none !important;
}
[data-theme=wood-legendary] .bk-seq-editor .bk-input::placeholder {
  color: rgba(42, 18, 0, 0.38) !important;
}

/* Variables {{...}} */
[data-theme=wood-legendary] .bk-seq-vars {
  background: rgba(42, 18, 0, 0.06) !important;
  border: 1px solid rgba(42, 18, 0, 0.12) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-var-tag {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(139,105,20,0.18)) !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
  cursor: pointer !important;
}
[data-theme=wood-legendary] .bk-var-tag:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.40), rgba(139,105,20,0.30)) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

/* ── TOOLBAR RTE ─────────────────────────────────────────────── */
[data-theme=wood-legendary] .bk-rte-toolbar {
  background: rgba(42, 18, 0, 0.12) !important;
  border-bottom: 1px solid rgba(42, 18, 0, 0.15) !important;
  border-radius: 8px 8px 0 0 !important;
}
[data-theme=wood-legendary] .bk-rte-btn {
  color: #2A1200 !important;
  background: rgba(42, 18, 0, 0.07) !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bk-rte-btn:hover {
  background: rgba(42, 18, 0, 0.18) !important;
}
[data-theme=wood-legendary] .bk-rte-btn.active {
  background: rgba(42, 18, 0, 0.28) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .bk-rte-select {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.20) !important;
  color: #2A1200 !important;
  border-radius: 5px !important;
}
[data-theme=wood-legendary] .bk-rte-sep {
  background: rgba(42, 18, 0, 0.20) !important;
}

/* Color picker */
[data-theme=wood-legendary] .bk-rte-color-picker {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.40) !important;
}

/* Zone d'édition du corps */
[data-theme=wood-legendary] .bk-rte-editor {
  background: rgba(255, 248, 235, 0.55) !important;
  color: #2A1200 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08) !important;
}

/* ── ACTIONS bas éditeur ──────────────────────────────────────── */
[data-theme=wood-legendary] .bk-seq-actions {
  background: transparent !important;
  border-top: 1px solid rgba(42, 18, 0, 0.15) !important;
}

/* Bouton Enregistrer → bois très clair */
[data-theme=wood-legendary] #bk-seq-save {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.4) !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
[data-theme=wood-legendary] #bk-seq-save:hover {
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 3px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/* Bouton Restaurer défaut */
[data-theme=wood-legendary] #bk-seq-reset {
  background: rgba(42, 18, 0, 0.10) !important;
  background-image: none !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* Séquences — description déclencheur plus foncée */
[data-theme=wood-legendary] .bk-seq-editor-desc {
  color: rgba(42, 18, 0, 0.82) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .bk-seq-item .bk-seq-item-desc {
  color: rgba(255, 245, 220, 0.72) !important;
}
[data-theme=wood-legendary] .bk-seq-item.active .bk-seq-item-desc {
  color: rgba(255, 245, 220, 0.88) !important;
}

/* Séquences — boutons toolbar RTE en bois très clair */
[data-theme=wood-legendary] .bk-rte-btn {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .bk-rte-btn:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.32) !important;
  border-color: rgba(201, 168, 76, 0.50) !important;
}
[data-theme=wood-legendary] .bk-rte-btn.active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 2px 5px rgba(0,0,0,0.18) !important;
  border-color: rgba(139, 105, 20, 0.55) !important;
}

/* ── TOASTS — wood legendary ultra premium ──────────────────────── */

/* Base toast — bois medium noble */
[data-theme=wood-legendary] .toast {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 16px !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.70),
    0 8px 24px rgba(0,0,0,0.50),
    0 2px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

/* Ligne lumineuse en haut */
[data-theme=wood-legendary] .toast::before {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent) !important;
}

/* ── Types — bordures colorées bois ──────────────────────── */
[data-theme=wood-legendary] .toast-success {
  border-color: rgba(90, 200, 90, 0.45) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.70),
    0 8px 24px rgba(0,0,0,0.50),
    0 0 30px rgba(34,197,94,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}
[data-theme=wood-legendary] .toast-error {
  border-color: rgba(220, 80, 80, 0.45) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.70),
    0 8px 24px rgba(0,0,0,0.50),
    0 0 30px rgba(239,68,68,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}
[data-theme=wood-legendary] .toast-warning {
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.70),
    0 8px 24px rgba(0,0,0,0.50),
    0 0 30px rgba(245,158,11,0.12),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}
[data-theme=wood-legendary] .toast-info {
  border-color: rgba(201, 168, 76, 0.55) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.70),
    0 8px 24px rgba(0,0,0,0.50),
    0 0 30px rgba(201,168,76,0.15),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

/* ── Icône ──────────────────────────────────────────────── */
[data-theme=wood-legendary] .toast-icon {
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.18) !important;
  box-shadow: 0 0 16px rgba(34,197,94,0.25) !important;
}
[data-theme=wood-legendary] .toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.18) !important;
  box-shadow: 0 0 16px rgba(239,68,68,0.25) !important;
}
[data-theme=wood-legendary] .toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.18) !important;
  box-shadow: 0 0 16px rgba(245,158,11,0.25) !important;
}
[data-theme=wood-legendary] .toast-info .toast-icon {
  background: rgba(201, 168, 76, 0.18) !important;
  box-shadow: 0 0 16px rgba(201,168,76,0.25) !important;
}
[data-theme=wood-legendary] .toast-icon svg {
  filter: drop-shadow(0 0 5px currentColor) !important;
}

/* ── Labels SUCCÈS / ERREUR / INFO / ATTENTION ───────────── */
[data-theme=wood-legendary] .toast-label {
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  font-size: 11px !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .toast-success .toast-label {
  color: #6EE09A !important;
  text-shadow: 0 0 8px rgba(34,197,94,0.5) !important;
}
[data-theme=wood-legendary] .toast-error .toast-label {
  color: #F98585 !important;
  text-shadow: 0 0 8px rgba(239,68,68,0.5) !important;
}
[data-theme=wood-legendary] .toast-warning .toast-label {
  color: #FCD056 !important;
  text-shadow: 0 0 8px rgba(245,158,11,0.5) !important;
}
[data-theme=wood-legendary] .toast-info .toast-label {
  color: #E8C96A !important;
  text-shadow: 0 0 8px rgba(201,168,76,0.5) !important;
}

/* ── Message principal ──────────────────────────────────── */
[data-theme=wood-legendary] .toast-message {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
  font-weight: 600 !important;
}

/* ── Bouton fermer ──────────────────────────────────────── */
[data-theme=wood-legendary] .toast-close {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  border-radius: 8px !important;
  color: rgba(255, 245, 220, 0.55) !important;
}
[data-theme=wood-legendary] .toast-close:hover {
  background: rgba(201, 168, 76, 0.20) !important;
  border-color: rgba(201, 168, 76, 0.50) !important;
  color: #FFF5DC !important;
}

/* ── Barre de progression ───────────────────────────────── */
[data-theme=wood-legendary] .toast-success .toast-progress {
  background: linear-gradient(90deg, rgba(34,197,94,0.8), rgba(34,197,94,0.2)) !important;
  border-radius: 0 0 0 16px !important;
}
[data-theme=wood-legendary] .toast-error .toast-progress {
  background: linear-gradient(90deg, rgba(239,68,68,0.8), rgba(239,68,68,0.2)) !important;
  border-radius: 0 0 0 16px !important;
}
[data-theme=wood-legendary] .toast-warning .toast-progress {
  background: linear-gradient(90deg, rgba(245,158,11,0.8), rgba(245,158,11,0.2)) !important;
  border-radius: 0 0 0 16px !important;
}
[data-theme=wood-legendary] .toast-info .toast-progress {
  background: linear-gradient(90deg, rgba(201,168,76,0.9), rgba(201,168,76,0.2)) !important;
  border-radius: 0 0 0 16px !important;
}

/* ── Bouton d'action inline ─────────────────────────────── */
[data-theme=wood-legendary] .toast-action-btn {
  border-radius: 8px !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .toast-success .toast-action-btn {
  background: rgba(34,197,94,0.18) !important;
  color: #6EE09A !important;
  border-color: rgba(34,197,94,0.35) !important;
}
[data-theme=wood-legendary] .toast-error .toast-action-btn {
  background: rgba(239,68,68,0.18) !important;
  color: #F98585 !important;
  border-color: rgba(239,68,68,0.35) !important;
}
[data-theme=wood-legendary] .toast-warning .toast-action-btn {
  background: rgba(245,158,11,0.18) !important;
  color: #FCD056 !important;
  border-color: rgba(245,158,11,0.35) !important;
}
[data-theme=wood-legendary] .toast-info .toast-action-btn {
  background: rgba(201,168,76,0.18) !important;
  color: #E8C96A !important;
  border-color: rgba(201,168,76,0.35) !important;
}

/* ── TOASTS — fix double cadre + barres sombres ─────────────────── */

/* Toast base — wood-light, on écrase tout le dark gradient JS */
[data-theme=wood-legendary] .toast {
  background: transparent !important;
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(201, 168, 76, 0.50) !important;
  border-radius: 16px !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 6px 20px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.28) !important;
}

/* Supprimer TOUS les fonds sombres des enfants directs */
[data-theme=wood-legendary] .toast-icon,
[data-theme=wood-legendary] .toast-body,
[data-theme=wood-legendary] .toast-label,
[data-theme=wood-legendary] .toast-message,
[data-theme=wood-legendary] .toast > div {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Types — bordures colorées seulement, pas de fond sombre */
[data-theme=wood-legendary] .toast-success {
  border-color: rgba(90, 200, 90, 0.50) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 6px 20px rgba(0,0,0,0.45),
    0 0 28px rgba(34,197,94,0.10),
    inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .toast-error {
  border-color: rgba(220, 80, 80, 0.50) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 6px 20px rgba(0,0,0,0.45),
    0 0 28px rgba(239,68,68,0.10),
    inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .toast-warning {
  border-color: rgba(245, 158, 11, 0.50) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.65),
    0 6px 20px rgba(0,0,0,0.45),
    0 0 28px rgba(245,158,11,0.10),
    inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .toast-info {
  border-color: rgba(201, 168, 76, 0.60) !important;
}

/* Icône — fond transparent, juste l'ombre svg */
[data-theme=wood-legendary] .toast-success .toast-icon,
[data-theme=wood-legendary] .toast-error .toast-icon,
[data-theme=wood-legendary] .toast-warning .toast-icon,
[data-theme=wood-legendary] .toast-info .toast-icon {
  background: transparent !important;
  box-shadow: none !important;
}
[data-theme=wood-legendary] .toast-icon svg {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)) !important;
}

/* Labels SUCCÈS / ERREUR / etc. — foncé sur bois clair */
[data-theme=wood-legendary] .toast-label {
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] .toast-success .toast-label { color: #3A7A20 !important; text-shadow: none !important; }
[data-theme=wood-legendary] .toast-error   .toast-label { color: #A01818 !important; text-shadow: none !important; }
[data-theme=wood-legendary] .toast-warning .toast-label { color: #8B5E00 !important; text-shadow: none !important; }
[data-theme=wood-legendary] .toast-info    .toast-label { color: #6B4A00 !important; text-shadow: none !important; }

/* Message — marron foncé sur bois clair */
[data-theme=wood-legendary] .toast-message {
  color: #2A1200 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

/* Fermer — adapté au bois clair */
[data-theme=wood-legendary] .toast-close {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.20) !important;
  border-radius: 8px !important;
  color: rgba(42, 18, 0, 0.50) !important;
  box-shadow: none !important;
}
[data-theme=wood-legendary] .toast-close:hover {
  background: rgba(42, 18, 0, 0.18) !important;
  border-color: rgba(42, 18, 0, 0.35) !important;
  color: #2A1200 !important;
}

/* Barre de progression */
[data-theme=wood-legendary] .toast-success .toast-progress {
  background: linear-gradient(90deg, rgba(58,122,32,0.8), rgba(58,122,32,0.2)) !important;
}
[data-theme=wood-legendary] .toast-error .toast-progress {
  background: linear-gradient(90deg, rgba(160,24,24,0.8), rgba(160,24,24,0.2)) !important;
}
[data-theme=wood-legendary] .toast-warning .toast-progress {
  background: linear-gradient(90deg, rgba(139,94,0,0.8), rgba(139,94,0,0.2)) !important;
}
[data-theme=wood-legendary] .toast-info .toast-progress {
  background: linear-gradient(90deg, rgba(139,105,20,0.9), rgba(139,105,20,0.2)) !important;
}

/* Shimmer haut — doré subtil */
[data-theme=wood-legendary] .toast::before {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.30), transparent) !important;
}

/* ── TOASTS — fix coins carrés parent ───────────────────────────── */

/* Conteneur — transparent absolu */
[data-theme=wood-legendary] .toast-container {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Toast racine — tout reset puis wood-light */
[data-theme=wood-legendary] .toast {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Neutraliser le fond de TOUS les enfants directs et petits-enfants */
[data-theme=wood-legendary] .toast > *,
[data-theme=wood-legendary] .toast > * > * {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Rétablir border-radius sur toast-close seulement */
[data-theme=wood-legendary] .toast-close {
  background: rgba(42, 18, 0, 0.12) !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  border-radius: 8px !important;
  color: rgba(42, 18, 0, 0.55) !important;
}
[data-theme=wood-legendary] .toast-close:hover {
  background: rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
}

/* Barre de progression collée en bas */
[data-theme=wood-legendary] .toast-progress {
  border-radius: 0 !important;
}
[data-theme=wood-legendary] .toast-success .toast-progress {
  background: linear-gradient(90deg, rgba(58,122,32,0.75), rgba(58,122,32,0.15)) !important;
}
[data-theme=wood-legendary] .toast-error .toast-progress {
  background: linear-gradient(90deg, rgba(160,24,24,0.75), rgba(160,24,24,0.15)) !important;
}
[data-theme=wood-legendary] .toast-warning .toast-progress {
  background: linear-gradient(90deg, rgba(139,94,0,0.75), rgba(139,94,0,0.15)) !important;
}
[data-theme=wood-legendary] .toast-info .toast-progress {
  background: linear-gradient(90deg, rgba(139,105,20,0.85), rgba(139,105,20,0.15)) !important;
}

/* ── MA PAGE — wood legendary ───────────────────────────────────── */

[data-theme=wood-legendary] .bk-mypage-layout {
  background: transparent !important;
  gap: 20px !important;
}

/* ══════════════════════════════════════════════════════════════════
   ÉDITEUR GAUCHE — bois sombre profond
   ══════════════════════════════════════════════════════════════════ */
[data-theme=wood-legendary] .bk-mypage-editor {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 16px !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.60),
    0 3px 12px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
  overflow: hidden !important;
}

/* Formulaire transparent sur le fond sombre */
[data-theme=wood-legendary] .bk-mypage-form {
  background: transparent !important;
}

/* ── Barre URL — bois medium lumineux ── */
[data-theme=wood-legendary] .bk-mypage-url-bar {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 10px !important;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
[data-theme=wood-legendary] .bk-mypage-url-label {
  color: rgba(255, 245, 220, 0.65) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .bk-mypage-url-link {
  color: #C9A84C !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ── Labels et hints ── */
[data-theme=wood-legendary] .bk-mypage-editor .bk-label {
  color: rgba(255, 245, 220, 0.85) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-hint {
  color: rgba(255, 245, 220, 0.45) !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-section-title {
  color: #FFF5DC !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-section-subtitle {
  color: rgba(255, 245, 220, 0.55) !important;
}

/* ── Inputs sur fond sombre ── */
[data-theme=wood-legendary] .bk-mypage-editor .bk-input,
[data-theme=wood-legendary] .bk-mypage-editor .bk-input-sm,
[data-theme=wood-legendary] .bk-mypage-editor .bk-textarea {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(201, 168, 76, 0.28) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.35) !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-input:focus,
[data-theme=wood-legendary] .bk-mypage-editor .bk-textarea:focus {
  border-color: rgba(201, 168, 76, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.18), inset 0 1px 4px rgba(0,0,0,0.3) !important;
  outline: none !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-input::placeholder,
[data-theme=wood-legendary] .bk-mypage-editor .bk-textarea::placeholder {
  color: rgba(255, 245, 220, 0.30) !important;
}

/* Input prefix row */
[data-theme=wood-legendary] .bk-input-prefix-row {
  background: rgba(0,0,0,0.25) !important;
  border: 1px solid rgba(201, 168, 76, 0.28) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-input-prefix {
  color: rgba(255, 245, 220, 0.50) !important;
  border-right: 1px solid rgba(201, 168, 76, 0.25) !important;
}

/* ── Avatar ── */
[data-theme=wood-legendary] .bk-mypage-avatar-row {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-mypage-avatar-preview {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  border: 2px solid rgba(201, 168, 76, 0.60) !important;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.55),
    0 0 0 3px rgba(201,168,76,0.18),
    inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
[data-theme=wood-legendary] .bk-mypage-avatar-initials {
  color: #FFF5DC !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .bk-mypage-avatar-actions .bk-btn-ghost,
[data-theme=wood-legendary] .bk-mypage-avatar-actions .bk-btn-icon {
  background: rgba(201, 168, 76, 0.12) !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  color: #FFF5DC !important;
  border-radius: 7px !important;
}
[data-theme=wood-legendary] .bk-mypage-avatar-actions .bk-btn-ghost:hover,
[data-theme=wood-legendary] .bk-mypage-avatar-actions .bk-btn-icon:hover {
  background: rgba(201, 168, 76, 0.22) !important;
}

/* ── Couleur primaire ── */
[data-theme=wood-legendary] .bk-mypage-color-row {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-mypage-color-hex {
  color: #C9A84C !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .bk-mypage-color-presets {
  background: rgba(0,0,0,0.20) !important;
  border: 1px solid rgba(201,168,76,0.20) !important;
  border-radius: 8px !important;
}

/* ── Spécialités ── */
[data-theme=wood-legendary] .bk-specialties-editor {
  background: rgba(0,0,0,0.15) !important;
  border: 1px solid rgba(201, 168, 76, 0.20) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .bk-spec-tag {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(139,105,20,0.18)) !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  color: #FFF5DC !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35) !important;
}
[data-theme=wood-legendary] .bk-spec-remove {
  color: rgba(255, 245, 220, 0.55) !important;
}
[data-theme=wood-legendary] .bk-spec-remove:hover {
  color: #F98585 !important;
}
[data-theme=wood-legendary] .bk-specialties-add .bk-input-sm {
  background: rgba(0,0,0,0.22) !important;
  border-color: rgba(201,168,76,0.25) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .bk-specialties-add .bk-btn-xs {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.30) !important;
}

/* ── Témoignages ── */
[data-theme=wood-legendary] .bk-testimonial-edit-card {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
[data-theme=wood-legendary] .bk-testimonial-edit-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(201,168,76,0.18) !important;
}
[data-theme=wood-legendary] .bk-testimonial-stars-edit {
  background: transparent !important;
}
[data-theme=wood-legendary] .bk-star-edit {
  color: rgba(201, 168, 76, 0.35) !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)) !important;
  cursor: pointer !important;
}
[data-theme=wood-legendary] .bk-star-edit.active {
  color: #C9A84C !important;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.7)) !important;
}
[data-theme=wood-legendary] .bk-testimonial-edit-card .bk-textarea {
  background: rgba(0,0,0,0.20) !important;
  border-color: rgba(201,168,76,0.22) !important;
  color: #FFF5DC !important;
}

/* Bouton + Ajouter témoignage */
[data-theme=wood-legendary] #bk-testimonial-add {
  background: rgba(201, 168, 76, 0.10) !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.30) !important;
}

/* Bouton Enregistrer dans Ma Page */
[data-theme=wood-legendary] .bk-mypage-editor .bk-btn-primary {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.4) !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.30) !important;
}

/* ══════════════════════════════════════════════════════════════════
   APERÇU DROIT — fenêtre bois clair premium
   ══════════════════════════════════════════════════════════════════ */
[data-theme=wood-legendary] .bk-mypage-preview {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.55),
    0 4px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
  overflow: hidden !important;
}

/* Header "fenêtre navigateur" — bois sombre avec dots */
[data-theme=wood-legendary] .bk-mypage-preview-header {
  background-image: url('textures/wood-dark.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.30) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.40) !important;
}

/* Dots façon macOS */
[data-theme=wood-legendary] .bk-mypage-preview-dot {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4) !important;
}
[data-theme=wood-legendary] .bk-mypage-preview-dot:nth-child(1) {
  background: #E05C5C !important;
  box-shadow: 0 0 6px rgba(224,92,92,0.6), 0 0 0 1px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .bk-mypage-preview-dot:nth-child(2) {
  background: #E0B45C !important;
  box-shadow: 0 0 6px rgba(224,180,92,0.6), 0 0 0 1px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .bk-mypage-preview-dot:nth-child(3) {
  background: #5CB85C !important;
  box-shadow: 0 0 6px rgba(92,184,92,0.6), 0 0 0 1px rgba(0,0,0,0.3) !important;
}

/* Frame d'aperçu */
[data-theme=wood-legendary] .bk-mypage-preview-frame {
  background: rgba(255, 248, 235, 0.35) !important;
}

/* Empty state aperçu */
[data-theme=wood-legendary] .bk-mypage-preview-empty {
  color: rgba(42, 18, 0, 0.50) !important;
  font-weight: 600 !important;
}

/* ── MA PAGE — cadres premium + header aperçu ───────────────────── */

/* Header aperçu "Aperçu de votre page" → bois medium */
[data-theme=wood-legendary] .bk-mypage-preview-header {
  background-image: url('textures/wood-medium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.40) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45) !important;
}
[data-theme=wood-legendary] .bk-mypage-preview-header span {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
}

/* Bouton "Ouvrir ↗" → bois très clair */
[data-theme=wood-legendary] .bk-mypage-preview-header .bk-btn-ghost {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* ── Chaque form-group → carte bois light-premium ── */
[data-theme=wood-legendary] .bk-mypage-form .bk-form-group {
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.42) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.40),
    0 1px 5px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.22) !important;
}

/* Labels sur fond bois clair → marron foncé */
[data-theme=wood-legendary] .bk-mypage-form .bk-label {
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 0 rgba(255,180,80,0.35) !important;
}

/* Hints sur fond bois clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-hint {
  color: rgba(42, 18, 0, 0.52) !important;
  text-shadow: none !important;
}

/* Inputs sur fond bois clair → sombre semi-transparent */
[data-theme=wood-legendary] .bk-mypage-form .bk-input,
[data-theme=wood-legendary] .bk-mypage-form .bk-textarea,
[data-theme=wood-legendary] .bk-mypage-form select.bk-input {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12) !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-input:focus,
[data-theme=wood-legendary] .bk-mypage-form .bk-textarea:focus {
  border-color: rgba(139, 105, 20, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.22), inset 0 1px 3px rgba(0,0,0,0.10) !important;
  outline: none !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-input::placeholder,
[data-theme=wood-legendary] .bk-mypage-form .bk-textarea::placeholder {
  color: rgba(42, 18, 0, 0.38) !important;
}

/* Input prefix sur fond clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix-row {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix {
  color: rgba(42, 18, 0, 0.50) !important;
  border-right: 1px solid rgba(42, 18, 0, 0.18) !important;
  background: transparent !important;
}

/* Avatar row sur fond clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-mypage-avatar-actions .bk-btn-ghost {
  background: rgba(42, 18, 0, 0.10) !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
  border-radius: 7px !important;
}

/* Couleur hex sur fond clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-mypage-color-hex {
  color: #6B4A00 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-mypage-color-presets {
  background: rgba(42, 18, 0, 0.08) !important;
  border: 1px solid rgba(42, 18, 0, 0.15) !important;
}

/* Spécialités sur fond clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-specialties-editor {
  background: rgba(42, 18, 0, 0.06) !important;
  border: 1px solid rgba(42, 18, 0, 0.18) !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-spec-tag {
  background: linear-gradient(135deg, rgba(42,18,0,0.14), rgba(42,18,0,0.08)) !important;
  border: 1px solid rgba(42, 18, 0, 0.28) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-spec-remove {
  color: rgba(42, 18, 0, 0.45) !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-specialties-add .bk-input-sm {
  background: rgba(42, 18, 0, 0.10) !important;
  border-color: rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
}

/* Témoignages sur fond clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-testimonial-edit-card {
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20) !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-testimonial-edit-card .bk-textarea {
  background: rgba(42, 18, 0, 0.08) !important;
  border-color: rgba(42, 18, 0, 0.18) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-star-edit {
  color: rgba(42, 18, 0, 0.25) !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-star-edit.active {
  color: #8B6914 !important;
  filter: drop-shadow(0 0 4px rgba(139,105,20,0.6)) !important;
}

/* MA PAGE — prefix URL toujours en noir visible sur bois clair */
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix {
  color: #2A1200 !important;
  opacity: 0.70 !important;
  font-weight: 600 !important;
}

/* MA PAGE — prefix URL slug forcé en marron visible */
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix-row .bk-input-prefix,
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix-row span,
[data-theme=wood-legendary] #bk-mypage-slug ~ span,
[data-theme=wood-legendary] .bk-input-prefix-row > span {
  color: #2A1200 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: #2A1200 !important;
}

/* MA PAGE — slug en blanc crème, prefix idem */
[data-theme=wood-legendary] #bk-mypage-slug,
[data-theme=wood-legendary] .bk-input-prefix-row .bk-input-prefix,
[data-theme=wood-legendary] .bk-input-prefix-row span {
  color: #FFF5DC !important;
  -webkit-text-fill-color: #FFF5DC !important;
  opacity: 1 !important;
}

/* MA PAGE — prefix slug fix définitif */
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix-row {
  background: rgba(255, 248, 235, 0.55) !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
}
[data-theme=wood-legendary] .bk-mypage-form .bk-input-prefix-row .bk-input-prefix {
  background: rgba(42, 18, 0, 0.08) !important;
  color: #2A1200 !important;
  -webkit-text-fill-color: #2A1200 !important;
  border-right: 1px solid rgba(42, 18, 0, 0.18) !important;
  opacity: 1 !important;
}
[data-theme=wood-legendary] #bk-mypage-slug {
  background: transparent !important;
  color: #2A1200 !important;
  -webkit-text-fill-color: #2A1200 !important;
}

/* MA PAGE — override variables CSS localement sur le formulaire */
[data-theme=wood-legendary] .bk-mypage-form {
  --bg-tertiary: rgba(42, 18, 0, 0.08) !important;
  --bg-card: rgba(255, 248, 235, 0.50) !important;
  --bg-secondary: rgba(255, 248, 235, 0.35) !important;
  --text-primary: #2A1200 !important;
  --text-secondary: rgba(42, 18, 0, 0.55) !important;
  --border-color: rgba(42, 18, 0, 0.20) !important;
}

/* MA PAGE — fix variables --bg-input et --text-primary sur fond clair */
[data-theme=wood-legendary] .bk-mypage-form {
  --bg-input: rgba(42, 18, 0, 0.10) !important;
  --text-primary: #2A1200 !important;
}

/* MA PAGE — barre URL (https://...book/slug) en bois très clair */
[data-theme=wood-legendary] .bk-mypage-url-bar {
  background-image: url('textures/wood-light.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 1px solid rgba(201, 168, 76, 0.50) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .bk-mypage-url-bar .bk-mypage-url-label {
  color: rgba(42, 18, 0, 0.60) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .bk-mypage-url-bar .bk-mypage-url-link {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .bk-mypage-url-bar .bk-btn-ghost {
  background: rgba(42, 18, 0, 0.10) !important;
  background-image: none !important;
  border: 1px solid rgba(42, 18, 0, 0.22) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}

/* MA PAGE — barre URL texture bois très clair */
[data-theme=wood-legendary] .bk-mypage-editor .bk-mypage-url-bar {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-mypage-url-label {
  color: rgba(42, 18, 0, 0.60) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-mypage-url-link {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #2A1200 !important;
}
[data-theme=wood-legendary] .bk-mypage-editor .bk-mypage-url-bar .bk-btn-ghost,
[data-theme=wood-legendary] .bk-mypage-editor #bk-mypage-copy-url {
  background: rgba(42, 18, 0, 0.12) !important;
  background-image: none !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.20) !important;
}

/* MA PAGE — preview panel : background shorthand pour écraser var(--bg-card) */
[data-theme=wood-legendary] .bk-mypage-preview {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.55),
    0 4px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
  overflow: hidden !important;
}

/* MA PAGE — vrai cadre URL avec Copier + Ouvrir (bk-preview-link-box) */
[data-theme=wood-legendary] .bk-preview-link-box {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
[data-theme=wood-legendary] .bk-preview-link-box .bk-link,
[data-theme=wood-legendary] .bk-preview-link-box .bk-link-lg {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #2A1200 !important;
}
[data-theme=wood-legendary] .bk-preview-link-box .bk-btn-ghost,
[data-theme=wood-legendary] .bk-preview-link-box .bk-btn-secondary,
[data-theme=wood-legendary] #bk-copy-link {
  background: rgba(42, 18, 0, 0.12) !important;
  background-image: none !important;
  border: 1px solid rgba(42, 18, 0, 0.25) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
}

/* MA PAGE — barre d'adresse navigateur (dots + URL simulée) */
[data-theme=wood-legendary] .bk-preview-header-bar {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.30) !important;
}
[data-theme=wood-legendary] .bk-preview-url-bar {
  background: rgba(255, 245, 220, 0.12) !important;
  color: rgba(255, 245, 220, 0.70) !important;
  border-radius: 4px !important;
}

/* ══════════════════════════════════════════════════════════════════
   CRM KANBAN — THÈME BOIS LÉGENDAIRE
   wood-dark → wood-medium → wood-light → wood-light-premium
   ══════════════════════════════════════════════════════════════════ */

/* ── Wrapper global ── */
[data-theme=wood-legendary] .crm-kanban-wrapper {
  background: transparent !important;
}

/* ── Header ── */
[data-theme=wood-legendary] .crm-kanban-header {
  padding: 16px 20px !important;
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border-radius: 14px !important;
  border: 1px solid rgba(201, 168, 76, 0.40) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  margin-bottom: 16px !important;
}
[data-theme=wood-legendary] .crm-kanban-title {
  color: #FFF5DC !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.60) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}
[data-theme=wood-legendary] .crm-kanban-subtitle {
  color: rgba(255, 245, 220, 0.65) !important;
}

/* ── Boutons header ── */
[data-theme=wood-legendary] .crm-kanban-actions .crm-kb-btn-sec {
  background: rgba(255, 245, 220, 0.12) !important;
  border: 1px solid rgba(255, 245, 220, 0.30) !important;
  color: #FFF5DC !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .crm-kanban-actions .crm-kb-btn-pri {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border: 1px solid rgba(201, 168, 76, 0.60) !important;
  color: #1A0A00 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(201,168,76,0.35) !important;
}

/* ── Stats chips — rotation des 4 textures ── */
[data-theme=wood-legendary] .crm-kb-stat {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
[data-theme=wood-legendary] .crm-kb-stat:nth-child(2) {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .crm-kb-stat:nth-child(3) {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .crm-kb-stat:nth-child(4) {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .crm-kb-stat-label {
  color: rgba(255, 245, 220, 0.70) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .crm-kb-stat:nth-child(3) .crm-kb-stat-label,
[data-theme=wood-legendary] .crm-kb-stat:nth-child(4) .crm-kb-stat-label {
  color: rgba(42, 18, 0, 0.65) !important;
}
[data-theme=wood-legendary] .crm-kb-stat-value {
  text-shadow: 0 1px 6px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .crm-kb-stat:nth-child(3) .crm-kb-stat-value,
[data-theme=wood-legendary] .crm-kb-stat:nth-child(4) .crm-kb-stat-value {
  text-shadow: 0 1px 4px rgba(255,255,255,0.30) !important;
}

/* ── Colonnes Kanban ── */
[data-theme=wood-legendary] .crm-kb-column {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.40) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}
[data-theme=wood-legendary] .crm-kb-col-header {
  background: rgba(42, 18, 0, 0.08) !important;
  border-bottom-color: inherit !important;
}
[data-theme=wood-legendary] .crm-kb-col-label {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .crm-kb-col-count {
  background: rgba(42, 18, 0, 0.14) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(42, 18, 0, 0.20) !important;
}
[data-theme=wood-legendary] .crm-kb-col-total {
  color: rgba(42, 18, 0, 0.60) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .crm-kb-cards.crm-kb-drop-active {
  background: rgba(201, 168, 76, 0.18) !important;
}

/* ── Cartes deals — bois clair premium ── */
[data-theme=wood-legendary] .crm-kb-card {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.50) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
[data-theme=wood-legendary] .crm-kb-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.50), 0 0 0 1px rgba(201,168,76,0.60), inset 0 1px 0 rgba(255,255,255,0.35) !important;
  transform: translateY(-3px) !important;
}
[data-theme=wood-legendary] .crm-kb-card-title {
  color: #2A1200 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .crm-kb-card-contact {
  color: rgba(42, 18, 0, 0.65) !important;
  font-size: 0.82rem !important;
}
[data-theme=wood-legendary] .crm-kb-card-amount {
  color: #7A4A00 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .crm-kb-card-date {
  color: rgba(42, 18, 0, 0.55) !important;
}
[data-theme=wood-legendary] .crm-kb-card.crm-kb-dragging {
  opacity: 0.5 !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.60) !important;
}

/* ── Modal overlay ── */
[data-theme=wood-legendary] .crm-kb-modal-overlay {
  background: rgba(10, 5, 0, 0.80) !important;
  backdrop-filter: blur(6px) !important;
}

/* ── Modal box — bois sombre ── */
[data-theme=wood-legendary] .crm-kb-modal {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.70), inset 0 1px 0 rgba(255,255,255,0.10) !important;
}
[data-theme=wood-legendary] .crm-kb-modal-title,
[data-theme=wood-legendary] .crm-kb-modal-title-row h3 {
  color: #FFF5DC !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.60) !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .crm-kb-close {
  background: rgba(255, 245, 220, 0.12) !important;
  border: 1px solid rgba(255, 245, 220, 0.25) !important;
  color: #FFF5DC !important;
  border-radius: 6px !important;
}
[data-theme=wood-legendary] .crm-kb-close:hover {
  background: rgba(255, 245, 220, 0.22) !important;
}
[data-theme=wood-legendary] .crm-kb-section-title {
  color: #C9A84C !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  border-bottom: 1px solid rgba(201,168,76,0.30) !important;
  padding-bottom: 6px !important;
  margin-bottom: 10px !important;
}

/* ── Détails deal (grid de cards) — bois medium ── */
[data-theme=wood-legendary] .crm-kb-detail-grid {
  display: grid !important;
  gap: 8px !important;
}
[data-theme=wood-legendary] .crm-kb-detail-card {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.40) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
}
[data-theme=wood-legendary] .crm-kb-detail-label {
  color: rgba(255, 245, 220, 0.60) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
[data-theme=wood-legendary] .crm-kb-detail-val {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  margin-top: 3px !important;
}
[data-theme=wood-legendary] .crm-kb-description {
  color: rgba(255, 245, 220, 0.75) !important;
  background: rgba(255, 245, 220, 0.06) !important;
  border: 1px solid rgba(255, 245, 220, 0.12) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

/* ── Activités ── */
[data-theme=wood-legendary] .crm-kb-activity-form {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
[data-theme=wood-legendary] .crm-kb-input,
[data-theme=wood-legendary] .crm-kb-textarea,
[data-theme=wood-legendary] .crm-kb-select {
  background: rgba(255, 245, 220, 0.08) !important;
  border: 1px solid rgba(255, 245, 220, 0.20) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .crm-kb-input::placeholder,
[data-theme=wood-legendary] .crm-kb-textarea::placeholder {
  color: rgba(255, 245, 220, 0.38) !important;
}
[data-theme=wood-legendary] .crm-kb-act-item {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.30) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.30) !important;
}
[data-theme=wood-legendary] .crm-kb-act-title {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .crm-kb-act-date {
  color: rgba(255, 245, 220, 0.55) !important;
  font-size: 0.78rem !important;
}
[data-theme=wood-legendary] .crm-kb-act-desc {
  color: rgba(255, 245, 220, 0.70) !important;
  font-size: 0.82rem !important;
}

/* ── Boutons modal ── */
[data-theme=wood-legendary] .crm-kb-btn-pri {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border: 1px solid rgba(201, 168, 76, 0.60) !important;
  color: #1A0A00 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(201,168,76,0.35) !important;
}
[data-theme=wood-legendary] .crm-kb-btn-sec {
  background: rgba(255, 245, 220, 0.10) !important;
  border: 1px solid rgba(255, 245, 220, 0.25) !important;
  color: #FFF5DC !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .crm-kb-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 245, 220, 0.20) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .crm-kb-btn-ai {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(160,120,48,0.35)) !important;
  border: 1px solid rgba(201, 168, 76, 0.50) !important;
  color: #FFF5DC !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

/* ── Dropdown contacts ── */
[data-theme=wood-legendary] .crm-kb-contact-dropdown {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
}
[data-theme=wood-legendary] .crm-kb-contact-item {
  color: #FFF5DC !important;
  border-bottom: 1px solid rgba(255,245,220,0.08) !important;
}
[data-theme=wood-legendary] .crm-kb-contact-item:hover {
  background: rgba(201, 168, 76, 0.15) !important;
}

/* ── Analyse IA ── */
[data-theme=wood-legendary] .crm-kb-ai-box {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201, 168, 76, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.40) !important;
}
[data-theme=wood-legendary] .crm-kb-ai-header {
  color: #C9A84C !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(201,168,76,0.30) !important;
  padding-bottom: 8px !important;
}
[data-theme=wood-legendary] .crm-kb-ai-label {
  color: rgba(255, 245, 220, 0.60) !important;
}
[data-theme=wood-legendary] .crm-kb-ai-val {
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .crm-kb-ai-section {
  color: rgba(255, 245, 220, 0.80) !important;
}

/* ── Empty state ── */
[data-theme=wood-legendary] .crm-kb-empty {
  color: rgba(255, 245, 220, 0.55) !important;
}

/* ── Modal footer ── */
[data-theme=wood-legendary] .crm-kb-modal-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.25) !important;
  padding-top: 14px !important;
}

/* ══════════════════════════════════════════════════════════════════
   GIRI CRM — THÈME BOIS LÉGENDAIRE (gcrm-* classes)
   ══════════════════════════════════════════════════════════════════ */

/* ── App wrapper ── */
[data-theme=wood-legendary] .gcrm-app {
  background: transparent !important;
}

/* ── Header ── */
[data-theme=wood-legendary] .gcrm-header {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border-bottom: 1px solid rgba(201,168,76,0.40) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
[data-theme=wood-legendary] .gcrm-title {
  color: #FFF5DC !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.60) !important;
}
[data-theme=wood-legendary] .gcrm-subtitle {
  color: rgba(255,245,220,0.60) !important;
}
[data-theme=wood-legendary] .gcrm-logo {
  border: 2px solid rgba(201,168,76,0.50) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.40) !important;
}

/* ── Tabs ── */
[data-theme=wood-legendary] .gcrm-tabs {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border-bottom: 1px solid rgba(201,168,76,0.30) !important;
}
[data-theme=wood-legendary] .gcrm-tab {
  color: rgba(255,245,220,0.55) !important;
  font-weight: 600 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}
[data-theme=wood-legendary] .gcrm-tab:hover {
  color: rgba(255,245,220,0.85) !important;
  background: rgba(255,245,220,0.06) !important;
}
[data-theme=wood-legendary] .gcrm-tab.active {
  color: #C9A84C !important;
  border-bottom-color: #C9A84C !important;
  font-weight: 700 !important;
}

/* ── Toolbar ── */
[data-theme=wood-legendary] .gcrm-toolbar {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border-radius: 12px !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  margin-bottom: 14px !important;
}
[data-theme=wood-legendary] .gcrm-search-box {
  background: rgba(255,245,220,0.10) !important;
  border: 1px solid rgba(255,245,220,0.22) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .gcrm-search-input {
  background: transparent !important;
  color: #FFF5DC !important;
  border: none !important;
}
[data-theme=wood-legendary] .gcrm-search-input::placeholder {
  color: rgba(255,245,220,0.38) !important;
}
[data-theme=wood-legendary] .gcrm-search-icon {
  color: rgba(255,245,220,0.50) !important;
}
[data-theme=wood-legendary] .gcrm-select,
[data-theme=wood-legendary] .gcrm-input,
[data-theme=wood-legendary] .gcrm-tag-input {
  background: rgba(255,245,220,0.10) !important;
  border: 1px solid rgba(255,245,220,0.22) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .gcrm-input::placeholder,
[data-theme=wood-legendary] .gcrm-textarea::placeholder {
  color: rgba(255,245,220,0.38) !important;
}

/* ── Boutons ── */
[data-theme=wood-legendary] .gcrm-btn-primary {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border: 1px solid rgba(201,168,76,0.60) !important;
  color: #1A0A00 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(201,168,76,0.35) !important;
}
[data-theme=wood-legendary] .gcrm-btn-secondary {
  background: rgba(255,245,220,0.12) !important;
  border: 1px solid rgba(255,245,220,0.28) !important;
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .gcrm-btn-danger {
  background: rgba(220,60,40,0.18) !important;
  border: 1px solid rgba(220,60,40,0.40) !important;
  color: #FFBCB0 !important;
}
[data-theme=wood-legendary] .gcrm-btn-ai {
  background: rgba(201,168,76,0.18) !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
}

/* ── KPI cards — une texture par card ── */
[data-theme=wood-legendary] .gcrm-kpi-card {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(2) {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(3) {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(4) {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(5) {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-kpi-label {
  color: rgba(42,18,0,0.60) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(2) .gcrm-kpi-label,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(3) .gcrm-kpi-label,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(5) .gcrm-kpi-label {
  color: rgba(255,245,220,0.65) !important;
}
[data-theme=wood-legendary] .gcrm-kpi-sub {
  color: rgba(42,18,0,0.45) !important;
  font-size: 0.75rem !important;
}
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(2) .gcrm-kpi-sub,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(3) .gcrm-kpi-sub,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(5) .gcrm-kpi-sub {
  color: rgba(255,245,220,0.45) !important;
}

/* ── Table contacts ── */
[data-theme=wood-legendary] .gcrm-table {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40) !important;
}
[data-theme=wood-legendary] .gcrm-table thead {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-table thead th {
  color: #C9A84C !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-bottom: 1px solid rgba(201,168,76,0.35) !important;
  background: transparent !important;
}
[data-theme=wood-legendary] .gcrm-row {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border-bottom: 1px solid rgba(201,168,76,0.20) !important;
  transition: box-shadow 0.15s, filter 0.15s !important;
}
[data-theme=wood-legendary] .gcrm-row:nth-child(even) {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-row:hover {
  filter: brightness(1.06) !important;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.45) !important;
}
[data-theme=wood-legendary] .gcrm-contact-name {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gcrm-contact-meta {
  color: rgba(42,18,0,0.55) !important;
  font-size: 0.78rem !important;
}
[data-theme=wood-legendary] .gcrm-source,
[data-theme=wood-legendary] .gcrm-date {
  color: rgba(42,18,0,0.60) !important;
  font-size: 0.82rem !important;
}
[data-theme=wood-legendary] .gcrm-avatar {
  border: 2px solid rgba(201,168,76,0.45) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gcrm-tag {
  background: rgba(42,18,0,0.10) !important;
  color: #2A1200 !important;
  border: 1px solid rgba(42,18,0,0.18) !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
}
[data-theme=wood-legendary] .gcrm-tag--more {
  background: rgba(201,168,76,0.18) !important;
  color: #7A4A00 !important;
  border-color: rgba(201,168,76,0.35) !important;
}

/* ── Badges statut ── */
[data-theme=wood-legendary] .gcrm-badge--lead {
  background: rgba(59,130,246,0.20) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(59,130,246,0.35) !important;
}
[data-theme=wood-legendary] .gcrm-badge--prospect {
  background: rgba(245,158,11,0.20) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245,158,11,0.35) !important;
}
[data-theme=wood-legendary] .gcrm-badge--client {
  background: rgba(16,185,129,0.20) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16,185,129,0.35) !important;
}
[data-theme=wood-legendary] .gcrm-badge--inactive {
  background: rgba(107,114,128,0.20) !important;
  color: #D1D5DB !important;
  border: 1px solid rgba(107,114,128,0.30) !important;
}
[data-theme=wood-legendary] .gcrm-badge--source {
  background: rgba(201,168,76,0.18) !important;
  color: #C9A84C !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
}

/* ── Icônes actions ── */
[data-theme=wood-legendary] .gcrm-icon-btn {
  background: rgba(42,18,0,0.10) !important;
  border: 1px solid rgba(42,18,0,0.18) !important;
  color: #2A1200 !important;
  border-radius: 6px !important;
}
[data-theme=wood-legendary] .gcrm-icon-btn:hover {
  background: rgba(42,18,0,0.18) !important;
}
[data-theme=wood-legendary] .gcrm-icon-btn--danger {
  background: rgba(220,60,40,0.10) !important;
  border-color: rgba(220,60,40,0.25) !important;
  color: #C0392B !important;
}

/* ── Modal overlay ── */
[data-theme=wood-legendary] .gcrm-modal-overlay {
  background: rgba(8,4,0,0.80) !important;
  backdrop-filter: blur(6px) !important;
}
[data-theme=wood-legendary] .gcrm-modal {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.55) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* ── Modal header ── */
[data-theme=wood-legendary] .gcrm-modal-header {
  background: rgba(0,0,0,0.15) !important;
  border-bottom: 1px solid rgba(201,168,76,0.30) !important;
}
[data-theme=wood-legendary] .gcrm-modal-name {
  color: #FFF5DC !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.60) !important;
}
[data-theme=wood-legendary] .gcrm-modal-sub {
  color: rgba(255,245,220,0.60) !important;
}
[data-theme=wood-legendary] .gcrm-modal-avatar {
  border: 3px solid rgba(201,168,76,0.60) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.50) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gcrm-modal-close {
  background: rgba(255,245,220,0.10) !important;
  border: 1px solid rgba(255,245,220,0.22) !important;
  color: rgba(255,245,220,0.70) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .gcrm-modal-close:hover {
  background: rgba(255,245,220,0.20) !important;
  color: #FFF5DC !important;
}

/* ── Detail stats (Deals / Facturé / Payé) ── */
[data-theme=wood-legendary] .gcrm-detail-stats {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border-radius: 10px !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  padding: 12px 16px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
  margin-bottom: 16px !important;
}
[data-theme=wood-legendary] .gcrm-detail-stat-value {
  color: #FFF5DC !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .gcrm-detail-stat-label {
  color: rgba(255,245,220,0.60) !important;
  font-size: 0.75rem !important;
}

/* ── Section titles ── */
[data-theme=wood-legendary] .gcrm-section-title {
  color: #C9A84C !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-bottom: 1px solid rgba(201,168,76,0.25) !important;
  padding-bottom: 6px !important;
}
[data-theme=wood-legendary] .gcrm-label {
  color: rgba(255,245,220,0.65) !important;
  font-weight: 600 !important;
  font-size: 0.80rem !important;
}

/* ── Inputs dans modal ── */
[data-theme=wood-legendary] .gcrm-modal .gcrm-input,
[data-theme=wood-legendary] .gcrm-modal .gcrm-textarea,
[data-theme=wood-legendary] .gcrm-modal .gcrm-select {
  background: rgba(255,245,220,0.07) !important;
  border: 1px solid rgba(255,245,220,0.20) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}

/* ── Timeline ── */
[data-theme=wood-legendary] .gcrm-timeline-title {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .gcrm-timeline-time {
  color: rgba(255,245,220,0.50) !important;
  font-size: 0.75rem !important;
}
[data-theme=wood-legendary] .gcrm-timeline-dot {
  border: 2px solid rgba(201,168,76,0.50) !important;
  background: rgba(201,168,76,0.25) !important;
}

/* ── Mini deals ── */
[data-theme=wood-legendary] .gcrm-mini-deal {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.30) !important;
  margin-bottom: 6px !important;
}
[data-theme=wood-legendary] .gcrm-mini-deal-title {
  color: #FFF5DC !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .gcrm-mini-deal-amount {
  color: #C9A84C !important;
  font-weight: 700 !important;
}

/* ── Note display ── */
[data-theme=wood-legendary] .gcrm-note-display {
  background: rgba(255,245,220,0.07) !important;
  border: 1px solid rgba(255,245,220,0.15) !important;
  color: rgba(255,245,220,0.80) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

/* ── AI toolbar & result ── */
[data-theme=wood-legendary] .gcrm-ai-toolbar {
  background: rgba(201,168,76,0.08) !important;
  border-top: 1px solid rgba(201,168,76,0.25) !important;
  border-bottom: 1px solid rgba(201,168,76,0.25) !important;
}
[data-theme=wood-legendary] .gcrm-ai-result {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.40) !important;
  border-radius: 10px !important;
  padding: 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
}
[data-theme=wood-legendary] .gcrm-ai-score {
  background: rgba(201,168,76,0.22) !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  color: #C9A84C !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ── Modal footer ── */
[data-theme=wood-legendary] .gcrm-modal-footer {
  border-top: 1px solid rgba(201,168,76,0.25) !important;
  padding-top: 14px !important;
}

/* ── Import CSV ── */
[data-theme=wood-legendary] .gcrm-import-drop {
  background: rgba(255,245,220,0.05) !important;
  border: 2px dashed rgba(201,168,76,0.40) !important;
  border-radius: 12px !important;
  color: rgba(255,245,220,0.65) !important;
}
[data-theme=wood-legendary] .gcrm-import-drop.drag-over {
  background: rgba(201,168,76,0.12) !important;
  border-color: rgba(201,168,76,0.70) !important;
}

/* ── Pagination ── */
[data-theme=wood-legendary] .gcrm-pagination-info {
  color: rgba(255,245,220,0.55) !important;
  font-size: 0.82rem !important;
}

/* ── Header actions buttons ── */
[data-theme=wood-legendary] .gcrm-header-actions .gcrm-btn-secondary {
  background: rgba(255,245,220,0.12) !important;
  border: 1px solid rgba(255,245,220,0.28) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gcrm-header-actions .gcrm-btn-primary {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border: 1px solid rgba(201,168,76,0.60) !important;
  color: #1A0A00 !important;
  font-weight: 700 !important;
}

/* ── Empty / error states ── */
[data-theme=wood-legendary] .gcrm-empty-title {
  color: rgba(255,245,220,0.80) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gcrm-empty-sub {
  color: rgba(255,245,220,0.45) !important;
}
[data-theme=wood-legendary] .gcrm-empty-icon {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.50)) !important;
}

/* ── Contacts — cadre extérieur arrondi + ombres ── */
[data-theme=wood-legendary] .gcrm-contact-list {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.50), 0 2px 8px rgba(0,0,0,0.30) !important;
}
[data-theme=wood-legendary] .gcrm-table {
  border-radius: 14px !important;
  box-shadow: none !important;
}
[data-theme=wood-legendary] .gcrm-table tbody .gcrm-row:last-child td:first-child {
  border-bottom-left-radius: 14px !important;
}
[data-theme=wood-legendary] .gcrm-table tbody .gcrm-row:last-child td:last-child {
  border-bottom-right-radius: 14px !important;
}

/* ── Dates "Dernière activité" en crème bien lisible ── */
[data-theme=wood-legendary] .gcrm-date {
  color: #FFF5DC !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55) !important;
}

/* ── Ombres sur les lignes hover ── */
[data-theme=wood-legendary] .gcrm-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(201,168,76,0.50) !important;
  filter: brightness(1.08) !important;
  z-index: 1 !important;
  position: relative !important;
}

/* ── Légère ombre sous le header de table ── */
[data-theme=wood-legendary] .gcrm-table thead tr {
  box-shadow: 0 3px 10px rgba(0,0,0,0.40) !important;
}

/* ── Header + Tabs — angles arrondis ── */
[data-theme=wood-legendary] .gcrm-header {
  border-radius: 14px 14px 0 0 !important;
}
[data-theme=wood-legendary] .gcrm-tabs {
  border-radius: 0 0 14px 14px !important;
  margin-bottom: 16px !important;
}

/* ── Lignes contacts — tout en crème/blanc ── */
[data-theme=wood-legendary] .gcrm-contact-name {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .gcrm-contact-meta {
  color: rgba(255,245,220,0.65) !important;
}
[data-theme=wood-legendary] .gcrm-source {
  color: rgba(255,245,220,0.75) !important;
  font-weight: 500 !important;
}
[data-theme=wood-legendary] .gcrm-tag {
  background: rgba(255,245,220,0.14) !important;
  color: #FFF5DC !important;
  border: 1px solid rgba(255,245,220,0.28) !important;
}
[data-theme=wood-legendary] .gcrm-icon-btn {
  background: rgba(255,245,220,0.12) !important;
  border: 1px solid rgba(255,245,220,0.25) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gcrm-icon-btn:hover {
  background: rgba(255,245,220,0.22) !important;
}
[data-theme=wood-legendary] .gcrm-icon-btn--danger {
  background: rgba(220,60,40,0.15) !important;
  border-color: rgba(220,80,60,0.35) !important;
  color: #FFBCB0 !important;
}
[data-theme=wood-legendary] .gcrm-table td {
  color: #FFF5DC !important;
}

/* ── KPI icons — supprime fond coloré, ombre premium ── */
[data-theme=wood-legendary] .gcrm-kpi-icon {
  background: transparent !important;
  border: none !important;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.65)) drop-shadow(0 1px 3px rgba(0,0,0,0.45)) !important;
  font-size: 1.6rem !important;
}

/* ── Search — supprime placeholder texte ── */
[data-theme=wood-legendary] .gcrm-search-input::placeholder {
  color: transparent !important;
}

/* ── Supprime le filet doré entre header et tabs ── */
[data-theme=wood-legendary] .gcrm-header {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ── Tabs — bois plus clair que le header ── */
[data-theme=wood-legendary] .gcrm-tabs {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}

/* ── Dégradé d'ombre entre header sombre et tabs medium ── */
[data-theme=wood-legendary] .gcrm-header {
  box-shadow: 0 6px 18px rgba(0,0,0,0.60), 0 2px 6px rgba(0,0,0,0.40) !important;
  position: relative !important;
  z-index: 2 !important;
}
[data-theme=wood-legendary] .gcrm-tabs {
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.40) !important;
}

/* ── Ombre entre thead et tbody ── */
[data-theme=wood-legendary] .gcrm-table thead tr {
  position: relative !important;
  z-index: 2 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.60), 0 2px 6px rgba(0,0,0,0.40) !important;
}
[data-theme=wood-legendary] .gcrm-table tbody .gcrm-row:first-child td {
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.35) !important;
}

/* ── Modal — 4 cartes stats en bois très clair ── */
[data-theme=wood-legendary] .gcrm-detail-stats {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  gap: 10px !important;
}
[data-theme=wood-legendary] .gcrm-detail-stat {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.30) !important;
  flex: 1 !important;
}
[data-theme=wood-legendary] .gcrm-detail-stat:nth-child(2) {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-detail-stat-value {
  color: #2A1200 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .gcrm-detail-stat-label {
  color: rgba(42,18,0,0.60) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* ── KPI cards — toutes en bois le plus clair ── */
[data-theme=wood-legendary] .gcrm-kpi-card,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(2),
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(3),
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(4),
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(5) {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-kpi-label,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(2) .gcrm-kpi-label,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(3) .gcrm-kpi-label,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(5) .gcrm-kpi-label {
  color: rgba(42,18,0,0.60) !important;
}
[data-theme=wood-legendary] .gcrm-kpi-sub,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(2) .gcrm-kpi-sub,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(3) .gcrm-kpi-sub,
[data-theme=wood-legendary] .gcrm-kpi-card:nth-child(5) .gcrm-kpi-sub {
  color: rgba(42,18,0,0.40) !important;
}

/* ── KPI cards — tout en marron très foncé ── */
[data-theme=wood-legendary] .gcrm-kpi-value {
  color: #2A1200 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .gcrm-kpi-label {
  color: rgba(42,18,0,0.70) !important;
}
[data-theme=wood-legendary] .gcrm-kpi-sub {
  color: rgba(42,18,0,0.50) !important;
}
[data-theme=wood-legendary] .gcrm-kpi-icon {
  color: #2A1200 !important;
}

/* ── Onglets non sélectionnés — texte plus clair ── */
[data-theme=wood-legendary] .gcrm-tab {
  color: rgba(255,245,220,0.85) !important;
}

/* ── KPI cards — ombres + angles arrondis ── */
[data-theme=wood-legendary] .gcrm-kpi-card {
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}

/* ── Fix ombres KPI cards (parent ne les coupe plus) ── */
[data-theme=wood-legendary] .gcrm-kpis {
  padding-bottom: 8px !important;
  overflow: visible !important;
}
[data-theme=wood-legendary] .gcrm-kpi-grid {
  overflow: visible !important;
  padding: 4px !important;
}
[data-theme=wood-legendary] .gcrm-stats-row {
  overflow: visible !important;
  padding: 4px !important;
}

/* ── Valeur par étape — bois clair ── */
[data-theme=wood-legendary] .gcrm-chart-container {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
[data-theme=wood-legendary] .gcrm-chart-title {
  color: #2A1200 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 14px !important;
}

/* ── Activité récente — bois clair premium ── */
[data-theme=wood-legendary] .gcrm-global-timeline,
[data-theme=wood-legendary] .gcrm-activity-timeline {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
[data-theme=wood-legendary] .gcrm-tl-card {
  background: rgba(42,18,0,0.07) !important;
  border: 1px solid rgba(42,18,0,0.15) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}
[data-theme=wood-legendary] .gcrm-tl-card-title {
  color: #2A1200 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gcrm-tl-card-time,
[data-theme=wood-legendary] .gcrm-tl-card-type {
  color: rgba(42,18,0,0.55) !important;
  font-size: 0.78rem !important;
}
[data-theme=wood-legendary] .gcrm-tl-dot {
  border: 2px solid rgba(201,168,76,0.60) !important;
  background: rgba(201,168,76,0.30) !important;
}

/* ── Pipeline stat cards (gcrm-pipe-stat) ── */
[data-theme=wood-legendary] .gcrm-pipeline-summary {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
[data-theme=wood-legendary] .gcrm-pipe-stat-value {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .gcrm-pipe-stat-label {
  color: rgba(42,18,0,0.60) !important;
}
[data-theme=wood-legendary] .gcrm-pipe-divider {
  background: rgba(42,18,0,0.18) !important;
}

/* ── Valeur par étape — textes en blanc ── */
[data-theme=wood-legendary] .gcrm-chart-title {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .gcrm-chart-container {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
}

/* ── Valeur par étape — texture clair restaurée, textes blancs ── */
[data-theme=wood-legendary] .gcrm-chart-container {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .gcrm-chart-title {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50) !important;
}

/* ══════════════════════════════════════════════════════════════════
   REFERRAL DASHBOARD — THÈME BOIS LÉGENDAIRE
   ══════════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
[data-theme=wood-legendary] .ref-dash {
  background: transparent !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  padding: 20px !important;
}

/* ── Header ── */
[data-theme=wood-legendary] .ref-header {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  border-radius: 18px !important;
  padding: 36px 32px !important;
  box-shadow: 0 10px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  position: relative !important;
  overflow: hidden !important;
}
[data-theme=wood-legendary] .ref-header::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.10) 0%, transparent 70%) !important;
  pointer-events: none !important;
}
[data-theme=wood-legendary] .ref-title {
  color: #FFF5DC !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,0.65) !important;
  letter-spacing: 0.02em !important;
  margin: 0 0 8px !important;
}
[data-theme=wood-legendary] .ref-subtitle {
  color: rgba(255,245,220,0.72) !important;
  font-size: 1rem !important;
  margin: 0 !important;
}

/* ── Section titles ── */
[data-theme=wood-legendary] .ref-section-title {
  color: #C9A84C !important;
  font-weight: 800 !important;
  font-size: 0.80rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 14px !important;
}

/* ── Stripe Connect section ── */
[data-theme=wood-legendary] .ref-connect-section {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
[data-theme=wood-legendary] .ref-connect-section h3 {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  margin: 0 0 6px !important;
}
[data-theme=wood-legendary] .ref-connect-section p {
  color: rgba(255,245,220,0.70) !important;
  margin: 0 0 4px !important;
}
[data-theme=wood-legendary] .ref-connect-icon {
  font-size: 2rem !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.60)) !important;
}
[data-theme=wood-legendary] .ref-connect-bar {
  background: rgba(255,245,220,0.15) !important;
  border-radius: 6px !important;
  height: 8px !important;
  margin-top: 8px !important;
  overflow: hidden !important;
}
[data-theme=wood-legendary] .ref-connect-bar-fill {
  background: linear-gradient(90deg, #C9A84C, #F0D080) !important;
  border-radius: 6px !important;
  height: 100% !important;
  box-shadow: 0 0 8px rgba(201,168,76,0.60) !important;
}
[data-theme=wood-legendary] .ref-connect-btn,
[data-theme=wood-legendary] .ref-payout-btn {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border: 1px solid rgba(201,168,76,0.60) !important;
  color: #1A0A00 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  box-shadow: 0 3px 12px rgba(201,168,76,0.40) !important;
  white-space: nowrap !important;
}

/* ── Lien de parrainage ── */
[data-theme=wood-legendary] .ref-link-section {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .ref-link-box {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
[data-theme=wood-legendary] .ref-link-input {
  background: rgba(42,18,0,0.08) !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  color: #2A1200 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  flex: 1 !important;
}
[data-theme=wood-legendary] .ref-copy-btn {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border: none !important;
  color: #1A0A00 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  box-shadow: 0 3px 10px rgba(201,168,76,0.40) !important;
}
[data-theme=wood-legendary] .ref-copy-btn.ref-copied {
  background: linear-gradient(135deg, #10B981, #059669) !important;
}

/* ── Boutons partage ── */
[data-theme=wood-legendary] .ref-share-btns {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
[data-theme=wood-legendary] .ref-share-btn {
  background: rgba(42,18,0,0.12) !important;
  border: 1px solid rgba(42,18,0,0.22) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
}
[data-theme=wood-legendary] .ref-share-whatsapp { border-color: rgba(37,211,102,0.50) !important; color: #1A5C25 !important; }
[data-theme=wood-legendary] .ref-share-twitter  { border-color: rgba(29,161,242,0.40) !important; color: #0A3A5C !important; }
[data-theme=wood-legendary] .ref-share-linkedin { border-color: rgba(0,119,181,0.40) !important; color: #003A5C !important; }
[data-theme=wood-legendary] .ref-share-email    { border-color: rgba(42,18,0,0.30) !important; }

/* ── 4 cartes récompenses — une texture chacune ── */
[data-theme=wood-legendary] .ref-rewards-section {
  background: transparent !important;
}
[data-theme=wood-legendary] .ref-rewards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 14px !important;
}
[data-theme=wood-legendary] .ref-reward-card {
  border-radius: 16px !important;
  padding: 24px 20px !important;
  border: 1px solid rgba(201,168,76,0.50) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.20) !important;
  text-align: center !important;
}
[data-theme=wood-legendary] .ref-reward-giriz {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .ref-reward-ai {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .ref-reward-money {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .ref-reward-paid {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .ref-reward-icon {
  font-size: 2.2rem !important;
  display: block !important;
  margin-bottom: 10px !important;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.65)) !important;
}
[data-theme=wood-legendary] .ref-reward-giriz .ref-reward-value,
[data-theme=wood-legendary] .ref-reward-ai .ref-reward-value {
  color: #C9A84C !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55) !important;
}
[data-theme=wood-legendary] .ref-reward-money .ref-reward-value,
[data-theme=wood-legendary] .ref-reward-paid .ref-reward-value {
  color: #2A1200 !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
}
[data-theme=wood-legendary] .ref-reward-giriz .ref-reward-label,
[data-theme=wood-legendary] .ref-reward-ai .ref-reward-label {
  color: rgba(255,245,220,0.80) !important;
  font-weight: 700 !important;
  margin: 6px 0 4px !important;
}
[data-theme=wood-legendary] .ref-reward-money .ref-reward-label,
[data-theme=wood-legendary] .ref-reward-paid .ref-reward-label {
  color: rgba(42,18,0,0.75) !important;
  font-weight: 700 !important;
  margin: 6px 0 4px !important;
}
[data-theme=wood-legendary] .ref-reward-giriz .ref-reward-detail,
[data-theme=wood-legendary] .ref-reward-ai .ref-reward-detail {
  color: rgba(255,245,220,0.50) !important;
  font-size: 0.75rem !important;
}
[data-theme=wood-legendary] .ref-reward-money .ref-reward-detail,
[data-theme=wood-legendary] .ref-reward-paid .ref-reward-detail {
  color: rgba(42,18,0,0.45) !important;
  font-size: 0.75rem !important;
}

/* ── KPIs (Clics, Conversions, Taux, En attente) ── */
[data-theme=wood-legendary] .ref-kpis {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 12px !important;
}
[data-theme=wood-legendary] .ref-kpi {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.48) !important;
  border-radius: 14px !important;
  padding: 18px 16px !important;
  text-align: center !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .ref-kpi-value {
  color: #2A1200 !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
}
[data-theme=wood-legendary] .ref-kpi-label {
  color: rgba(42,18,0,0.75) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  margin: 4px 0 2px !important;
}
[data-theme=wood-legendary] .ref-kpi-desc {
  color: rgba(42,18,0,0.45) !important;
  font-size: 0.72rem !important;
}

/* ── Comment ça marche — 4 étapes ── */
[data-theme=wood-legendary] .ref-how {
  background: transparent !important;
}
[data-theme=wood-legendary] .ref-steps {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}
[data-theme=wood-legendary] .ref-step {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.40) !important;
  border-radius: 14px !important;
  padding: 22px 18px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
[data-theme=wood-legendary] .ref-step-num {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  color: #1A0A00 !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  box-shadow: 0 3px 10px rgba(201,168,76,0.50) !important;
}
[data-theme=wood-legendary] .ref-step h4 {
  color: #FFF5DC !important;
  font-weight: 700 !important;
  margin: 0 0 6px !important;
}
[data-theme=wood-legendary] .ref-step p {
  color: rgba(255,245,220,0.65) !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}
[data-theme=wood-legendary] .ref-step p strong {
  color: #C9A84C !important;
}

/* ── Tables (virements + filleuls + store) ── */
[data-theme=wood-legendary] .ref-payouts-section,
[data-theme=wood-legendary] .ref-list,
[data-theme=wood-legendary] .ref-store-section {
  background: transparent !important;
}
[data-theme=wood-legendary] .ref-table {
  width: 100% !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40) !important;
}
[data-theme=wood-legendary] .ref-table thead {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .ref-table thead th {
  color: #C9A84C !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(201,168,76,0.30) !important;
}
[data-theme=wood-legendary] .ref-table tbody tr {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border-bottom: 1px solid rgba(201,168,76,0.18) !important;
}
[data-theme=wood-legendary] .ref-table tbody tr:nth-child(even) {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .ref-table tbody td {
  color: #2A1200 !important;
  padding: 11px 16px !important;
  font-weight: 500 !important;
}
[data-theme=wood-legendary] .ref-table tbody tr:hover {
  filter: brightness(1.06) !important;
}

/* ── Badges statut ── */
[data-theme=wood-legendary] .ref-status-ok {
  background: rgba(16,185,129,0.20) !important;
  color: #065F46 !important;
  border: 1px solid rgba(16,185,129,0.35) !important;
  border-radius: 6px !important;
  padding: 2px 10px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}
[data-theme=wood-legendary] .ref-status-pending {
  background: rgba(245,158,11,0.18) !important;
  color: #7A4A00 !important;
  border: 1px solid rgba(245,158,11,0.35) !important;
  border-radius: 6px !important;
  padding: 2px 10px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}
[data-theme=wood-legendary] .ref-status-err {
  background: rgba(220,60,40,0.15) !important;
  color: #7A1200 !important;
  border: 1px solid rgba(220,60,40,0.30) !important;
  border-radius: 6px !important;
  padding: 2px 10px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}

/* ── Petit bouton copier store ── */
[data-theme=wood-legendary] .ref-copy-small {
  background: rgba(42,18,0,0.12) !important;
  border: 1px solid rgba(42,18,0,0.22) !important;
  color: #2A1200 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
}

/* ── Lien parrainage — titre en blanc ── */
[data-theme=wood-legendary] .ref-link-section .ref-section-title {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50) !important;
}

/* ── Bouton Copier — bois très clair ── */
[data-theme=wood-legendary] .ref-copy-btn {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.55) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.30) !important;
}
[data-theme=wood-legendary] .ref-copy-btn.ref-copied {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFF5DC !important;
}

/* ── Boutons partage — plus opaques + ombre premium ── */
[data-theme=wood-legendary] .ref-share-btn {
  background: rgba(42,18,0,0.30) !important;
  border-width: 1px !important;
  border-style: solid !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  font-weight: 700 !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}
[data-theme=wood-legendary] .ref-share-btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.20) !important;
  transform: translateY(-2px) !important;
}
[data-theme=wood-legendary] .ref-share-whatsapp {
  background: rgba(37,211,102,0.30) !important;
  border-color: rgba(37,211,102,0.65) !important;
  color: #0A3D1A !important;
}
[data-theme=wood-legendary] .ref-share-twitter {
  background: rgba(29,161,242,0.28) !important;
  border-color: rgba(29,161,242,0.60) !important;
  color: #062A4A !important;
}
[data-theme=wood-legendary] .ref-share-linkedin {
  background: rgba(0,119,181,0.28) !important;
  border-color: rgba(0,119,181,0.60) !important;
  color: #02264A !important;
}
[data-theme=wood-legendary] .ref-share-email {
  background: rgba(201,168,76,0.28) !important;
  border-color: rgba(201,168,76,0.60) !important;
  color: #3A1A00 !important;
}

/* ══════════════════════════════════════════════════════════════════
   AUTOMATIONS — THÈME BOIS LÉGENDAIRE
   ══════════════════════════════════════════════════════════════════ */

/* ── Container ── */
[data-theme=wood-legendary] .atm-container {
  background: transparent !important;
  padding: 20px !important;
}

/* ── Header ── */
[data-theme=wood-legendary] .atm-header {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
[data-theme=wood-legendary] .atm-title {
  color: #FFF5DC !important;
  font-weight: 900 !important;
  font-size: 1.6rem !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.60) !important;
  margin: 0 !important;
}
[data-theme=wood-legendary] .atm-title-icon {
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.80)) !important;
}
[data-theme=wood-legendary] .atm-subtitle {
  color: rgba(255,245,220,0.60) !important;
  margin: 4px 0 0 !important;
}

/* ── Bouton créer ── */
[data-theme=wood-legendary] .atm-btn-create {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.60) !important;
  color: #2A1200 !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  padding: 11px 22px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.30) !important;
  font-size: 0.92rem !important;
}

/* ── Stats bar ── */
[data-theme=wood-legendary] .atm-stats-bar {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}
[data-theme=wood-legendary] .atm-stat-card {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.45) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  text-align: center !important;
  box-shadow: 0 5px 18px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}
[data-theme=wood-legendary] .atm-stat-card:nth-child(2) {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-stat-card:nth-child(3) {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-stat-card:nth-child(4) {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-stat-card:nth-child(5) {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-stat-value {
  display: block !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .atm-stat-card:nth-child(3) .atm-stat-value,
[data-theme=wood-legendary] .atm-stat-card:nth-child(5) .atm-stat-value {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .atm-stat-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: rgba(42,18,0,0.60) !important;
}
[data-theme=wood-legendary] .atm-stat-card:nth-child(3) .atm-stat-label,
[data-theme=wood-legendary] .atm-stat-card:nth-child(5) .atm-stat-label {
  color: rgba(255,245,220,0.60) !important;
}

/* ── Filtres ── */
[data-theme=wood-legendary] .atm-filters {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
}
[data-theme=wood-legendary] .atm-filter-btn {
  background: rgba(255,245,220,0.10) !important;
  border: 1px solid rgba(255,245,220,0.20) !important;
  color: rgba(255,245,220,0.70) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
[data-theme=wood-legendary] .atm-filter-btn:hover {
  background: rgba(255,245,220,0.18) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .atm-filter-active {
  background: linear-gradient(135deg, rgba(201,168,76,0.35), rgba(160,120,48,0.40)) !important;
  border-color: rgba(201,168,76,0.65) !important;
  color: #C9A84C !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .atm-filter-count {
  background: rgba(255,245,220,0.15) !important;
  border-radius: 10px !important;
  padding: 0 6px !important;
  font-size: 0.75rem !important;
  margin-left: 4px !important;
}

/* ── Grid cards ── */
[data-theme=wood-legendary] .atm-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 16px !important;
}

/* ── Card automatisation ── */
[data-theme=wood-legendary] .atm-card {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.48) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.28) !important;
  transition: transform 0.18s, box-shadow 0.18s !important;
}
[data-theme=wood-legendary] .atm-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.55), inset 0 1px 0 rgba(255,255,255,0.32) !important;
}
[data-theme=wood-legendary] .atm-card-trigger {
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  backdrop-filter: blur(4px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
[data-theme=wood-legendary] .atm-card-trigger-icon {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)) !important;
}
[data-theme=wood-legendary] .atm-card-name {
  color: #2A1200 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  margin: 12px 0 4px !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .atm-card-desc {
  color: rgba(42,18,0,0.60) !important;
  font-size: 0.82rem !important;
  margin: 0 0 10px !important;
}
[data-theme=wood-legendary] .atm-card-meta {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 10px !important;
}
[data-theme=wood-legendary] .atm-card-meta-item {
  color: rgba(42,18,0,0.55) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
[data-theme=wood-legendary] .atm-meta-icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)) !important;
}
[data-theme=wood-legendary] .atm-badge-success {
  background: rgba(16,185,129,0.20) !important;
  color: #065F46 !important;
  border: 1px solid rgba(16,185,129,0.40) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .atm-badge-fail {
  background: rgba(239,68,68,0.18) !important;
  color: #7F1D1D !important;
  border: 1px solid rgba(239,68,68,0.35) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

/* ── Actions buttons sur card ── */
[data-theme=wood-legendary] .atm-card-actions {
  display: flex !important;
  gap: 6px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(42,18,0,0.12) !important;
}
[data-theme=wood-legendary] .atm-action-btn {
  background: rgba(42,18,0,0.10) !important;
  border: 1px solid rgba(42,18,0,0.18) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 0.88rem !important;
  transition: background 0.15s !important;
}
[data-theme=wood-legendary] .atm-action-btn:hover {
  background: rgba(42,18,0,0.20) !important;
}
[data-theme=wood-legendary] .atm-action-test {
  background: rgba(59,130,246,0.15) !important;
  border-color: rgba(59,130,246,0.30) !important;
}
[data-theme=wood-legendary] .atm-action-run {
  background: rgba(16,185,129,0.15) !important;
  border-color: rgba(16,185,129,0.30) !important;
}
[data-theme=wood-legendary] .atm-action-delete {
  background: rgba(239,68,68,0.12) !important;
  border-color: rgba(239,68,68,0.28) !important;
}

/* ── Toggle switch ── */
[data-theme=wood-legendary] .atm-toggle-track {
  background: rgba(42,18,0,0.20) !important;
  border: 1px solid rgba(42,18,0,0.25) !important;
  border-radius: 12px !important;
}
[data-theme=wood-legendary] input:checked + .atm-toggle-track {
  background: linear-gradient(135deg, #C9A84C, #A07830) !important;
  border-color: rgba(201,168,76,0.60) !important;
}
[data-theme=wood-legendary] .atm-toggle-thumb {
  background: #FFF5DC !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.30) !important;
}

/* ── Builder ── */
[data-theme=wood-legendary] .atm-builder {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}
[data-theme=wood-legendary] .atm-builder-sidebar {
  background: url('textures/wood-dark.jpg') center/cover no-repeat !important;
  border: 1px solid rgba(201,168,76,0.40) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .atm-label {
  color: rgba(255,245,220,0.70) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
[data-theme=wood-legendary] .atm-input,
[data-theme=wood-legendary] .atm-textarea {
  background: rgba(255,245,220,0.08) !important;
  border: 1px solid rgba(255,245,220,0.22) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .atm-input::placeholder,
[data-theme=wood-legendary] .atm-textarea::placeholder {
  color: rgba(255,245,220,0.35) !important;
}

/* ── Pipeline nodes ── */
[data-theme=wood-legendary] .atm-builder-pipeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
[data-theme=wood-legendary] .atm-section-label {
  color: #C9A84C !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}
[data-theme=wood-legendary] .atm-section-opt {
  color: rgba(201,168,76,0.55) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .atm-node {
  border-radius: 14px !important;
  border: 1px solid rgba(201,168,76,0.40) !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.42) !important;
}
[data-theme=wood-legendary] .atm-node-trigger {
  background: url('textures/wood-medium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-node-condition {
  background: url('textures/wood-light.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-node-action {
  background: url('textures/wood-light-premium.jpg') center/cover no-repeat !important;
}
[data-theme=wood-legendary] .atm-node-header {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(201,168,76,0.25) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
[data-theme=wood-legendary] .atm-node-header-condition {
  background: rgba(42,18,0,0.10) !important;
}
[data-theme=wood-legendary] .atm-node-icon {
  font-size: 1.3rem !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.55)) !important;
}
[data-theme=wood-legendary] .atm-node-title {
  color: #FFF5DC !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .atm-node-condition .atm-node-title {
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .atm-node-body {
  padding: 14px 16px !important;
}
[data-theme=wood-legendary] .atm-select,
[data-theme=wood-legendary] .atm-input-sm {
  background: rgba(255,245,220,0.12) !important;
  border: 1px solid rgba(255,245,220,0.25) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
  width: 100% !important;
}
[data-theme=wood-legendary] .atm-node-condition .atm-select,
[data-theme=wood-legendary] .atm-node-condition .atm-input-sm {
  background: rgba(42,18,0,0.10) !important;
  border-color: rgba(42,18,0,0.22) !important;
  color: #2A1200 !important;
}
[data-theme=wood-legendary] .atm-label-sm {
  color: rgba(255,245,220,0.65) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .atm-node-condition .atm-label-sm {
  color: rgba(42,18,0,0.60) !important;
}

/* ── Connecteurs pipeline ── */
[data-theme=wood-legendary] .atm-pipeline-connector {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 6px 0 !important;
}
[data-theme=wood-legendary] .atm-connector-line {
  width: 2px !important;
  height: 28px !important;
  background: linear-gradient(to bottom, rgba(201,168,76,0.60), rgba(201,168,76,0.20)) !important;
}
[data-theme=wood-legendary] .atm-connector-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #C9A84C !important;
  box-shadow: 0 0 8px rgba(201,168,76,0.70) !important;
}

/* ── Boutons add condition/action ── */
[data-theme=wood-legendary] .atm-btn-add-condition,
[data-theme=wood-legendary] .atm-btn-add-action {
  background: rgba(201,168,76,0.14) !important;
  border: 1px dashed rgba(201,168,76,0.50) !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  margin-top: 10px !important;
  width: 100% !important;
}
[data-theme=wood-legendary] .atm-btn-add-condition:hover,
[data-theme=wood-legendary] .atm-btn-add-action:hover {
  background: rgba(201,168,76,0.22) !important;
}

/* ── Bouton retour + outline ── */
[data-theme=wood-legendary] .atm-btn-back {
  background: rgba(255,245,220,0.12) !important;
  border: 1px solid rgba(255,245,220,0.28) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
  padding: 7px 14px !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .atm-btn-outline {
  background: rgba(255,245,220,0.10) !important;
  border: 1px solid rgba(255,245,220,0.30) !important;
  color: #FFF5DC !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
}

/* ── Empty state ── */
[data-theme=wood-legendary] .atm-empty {
  text-align: center !important;
  padding: 60px 20px !important;
}
[data-theme=wood-legendary] .atm-empty-icon {
  font-size: 3rem !important;
  filter: drop-shadow(0 4px 12px rgba(201,168,76,0.60)) !important;
  display: block !important;
  margin-bottom: 16px !important;
}
[data-theme=wood-legendary] .atm-empty h3 {
  color: #FFF5DC !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .atm-empty p {
  color: rgba(255,245,220,0.55) !important;
}

/* ── Loading ── */
[data-theme=wood-legendary] .atm-loading {
  color: rgba(255,245,220,0.65) !important;
  text-align: center !important;
  padding: 40px !important;
}

/* == Tunnel Club — lisibilite sur bois (pas de fond opaque sur le body) == */

/* Nom du tunnel — gros text-shadow pour lisibilite */
[data-theme=wood-legendary] .tc-card-v4-name {
  color: #FFF5DC !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.7) !important;
  font-weight: 800 !important;
}

/* Stats (visites, leads) */
[data-theme=wood-legendary] .tc-card-v4-stats,
[data-theme=wood-legendary] .tc-card-v4-stats span {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 0 6px rgba(0,0,0,0.6) !important;
  font-weight: 600 !important;
}

/* Slug / URL */
[data-theme=wood-legendary] .tc-card-v4-url,
[data-theme=wood-legendary] .tc-card-v4-meta {
  color: rgba(255,245,220,0.8) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
}

/* Share buttons — fond bois fonce semi-transparent */
/* ── SHARE ROW — forcer inline sur une seule ligne ── */
[data-theme=wood-legendary] .tc-share-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 6px !important;
  overflow-x: hidden !important;
  padding: 2px 0 !important;
}
[data-theme=wood-legendary] .tc-share-label {
  font-size: 0.58rem !important;
  color: rgba(255,222,150,0.5) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-right: 2px !important;
  font-style: italic !important;
}

/* Boutons partage — icônes bois sculpté */
[data-theme=wood-legendary] .tc-share-btn,
[data-theme=wood-legendary] button.tc-share-btn,
[data-theme=wood-legendary] a.tc-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 28px !important;
  height: 24px !important;
  padding: 0 !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: rgba(40,22,6,0.9) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  border-radius: 5px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  color: #FFE9C0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,100,0.15) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
[data-theme=wood-legendary] .tc-share-btn:hover,
[data-theme=wood-legendary] button.tc-share-btn:hover,
[data-theme=wood-legendary] a.tc-share-btn:hover {
  border-color: rgba(201,168,76,0.9) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5), 0 0 6px rgba(201,168,76,0.25) !important;
  transform: translateY(-1px) !important;
}
[data-theme=wood-legendary] .tc-share-copy { color: #FFE9C8 !important; }
[data-theme=wood-legendary] .tc-share-wa   { color: #A8FFCA !important; }
[data-theme=wood-legendary] .tc-share-email{ color: #C8D8FF !important; }
[data-theme=wood-legendary] .tc-share-qr   { color: #FFD87A !important; }

/* Slug input */
[data-theme=wood-legendary] .tc-slug-input {
  background: rgba(40,25,8,0.7) !important;
  border-color: rgba(201,168,76,0.3) !important;
  color: #FFF5DC !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
}

/* Filter tabs */
[data-theme=wood-legendary] .tc-filter-tab {
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
}

/* == Tunnel Club — bouton Creer avec Maha, hero, stats == */

/* Hero — titre + sous-titre */
[data-theme=wood-legendary] .tc-hero-sub {
  text-shadow: 0 2px 6px rgba(0,0,0,0.95) !important;
}

/* Bouton Creer avec Maha — garde le style original */

/* Stats pills */
[data-theme=wood-legendary] .tc-stat-pill {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95) !important;
  font-weight: 600 !important;
}
[data-theme=wood-legendary] .tc-stat-dot {
  color: rgba(201,168,76,0.6) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
}

/* Carte de creation (le + ou la premiere carte) */
[data-theme=wood-legendary] .tc-tunnel-card-create {
  background-image: var(--wood-medium) !important;
  background-size: cover !important;
  border: 2px dashed rgba(201,168,76,0.4) !important;
}
[data-theme=wood-legendary] .tc-tunnel-card-create:hover {
  border-color: rgba(201,168,76,0.7) !important;
}

/* Filtres tabs */
[data-theme=wood-legendary] .tc-filter-tab {
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .tc-filter-tab.active {
  background: rgba(201,168,76,0.2) !important;
  border-color: rgba(201,168,76,0.4) !important;
  color: #C9A84C !important;
}

/* Searchbox */
[data-theme=wood-legendary] .tc-search-input {
  background: rgba(40,25,8,0.6) !important;
  border-color: rgba(201,168,76,0.25) !important;
  color: #FFF5DC !important;
}

/* v2 — 2026-03-29 GIRI DRIVE backdrop-fix */

/* ── Notes toolbar — font-size group alignment fix ── */
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-fontsize-group {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}
[data-theme="wood-legendary"] #view-notes .notes-toolbar-sticky .toolbar-fontsize-label,
[data-theme="wood-legendary"] #view-notes .toolbar-fontsize-label {
  background: none !important;
  border: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  min-width: 20px !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════
   WOOD LEGENDARY — Tunnel Cards V4 Premium
   ══════════════════════════════════════════════════ */

[data-theme=wood-legendary] .tc-card-v4 {
    background-image: var(--wood-medium) !important;
    background-size: 220% auto !important;
    background-position: center center !important;
    background-color: transparent !important;
    border-color: rgba(201,168,76,0.35) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45) !important;
}
[data-theme=wood-legendary] .tc-card-v4:hover {
    border-color: rgba(201,168,76,0.55) !important;
    box-shadow:
        0 10px 36px rgba(0,0,0,0.65),
        0 0 0 1px rgba(201,168,76,0.2),
        inset 0 1px 0 rgba(201,168,76,0.25) !important;
}
[data-theme=wood-legendary] .tc-card-v4-header {
    border-bottom-color: rgba(201,168,76,0.15) !important;
}
[data-theme=wood-legendary] .tc-card-v4-icon {
    background: linear-gradient(135deg, rgba(90,45,8,0.95), rgba(55,28,5,0.98)) !important;
    border-color: rgba(201,168,76,0.45) !important;
    box-shadow:
        inset 0 2px 5px rgba(0,0,0,0.6),
        inset 0 -1px 0 rgba(201,168,76,0.2),
        0 3px 10px rgba(0,0,0,0.5) !important;
}
[data-theme=wood-legendary] .tc-card-v4-name {
    color: rgba(255,238,195,0.97) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
}
[data-theme=wood-legendary] .tc-section-title-v4 {
    color: #C9A84C !important;
    text-shadow: 0 0 20px rgba(201,168,76,0.3) !important;
}
[data-theme=wood-legendary] .tc-card-v4-meta {
    color: rgba(201,168,76,0.8) !important;
}
[data-theme=wood-legendary] .tc-card-v4-actions {
    border-top-color: rgba(201,168,76,0.12) !important;
}
[data-theme=wood-legendary] .tc-card-act {
    border-color: rgba(201,168,76,0.45) !important;
    color: rgba(255,230,160,0.92) !important;
    background: rgba(40,20,5,0.75) !important;
}
[data-theme=wood-legendary] .tc-card-act:hover {
    background: rgba(201,168,76,0.08) !important;
    border-color: rgba(201,168,76,0.45) !important;
    color: rgba(201,168,76,1) !important;
}
[data-theme=wood-legendary] .tc-card-act-primary {
    background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(150,110,40,0.15)) !important;
    border-color: rgba(201,168,76,0.55) !important;
    color: #D4AF50 !important;
}
[data-theme=wood-legendary] .tc-card-act-primary:hover {
    background: linear-gradient(135deg, rgba(201,168,76,0.38), rgba(150,110,40,0.25)) !important;
    border-color: rgba(201,168,76,0.8) !important;
    color: #F0CB70 !important;
    box-shadow: 0 4px 14px rgba(201,168,76,0.25) !important;
}
[data-theme=wood-legendary] .tc-card-dropdown {
    background: rgba(12,6,1,0.98) !important;
    border-color: rgba(201,168,76,0.35) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.1) !important;
}
[data-theme=wood-legendary] .tc-dd-item {
    color: rgba(255,235,185,0.82) !important;
}
[data-theme=wood-legendary] .tc-dd-item:hover {
    background: rgba(201,168,76,0.1) !important;
    color: #E8C96A !important;
}

/* =====================================================
   TUNNEL CLUB — WOOD VARIETY + ERGONOMIC LAYOUT v1
   Planches de bois variées par position + layout harmonieux
   ===================================================== */

/* Variation des planches de bois par position (nth-child) */
[data-theme=wood-legendary] .tc-card-v4:nth-child(3n+1) {
    background-image: var(--wood-medium) !important;
    background-size: 220% auto !important;
    background-position: 35% center !important;
}
[data-theme=wood-legendary] .tc-card-v4:nth-child(3n+2) {
    background-image: var(--wood-body) !important;
    background-size: 240% auto !important;
    background-position: 65% center !important;
}
[data-theme=wood-legendary] .tc-card-v4:nth-child(3n+3) {
    background-image: var(--wood-light) !important;
    background-size: 260% auto !important;
    background-position: 50% center !important;
}

/* Texte adapté selon la planche (bois clair = texte plus foncé) */
[data-theme=wood-legendary] .tc-card-v4:nth-child(4n+4) .tc-card-v4-name {
    color: rgba(50,25,5,0.95) !important;
    text-shadow: 0 1px 2px rgba(255,240,200,0.4) !important;
}
[data-theme=wood-legendary] .tc-card-v4:nth-child(4n+4) .tc-card-v4-meta {
    color: rgba(100,60,10,0.85) !important;
}
[data-theme=wood-legendary] .tc-card-v4:nth-child(4n+4) .tc-card-v4-url {
    color: rgba(100,60,10,0.7) !important;
}

/* Bois foncé (3ème) = overlay léger pour lisibilité */
[data-theme=wood-legendary] .tc-card-v4:nth-child(4n+3) {
    box-shadow:
        0 4px 16px rgba(0,0,0,0.55),
        inset 0 0 0 1000px rgba(20,10,3,0.18) !important;
}
[data-theme=wood-legendary] .tc-card-v4:nth-child(4n+3) .tc-card-v4-name {
    color: rgba(255,245,210,1) !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8) !important;
}

/* Layout de la liste des tunnels — harmonieux et espacé */
[data-theme=wood-legendary] .tc-tunnels-list,
[data-theme=wood-legendary] .tc-cards-list,
[data-theme=wood-legendary] .tc-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 8px 0 !important;
}

/* Carte en planche horizontale — structure claire */
[data-theme=wood-legendary] .tc-card-v4 {
    display: flex !important;
    align-items: stretch !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    min-height: 80px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
[data-theme=wood-legendary] .tc-card-v4:hover {
    transform: translateY(-2px) !important;
}

/* Zone icône — planche plus sombre à gauche */
[data-theme=wood-legendary] .tc-card-v4-icon {
    min-width: 56px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Corps de la carte — centré verticalement */
[data-theme=wood-legendary] .tc-card-v4-body {
    flex: 1 !important;
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    background: transparent !important;
}

/* Titre — bien lisible */
[data-theme=wood-legendary] .tc-card-v4-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* Meta/URL — discret sous le titre */
[data-theme=wood-legendary] .tc-card-v4-meta,
[data-theme=wood-legendary] .tc-card-v4-url {
    font-size: 11.5px !important;
    opacity: 0.75 !important;
    line-height: 1.2 !important;
}

/* Stats — badges alignés */
[data-theme=wood-legendary] .tc-card-v4-stats {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
}
[data-theme=wood-legendary] .tc-card-v4-stats span {
    font-size: 11px !important;
    background: rgba(0,0,0,0.25) !important;
    border-radius: 4px !important;
    padding: 1px 6px !important;
    color: rgba(201,168,76,0.85) !important;
}

/* Zone actions — boutons bien alignés à droite */
[data-theme=wood-legendary] .tc-card-v4-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    border-top: none !important;
    border-left: 1px solid rgba(201,168,76,0.1) !important;
    background: rgba(0,0,0,0.15) !important;
    flex-shrink: 0 !important;
}

/* Boutons d'action — compacts et clairs */
[data-theme=wood-legendary] .tc-card-act {
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

/* Badge statut */
[data-theme=wood-legendary] .tc-status-badge,
[data-theme=wood-legendary] .tc-badge {
    font-size: 10.5px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
[data-theme=wood-legendary] .tc-badge-active,
[data-theme=wood-legendary] .tc-status-active {
    background: rgba(80,180,80,0.18) !important;
    color: #7DDA7D !important;
    border: 1px solid rgba(80,180,80,0.3) !important;
}
[data-theme=wood-legendary] .tc-badge-draft,
[data-theme=wood-legendary] .tc-status-draft {
    background: rgba(201,168,76,0.12) !important;
    color: rgba(201,168,76,0.8) !important;
    border: 1px solid rgba(201,168,76,0.25) !important;
}

/* Bouton créer nouveau tunnel */
[data-theme=wood-legendary] .tc-tunnel-card-create {
    background-image: var(--wood-dark) !important;
    background-size: cover !important;
    border: 2px dashed rgba(201,168,76,0.35) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}
[data-theme=wood-legendary] .tc-tunnel-card-create:hover {
    border-color: rgba(201,168,76,0.65) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45) !important;
}

/* En-tête de section */
[data-theme=wood-legendary] .tc-section-title-v4,
[data-theme=wood-legendary] .tc-page-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #D4AF50 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(201,168,76,0.2) !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 20px !important;
}

/* Filtres/Onglets en haut */
[data-theme=wood-legendary] .tc-filter-bar,
[data-theme=wood-legendary] .tc-tabs {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    padding: 6px !important;
    background-image: var(--wood-dark) !important;
    background-size: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(201,168,76,0.2) !important;
}
[data-theme=wood-legendary] .tc-filter-btn,
[data-theme=wood-legendary] .tc-tab {
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: rgba(201,168,76,0.75) !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
}
[data-theme=wood-legendary] .tc-filter-btn.active,
[data-theme=wood-legendary] .tc-tab.active,
[data-theme=wood-legendary] .tc-filter-btn:hover,
[data-theme=wood-legendary] .tc-tab:hover {
    background: rgba(201,168,76,0.12) !important;
    border-color: rgba(201,168,76,0.35) !important;
    color: #D4AF50 !important;
}



/* ===== NOTIFICATION BADGE — WOOD TEXTURE ===== */
[data-theme="wood-legendary"] .notif-badge-count,
[data-theme="wood-legendary"] #notif-badge-count,
[data-theme="wood-legendary"] #sidebar-notif-badge {
  background-color: rgba(15,7,0,0.82) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  color: #FFF5DC !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,210,130,0.15) !important;
}


/* ===== SIDEBAR SECTION LABELS — CRÈME CLAIRE ===== */
[data-theme="wood-legendary"] .sidebar-section-label {
  color: rgba(245,230,200,0.75) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important;
  opacity: 1 !important;
}
[data-theme="wood-legendary"] .sidebar-section-label .sidebar-section-chevron svg {
  stroke: #F5E6C8 !important;
  opacity: 0.8 !important;
}



/* ===== LOGO BOULE DORÉE — OMBRE NOIRE RELIEF ===== */
[data-theme="wood-legendary"] .sidebar-logo {
  filter:
    drop-shadow(0 2px 4px rgba(0,0,0,0.65))
    drop-shadow(0 4px 10px rgba(0,0,0,0.55)) !important;
}


/* ===== CLOCHE NOTIFICATIONS — MÊME COULEUR QUE MAHA GIRI ===== */
[data-theme="wood-legendary"] .sidebar-notif-bell svg path {
  stroke: rgba(255,230,160,0.85) !important;
}


/* ===== SIDEBAR SECTIONS — SÉPARATEURS PREMIUM ===== */

/* Ligne dorée en fondu + ombre noire au-dessus de chaque section */
[data-theme="wood-legendary"] .sidebar-section-label {
  position: relative !important;
  margin-top: 8px !important;
  padding-top: 10px !important;
}

[data-theme="wood-legendary"] .sidebar-section-label::before {
  content: none !important;
}

/* Derniers items de chaque section — ombre basse douce */
[data-theme="wood-legendary"] .sidebar-item:last-of-type,
[data-theme="wood-legendary"] .sidebar-nav .sidebar-item {
  position: relative !important;
}

/* Profondeur générale de la nav — vignette intérieure */
[data-theme="wood-legendary"] .sidebar-nav {
  box-shadow:
    inset 0 8px 16px rgba(0,0,0,0.28),
    inset 0 -8px 16px rgba(0,0,0,0.22) !important;
  border-radius: 0 0 8px 8px !important;
}




/* ===== PROFIL — MASQUER AVATAR, NOM À GAUCHE ===== */
[data-theme="wood-legendary"] .sidebar-avatar {
  display: none !important;
}
[data-theme="wood-legendary"] .sidebar-profile {
  padding-left: 12px !important;
}
[data-theme="wood-legendary"] .sidebar-profile-info {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
[data-theme="wood-legendary"] .sidebar-profile-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: rgba(255,230,160,0.85) !important;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.6) !important;
}
[data-theme="wood-legendary"] .sidebar-profile-name::before {
  content: "Maître " !important;
}


/* ===== BOUTON COLLAPSE SIDEBAR — DISCRET PREMIUM ===== */
[data-theme="wood-legendary"] #app-sidebar .sidebar-collapse-btn,
[data-theme="wood-legendary"] .sidebar-collapse-btn {
  opacity: 0.35 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.3s !important;
}
[data-theme="wood-legendary"] #app-sidebar:hover .sidebar-collapse-btn,
[data-theme="wood-legendary"] .sidebar-collapse-btn:hover {
  opacity: 1 !important;
  box-shadow: none !important;
}
[data-theme="wood-legendary"] .sidebar-collapse-btn svg {
  stroke: #C49A6C !important;
  stroke-width: 3 !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.9)) !important;
}


/* ===== CALENDAR — FIX CROP HEADER ===== */
[data-theme="wood-legendary"] #view-calendar.view-container,
[data-theme="wood-legendary"] #view-calendar {
  padding: 0 !important;
  overflow: visible !important;
}
[data-theme="wood-legendary"] .gcal-root {
  overflow: hidden !important;
}


/* ===== LESSON EDITOR MODAL — HEADER ANGLES DROITS BAS ===== */
[data-theme="wood-legendary"] #lesson-editor-overlay .academy-modal-header {
  border-radius: 0 !important;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.55),
    0 2px 4px rgba(0,0,0,0.40) !important;
  position: relative !important;
  z-index: 2 !important;
}


/* ===== LESSON EDITOR — BOUTONS TYPE DE CONTENU ===== */
[data-theme="wood-legendary"] #lesson-editor-overlay .lesson-type-tab {
  background-color: rgba(15,7,0,0.75) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,70,0.30) !important;
  color: rgba(245,230,200,0.70) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,210,130,0.10) !important;
  transition: all 0.2s !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .lesson-type-tab:hover {
  border-color: rgba(212,164,76,0.55) !important;
  color: #F5E6C8 !important;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,210,130,0.18) !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .lesson-type-tab.active {
  background-color: rgba(90,60,20,0.85) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.65) !important;
  color: #FFE8A0 !important;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,220,130,0.22),
    0 0 0 1px rgba(212,164,76,0.20) !important;
}


/* ===== LESSON EDITOR — BOUTONS SOURCES VIDÉO ===== */
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-upload,
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-drive,
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-url {
  background-color: rgba(15,7,0,0.75) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,70,0.30) !important;
  color: rgba(245,230,200,0.70) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,210,130,0.10) !important;
  transition: all 0.2s !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-upload:hover,
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-drive:hover,
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-url:hover {
  border-color: rgba(212,164,76,0.55) !important;
  color: #F5E6C8 !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-upload.btn-primary,
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-drive.btn-primary,
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-url.btn-primary {
  background-color: rgba(90,60,20,0.85) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.65) !important;
  color: #FFE8A0 !important;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,220,130,0.22) !important;
}

/* ===== LESSON EDITOR — INTELLIGENCE VIDÉO ===== */
[data-theme="wood-legendary"] #lesson-editor-overlay .vi-panel {
  border-radius: 12px !important;
  overflow: hidden !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .vi-header {
  background-color: rgba(30,15,0,0.90) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  border-radius: 12px !important;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,210,130,0.12) !important;
  color: #F5E6C8 !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .vi-header:hover {
  border-color: rgba(212,164,76,0.55) !important;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,220,130,0.18) !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay #vi-body {
  background-color: rgba(20,10,0,0.85) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .vi-badge-idle {
  background: rgba(15,7,0,0.6) !important;
  color: rgba(245,230,200,0.55) !important;
  border: 1px solid rgba(180,130,70,0.25) !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .vi-badge-done {
  background: rgba(40,80,20,0.5) !important;
  color: #A8D878 !important;
  border: 1px solid rgba(100,180,60,0.40) !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay .vi-badge-processing {
  background: rgba(80,50,10,0.6) !important;
  color: #FFD060 !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
}


/* ===== LESSON EDITOR — BOUTON MÉDIATHÈQUE ===== */
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-library {
  background-color: rgba(15,7,0,0.75) !important;
  background-image: var(--wood-dark) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,70,0.30) !important;
  color: rgba(245,230,200,0.70) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,210,130,0.10) !important;
  transition: all 0.2s !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-library:hover {
  border-color: rgba(212,164,76,0.55) !important;
  color: #F5E6C8 !important;
}
[data-theme="wood-legendary"] #lesson-editor-overlay #video-src-library.btn-primary {
  background-color: rgba(90,60,20,0.85) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.65) !important;
  color: #FFE8A0 !important;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.60),
    inset 0 1px 0 rgba(255,220,130,0.22) !important;
}


/* ===== LESSON EDITOR — BOUTONS DIFFICULTÉ (bois clair) ===== */
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-diff-btn {
  background-color: rgba(200,160,90,0.22) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(180,130,60,0.40) !important;
  color: rgba(245,230,200,0.85) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,220,150,0.18) !important;
  transition: all 0.2s !important;
}
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-diff-btn:hover {
  border-color: rgba(212,164,76,0.65) !important;
  color: #F5E6C8 !important;
}
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-diff-btn[style*=background] {
  background-color: rgba(200,160,90,0.30) !important;
  background-image: var(--wood-light) !important;
  background-blend-mode: luminosity !important;
}

/* ===== LESSON EDITOR — BOÎTE PRÉREQUIS (bois clair) ===== */
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-prereq-box {
  background-color: rgba(200,160,90,0.18) !important;
  background-image: var(--wood-light) !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,60,0.40) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.12),
    0 2px 8px rgba(0,0,0,0.30) !important;
}


/* ===== LESSON EDITOR — TEXTE SOMBRE sur fonds bois clair ===== */
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-diff-btn {
  color: rgba(50,25,5,0.90) !important;
  text-shadow: 0 1px 0 rgba(255,230,180,0.35) !important;
}
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-prereq-box,
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-prereq-box * {
  color: rgba(50,25,5,0.85) !important;
}
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-prereq-box label {
  color: rgba(50,25,5,0.95) !important;
  font-weight: 600 !important;
}

/* ===== LESSON EDITOR — INPUT DRIP (moins transparent) ===== */
[data-theme=wood-legendary] #lesson-editor-overlay #lesson-unlock-days {
  background: rgba(200,160,90,0.35) !important;
  border: 1px solid rgba(160,110,40,0.60) !important;
  color: rgba(50,25,5,0.90) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.20) !important;
}
[data-theme=wood-legendary] #lesson-editor-overlay #lesson-unlock-days::placeholder {
  color: rgba(80,45,10,0.55) !important;
}


/* ===== LESSON EDITOR — SUPPRIMER OMBRES TEXTE boîte prérequis ===== */
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-prereq-box,
[data-theme=wood-legendary] #lesson-editor-overlay .lesson-prereq-box * {
  text-shadow: none !important;
}


/* ===== PROJECT MAP — TOOLBAR fond bois clair ===== */
[data-theme=wood-legendary] .pm-toolbar {
  background:
    var(--wood-light),
    rgba(220,185,120,0.92) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  background-position: center top !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border-bottom: 1px solid rgba(160,110,50,0.45) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.40) !important;
}


/* ===== PROJECT MAP — BOUTONS toolbar bois medium ===== */
[data-theme=wood-legendary] .pm-filter-btn,
[data-theme=wood-legendary] .pm-tool-btn {
  background-color: rgba(130,85,35,0.55) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(140,95,40,0.50) !important;
  color: rgba(50,25,5,0.85) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,220,150,0.20) !important;
}
[data-theme=wood-legendary] .pm-filter-btn:hover,
[data-theme=wood-legendary] .pm-tool-btn:hover {
  border-color: rgba(160,110,40,0.75) !important;
  color: rgba(30,12,2,0.95) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,220,150,0.25) !important;
}
[data-theme=wood-legendary] .pm-filter-btn.active {
  background-color: rgba(160,110,40,0.70) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  border-color: rgba(180,130,50,0.80) !important;
  color: rgba(30,12,2,0.95) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,220,150,0.30) !important;
}


/* ===== PROJECT MAP — BOUTONS texte blanc ===== */
[data-theme=wood-legendary] .pm-filter-btn,
[data-theme=wood-legendary] .pm-tool-btn,
[data-theme=wood-legendary] .pm-filter-btn:hover,
[data-theme=wood-legendary] .pm-tool-btn:hover,
[data-theme=wood-legendary] .pm-filter-btn.active {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.60) !important;
}


/* ===== PROJECT MAP — TOOLBAR ombre portée premium ===== */
[data-theme=wood-legendary] .pm-toolbar {
  box-shadow:
    0 4px 12px rgba(0,0,0,0.45),
    0 8px 32px rgba(0,0,0,0.30),
    0 1px 0 rgba(255,220,150,0.15) inset !important;
}


/* ===== PROJECT MAP — TITRE marron foncé ===== */
[data-theme=wood-legendary] .pm-toolbar-title {
  color: rgba(50,25,5,0.90) !important;
  text-shadow: 0 1px 0 rgba(255,220,150,0.30) !important;
}


/* ===== PROJECT MAP — PANNEAU CARTE (multi-bois) ===== */

/* Fond overlay */
[data-theme=wood-legendary] .pm-editor-overlay {
  background: rgba(10,5,0,0.65) !important;
  backdrop-filter: blur(8px) !important;
}

/* Conteneur principal — bois medium */
[data-theme=wood-legendary] .pm-editor {
  background-color: rgba(110,80,40,0.97) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1.5px solid rgba(212,164,76,0.40) !important;
  border-radius: 20px !important;
  box-shadow:
    0 0 0 1px rgba(255,220,130,0.12),
    0 8px 32px rgba(0,0,0,0.65),
    0 24px 64px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,220,150,0.25) !important;
}

/* Header — bois foncé */
[data-theme=wood-legendary] .pm-editor-header {
  background-color: rgba(30,18,6,0.95) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border-bottom: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.50) !important;
}

[data-theme=wood-legendary] .pm-editor-header h3 {
  color: rgba(255,235,185,0.95) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.70) !important;
}

[data-theme=wood-legendary] .pm-editor-close {
  background: rgba(0,0,0,0.30) !important;
  color: rgba(255,220,160,0.70) !important;
  border: 1px solid rgba(212,164,76,0.20) !important;
}
[data-theme=wood-legendary] .pm-editor-close:hover {
  background: rgba(180,60,40,0.35) !important;
  color: #FF9977 !important;
}

/* Labels */
[data-theme=wood-legendary] .pm-editor-body label {
  color: rgba(255,230,170,0.80) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .pm-editor-row > label {
  color: rgba(255,230,170,0.80) !important;
}

/* Inputs / textarea / select — bois clair */
[data-theme=wood-legendary] .pm-editor-body input[type=text],
[data-theme=wood-legendary] .pm-editor-body textarea,
[data-theme=wood-legendary] .pm-editor-body select {
  background-color: rgba(210,175,110,0.35) !important;
  background-image: var(--wood-light) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(180,130,55,0.55) !important;
  color: rgba(40,20,4,0.95) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25) !important;
}
[data-theme=wood-legendary] .pm-editor-body input[type=text]:focus,
[data-theme=wood-legendary] .pm-editor-body textarea:focus,
[data-theme=wood-legendary] .pm-editor-body select:focus {
  border-color: rgba(212,164,76,0.75) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25), 0 0 0 3px rgba(212,164,76,0.20) !important;
}
[data-theme=wood-legendary] .pm-editor-body select option {
  background: #5A3A18 !important;
  color: #F5E6C8 !important;
}
[data-theme=wood-legendary] .pm-editor-body input[type=color] {
  background-color: rgba(210,175,110,0.35) !important;
  border: 1px solid rgba(180,130,55,0.55) !important;
}
[data-theme=wood-legendary] #pm-ed-progress-val {
  color: rgba(40,20,4,0.75) !important;
}

/* Footer — bois foncé */
[data-theme=wood-legendary] .pm-editor-footer {
  background-color: rgba(30,18,6,0.90) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border-top: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.35) !important;
}

/* Bouton principal — doré */
[data-theme=wood-legendary] .pm-btn-primary {
  background: linear-gradient(135deg, #C8921E, #E8B840) !important;
  color: #1E100A !important;
  border: 1px solid rgba(255,200,100,0.50) !important;
  box-shadow: 0 4px 14px rgba(200,146,30,0.55), inset 0 1px 0 rgba(255,230,150,0.35) !important;
  text-shadow: 0 1px 0 rgba(255,240,180,0.30) !important;
}
[data-theme=wood-legendary] .pm-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(200,146,30,0.70), inset 0 1px 0 rgba(255,230,150,0.35) !important;
}

/* Bouton danger */
[data-theme=wood-legendary] .pm-btn-danger {
  background: rgba(140,40,20,0.30) !important;
  color: #FF9977 !important;
  border: 1px solid rgba(180,60,40,0.35) !important;
}
[data-theme=wood-legendary] .pm-btn-danger:hover {
  background: rgba(180,50,30,0.45) !important;
}


/* ===== EMAIL STUDIO — HERO CARD ombre omnidirectionnelle ===== */
[data-theme=wood-legendary] .es-hero {
  box-shadow:
    0 0 0 1px rgba(212,164,76,0.12),
    0 6px 20px rgba(0,0,0,0.45),
    0 12px 40px rgba(0,0,0,0.30),
    0 -4px 20px rgba(0,0,0,0.20),
    4px 0 20px rgba(0,0,0,0.20),
    -4px 0 20px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,220,150,0.08) !important;
  border-radius: 20px !important;
}


/* ===== SIDEBAR — SCROLLBAR bois très clair ===== */
[data-theme=wood-legendary] .sidebar-nav::-webkit-scrollbar {
  width: 6px !important;
}
[data-theme=wood-legendary] .sidebar-nav::-webkit-scrollbar-track {
  background: rgba(80,50,20,0.20) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .sidebar-nav::-webkit-scrollbar-thumb,
[data-theme=wood-legendary] .sidebar:hover .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(210,175,110,0.75) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,220,140,0.40) !important;
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.50) !important;
}
[data-theme=wood-legendary] .sidebar-nav::-webkit-scrollbar-thumb:hover,
[data-theme=wood-legendary] .sidebar:hover .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(230,195,130,0.90) !important;
}
/* Firefox */
[data-theme=wood-legendary] .sidebar-nav {
  scrollbar-color: rgba(210,175,110,0.75) rgba(80,50,20,0.20) !important;
  scrollbar-width: thin !important;
}


/* ===== SIDEBAR — SCROLLBAR transparence réduite ===== */
[data-theme=wood-legendary] .sidebar-nav::-webkit-scrollbar-thumb,
[data-theme=wood-legendary] .sidebar:hover .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(210,175,110,0.40) !important;
}
[data-theme=wood-legendary] .sidebar-nav::-webkit-scrollbar-thumb:hover,
[data-theme=wood-legendary] .sidebar:hover .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(230,195,130,0.58) !important;
}
[data-theme=wood-legendary] .sidebar-nav {
  scrollbar-color: rgba(210,175,110,0.40) rgba(80,50,20,0.10) !important;
}


/* ══════════════════════════════════════════════════════════════════
   BILLING PAGE — THÈME BOIS LÉGENDAIRE — Refonte complète premium
   ══════════════════════════════════════════════════════════════════ */

/* ── Titre principal ── */
[data-theme=wood-legendary] .bp-title {
  background: linear-gradient(135deg, #FFD280, #C8921E, #FFE8A0, #A06018) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 8px rgba(180,120,20,0.40)) !important;
}
[data-theme=wood-legendary] .bp-subtitle {
  color: rgba(245,230,195,0.75) !important;
}

/* ── Toggle mensuel/annuel ── */
[data-theme=wood-legendary] .bp-toggle-wrap {
  background-color: rgba(30,18,6,0.80) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,210,130,0.12) !important;
}
[data-theme=wood-legendary] .bp-toggle-label { color: rgba(245,220,170,0.55) !important; }
[data-theme=wood-legendary] .bp-toggle-label--active { color: rgba(255,235,185,0.95) !important; }
[data-theme=wood-legendary] .bp-toggle {
  background: rgba(80,50,20,0.70) !important;
  border: 1px solid rgba(180,130,60,0.35) !important;
}
[data-theme=wood-legendary] .bp-toggle--active {
  background: linear-gradient(135deg, #8B5E1A, #D4A44C) !important;
}
[data-theme=wood-legendary] .bp-savings-badge {
  background: linear-gradient(135deg, #C8921E, #E8B840) !important;
  color: #1A0C00 !important;
  box-shadow: 0 2px 6px rgba(200,146,30,0.40) !important;
}

/* ── CARTE FREE ── */
[data-theme=wood-legendary] .bp-card {
  background-color: rgba(90,65,35,0.88) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(160,115,50,0.45) !important;
  box-shadow:
    0 0 0 1px rgba(255,210,130,0.06),
    0 8px 24px rgba(0,0,0,0.50),
    0 20px 48px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,220,140,0.15) !important;
  border-radius: 20px !important;
}
[data-theme=wood-legendary] .bp-card:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 0 0 1px rgba(212,164,76,0.20),
    0 12px 32px rgba(0,0,0,0.60),
    0 24px 56px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,140,0.20) !important;
}

/* ── CARTE PRO (popular) ── */
[data-theme=wood-legendary] .bp-card--popular {
  background-color: rgba(55,35,10,0.95) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.55) !important;
  box-shadow:
    0 0 0 1px rgba(255,210,130,0.12),
    0 0 40px rgba(212,164,76,0.18),
    0 12px 40px rgba(0,0,0,0.60),
    0 24px 64px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,220,140,0.25) !important;
}

/* ── CARTE SCALE (premium) ── */
[data-theme=wood-legendary] .bp-card--scale {
  background-color: rgba(35,20,5,0.98) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.25) !important;
  box-shadow:
    0 0 50px rgba(180,120,20,0.20),
    0 0 100px rgba(180,120,20,0.10),
    0 12px 40px rgba(0,0,0,0.70),
    inset 0 1px 0 rgba(255,220,140,0.18) !important;
}
[data-theme=wood-legendary] .bp-card--scale::before {
  background: linear-gradient(135deg, #D4A44C, #8B5E1A, #FFD280, #C8921E) !important;
  opacity: 0.9 !important;
}

/* ── CARTE ACTIVE (plan courant) ── */
[data-theme=wood-legendary] .bp-card--active {
  border-color: rgba(212,164,76,0.70) !important;
  box-shadow:
    0 0 0 2px rgba(212,164,76,0.25),
    0 0 30px rgba(212,164,76,0.22),
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,220,140,0.25) !important;
}

/* ── Badges ── */
[data-theme=wood-legendary] .bp-badge--pro {
  background: linear-gradient(135deg, #7B4F18, #C8921E) !important;
  color: #FFF5DC !important;
  border: 1px solid rgba(212,164,76,0.50) !important;
  box-shadow: 0 3px 10px rgba(180,120,20,0.50) !important;
}
[data-theme=wood-legendary] .bp-badge--scale {
  background: linear-gradient(135deg, #C8921E, #FFD280) !important;
  color: #1A0C00 !important;
  box-shadow: 0 3px 14px rgba(212,164,76,0.60) !important;
}

/* ── Textes dans les cartes ── */
[data-theme=wood-legendary] .bp-plan-name { color: rgba(255,235,185,0.95) !important; }
[data-theme=wood-legendary] .bp-price-num { color: #FFE8A0 !important; text-shadow: 0 2px 8px rgba(0,0,0,0.50) !important; }
[data-theme=wood-legendary] .bp-price-cur { color: rgba(255,220,150,0.80) !important; }
[data-theme=wood-legendary] .bp-price-per { color: rgba(245,220,170,0.55) !important; }
[data-theme=wood-legendary] .bp-yearly-note { color: rgba(245,220,170,0.55) !important; }
[data-theme=wood-legendary] .bp-feature { color: rgba(245,230,200,0.88) !important; }
[data-theme=wood-legendary] .bp-feature--ok .bp-feature-icon { color: #88D860 !important; }
[data-theme=wood-legendary] .bp-feature--no { opacity: 0.40 !important; }

/* ── Highlight commission ── */
[data-theme=wood-legendary] .bp-highlight--pro {
  background: rgba(200,100,20,0.18) !important;
  color: #FFB060 !important;
  border-color: rgba(200,130,40,0.30) !important;
}
[data-theme=wood-legendary] .bp-highlight--scale {
  background: rgba(100,180,60,0.15) !important;
  color: #88D860 !important;
  border-color: rgba(100,180,60,0.25) !important;
}

/* ── Boutons CTA ── */
[data-theme=wood-legendary] .bp-cta--free {
  background-color: rgba(100,70,30,0.60) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  color: rgba(245,230,195,0.85) !important;
  border: 1px solid rgba(160,115,50,0.40) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,210,130,0.12) !important;
}
[data-theme=wood-legendary] .bp-cta--pro {
  background: linear-gradient(135deg, #9B6820, #D4A44C, #E8C060) !important;
  color: #1A0A00 !important;
  border: 1px solid rgba(255,210,120,0.45) !important;
  box-shadow: 0 4px 18px rgba(180,120,20,0.55), inset 0 1px 0 rgba(255,240,180,0.35) !important;
  text-shadow: 0 1px 0 rgba(255,240,180,0.30) !important;
}
[data-theme=wood-legendary] .bp-cta--scale {
  background: linear-gradient(135deg, #C8921E, #FFD280, #E8B840) !important;
  color: #1A0A00 !important;
  border: 1px solid rgba(255,220,130,0.60) !important;
  box-shadow: 0 6px 24px rgba(200,146,30,0.65), 0 0 40px rgba(200,146,30,0.20), inset 0 1px 0 rgba(255,250,200,0.45) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255,240,180,0.40) !important;
}

/* ── Section comparateur ── */
[data-theme=wood-legendary] .bp-compare-toggle {
  background-color: rgba(45,28,10,0.85) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(180,130,55,0.40) !important;
  color: rgba(245,225,175,0.90) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,210,130,0.12) !important;
}

/* ── Cards commission ── */
[data-theme=wood-legendary] .bp-commission-card {
  background-color: rgba(90,65,35,0.80) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border-radius: 16px !important;
  border: 1px solid rgba(160,115,50,0.40) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,210,130,0.12) !important;
  color: rgba(245,230,195,0.90) !important;
}
[data-theme=wood-legendary] .bp-commission-card--scale {
  background-color: rgba(45,28,10,0.92) !important;
  background-image: var(--wood-dark) !important;
  border-color: rgba(212,164,76,0.40) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.50), 0 0 30px rgba(180,120,20,0.12), inset 0 1px 0 rgba(255,210,130,0.18) !important;
}
[data-theme=wood-legendary] .bp-commission-card strong { color: #FFE8A0 !important; }
[data-theme=wood-legendary] .bp-commission-card p { color: rgba(245,225,185,0.70) !important; }

/* ── Section ROI ── */
[data-theme=wood-legendary] .bp-roi-section {
  background-color: rgba(45,28,10,0.85) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(180,130,55,0.40) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,210,130,0.12) !important;
}
[data-theme=wood-legendary] .bp-roi-title { color: #FFE8A0 !important; }
[data-theme=wood-legendary] .bp-roi-subtitle { color: rgba(245,225,185,0.70) !important; }
[data-theme=wood-legendary] .bp-roi-subtitle strong { color: rgba(255,210,130,0.95) !important; }
[data-theme=wood-legendary] .bp-roi-label { color: rgba(245,225,185,0.70) !important; }
[data-theme=wood-legendary] .bp-roi-value { color: #FFD280 !important; font-weight: 700 !important; }
[data-theme=wood-legendary] .bp-roi-slider { accent-color: #D4A44C !important; }

/* ── Section crédits IA ── */
[data-theme=wood-legendary] .bp-credits-section {
  background-color: rgba(70,48,22,0.82) !important;
  background-image: var(--wood-medium) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(160,115,50,0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,210,130,0.10) !important;
}
[data-theme=wood-legendary] .bp-credits-title { color: #FFE8A0 !important; }
[data-theme=wood-legendary] .bp-credit-item {
  background: rgba(30,18,6,0.40) !important;
  border: 1px solid rgba(180,130,55,0.25) !important;
  border-radius: 12px !important;
  color: rgba(245,225,185,0.85) !important;
}
[data-theme=wood-legendary] .bp-credit-item strong { color: rgba(255,220,150,0.95) !important; }
[data-theme=wood-legendary] .bp-credit-icon { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.50)) !important; }

/* ── Section addons ── */
[data-theme=wood-legendary] .bp-addons-section {
  background-color: rgba(55,35,12,0.88) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(180,130,55,0.38) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,210,130,0.12) !important;
}
[data-theme=wood-legendary] .bp-addons-title { color: #FFE8A0 !important; }
[data-theme=wood-legendary] .bp-addons-subtitle { color: rgba(245,225,185,0.65) !important; }
[data-theme=wood-legendary] .bp-addons-browse {
  background: linear-gradient(135deg, #9B6820, #D4A44C) !important;
  color: #1A0A00 !important;
  border: 1px solid rgba(212,164,76,0.50) !important;
  box-shadow: 0 4px 14px rgba(180,120,20,0.45) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .bp-addon-card {
  background-color: rgba(90,65,35,0.70) !important;
  background-image: var(--wood-light) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  border: 1px solid rgba(180,130,55,0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.40) !important;
  color: rgba(40,20,4,0.90) !important;
}
[data-theme=wood-legendary] .bp-addon-name { color: rgba(40,20,4,0.95) !important; font-weight: 700 !important; }
[data-theme=wood-legendary] .bp-addon-price { color: rgba(80,45,10,0.90) !important; }

/* ── Table comparateur ── */
[data-theme=wood-legendary] .bp-compare-table th {
  background-color: rgba(35,20,5,0.95) !important;
  background-image: var(--wood-dark) !important;
  background-blend-mode: luminosity !important;
  background-size: cover !important;
  color: rgba(255,225,165,0.95) !important;
  border-bottom: 1px solid rgba(212,164,76,0.30) !important;
}
[data-theme=wood-legendary] .bp-compare-table td {
  border-bottom: 1px solid rgba(160,110,40,0.18) !important;
  color: rgba(245,225,185,0.80) !important;
}
[data-theme=wood-legendary] .bp-compare-table tr:hover td {
  background: rgba(212,164,76,0.06) !important;
}

/* ── FAQ / note ── */
[data-theme=wood-legendary] .bp-faq-note { color: rgba(245,220,170,0.60) !important; }
[data-theme=wood-legendary] .bp-faq-note a { color: rgba(212,164,76,0.85) !important; }


/* ===== BILLING — CARTE SCALE : forcer texture bois (override shorthand) ===== */
[data-theme=wood-legendary] .bp-card--scale {
  background: var(--wood-dark) rgba(35,20,5,0.98) center / cover !important;
  background-blend-mode: luminosity !important;
}


/* ===== BILLING — CARTE ABONNEMENT ACTIF (bp-subscription-card) ===== */
[data-theme=wood-legendary] .bp-subscription-card {
  background: var(--wood-dark) rgba(35,20,5,0.95) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.50) !important;
  box-shadow:
    0 0 0 1px rgba(255,210,130,0.10),
    0 0 30px rgba(180,120,20,0.18),
    0 8px 28px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,220,140,0.20) !important;
  border-radius: 20px !important;
}
[data-theme=wood-legendary] .bp-sub-plan {
  color: #FFE8A0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.60) !important;
}
[data-theme=wood-legendary] .bp-sub-period,
[data-theme=wood-legendary] .bp-sub-desc {
  color: rgba(245,225,185,0.65) !important;
}
[data-theme=wood-legendary] .bp-sub-badge--active {
  background: linear-gradient(135deg, #9B6820, #D4A44C) !important;
  color: #1A0A00 !important;
  box-shadow: 0 2px 8px rgba(180,120,20,0.45) !important;
}
[data-theme=wood-legendary] .bp-sub-btn--portal {
  background: linear-gradient(135deg, #9B6820, #D4A44C) !important;
  color: #1A0A00 !important;
  border: 1px solid rgba(212,164,76,0.50) !important;
  box-shadow: 0 4px 14px rgba(180,120,20,0.45) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .bp-sub-note {
  color: rgba(245,220,170,0.55) !important;
}


/* ══════════════════════════════════════════════════════
   SETTINGS — THÈME BOIS LÉGENDAIRE
   ══════════════════════════════════════════════════════ */

/* ── Onglets (tabs) — bois très clair ── */
[data-theme=wood-legendary] .settings-tab {
  background: var(--wood-light) rgba(210,175,110,0.28) center / cover !important;
  background-blend-mode: luminosity !important;
  color: rgba(50,25,5,0.70) !important;
  border-bottom: 2px solid rgba(160,110,45,0.25) !important;
  border-radius: 8px 8px 0 0 !important;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,230,170,0.35) !important;
  margin-right: 3px !important;
  transition: all 0.18s !important;
}
[data-theme=wood-legendary] .settings-tab:hover {
  background: var(--wood-light) rgba(220,185,120,0.45) center / cover !important;
  background-blend-mode: luminosity !important;
  color: rgba(35,15,2,0.90) !important;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,230,170,0.45) !important;
}
[data-theme=wood-legendary] .settings-tab.active {
  background: var(--wood-light) rgba(225,190,125,0.60) center / cover !important;
  background-blend-mode: luminosity !important;
  color: rgba(30,12,2,0.95) !important;
  border-bottom: 2px solid rgba(180,120,30,0.80) !important;
  font-weight: 700 !important;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,235,175,0.55) !important;
}

/* ── Carte profil — bois clair ── */
[data-theme=wood-legendary] #view-settings .settings-card,
[data-theme=wood-legendary] .settings-card {
  background: var(--wood-light) rgba(210,175,110,0.30) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(170,120,50,0.45) !important;
  box-shadow:
    0 0 0 1px rgba(255,215,140,0.08),
    0 6px 20px rgba(0,0,0,0.40),
    0 16px 40px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,230,170,0.25) !important;
  border-radius: 18px !important;
}
[data-theme=wood-legendary] #view-settings .settings-card:hover,
[data-theme=wood-legendary] .settings-card:hover {
  box-shadow:
    0 0 0 1px rgba(212,164,76,0.18),
    0 8px 28px rgba(0,0,0,0.48),
    0 20px 48px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,230,170,0.30) !important;
}

/* Textes dans la carte profil */
[data-theme=wood-legendary] .settings-profile-info h3,
[data-theme=wood-legendary] .settings-card h3,
[data-theme=wood-legendary] .settings-section-title span {
  color: rgba(40,20,4,0.95) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .settings-profile-info p,
[data-theme=wood-legendary] .settings-card label,
[data-theme=wood-legendary] .settings-card p {
  color: rgba(60,35,8,0.75) !important;
}
[data-theme=wood-legendary] .settings-profile {
  border-bottom: 1px solid rgba(160,110,45,0.25) !important;
}

/* ── Bouton Sauvegarder (primary) — bois très clair ── */
[data-theme=wood-legendary] .settings-btn.primary {
  background: var(--wood-light) rgba(220,185,120,0.55) center / cover !important;
  background-blend-mode: luminosity !important;
  color: rgba(35,15,2,0.92) !important;
  border: 1.5px solid rgba(170,120,45,0.60) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,235,175,0.50) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255,240,190,0.35) !important;
}
[data-theme=wood-legendary] .settings-btn.primary:hover:not(:disabled) {
  background: var(--wood-light) rgba(230,195,130,0.70) center / cover !important;
  background-blend-mode: luminosity !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,240,185,0.55) !important;
  transform: translateY(-1px) !important;
}


/* ===== SETTINGS — CARTE PROFIL légèrement plus foncée + titres crème ===== */
[data-theme=wood-legendary] #view-settings .settings-card,
[data-theme=wood-legendary] .settings-card {
  background: var(--wood-light) rgba(160,110,45,0.48) center / cover !important;
  background-blend-mode: luminosity !important;
}
[data-theme=wood-legendary] .settings-section-title span {
  color: rgba(255,240,210,0.95) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}


/* ===== SETTINGS — OMBRE derrière la photo de profil ===== */
[data-theme=wood-legendary] .settings-avatar-upload-area {
  box-shadow:
    0 0 0 3px rgba(212,164,76,0.30),
    0 6px 20px rgba(0,0,0,0.60),
    0 12px 32px rgba(0,0,0,0.35) !important;
  border: 2px solid rgba(212,164,76,0.40) !important;
}


/* ══════════════════════════════════════════════════════
   SETTINGS APPARENCE — style inspiré du modal Thème
   ══════════════════════════════════════════════════════ */

/* Cartes de thème — inspirées du .theme-card du modal */
[data-theme=wood-legendary] .settings-theme-card {
  background: var(--wood-medium) rgba(80,52,22,0.82) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 2px solid rgba(160,110,45,0.40) !important;
  border-radius: 12px !important;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,215,140,0.18) !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
[data-theme=wood-legendary] .settings-theme-card:hover {
  border-color: rgba(212,164,76,0.65) !important;
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.55),
    0 0 16px rgba(180,120,20,0.18),
    inset 0 1px 0 rgba(255,220,150,0.25) !important;
}
[data-theme=wood-legendary] .settings-theme-card.active {
  border-color: rgba(212,164,76,0.85) !important;
  background: var(--wood-medium) rgba(120,82,28,0.92) center / cover !important;
  background-blend-mode: luminosity !important;
  box-shadow:
    0 0 24px rgba(212,164,76,0.30),
    0 8px 24px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,225,150,0.30) !important;
}
[data-theme=wood-legendary] .settings-theme-name {
  color: rgba(255,235,185,0.95) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.60) !important;
}
[data-theme=wood-legendary] .settings-theme-preview {
  box-shadow: 0 2px 8px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
}

/* Label Choisissez votre thème */
[data-theme=wood-legendary] .settings-toggle-label {
  color: rgba(255,230,175,0.85) !important;
}

/* ── 5 boutons animation (Zen, Élégant, Dynamic, Spectacle, Cinéma) ── */
[data-theme=wood-legendary] .settings-anim-preset {
  background: var(--wood-light) rgba(200,160,85,0.32) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(170,120,50,0.45) !important;
  color: rgba(45,22,4,0.85) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,230,160,0.30) !important;
  border-radius: 10px !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .settings-anim-preset:hover {
  background: var(--wood-light) rgba(215,175,100,0.48) center / cover !important;
  background-blend-mode: luminosity !important;
  border-color: rgba(200,145,55,0.70) !important;
  color: rgba(30,12,2,0.95) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,235,170,0.40) !important;
}
[data-theme=wood-legendary] .settings-anim-preset.active {
  background: var(--wood-medium) rgba(140,95,30,0.80) center / cover !important;
  background-blend-mode: luminosity !important;
  border-color: rgba(212,164,76,0.80) !important;
  color: rgba(255,235,180,0.98) !important;
  box-shadow:
    0 0 16px rgba(180,120,20,0.30),
    0 4px 14px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,220,140,0.30) !important;
}
[data-theme=wood-legendary] .settings-anim-preset-icon {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45)) !important;
}

/* Labels des boutons d'animation */
[data-theme=wood-legendary] .settings-anim-label-title {
  color: rgba(255,230,175,0.92) !important;
}
[data-theme=wood-legendary] .settings-anim-label-desc {
  color: rgba(245,220,165,0.60) !important;
}
[data-theme=wood-legendary] .settings-anim-intensity-label,
[data-theme=wood-legendary] .settings-anim-value {
  color: rgba(255,230,175,0.85) !important;
}
[data-theme=wood-legendary] .settings-anim-range-labels span {
  color: rgba(245,215,155,0.55) !important;
}


/* ══════════════════════════════════════════════════════
   SETTINGS NOTIFICATIONS — THÈME BOIS LÉGENDAIRE
   ══════════════════════════════════════════════════════ */

/* ── Hero (grosse cloche) — bois foncé ── */
[data-theme=wood-legendary] .notif-hero {
  background: var(--wood-dark) rgba(35,20,5,0.93) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.45) !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(255,210,130,0.08),
    0 8px 28px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,220,140,0.20) !important;
}
[data-theme=wood-legendary] .hero-title {
  color: #FFE8A0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.60) !important;
}
[data-theme=wood-legendary] .hero-subtitle {
  color: rgba(245,225,175,0.65) !important;
}
[data-theme=wood-legendary] .bell-animation {
  background: rgba(212,164,76,0.18) !important;
  border-color: rgba(212,164,76,0.40) !important;
  color: #D4A44C !important;
  box-shadow: 0 4px 16px rgba(180,120,20,0.30) !important;
}
[data-theme=wood-legendary] .status-badge.active {
  background: rgba(100,180,60,0.18) !important;
  color: #88D860 !important;
  border-color: rgba(100,180,60,0.30) !important;
}
[data-theme=wood-legendary] .status-badge.inactive {
  background: rgba(180,130,50,0.15) !important;
  color: rgba(245,220,160,0.60) !important;
  border-color: rgba(180,130,50,0.25) !important;
}

/* ── Section cards (Types, Canaux…) — bois medium subtil ── */
[data-theme=wood-legendary] .notif-section-card {
  background: var(--wood-medium) rgba(80,52,22,0.72) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(170,120,50,0.38) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,215,140,0.12) !important;
}
[data-theme=wood-legendary] .notif-section-header {
  border-bottom: 1px solid rgba(180,130,50,0.22) !important;
}
[data-theme=wood-legendary] .notif-section-header h3 {
  color: #FFE8A0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] .notif-section-header p {
  color: rgba(245,220,165,0.60) !important;
}
[data-theme=wood-legendary] .notif-type-label {
  color: rgba(255,235,185,0.92) !important;
}
[data-theme=wood-legendary] .notif-type-desc {
  color: rgba(245,215,155,0.58) !important;
}
[data-theme=wood-legendary] .notif-type-row {
  border-bottom: 1px solid rgba(180,130,50,0.15) !important;
}

/* ── Toggles premium — doré quand actif ── */
[data-theme=wood-legendary] .toggle-track {
  background: rgba(80,50,18,0.55) !important;
  border: 1px solid rgba(160,110,40,0.35) !important;
}
[data-theme=wood-legendary] .toggle-ultra input:checked + .toggle-track,
[data-theme=wood-legendary] .toggle-ultra.checked .toggle-track {
  background: linear-gradient(135deg, #9B6820, #D4A44C) !important;
  box-shadow: 0 0 12px rgba(180,120,20,0.45), inset 0 1px 0 rgba(255,220,140,0.30) !important;
}
[data-theme=wood-legendary] .toggle-thumb {
  background: #FFF5DC !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.40) !important;
}

/* ── Cartes Rappels Événements + Mode Silencieux — bois clair, texte brun ── */
[data-theme=wood-legendary] .notif-card-premium {
  background: var(--wood-light) rgba(200,160,85,0.40) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(170,120,50,0.50) !important;
  border-radius: 16px !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.42),
    0 14px 36px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,230,165,0.30) !important;
}
[data-theme=wood-legendary] .card-header-simple h3 {
  color: rgba(40,20,4,0.95) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .card-desc {
  color: rgba(60,35,8,0.70) !important;
}
[data-theme=wood-legendary] .card-glow {
  background: rgba(212,164,76,0.08) !important;
}

/* Chips rappels */
[data-theme=wood-legendary] .reminder-chip-ultra {
  background: rgba(170,120,40,0.30) !important;
  border: 1px solid rgba(180,130,50,0.55) !important;
  color: rgba(40,20,4,0.90) !important;
  box-shadow: inset 0 1px 0 rgba(255,225,150,0.25) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .chip-close {
  color: rgba(40,20,4,0.60) !important;
}
[data-theme=wood-legendary] .btn-add-custom {
  background: var(--wood-light) rgba(200,160,85,0.45) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(170,120,45,0.55) !important;
  color: rgba(40,20,4,0.88) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,230,160,0.30) !important;
}

/* Inputs temps Mode silencieux */
[data-theme=wood-legendary] .time-input-ultra {
  background: rgba(210,175,110,0.28) !important;
  border: 1px solid rgba(170,120,45,0.55) !important;
  color: rgba(40,20,4,0.92) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.18) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .time-input-ultra:focus {
  border-color: rgba(212,164,76,0.75) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.18), 0 0 0 3px rgba(212,164,76,0.18) !important;
}
[data-theme=wood-legendary] .time-arrow {
  color: rgba(120,75,20,0.60) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .time-block label {
  color: rgba(50,25,5,0.75) !important;
  font-weight: 600 !important;
}

/* ── Bouton Enregistrer — or premium ── */
[data-theme=wood-legendary] .btn-save-ultra {
  background: linear-gradient(135deg, #9B6820, #D4A44C, #E8C060) !important;
  color: #1A0A00 !important;
  border: 1px solid rgba(212,164,76,0.50) !important;
  box-shadow: 0 4px 18px rgba(180,120,20,0.55), inset 0 1px 0 rgba(255,240,180,0.35) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .btn-save-ultra:hover {
  box-shadow: 0 8px 24px rgba(180,120,20,0.70), inset 0 1px 0 rgba(255,240,180,0.40) !important;
}
[data-theme=wood-legendary] .btn-test {
  background: var(--wood-medium) rgba(80,52,22,0.75) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(170,120,50,0.45) !important;
  color: rgba(255,230,175,0.88) !important;
  border-radius: 11px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,210,130,0.15) !important;
}


/* ===== NOTIFS — titre blanc + cloche sans bordure ===== */
[data-theme=wood-legendary] .hero-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.70) !important;
}
[data-theme=wood-legendary] .bell-animation {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ===== NOTIFS — titre blanc force (reset complet) ===== */
[data-theme=wood-legendary] .settings-notif-ultra .hero-title,
[data-theme=wood-legendary] .notif-hero .hero-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  text-shadow: none !important;
  filter: none !important;
}


/* ===== NOTIFS — textes marron foncé dans les section cards ===== */
[data-theme=wood-legendary] .notif-section-card *,
[data-theme=wood-legendary] .notif-section-card h3,
[data-theme=wood-legendary] .notif-section-card p,
[data-theme=wood-legendary] .notif-section-card label,
[data-theme=wood-legendary] .notif-type-label,
[data-theme=wood-legendary] .notif-type-desc,
[data-theme=wood-legendary] .notif-section-header h3,
[data-theme=wood-legendary] .notif-section-header p {
  color: rgba(40,18,3,0.90) !important;
  -webkit-text-fill-color: rgba(40,18,3,0.90) !important;
  text-shadow: none !important;
}


/* ===== NOTIFS — bouton Enregistrer bois très clair ===== */
[data-theme=wood-legendary] .btn-save-ultra {
  background: var(--wood-light) rgba(220,185,120,0.58) center / cover !important;
  background-blend-mode: luminosity !important;
  color: rgba(35,15,2,0.92) !important;
  border: 1.5px solid rgba(170,120,45,0.60) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,235,175,0.50) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .btn-save-ultra:hover {
  background: var(--wood-light) rgba(230,195,130,0.72) center / cover !important;
  background-blend-mode: luminosity !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,240,185,0.55) !important;
}


/* ===== NOTIFS — textes crème très clair dans Types + Canaux ===== */
[data-theme=wood-legendary] .notif-section-card *,
[data-theme=wood-legendary] .notif-section-card h3,
[data-theme=wood-legendary] .notif-section-card p,
[data-theme=wood-legendary] .notif-type-label,
[data-theme=wood-legendary] .notif-type-desc,
[data-theme=wood-legendary] .notif-section-header h3,
[data-theme=wood-legendary] .notif-section-header p {
  color: rgba(255,245,225,0.95) !important;
  -webkit-text-fill-color: rgba(255,245,225,0.95) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .notif-type-desc,
[data-theme=wood-legendary] .notif-section-header p {
  color: rgba(255,235,200,0.62) !important;
  -webkit-text-fill-color: rgba(255,235,200,0.62) !important;
}


/* ══════════════════════════════════════════════════════
   SETTINGS SÉCURITÉ — THÈME BOIS LÉGENDAIRE
   ══════════════════════════════════════════════════════ */

/* ── Carte Biometric Login — bois medium ── */
[data-theme=wood-legendary] .webauthn-settings {
  background: var(--wood-medium) rgba(80,52,22,0.80) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,55,0.42) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,215,140,0.15) !important;
}
[data-theme=wood-legendary] .webauthn-settings strong {
  color: #FFE8A0 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55) !important;
}
[data-theme=wood-legendary] .webauthn-settings small {
  color: rgba(245,220,165,0.65) !important;
}

/* ── Bouton ENABLE — bois très clair ── */
[data-theme=wood-legendary] #webauthn-toggle {
  background: var(--wood-light) rgba(215,178,108,0.58) center / cover !important;
  background-blend-mode: luminosity !important;
  background-color: rgba(215,178,108,0.58) !important;
  color: rgba(35,15,2,0.92) !important;
  border: 1.5px solid rgba(170,120,45,0.60) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,235,175,0.50) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 9px 20px !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] #webauthn-toggle:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,240,185,0.55) !important;
  transform: translateY(-1px) !important;
}

/* ── Textes Microphone + Caméra — noir ── */
[data-theme=wood-legendary] #settings-security-section .settings-toggle-label,
[data-theme=wood-legendary] #settings-security-section .settings-toggle-desc,
[data-theme=wood-legendary] .settings-card .settings-toggle-label,
[data-theme=wood-legendary] .settings-card .settings-toggle-desc {
  color: rgba(20,8,0,0.92) !important;
  -webkit-text-fill-color: rgba(20,8,0,0.92) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .settings-card .settings-toggle-desc {
  color: rgba(40,18,3,0.62) !important;
  -webkit-text-fill-color: rgba(40,18,3,0.62) !important;
}

/* ── Boutons action settings (Exporter, Vider cache…) — premium ── */
[data-theme=wood-legendary] .settings-action-btn {
  background: var(--wood-medium) rgba(80,52,22,0.70) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(170,120,50,0.40) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,210,130,0.14) !important;
}
[data-theme=wood-legendary] .settings-action-label {
  color: rgba(255,235,185,0.95) !important;
}
[data-theme=wood-legendary] .settings-action-desc {
  color: rgba(245,215,155,0.58) !important;
}
[data-theme=wood-legendary] .settings-action-btn:hover {
  border-color: rgba(212,164,76,0.55) !important;
  box-shadow: 0 5px 16px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,215,140,0.20) !important;
}
[data-theme=wood-legendary] .settings-action-btn.danger {
  border-color: rgba(180,60,40,0.35) !important;
}


/* ===== SIDEBAR — TIROIR LANGUE bois ===== */
[data-theme=wood-legendary] .sidebar-lang-dropdown {
  background: var(--wood-dark) rgba(35,20,5,0.97) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.45) !important;
  border-radius: 12px !important;
  box-shadow:
    0 0 0 1px rgba(255,210,130,0.08),
    0 8px 28px rgba(0,0,0,0.60),
    0 16px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,215,140,0.18) !important;
}
[data-theme=wood-legendary] .sidebar-lang-option {
  color: rgba(245,220,165,0.75) !important;
  border-radius: 8px !important;
  transition: all 0.15s !important;
}
[data-theme=wood-legendary] .sidebar-lang-option:hover {
  background: var(--wood-medium) rgba(110,75,28,0.65) center / cover !important;
  background-blend-mode: luminosity !important;
  color: #FFE8A0 !important;
  box-shadow: inset 0 1px 0 rgba(255,215,140,0.15) !important;
}
[data-theme=wood-legendary] .sidebar-lang-option.active {
  background: var(--wood-medium) rgba(140,95,30,0.80) center / cover !important;
  background-blend-mode: luminosity !important;
  color: #FFD280 !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  box-shadow: 0 0 10px rgba(180,120,20,0.25), inset 0 1px 0 rgba(255,215,140,0.20) !important;
  font-weight: 600 !important;
}

/* ================================================================
   ANALYTICS — THÈME BOIS LÉGENDAIRE — Version Artistique Complète
   ================================================================ */

/* ── Tabs bar — Bois DARK, socle profond ── */
[data-theme=wood-legendary] .an-tabs {
  background: var(--wood-dark) rgba(28,16,4,0.97) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(160,110,40,0.35) !important;
  border-radius: 16px !important;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,215,140,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.40) !important;
  padding: 5px !important;
}

/* Tabs inactifs — texte crème doux */
[data-theme=wood-legendary] .an-tab {
  color: rgba(235,205,145,0.60) !important;
  transition: all 0.2s !important;
}
[data-theme=wood-legendary] .an-tab:hover {
  color: rgba(255,230,170,0.90) !important;
  background: rgba(180,130,50,0.18) !important;
}

/* Tab ACTIF — Bois MEDIUM, or lumineux */
[data-theme=wood-legendary] .an-tab.active {
  background: var(--wood-medium) rgba(140,95,30,0.90) center / cover !important;
  background-blend-mode: luminosity !important;
  color: #FFE8A0 !important;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.45),
    0 0 16px rgba(180,120,20,0.30),
    inset 0 1px 0 rgba(255,230,160,0.28) !important;
  border-radius: 11px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.50) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .an-tab.active svg {
  filter: drop-shadow(0 0 4px rgba(255,200,80,0.50)) !important;
}

/* ── Period selector — Bois DARK compact ── */
[data-theme=wood-legendary] .an-period-selector {
  background: var(--wood-dark) rgba(25,14,3,0.96) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(150,100,35,0.40) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,210,120,0.10) !important;
}
[data-theme=wood-legendary] .an-period-btn {
  color: rgba(225,190,120,0.55) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .an-period-btn:hover {
  color: rgba(255,225,160,0.90) !important;
  background: rgba(160,110,40,0.22) !important;
}
[data-theme=wood-legendary] .an-period-btn.active {
  background: var(--wood-medium) rgba(130,88,28,0.88) center / cover !important;
  background-blend-mode: luminosity !important;
  color: #FFD870 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,220,140,0.22) !important;
}

/* ── KPI Cards — Bois LIGHT, texte brun foncé premium ── */
[data-theme=wood-legendary] .an-kpi-card {
  background: var(--wood-light) rgba(200,165,95,0.42) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(175,130,55,0.38) !important;
  border-radius: 18px !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.35),
    0 1px 4px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,240,200,0.55),
    inset 0 -1px 0 rgba(120,80,20,0.18) !important;
  transition: all 0.22s !important;
}
[data-theme=wood-legendary] .an-kpi-card:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.42),
    0 2px 6px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,245,210,0.60) !important;
  border-color: rgba(210,164,76,0.55) !important;
}
[data-theme=wood-legendary] .an-kpi-value {
  color: rgba(35,15,2,0.95) !important;
  text-shadow: 0 1px 0 rgba(255,235,185,0.60) !important;
}
[data-theme=wood-legendary] .an-kpi-label {
  color: rgba(80,45,10,0.75) !important;
}
[data-theme=wood-legendary] .an-kpi-trend.up { color: #2a7a20 !important; }
[data-theme=wood-legendary] .an-kpi-trend.down { color: #8B2020 !important; }

/* ── Carte barres (Productivité) — Bois MEDIUM ── */
[data-theme=wood-legendary] .an-card-chart {
  background: var(--wood-medium) rgba(115,78,28,0.92) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(170,120,45,0.40) !important;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,220,150,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.25) !important;
  border-radius: 18px !important;
}
[data-theme=wood-legendary] .an-card-chart .an-card-header h3 {
  color: rgba(255,235,185,0.95) !important;
}

/* ── Carte Streak — Bois DARK mystérieux, chiffre or ── */
[data-theme=wood-legendary] .an-charts-row > .an-card:not(.an-card-chart) {
  background: var(--wood-dark) rgba(22,12,3,0.97) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1.5px solid rgba(212,164,76,0.38) !important;
  box-shadow:
    0 8px 30px rgba(0,0,0,0.60),
    0 0 20px rgba(180,120,20,0.12),
    inset 0 1px 0 rgba(255,210,120,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.35) !important;
  border-radius: 18px !important;
}
[data-theme=wood-legendary] .an-charts-row > .an-card:not(.an-card-chart) .an-card-header h3 {
  color: rgba(255,230,165,0.90) !important;
}
[data-theme=wood-legendary] .an-streak-value {
  color: #D4A44C !important;
  text-shadow:
    0 0 24px rgba(212,164,76,0.60),
    0 2px 4px rgba(0,0,0,0.60),
    0 1px 0 rgba(255,230,160,0.30) !important;
}
[data-theme=wood-legendary] .an-streak-label {
  color: rgba(235,200,130,0.65) !important;
}
[data-theme=wood-legendary] .an-streak-grid {
  border-top-color: rgba(170,120,45,0.30) !important;
}
[data-theme=wood-legendary] .an-streak-stat .v {
  color: rgba(255,230,165,0.92) !important;
}
[data-theme=wood-legendary] .an-streak-stat .l {
  color: rgba(200,165,95,0.58) !important;
}

/* ── Carte Heatmap (an-card hors charts-row) — Bois LIGHT ── */
[data-theme=wood-legendary] .an-page > .an-card {
  background: var(--wood-light) rgba(195,158,88,0.45) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(175,130,55,0.36) !important;
  box-shadow:
    0 6px 22px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,242,200,0.48) !important;
  border-radius: 18px !important;
}
[data-theme=wood-legendary] .an-page > .an-card .an-card-header h3 {
  color: rgba(40,18,3,0.90) !important;
}

/* ── Formation items — fond sombre translucide ── */
[data-theme=wood-legendary] .an-formation-item {
  background: rgba(30,16,3,0.55) !important;
  border: 1px solid rgba(140,95,30,0.28) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,210,120,0.08) !important;
  transition: all 0.18s !important;
}
[data-theme=wood-legendary] .an-formation-item:hover {
  background: var(--wood-medium) rgba(100,68,22,0.55) center / cover !important;
  background-blend-mode: luminosity !important;
  border-color: rgba(200,155,55,0.45) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,210,120,0.14) !important;
}
[data-theme=wood-legendary] .an-formation-name {
  color: rgba(255,235,185,0.95) !important;
}
[data-theme=wood-legendary] .an-formation-meta {
  color: rgba(220,185,120,0.60) !important;
}
[data-theme=wood-legendary] .an-prog-bar {
  background: rgba(255,255,255,0.12) !important;
}
[data-theme=wood-legendary] .an-prog-fill {
  background: linear-gradient(90deg, #9B6820, #D4A44C, #FFD870) !important;
  box-shadow: 0 0 8px rgba(212,164,76,0.50) !important;
}
[data-theme=wood-legendary] .an-prog-label {
  color: rgba(220,185,110,0.72) !important;
}

/* ── Sales items — séparateurs or ── */
[data-theme=wood-legendary] .an-sale-item {
  border-bottom-color: rgba(160,110,40,0.28) !important;
}
[data-theme=wood-legendary] .an-sale-name {
  color: rgba(35,15,2,0.92) !important;
}
[data-theme=wood-legendary] .an-sale-product {
  color: rgba(70,40,8,0.65) !important;
}
[data-theme=wood-legendary] .an-sale-amount {
  color: #2a7a20 !important;
  text-shadow: 0 1px 0 rgba(200,255,180,0.30) !important;
}
[data-theme=wood-legendary] .an-sale-time {
  color: rgba(70,40,8,0.55) !important;
}

/* ── Activity items ── */
[data-theme=wood-legendary] .an-activity-item {
  border-bottom-color: rgba(160,110,40,0.28) !important;
}
[data-theme=wood-legendary] .an-activity-content strong {
  color: rgba(35,15,2,0.92) !important;
}
[data-theme=wood-legendary] .an-activity-action,
[data-theme=wood-legendary] .an-activity-time {
  color: rgba(70,40,8,0.60) !important;
}

/* ── Refresh button — Bois MEDIUM ── */
[data-theme=wood-legendary] #an-refresh-btn {
  background: var(--wood-medium) rgba(110,75,25,0.80) center / cover !important;
  background-blend-mode: luminosity !important;
  color: rgba(255,235,175,0.95) !important;
  border: 1px solid rgba(175,128,48,0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,215,140,0.18) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.50) !important;
}
[data-theme=wood-legendary] #an-refresh-btn:hover {
  box-shadow: 0 5px 18px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,220,145,0.22) !important;
  transform: translateY(-1px) !important;
}
[data-theme=wood-legendary] #an-refresh-btn svg {
  color: #FFD870 !important;
}

/* ── Titre Analytics — crème lumineux ── */
[data-theme=wood-legendary] #view-analytics .view-title {
  color: rgba(255,235,185,0.97) !important;
  -webkit-text-fill-color: rgba(255,235,185,0.97) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.50), 0 1px 0 rgba(255,220,150,0.25) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  filter: none !important;
}
[data-theme=wood-legendary] #view-analytics .view-title-icon {
  filter: drop-shadow(0 0 6px rgba(212,164,76,0.55)) !important;
}

/* ── Loading spinner — or ── */
[data-theme=wood-legendary] .an-spinner {
  border-color: rgba(160,110,40,0.30) !important;
  border-top-color: #D4A44C !important;
}
[data-theme=wood-legendary] .an-loading {
  color: rgba(200,165,90,0.65) !important;
}


/* ── Analytics: view-title-icon — Bois MEDIUM, icône or ── */
[data-theme=wood-legendary] #view-analytics .view-title-icon {
  background: var(--wood-medium) rgba(130,88,28,0.88) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(180,130,50,0.45) !important;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.42),
    0 0 14px rgba(180,120,20,0.25),
    inset 0 1px 0 rgba(255,225,145,0.28) !important;
  border-radius: 10px !important;
  color: #FFD870 !important;
  filter: none !important;
}
[data-theme=wood-legendary] #view-analytics .view-title-icon svg {
  filter: drop-shadow(0 0 5px rgba(212,164,76,0.55)) !important;
}

/* ── Carte d'activité (heatmap) + cartes onglets Formateur/Revenus/Activité — Bois LIGHT ── */
[data-theme=wood-legendary] #an-tab-content > .an-card {
  background: var(--wood-light) rgba(195,158,88,0.45) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(175,130,55,0.36) !important;
  box-shadow:
    0 6px 22px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,242,200,0.48),
    inset 0 -1px 0 rgba(110,70,15,0.14) !important;
  border-radius: 18px !important;
}
[data-theme=wood-legendary] #an-tab-content > .an-card .an-card-header h3 {
  color: rgba(40,18,3,0.90) !important;
}


/* ── Carte "Productivité quotidienne" — tous textes noirs ── */
[data-theme=wood-legendary] .an-card-chart * {
  color: rgba(20,8,0,0.92) !important;
  -webkit-text-fill-color: rgba(20,8,0,0.92) !important;
}
[data-theme=wood-legendary] .an-card-chart .an-card-header h3 {
  color: rgba(20,8,0,0.92) !important;
  -webkit-text-fill-color: rgba(20,8,0,0.92) !important;
}

/* ── Carte "Carte d'activité — 90 jours" — tous textes noirs ── */
[data-theme=wood-legendary] #an-tab-content > .an-card * {
  color: rgba(20,8,0,0.92) !important;
  -webkit-text-fill-color: rgba(20,8,0,0.92) !important;
}
[data-theme=wood-legendary] #an-tab-content > .an-card .an-card-header h3 {
  color: rgba(20,8,0,0.92) !important;
  -webkit-text-fill-color: rgba(20,8,0,0.92) !important;
}


/* ── Restaurer titres — Productivité quotidienne (crème) ── */
[data-theme=wood-legendary] .an-card-chart .an-card-header h3 {
  color: rgba(255,235,185,0.95) !important;
  -webkit-text-fill-color: rgba(255,235,185,0.95) !important;
}

/* ── Restaurer titres — Carte d'activité (brun foncé) ── */
[data-theme=wood-legendary] #an-tab-content > .an-card .an-card-header h3 {
  color: rgba(40,18,3,0.90) !important;
  -webkit-text-fill-color: rgba(40,18,3,0.90) !important;
}


/* ── SVG text labels dans les charts (fill SVG, pas color CSS) ── */
[data-theme=wood-legendary] .an-chart-wrap svg text,
[data-theme=wood-legendary] .an-heatmap-wrap svg text {
  fill: rgba(20,8,0,0.88) !important;
}


/* ── Redéfinir --text-muted dans les charts pour que le SVG fill="var(--text-muted)" devienne noir ── */
[data-theme=wood-legendary] .an-chart-wrap,
[data-theme=wood-legendary] .an-heatmap-wrap {
  --text-muted: rgba(20,8,0,0.85);
  --text-muted-color: rgba(20,8,0,0.85);
}


/* ── Formation items — Bois LIGHT opaque, pas de changement au survol ── */
[data-theme=wood-legendary] .an-formation-item {
  background: var(--wood-light) rgba(200,165,95,0.60) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(175,130,55,0.40) !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,240,195,0.50) !important;
}
[data-theme=wood-legendary] .an-formation-item:hover {
  background: var(--wood-light) rgba(200,165,95,0.60) center / cover !important;
  background-blend-mode: luminosity !important;
  border-color: rgba(175,130,55,0.40) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,240,195,0.50) !important;
  transform: none !important;
}
[data-theme=wood-legendary] .an-formation-name {
  color: rgba(30,12,2,0.92) !important;
}
[data-theme=wood-legendary] .an-formation-meta {
  color: rgba(70,40,8,0.65) !important;
}


/* ── Activité — supprimer fond emoji, ombre premium à la place ── */
[data-theme=wood-legendary] .an-activity-icon {
  background: transparent !important;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.40),
    0 1px 4px rgba(0,0,0,0.25),
    0 0 0 1px rgba(180,130,50,0.18) !important;
  border-radius: 10px !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45)) !important;
}


/* ── KPI cards — supprimer fond emoji, ombre premium ── */
[data-theme=wood-legendary] .an-kpi-icon {
  background: transparent !important;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.38),
    0 1px 4px rgba(0,0,0,0.22),
    0 0 0 1px rgba(180,130,50,0.18) !important;
  border-radius: 12px !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.42)) !important;
}


/* ── KPI cards emoji — ombre premium renforcée ── */
[data-theme=wood-legendary] .an-kpi-icon {
  filter:
    drop-shadow(0 4px 8px rgba(0,0,0,0.65))
    drop-shadow(0 1px 3px rgba(0,0,0,0.50))
    drop-shadow(0 0 12px rgba(180,120,20,0.30)) !important;
  box-shadow: none !important;
}


/* ── Supprimer cadre autour de tous les emojis ── */
[data-theme=wood-legendary] .an-kpi-icon,
[data-theme=wood-legendary] .an-activity-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}


/* ── Email Studio — barre 5 étapes — Bois MEDIUM ── */
[data-theme=wood-legendary] .es-steps {
  background: var(--wood-medium) rgba(100,68,22,0.92) center / cover !important;
  background-blend-mode: luminosity !important;
  border: 1px solid rgba(170,118,42,0.45) !important;
  border-radius: 16px !important;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,220,145,0.20),
    inset 0 -2px 0 rgba(0,0,0,0.22) !important;
}


/* refresh 1774880721 */


/* ── Scrollbar Bois Noble Legendaire — Panneau Personnaliser ma boutique ── */
[data-theme=wood-legendary] .gsm-v2-settings-body {
    scrollbar-width: thin !important;
    scrollbar-color: #8B5A1A rgba(30,12,2,0.70) !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar {
    width: 8px !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-track {
    background: rgba(30,12,2,0.70) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(90,45,8,0.30) !important;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.40) !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-thumb {
    background:
        repeating-linear-gradient(162deg,rgba(255,215,115,0.08) 0px,rgba(255,215,115,0.08) 1px,transparent 1px,transparent 5px),
        linear-gradient(180deg,#D4924A 0%,#9E5F1E 25%,#7A4410 50%,#9C6222 75%,#C28432 100%) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(170,105,30,0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,235,175,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 2px 6px rgba(80,38,4,0.50) !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-thumb:hover {
    background:
        repeating-linear-gradient(162deg,rgba(255,225,140,0.12) 0px,rgba(255,225,140,0.12) 1px,transparent 1px,transparent 5px),
        linear-gradient(180deg,#E4A256 0%,#B06F28 25%,#8A5018 50%,#AC722C 75%,#D29440 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,240,190,0.45),
        inset 0 -1px 0 rgba(0,0,0,0.40),
        0 2px 10px rgba(120,60,8,0.65) !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-thumb:active {
    background:
        repeating-linear-gradient(162deg,rgba(255,200,100,0.06) 0px,rgba(255,200,100,0.06) 1px,transparent 1px,transparent 5px),
        linear-gradient(180deg,#7A4010 0%,#9A5A1A 40%,#7A4010 100%) !important;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.50),
        inset 0 -1px 0 rgba(255,220,140,0.15) !important;
}

/* Preview col — fond plus sombre en thème bois */
[data-theme=wood-legendary] .gsm-v2-preview-col {
  background: #010100 !important;
}
[data-theme=wood-legendary] .gsm-v2-preview-frame {
  background: #010100 !important;
}
[data-theme=wood-legendary] .gsm-v2-store-link {
  position: relative !important;
  z-index: 2 !important;
}
[data-theme=wood-legendary] .gsm-v2-store-link::before {
  content: '' !important;
  position: absolute !important;
  top: -32px !important;
  left: 0 !important;
  right: 0 !important;
  height: 32px !important;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}
