/*
 * The Maps — thème sombre « Verre nocturne » (généré puis ajusté).
 * Actif seulement sous html[data-theme="dark"] : le mode clair est inchangé.
 */

/* ===== index.html ===== */
html[data-theme='dark'] {
  color: #EEF2FA;
  background-color: #101C3D;
}
html[data-theme='dark'] .workspace-rail {
  background-color: rgba(16, 28, 61, 0.94);
  border: 1px solid #253A66;
}
html[data-theme='dark'] .rail-brand {
  box-shadow: 0 5px 15px rgba(63, 211, 226, 0.40);
}
html[data-theme='dark'] .rail-button {
  color: var(--map-tool-navy);
}
html[data-theme='dark'] .rail-button:hover {
  color: var(--system-turquoise);
}
html[data-theme='dark'] .rail-button[aria-pressed='true'] {
  color: var(--system-blue);
  background: var(--system-blue-soft);
  border-color: rgba(63, 211, 226, 0.32);
}
html[data-theme='dark'] .rail-button[aria-pressed='true']::before {
  background: var(--system-blue);
}
html[data-theme='dark'] .rail-separator {
  background-color: #0C1734;
}
html[data-theme='dark'] .reset-filters {
  color: var(--brand-primary);
}
html[data-theme='dark'] .reset-filters:hover,
html[data-theme='dark'] .reset-filters:focus-visible {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
html[data-theme='dark'] .limit-badge {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid var(--line);
}
html[data-theme='dark'] .status-pill {
  color: color-mix(in srgb, #34506f 58%, #ffffff);
  background-color: #101C3D;
}
html[data-theme='dark'] .status-pill::before {
  background: var(--brand-primary);
}
html[data-theme='dark'] .status-pill[data-tone='success'] {
  color: color-mix(in srgb, #176b52 58%, #ffffff);
  background-color: #101C3D;
}
html[data-theme='dark'] .status-pill[data-tone='error'] {
  color: color-mix(in srgb, #9f3d35 58%, #ffffff);
  background-color: #0C1734;
}
html[data-theme='dark'] .sidebar {
  background-color: rgba(16, 28, 61, 0.96);
  border: 1px solid #253A66;
}
html[data-theme='dark'] .cockpit-header {
  background: linear-gradient(90deg, #3FD3E2, #3fb2e6) top / 100% 2px no-repeat,
          #101C3D;
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .cockpit-stack[data-active-section='settings'] .cockpit-header {
  background: linear-gradient(90deg, #b8c0cc, #0C1734) top / 100% 2px no-repeat,
          #101C3D;
  border-bottom-color: #253A66;
}
html[data-theme='dark'] .cockpit-stack[data-active-section='settings'] .cockpit-eyebrow {
  color: #9FB0D0;
}
html[data-theme='dark'] .cockpit-eyebrow {
  color: #3FD3E2;
}
html[data-theme='dark'] .cockpit-header h1 {
  color: var(--brand-dark);
}
html[data-theme='dark'] .cockpit-description {
  color: #7F8FB2;
}
html[data-theme='dark'] .cockpit-collapse {
  color: var(--map-tool-navy);
  background-color: rgba(16, 28, 61, 0.96);
  border: 1px solid #253A66;
}
html[data-theme='dark'] .cockpit-collapse:hover,
html[data-theme='dark'] .cockpit-collapse:focus-visible {
  color: var(--system-turquoise);
  background-color: #101C3D;
}
html[data-theme='dark'] .workspace-empty-icon {
  color: var(--map-tool-indigo);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .workspace-empty-state h2 {
  color: var(--brand-dark);
}
html[data-theme='dark'] .workspace-empty-state p {
  color: #7F8FB2;
}
html[data-theme='dark'] .cockpit-filters .filter-chip {
  color: var(--ink-muted, #9FB0D0);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .cockpit-filters .filter-chip:hover {
  color: #EEF2FA;
  border-color: #3A5288;
}
html[data-theme='dark'] .cockpit-filters .filter-chip[aria-expanded='true'] {
  color: #EEF2FA;
  border-color: #3FD3E2;
  box-shadow: 0 0 0 3px #253A66;
}
html[data-theme='dark'] .cockpit-filter.is-active .filter-chip {
  color: color-mix(in srgb, #3b33c9 58%, #ffffff);
  background-color: #0C1734;
  border-color: rgba(63, 211, 226, 0.48);
}
html[data-theme='dark'] .filter-chip-clear:hover,
html[data-theme='dark'] .filter-chip-clear:focus-visible {
  background-color: #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .cockpit-filter .pipeline-multi-menu {
  border: 1px solid #253A66;
}
html[data-theme='dark'] .cockpit-filter .pipeline-multi-all {
  border-bottom: 1px solid #253A66;
  color: #3FD3E2;
}
html[data-theme='dark'] .cockpit-filter .pipeline-multi-option {
  color: #EEF2FA;
}
html[data-theme='dark'] .cockpit-filter .pipeline-multi-option:hover {
  background-color: #101C3D;
}
html[data-theme='dark'] .cockpit-filter .pipeline-multi-option input {
  accent-color: #3FD3E2;
}
html[data-theme='dark'] .pipeline-multi-count {
  color: #7F8FB2;
}
html[data-theme='dark'] .cockpit-filters .filter-chip.filter-chip-add {
  color: #3FD3E2;
}
html[data-theme='dark'] .cockpit-filters .filter-chip.filter-chip-add:hover,
html[data-theme='dark'] .cockpit-filters .filter-chip.filter-chip-add[aria-expanded='true'] {
  color: #3FD3E2;
  background-color: #0C1734;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .custom-filter-search,
html[data-theme='dark'] .custom-filter-input {
  color: #EEF2FA;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .custom-filter-search:focus,
html[data-theme='dark'] .custom-filter-input:focus {
  border-color: #3FD3E2;
  box-shadow: 0 0 0 3px #253A66;
}
html[data-theme='dark'] .custom-filter-group {
  color: #7F8FB2;
}
html[data-theme='dark'] .custom-filter-note {
  color: #7F8FB2;
}
html[data-theme='dark'] .custom-filter-property {
  color: #EEF2FA;
}
html[data-theme='dark'] .custom-filter-property:hover,
html[data-theme='dark'] .custom-filter-property:focus-visible {
  background-color: #101C3D;
}
html[data-theme='dark'] .custom-filter-kind {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .custom-filter-range {
  color: #7F8FB2;
}
html[data-theme='dark'] .cockpit-filters .saved-views .filter-chip {
  color: #3FD3E2;
  border-color: rgba(63, 211, 226, 0.52);
}
html[data-theme='dark'] .cockpit-filters .saved-views.is-current .filter-chip {
  background-color: #3FD3E2;
  border-color: #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .cockpit-filters .saved-views.is-current .filter-chip-clear {
  background-color: rgba(16, 28, 61, 0.82);
}
html[data-theme='dark'] .saved-views-row:hover,
html[data-theme='dark'] .saved-views-row.is-current {
  background-color: #101C3D;
}
html[data-theme='dark'] .saved-views-apply {
  color: #EEF2FA;
}
html[data-theme='dark'] .cockpit-filters .saved-views-save .saved-views-save-button {
  color: #3FD3E2;
}
html[data-theme='dark'] .saved-views-error {
  color: color-mix(in srgb, #c2410c 58%, #ffffff);
}
html[data-theme='dark'] .saved-views-cancel {
  color: #9FB0D0;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .saved-views-confirm {
  background-color: #3FD3E2;
  border: 1px solid #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .cockpit-filters .radar-chip-group .radar-chip {
  color: #3FD3E2;
  background-color: #0C1734;
  border-color: rgba(63, 211, 226, 0.52);
}
html[data-theme='dark'] .cockpit-filters .reset-filters {
  color: #9FB0D0;
}
html[data-theme='dark'] .cockpit-filters .reset-filters:hover,
html[data-theme='dark'] .cockpit-filters .reset-filters:focus-visible {
  color: color-mix(in srgb, #3b33c9 58%, #ffffff);
}
html[data-theme='dark'] .sidebar-title-row {
  border-top: 1px solid var(--line);
}
html[data-theme='dark'] .sidebar h2 {
  color: var(--navy);
}
html[data-theme='dark'] .metric {
  color: var(--muted);
}
html[data-theme='dark'] .metric strong {
  color: var(--navy);
}
html[data-theme='dark'] .territory-cockpit {
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .territory-cockpit-title {
  color: #7F8FB2;
}
html[data-theme='dark'] .territory-total {
  color: #9FB0D0;
}
html[data-theme='dark'] .territory-total strong {
  color: var(--brand-dark);
}
html[data-theme='dark'] .targeting-start-button {
  background-color: #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .targeting-start-button:hover {
  background-color: #3FD3E2;
}
html[data-theme='dark'] .targeting-start-button.is-active {
  color: #3FD3E2;
  background-color: #101C3D;
  box-shadow: inset 0 0 0 1.5px #3FD3E2;
}
html[data-theme='dark'] .targeting-dialog {
  color: #EEF2FA;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .targeting-dialog::before {
  background-color: #101C3D;
  border-top: 1px solid #253A66;
  border-left: 1px solid #253A66;
}
html[data-theme='dark'] .targeting-dialog b {
  color: #EEF2FA;
}
html[data-theme='dark'] .territory-instrument {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .territory-instrument:hover:not(:disabled) {
  border-color: #253A66;
}
html[data-theme='dark'] .territory-instrument.is-active {
  border-color: var(--instrument-color);
  box-shadow: 0 0 0 3px var(--instrument-soft);
}
html[data-theme='dark'] .territory-instrument-bar {
  background: var(--instrument-color);
}
html[data-theme='dark'] .territory-instrument-clear {
  color: var(--brand-dark);
  background: var(--instrument-soft);
}
html[data-theme='dark'] .territory-instrument-count {
  color: var(--brand-dark);
}
html[data-theme='dark'] .filters-heading {
  color: #7F8FB2;
}
html[data-theme='dark'] .filter-field span {
  color: #9FB0D0;
}
html[data-theme='dark'] .filter-field select {
  color: var(--navy);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .filter-field select:focus {
  border-color: var(--map-tool-aqua);
}
html[data-theme='dark'] .color-palette {
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .color-swatch {
  border: 2px solid #253A66;
  box-shadow: 0 0 0 1px #253A66;
}
html[data-theme='dark'] .color-swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 3px var(--system-blue);
}
html[data-theme='dark'] .pin-legend {
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .legend-item {
  color: #9FB0D0;
}
html[data-theme='dark'] .legend-color-button {
  border: 2px solid #253A66;
  box-shadow: 0 0 0 1px #253A66;
}
html[data-theme='dark'] .legend-color-button:hover,
html[data-theme='dark'] .legend-color-button:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-light);
}
html[data-theme='dark'] .legend-edit {
  color: var(--brand-primary);
}
html[data-theme='dark'] .legend-edit:hover,
html[data-theme='dark'] .legend-edit:focus-visible {
  color: var(--brand-dark);
}
html[data-theme='dark'] .company-button:hover,
html[data-theme='dark'] .company-button:focus-visible {
  background-color: #101C3D;
  border-color: var(--line);
}
html[data-theme='dark'] .company-list-item.is-selected .company-button {
  background: var(--system-sky-soft);
  border-color: rgba(63, 211, 226, 0.60);
  box-shadow: inset 3px 0 0 var(--system-blue);
}
html[data-theme='dark'] .company-list-item.is-spatial-selected .company-button {
  border-color: rgba(63, 211, 226, 0.60);
  box-shadow: inset 3px 0 0 var(--system-blue);
}
html[data-theme='dark'] .spatial-selection-check {
  background: var(--system-blue);
}
html[data-theme='dark'] .company-avatar {
  background-color: var(--hubspot-orange);
}
html[data-theme='dark'] .company-name {
  color: var(--navy);
}
html[data-theme='dark'] .company-address {
  color: var(--muted);
}
html[data-theme='dark'] .empty-list {
  color: var(--muted);
}
html[data-theme='dark'] .company-panel {
  color: var(--navy);
  background-color: #101C3D;
}
html[data-theme='dark'] .organization-section-title {
  color: #7F8FB2;
}
html[data-theme='dark'] .company-panel-close {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .company-panel-close:hover,
html[data-theme='dark'] .company-panel-close:focus-visible {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
html[data-theme='dark'] .organization-avatar.deal-avatar {
  background-color: #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .lifecycle-badge.deal-stage-badge {
  color: color-mix(in srgb, #17784a 58%, #ffffff);
  background-color: #0C1734;
}
html[data-theme='dark'] .lifecycle-badge.deal-risk-badge {
  color: var(--risk-color);
  background: var(--risk-soft);
  border-color: color-mix(in srgb, var(--risk-color) 25%, transparent);
}
html[data-theme='dark'] .deal-risk-tip small {
  color: #7F8FB2;
}
html[data-theme='dark'] .deal-switcher {
  border: 1px solid #253A66;
}
html[data-theme='dark'] .deal-switcher-row {
  color: #EEF2FA;
  background-color: #101C3D;
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .deal-switcher-row:hover {
  background-color: #101C3D;
}
html[data-theme='dark'] .deal-switcher-row[aria-pressed='true'] {
  color: #EEF2FA;
  background-color: #0C1734;
}
html[data-theme='dark'] .deal-switcher-dot {
  background-color: #3FD3E2;
}
html[data-theme='dark'] .deal-switcher-amount {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-avatar {
  background: var(--map-tool-indigo);
}
html[data-theme='dark'] .company-logo-img {
  background-color: #101C3D;
}
html[data-theme='dark'] .company-avatar.has-logo::after {
  box-shadow: inset 0 0 0 2px var(--avatar-color, transparent);
}
html[data-theme='dark'] .deal-company-identity strong {
  color: var(--navy);
}
html[data-theme='dark'] .deal-company-identity span {
  color: var(--muted);
}
html[data-theme='dark'] .organization-heading h2 {
  color: var(--navy);
}
html[data-theme='dark'] .organization-location {
  color: var(--muted);
}
html[data-theme='dark'] .company-panel-tabs {
  background-color: #101C3D;
}
html[data-theme='dark'] .company-panel-tab {
  color: #9FB0D0;
}
html[data-theme='dark'] .company-panel-tab:hover {
  color: var(--system-turquoise);
}
html[data-theme='dark'] .company-panel-tab[aria-selected='true'] {
  color: var(--system-blue);
  background-color: #101C3D;
}
html[data-theme='dark'] .company-panel-tab[aria-selected='true']::before {
  background: radial-gradient(circle at 0 0, transparent 6px, #101C3D 6px);
}
html[data-theme='dark'] .company-panel-tab[aria-selected='true']::after {
  background: radial-gradient(
          circle at 100% 0,
          transparent 6px,
          #101C3D 6px
        );
}
html[data-theme='dark'] .company-panel-tab:focus-visible {
  outline: 2px solid var(--map-tool-aqua);
}
html[data-theme='dark'] .organization-kpi {
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .organization-kpi span {
  color: #7F8FB2;
}
html[data-theme='dark'] .organization-kpi strong {
  color: var(--navy);
}
html[data-theme='dark'] .organization-action {
  color: var(--system-blue);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .organization-action:hover,
html[data-theme='dark'] .organization-action:focus-visible {
  color: var(--map-tool-navy);
  background: var(--system-blue-soft);
}
html[data-theme='dark'] .organization-info-row,
html[data-theme='dark'] .organization-list-item {
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .organization-info-row dt {
  color: #7F8FB2;
}
html[data-theme='dark'] .organization-info-row dd {
  color: #EEF2FA;
}
html[data-theme='dark'] .organization-person {
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .organization-person-avatar {
  color: var(--map-tool-navy);
  background-color: #101C3D;
}
html[data-theme='dark'] .organization-person-copy strong {
  color: #EEF2FA;
}
html[data-theme='dark'] .organization-person-copy span {
  color: #7F8FB2;
}
html[data-theme='dark'] .organization-inline-action {
  color: var(--brand-primary);
}
html[data-theme='dark'] .organization-empty {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .organization-heat {
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .organization-heat-track {
  background: linear-gradient(90deg, #0C1734, #0C1734 52%, #0C1734);
}
html[data-theme='dark'] .organization-heat-cursor {
  background-color: #101C3D;
  border: 2px solid var(--map-tool-navy);
}
html[data-theme='dark'] .organization-heat-scale {
  color: #7F8FB2;
}
html[data-theme='dark'] .organization-heat-label {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-revenue-total {
  color: var(--map-tool-navy);
}
html[data-theme='dark'] .organization-revenue-comparison {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-revenue-chart {
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .organization-revenue-year {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-revenue-bar {
  background: var(--map-tool-indigo);
}
html[data-theme='dark'] .organization-signal {
  background-color: #101C3D;
  border: 1px solid #253A66;
  color: #9FB0D0;
}
html[data-theme='dark'] .map-tool-buttons {
  background-color: rgba(16, 28, 61, 0.94);
  border: 1px solid #253A66;
}
html[data-theme='dark'] .map-tool-button.spatial-selection-tool::after {
  background: var(--line);
}
html[data-theme='dark'] .map-tool-button {
  color: var(--map-tool-navy);
}
html[data-theme='dark'] .map-tool-button:hover:not(:disabled) {
  color: var(--system-turquoise);
}
html[data-theme='dark'] .map-tool-button[aria-expanded='true'],
html[data-theme='dark'] .map-tool-button[aria-pressed='true'] {
  color: var(--system-blue);
  background: var(--system-blue-soft);
  border-color: rgba(63, 211, 226, 0.32);
}
html[data-theme='dark'] .map-tool-button[aria-expanded='true']::before,
html[data-theme='dark'] .map-tool-button[aria-pressed='true']::before {
  background: var(--system-blue);
}
html[data-theme='dark'] .map-tool-button[aria-expanded='true']:hover,
html[data-theme='dark'] .map-tool-button[aria-pressed='true']:hover {
  color: var(--system-blue);
  background: var(--system-blue-soft);
  border-color: rgba(63, 211, 226, 0.40);
}
html[data-theme='dark'] .appearance-tool .palette-cue-sky {
  fill: var(--system-sky);
}
html[data-theme='dark'] .appearance-tool .palette-cue-aqua {
  fill: var(--map-tool-aqua);
}
html[data-theme='dark'] .appearance-tool .palette-cue-coral {
  fill: color-mix(in srgb, #f06468 58%, #ffffff);
}
html[data-theme='dark'] .appearance-tool .palette-cue-turquoise {
  fill: var(--system-turquoise);
}
html[data-theme='dark'] .map-tool-button:disabled {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-form-color {
  background: var(--area-color);
  border: 2px solid #253A66;
}
html[data-theme='dark'] .spatial-save-form input {
  color: var(--navy);
  background-color: #101C3D;
  border: 1px solid color-mix(in srgb, #cfc5fb 40%, #101C3D);
}
html[data-theme='dark'] .spatial-save-form input:focus {
  border-color: var(--brand-primary);
}
html[data-theme='dark'] .spatial-save-form button {
  color: var(--brand-primary);
  background-color: #101C3D;
  border: 1px solid color-mix(in srgb, #cfc5fb 40%, #101C3D);
}
html[data-theme='dark'] .saved-areas-title {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-create {
  color: #3FD3E2;
}
html[data-theme='dark'] .saved-area-create:hover,
html[data-theme='dark'] .saved-area-create:focus-visible,
html[data-theme='dark'] .saved-area-create[aria-pressed='true'] {
  color: #8CF1FA;
  background: rgba(63, 211, 226, 0.1);
  border-color: rgba(63, 211, 226, 0.4);
}
html[data-theme='dark'] .saved-area-create:disabled {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-item:hover,
html[data-theme='dark'] .saved-area-item:focus-within {
  background-color: #101C3D;
}
html[data-theme='dark'] .saved-area-item.is-active {
  background: var(--brand-soft);
  border-color: rgba(63, 211, 226, 0.42);
}
html[data-theme='dark'] .saved-area-item.is-hidden .saved-area-name,
html[data-theme='dark'] .saved-area-item.is-hidden .saved-area-zone-count {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-item .saved-area-recall,
html[data-theme='dark'] .saved-area-item .saved-area-recall:hover,
html[data-theme='dark'] .saved-area-item .saved-area-recall:focus-visible {
  color: var(--brand-dark);
}
html[data-theme='dark'] .saved-area-zone-count {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-color::before,
html[data-theme='dark'] .appearance-area-color::before {
  background: var(--area-color);
}
html[data-theme='dark'] .saved-area-color:hover::before,
html[data-theme='dark'] .saved-area-color:focus-visible::before,
html[data-theme='dark'] .appearance-area-color:hover::before,
html[data-theme='dark'] .appearance-area-color:focus-visible::before {
  box-shadow: 0 0 0 2px var(--brand-light);
}
html[data-theme='dark'] .saved-area-item.is-dirty {
  border-color: rgba(63, 211, 226, 0.55);
}
html[data-theme='dark'] .saved-area-recall,
html[data-theme='dark'] .saved-area-rename,
html[data-theme='dark'] .saved-area-delete {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-area-name-input {
  color: var(--navy);
  background-color: #101C3D;
  border: 1px solid var(--brand-light);
}
html[data-theme='dark'] .saved-area-name-input:focus {
  box-shadow: 0 0 0 2px rgba(63, 211, 226, 0.36);
}
html[data-theme='dark'] .saved-area-dirty-dot {
  background: var(--brand-primary);
}
html[data-theme='dark'] .saved-area-count {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-area-unsaved-copy {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-area-save,
html[data-theme='dark'] .saved-area-abandon {
  color: var(--brand-primary);
}
html[data-theme='dark'] .saved-area-abandon {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-color-editor {
  background-color: #101C3D;
  border-top: 1px solid #253A66;
}
html[data-theme='dark'] .saved-area-dirty-action {
  color: var(--brand-primary);
}
html[data-theme='dark'] .saved-area-visibility-switch {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-visibility-switch[aria-checked='true'] {
  color: var(--brand-primary);
}
html[data-theme='dark'] .saved-area-delete {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-recall:hover,
html[data-theme='dark'] .saved-area-recall:focus-visible,
html[data-theme='dark'] .saved-area-rename:hover,
html[data-theme='dark'] .saved-area-rename:focus-visible,
html[data-theme='dark'] .saved-area-delete:hover,
html[data-theme='dark'] .saved-area-delete:focus-visible,
html[data-theme='dark'] .saved-area-save:hover,
html[data-theme='dark'] .saved-area-save:focus-visible,
html[data-theme='dark'] .saved-area-abandon:hover,
html[data-theme='dark'] .saved-area-abandon:focus-visible,
html[data-theme='dark'] .saved-area-dirty-action:hover,
html[data-theme='dark'] .saved-area-dirty-action:focus-visible {
  color: var(--brand-primary);
}
html[data-theme='dark'] .spatial-vertex-handle {
  background-color: #101C3D;
  border: 3px solid var(--brand-primary);
}
html[data-theme='dark'] .spatial-vertex-handle:hover,
html[data-theme='dark'] .spatial-vertex-handle:focus-visible {
  background: var(--brand-soft);
}
html[data-theme='dark'] .territory-panel,
html[data-theme='dark'] .appearance-panel {
  background-color: rgba(16, 28, 61, 0.98);
  border: 1px solid var(--floating-border);
  box-shadow: var(--shadow-level-2);
}
html[data-theme='dark'] .territory-panel h2,
html[data-theme='dark'] .appearance-panel h2 {
  color: var(--brand-dark);
}
html[data-theme='dark'] .tool-panel-header {
  background: linear-gradient(90deg, #3FD3E2, #3fb2e6) top / 100% 2px no-repeat,
          #101C3D;
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .tool-panel-eyebrow {
  color: #9FB0D0;
}
html[data-theme='dark'] .tool-panel-header .appearance-panel-close {
  background-color: #101C3D;
  box-shadow: inset 0 0 0 1px #253A66;
}
html[data-theme='dark'] .appearance-panel-close {
  color: #9FB0D0;
  background: var(--system-blue-soft);
}
html[data-theme='dark'] .appearance-panel-close:hover,
html[data-theme='dark'] .appearance-panel-close:focus-visible {
  color: var(--brand-dark);
}
html[data-theme='dark'] .territory-option {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .territory-option::after {
  border: 2px solid #3A5288;
}
html[data-theme='dark'] .territory-option:hover,
html[data-theme='dark'] .territory-option:focus-visible {
  color: var(--brand-dark);
}
html[data-theme='dark'] .territory-option[aria-pressed='true'] {
  color: var(--brand-dark);
  background: var(--system-blue-soft);
  border-color: rgba(63, 211, 226, 0.60);
}
html[data-theme='dark'] .territory-option[aria-pressed='true']::after {
  background: var(--system-blue);
  border-color: var(--system-blue);
  box-shadow: 0 0 0 3px var(--system-sky-soft);
}
html[data-theme='dark'] .territory-quality {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-place-toggle {
  color: var(--saved-place-color);
  background-color: #101C3D;
  border: 1px solid color-mix(in srgb, #fecaca 40%, #101C3D);
  box-shadow: var(--shadow-level-1);
}
html[data-theme='dark'] .saved-place-toggle:hover,
html[data-theme='dark'] .saved-place-toggle:focus-visible,
html[data-theme='dark'] .saved-place-toggle[aria-pressed='true'] {
  background: var(--saved-place-color);
  border-color: var(--saved-place-color);
}
html[data-theme='dark'] .saved-place-toggle:disabled {
  color: #7F8FB2;
  background-color: #101C3D;
  border-color: var(--line);
}
html[data-theme='dark'] .settings-section-label {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-place-field label {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-place-field label svg {
  color: var(--saved-place-color);
}
html[data-theme='dark'] .saved-place-field input {
  color: var(--navy);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .saved-place-field input:focus {
  background-color: #101C3D;
  border-color: var(--brand-light);
}
html[data-theme='dark'] .saved-place-status {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-place-status[data-tone='success'] {
  color: color-mix(in srgb, #176b52 58%, #ffffff);
}
html[data-theme='dark'] .saved-place-status[data-tone='error'] {
  color: color-mix(in srgb, #a13f36 58%, #ffffff);
}
html[data-theme='dark'] .settings-save {
  background: var(--brand-primary);
}
html[data-theme='dark'] .settings-save:hover,
html[data-theme='dark'] .settings-save:focus-visible {
  background: var(--brand-dark);
}
html[data-theme='dark'] .settings-language select {
  color: var(--navy);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .settings-language select:focus {
  background-color: #101C3D;
  border-color: var(--brand-light);
}
html[data-theme='dark'] .saved-place-popup {
  background-color: #101C3D;
}
html[data-theme='dark'] .saved-place-popup-title {
  color: var(--navy);
}
html[data-theme='dark'] .saved-place-popup-title svg {
  color: var(--saved-place-color);
}
html[data-theme='dark'] .appearance-section-label {
  color: #7F8FB2;
}
html[data-theme='dark'] .appearance-object-header {
  border-bottom: 1px solid var(--line);
}
html[data-theme='dark'] .appearance-object-icon {
  color: var(--system-blue);
  background: var(--system-blue-soft);
}
html[data-theme='dark'] .appearance-panel .appearance-object-title {
  color: var(--brand-dark);
}
html[data-theme='dark'] .appearance-object-count {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .appearance-mode-option {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .appearance-mode-option[aria-checked='true'] {
  color: var(--brand-dark);
  background: var(--system-blue-soft);
  border-color: var(--system-blue);
}
html[data-theme='dark'] .appearance-soon {
  color: #9FB0D0;
  background-color: #0C1734;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .marker-shape-option {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .marker-shape-option:hover,
html[data-theme='dark'] .marker-shape-option:focus-visible {
  color: var(--brand-dark);
}
html[data-theme='dark'] .marker-shape-option[aria-pressed='true'] {
  color: var(--brand-dark);
  background: var(--system-blue-soft);
  border-color: var(--system-blue);
  box-shadow: 0 0 0 1px rgba(63, 211, 226, 0.34);
}
html[data-theme='dark'] .marker-shape-preview {
  color: var(--system-blue);
}
html[data-theme='dark'] .marker-shape-preview-center {
  fill: var(--brand-dark);
}
html[data-theme='dark'] .appearance-areas-empty {
  color: #7F8FB2;
}
html[data-theme='dark'] .appearance-area-row {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .appearance-area-palette {
  border-top: 1px solid #253A66;
}
html[data-theme='dark'] .appearance-action {
  color: var(--system-blue);
}
html[data-theme='dark'] .appearance-action:hover,
html[data-theme='dark'] .appearance-action:focus-visible {
  color: var(--system-turquoise);
}
html[data-theme='dark'] .appearance-action:disabled {
  color: #7F8FB2;
}
html[data-theme='dark'] .category-color-editor strong {
  color: #9FB0D0;
}
html[data-theme='dark'] .reset-colors {
  color: #9FB0D0;
}
html[data-theme='dark'] .reset-colors:hover,
html[data-theme='dark'] .reset-colors:focus-visible {
  color: var(--brand-dark);
}
html[data-theme='dark'] .maplibregl-ctrl-group {
  border: 1px solid #253A66;
}
html[data-theme='dark'] .fit-companies-control {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .fit-companies-control:hover,
html[data-theme='dark'] .fit-companies-control:focus-visible {
  color: var(--brand-primary);
  background: var(--brand-soft);
}
html[data-theme='dark'] .maplibregl-popup-content {
  box-shadow: var(--shadow-level-3);
}
html[data-theme='dark'] .maplibregl-popup-close-button {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .settings-menu-item {
  color: var(--brand-dark);
}
html[data-theme='dark'] .settings-menu-item:hover,
html[data-theme='dark'] .settings-menu-item:focus-visible {
  background-color: #101C3D;
}
html[data-theme='dark'] .settings-menu-copy small {
  color: #9FB0D0;
}
html[data-theme='dark'] .settings-chevron {
  color: #7F8FB2;
}
html[data-theme='dark'] .settings-back {
  color: #9FB0D0;
}
html[data-theme='dark'] .settings-back:hover,
html[data-theme='dark'] .settings-back:focus-visible {
  color: var(--brand-dark);
  background-color: #101C3D;
}
html[data-theme='dark'] .settings-page-title {
  color: var(--brand-dark);
}
html[data-theme='dark'] .settings-page-desc {
  color: #9FB0D0;
}
html[data-theme='dark'] .settings-page .settings-section-label {
  color: #7F8FB2;
}
html[data-theme='dark'] .settings-page .settings-save {
  color: #05112B;
  background-color: #3FD3E2;
}
html[data-theme='dark'] .integration-card {
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .integration-card.is-soon {
  background-color: #101C3D;
}
html[data-theme='dark'] .integration-logo {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .integration-logo-hubspot {
  color: color-mix(in srgb, #ff7a59 58%, #ffffff);
  background-color: #101C3D;
}
html[data-theme='dark'] .integration-copy strong {
  color: var(--brand-dark);
}
html[data-theme='dark'] .integration-copy small {
  color: #9FB0D0;
}
html[data-theme='dark'] .integration-status {
  color: color-mix(in srgb, #8a5a00 58%, #ffffff);
  background-color: color-mix(in srgb, #fff4dc 18%, #101C3D);
}
html[data-theme='dark'] .integration-status[data-state='connected'] {
  color: color-mix(in srgb, #12795f 58%, #ffffff);
  background-color: #0C1734;
}
html[data-theme='dark'] .integration-status[data-state='disconnected'] {
  color: #9FB0D0;
  background-color: #101C3D;
}
html[data-theme='dark'] .integration-note {
  color: #9FB0D0;
  border-top: 1px solid #253A66;
}
html[data-theme='dark'] .integration-button {
  color: var(--brand-dark);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .integration-button.is-primary {
  background: var(--system-blue);
  border-color: var(--system-blue);
}
html[data-theme='dark'] .language-option {
  color: var(--brand-dark);
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .language-option::after {
  border: 1.5px solid #253A66;
}
html[data-theme='dark'] .language-option[aria-checked='true'] {
  border-color: rgba(63, 211, 226, 0.60);
  box-shadow: 0 0 0 3px #253A66;
}
html[data-theme='dark'] .language-option[aria-checked='true']::after {
  border: 5px solid #3FD3E2;
}
html[data-theme='dark'] .saved-areas-list .saved-area-item.is-unsaved {
  background-color: #101C3D;
}
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-name {
  color: var(--brand-dark);
}
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-count {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-abandon {
  color: #7F8FB2;
}
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-abandon:hover {
  color: var(--brand-dark);
}
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-save {
  background: var(--system-blue);
}
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-save:hover,
html[data-theme='dark'] .saved-area-item.is-unsaved .saved-area-save:focus-visible {
  background-color: #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .saved-area-item.is-unsaved .spatial-save-form input {
  border: 1px solid color-mix(in srgb, #c9d6ee 40%, #101C3D);
}
html[data-theme='dark'] .saved-area-item.is-unsaved .spatial-save-form input:focus {
  border-color: var(--system-blue);
  box-shadow: 0 0 0 3px var(--system-blue-soft);
}
html[data-theme='dark'] .saved-area-item.is-unsaved .spatial-save-form button[type='submit'] {
  background: var(--system-blue);
  border-color: var(--system-blue);
}
html[data-theme='dark'] .saved-area-item.is-unsaved .spatial-save-form button[type='button'] {
  color: #9FB0D0;
}

/* ===== searchField.css ===== */
html[data-theme='dark'] .tm-search {
  color: var(--tm-search-ink);
  background-color: #101C3D;
  border: 1px solid var(--tm-search-border);
}
html[data-theme='dark'] .tm-search:hover {
  border-color: #3A5288;
}
html[data-theme='dark'] .tm-search:focus-within {
  border-color: var(--tm-search-accent);
  box-shadow: 0 0 0 4px var(--tm-search-soft),
    0 6px 16px -6px rgba(63, 211, 226, 0.50);
}
html[data-theme='dark'] .tm-search-icon {
  color: var(--tm-search-ink);
}
html[data-theme='dark'] .tm-search:focus-within .tm-search-icon {
  color: var(--tm-search-accent);
}
html[data-theme='dark'] .tm-search .tm-search-input {
  color: var(--tm-search-ink);
}
html[data-theme='dark'] .tm-search .tm-search-input::placeholder {
  color: var(--tm-search-muted);
}
html[data-theme='dark'] .tm-search-count {
  color: var(--tm-search-soft-ink);
  background: var(--tm-search-soft);
}
html[data-theme='dark'] .tm-search-clear {
  color: var(--tm-search-muted);
  background: var(--tm-search-sunken);
}
html[data-theme='dark'] .tm-search-clear:hover {
  color: var(--tm-search-ink);
  background: var(--tm-search-line);
}
html[data-theme='dark'] .tm-search-clear:focus-visible {
  outline: 2px solid var(--tm-search-focus);
}
html[data-theme='dark'] .tm-search-kbd {
  color: var(--tm-search-muted);
  background-color: #101C3D;
  border: 1px solid var(--tm-search-line);
}

/* ===== terrainPreparation.css ===== */
html[data-theme='dark'] .terrain-sections {
  background-color: #101C3D;
}
html[data-theme='dark'] .terrain-section-button {
  color: #9FB0D0;
}
html[data-theme='dark'] .terrain-section-button:hover {
  color: var(--brand-dark);
}
html[data-theme='dark'] .terrain-section-button[aria-pressed='true'] {
  background-color: #101C3D;
  color: var(--brand-dark);
}
html[data-theme='dark'] .terrain-section-button:focus-visible {
  outline: 2px solid var(--brand-primary);
}
html[data-theme='dark'] .terrain-form {
  color: var(--brand-dark);
}
html[data-theme='dark'] .terrain-form input[type='text'],
html[data-theme='dark'] .terrain-form select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
}
html[data-theme='dark'] .terrain-form input[type='radio'],
html[data-theme='dark'] .terrain-form input[type='checkbox'] {
  accent-color: var(--brand-primary);
}
html[data-theme='dark'] .terrain-modes label {
  background: var(--brand-soft);
}
html[data-theme='dark'] .terrain-shortcuts button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-dark);
}
html[data-theme='dark'] .terrain-shortcuts button:disabled {
  color: var(--muted);
}
html[data-theme='dark'] .terrain-form :is(input, select, button):focus-visible {
  outline: 2px solid var(--brand-primary);
}
html[data-theme='dark'] .terrain-hint,
html[data-theme='dark'] .terrain-unavailable {
  color: var(--muted);
}
html[data-theme='dark'] .terrain-error {
  color: color-mix(in srgb, #b42318 58%, #ffffff);
}
html[data-theme='dark'] .terrain-summary {
  border: 1px solid var(--line);
  background: var(--brand-soft);
}
html[data-theme='dark'] .terrain-summary dt {
  color: var(--muted);
}

/* ===== typography.css ===== */

/* ===== pipelineView.js ===== */
html[data-theme='dark'] .mapped-object-control {
  border: 1px solid #253A66;
  background-color: #101C3D;
}
html[data-theme='dark'] .mapped-object-thumb {
  background-color: #0C1734;
  box-shadow: inset 0 0 0 1.5px #3FD3E2;
}
html[data-theme='dark'] .mapped-object-control[data-active=deals] .mapped-object-thumb {
  background-color: #0C1734;
}
html[data-theme='dark'] .mapped-object-control button {
  color: #9FB0D0;
}
html[data-theme='dark'] #map-object-companies .mapped-object-tile {
  background-color: #0C1734;
  color: #3FD3E2;
}
html[data-theme='dark'] #map-object-deals .mapped-object-tile {
  background-color: #0C1734;
  color: color-mix(in srgb, #17784a 58%, #ffffff);
}
html[data-theme='dark'] #map-object-companies[aria-pressed=true] .mapped-object-tile {
  background-color: #3FD3E2;
  color: #05112B;
}
html[data-theme='dark'] .mapped-object-label {
  color: #9FB0D0;
}
html[data-theme='dark'] #map-object-companies[aria-pressed=true] .mapped-object-label {
  color: #EEF2FA;
}
html[data-theme='dark'] #map-object-companies[aria-pressed=true] .mapped-object-sub {
  color: #3FD3E2;
}
html[data-theme='dark'] #map-object-deals[aria-pressed=true] .mapped-object-label {
  color: #EEF2FA;
}
html[data-theme='dark'] #map-object-deals[aria-pressed=true] .mapped-object-sub {
  color: color-mix(in srgb, #17784a 58%, #ffffff);
}
html[data-theme='dark'] .mapped-object-control button:hover:not([aria-pressed=true]) .mapped-object-label {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-eyebrow {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-filter select,
html[data-theme='dark'] .pipeline-search,
html[data-theme='dark'] .pipeline-multi-trigger {
  background-color: #101C3D;
  border: 1px solid #253A66;
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-multi-trigger::after {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-multi-menu {
  border: 1px solid #253A66;
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-multi-option {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-multi-option input {
  accent-color: #3FD3E2;
}
html[data-theme='dark'] .pipeline-multi-all,
html[data-theme='dark'] .pipeline-reset {
  color: #3FD3E2;
}
html[data-theme='dark'] .pipeline-demo-note {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-summary {
  border-top: 1px solid #253A66;
}
html[data-theme='dark'] .pipeline-summary strong {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-summary-count {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-empty {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-bubble {
  border: 2px solid #253A66;
}
html[data-theme='dark'] .pipeline-inspection {
  border: 1px solid #253A66;
  background-color: #101C3D;
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-local-name {
  color: #EEF2FA;
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-owner-tip {
  border: 1px solid #253A66;
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-owner-line {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-owner-line i {
  background-color: #3FD3E2;
}
html[data-theme='dark'] .pipeline-owner-more {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-status {
  background-color: #0C1734;
}
html[data-theme='dark'] .pipeline-status-option {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-status-option::before {
  background: var(--status-color);
}
html[data-theme='dark'] .pipeline-status-option[data-status=all]::before {
  background: linear-gradient(90deg,#3FD3E2 50%,#1e9b5f 50%);
}
html[data-theme='dark'] .pipeline-status-option:hover:not([aria-pressed=true]) {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-status-option[aria-pressed=true] {
  background-color: #101C3D;
  color: var(--status-ink);
  box-shadow: 0 1px 2px rgba(14,31,69,.1),inset 0 0 0 1px color-mix(in srgb,var(--status-color) 28%,transparent);
}
html[data-theme='dark'] .pipeline-chip-row .pipeline-chip {
  border: 1px solid #253A66 !important;
  background-color: #101C3D;
  color: #9FB0D0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239FB0D0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme='dark'] .pipeline-chip-group.is-active .pipeline-chip {
  background-color: #0C1734;
  color: color-mix(in srgb, #17784a 58%, #ffffff) !important;
}
html[data-theme='dark'] .pipeline-screen {
  border: 1px solid #253A66;
  background: linear-gradient(135deg,#101C3D,#0C1734);
}
html[data-theme='dark'] .pipeline-screen .pipeline-eyebrow {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-screen .pipeline-summary-line strong {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-instruments {
  border-top: 1px dashed color-mix(in srgb, #cbd7ee 40%, #101C3D);
}
html[data-theme='dark'] .pipeline-instrument b {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-instrument small {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-instrument.is-risk.has-risk b {
  color: color-mix(in srgb, #c2410c 58%, #ffffff);
}
html[data-theme='dark'] .pipeline-suggest {
  border: 1px solid #253A66;
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-suggest-empty,
html[data-theme='dark'] .pipeline-suggest-more {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-deal-logo {
  background-color: #0C1734;
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-deal-logo img {
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-deal-dot {
  background-color: #3FD3E2;
  box-shadow: 0 0 0 2px #253A66;
}
html[data-theme='dark'] .pipeline-deal-row:hover,
html[data-theme='dark'] .pipeline-deal-row[aria-selected=true] {
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-deal-copy b {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-deal-copy span {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-deal-row strong {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-offmap {
  border: 1px solid color-mix(in srgb, #f0dcc0 40%, #101C3D);
  background-color: #101C3D;
}
html[data-theme='dark'] .pipeline-offmap summary {
  color: color-mix(in srgb, #9a5b08 58%, #ffffff);
}
html[data-theme='dark'] .pipeline-offmap li b {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-offmap li span {
  color: #9FB0D0;
}

/* ===== heatView.js ===== */
html[data-theme='dark'] .signal-layers-label {
  color: #7F8FB2;
}
html[data-theme='dark'] .signal-layer {
  border-bottom: 1px solid #253A66;
}
html[data-theme='dark'] .signal-layer-row {
  color: #EEF2FA;
}
html[data-theme='dark'] .signal-layer-icon {
  color: #7F8FB2;
  background-color: #101C3D;
}
html[data-theme='dark'] .signal-layer-copy small {
  color: #9FB0D0;
}
html[data-theme='dark'] .signal-layer-row[aria-checked=false] .signal-layer-copy b {
  color: #9FB0D0;
}
html[data-theme='dark'] .signal-layer-row[aria-checked=true] .signal-layer-icon {
  color: var(--layer-color);
  background: var(--layer-soft);
}
html[data-theme='dark'] .signal-layer-ramp {
  background: var(--layer-ramp);
}
html[data-theme='dark'] .signal-layer-soon {
  background-color: #101C3D;
  color: #9FB0D0;
}
html[data-theme='dark'] .map-view-switch {
  background-color: #0C1734;
}
html[data-theme='dark'] .map-view-switch::after {
  background-color: #101C3D;
}
html[data-theme='dark'] .signal-layer-row[aria-checked=true] .map-view-switch {
  background: var(--layer-color);
}
html[data-theme='dark'] .heat-band-label {
  color: #EEF2FA;
}
html[data-theme='dark'] .heat-overline {
  color: #9FB0D0;
}
html[data-theme='dark'] .heat-reading strong {
  color: #EEF2FA;
}
html[data-theme='dark'] .heat-reading .heat-scale {
  color: #7F8FB2;
}
html[data-theme='dark'] .heat-meta {
  color: #9FB0D0;
}
html[data-theme='dark'] .heat-bands b {
  color: #EEF2FA;
}
html[data-theme='dark'] .heat-bands span {
  color: #9FB0D0;
}
html[data-theme='dark'] .heat-legend {
  color: #9FB0D0;
}
html[data-theme='dark'] .heat-legend i {
  background: linear-gradient(90deg,#3FD3E2,#3FD3E2 30%,#0C1734 50%,#F0B252 72%,#E2553D);
}
html[data-theme='dark'] .heat-zone {
  color: #EEF2FA;
}
html[data-theme='dark'] .heat-zone-copy span {
  color: #9FB0D0;
}
html[data-theme='dark'] .heat-zone-temp {
  color: #EEF2FA;
}
html[data-theme='dark'] .heat-method {
  color: #9FB0D0;
}
html[data-theme='dark'] .heat-demo {
  background-color: #0C1734;
  color: #9FB0D0;
}
html[data-theme='dark'] .deal-risk-summary {
  background-color: #101C3D;
}
html[data-theme='dark'] .deal-risk-line {
  color: #EEF2FA;
}
html[data-theme='dark'] .deal-risk-line i {
  background: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--ring) 18%,transparent);
}
html[data-theme='dark'] .deal-risk-line em {
  color: #7F8FB2;
}
html[data-theme='dark'] .deal-risk-line span {
  color: #EEF2FA;
}
html[data-theme='dark'] .deal-risk-note {
  color: #7F8FB2;
}

/* ===== Ajustements manuels (après la génération) ===== */
html[data-theme='dark'] {
  color-scheme: dark;
  --navy: #EEF2FA;
  --muted: #9FB0D0;
  --line: #253A66;
  --surface: #101C3D;
  --brand-dark: #EEF2FA;
  --brand-soft: #16264D;
  --floating-border: rgba(37, 58, 102, 0.9);
  --map-tool-navy: #D5DEF0;
  --map-tool-indigo: #3FD3E2;
  --system-blue: #3FD3E2;
  --system-sky: #6FA8FF;
  --system-blue-soft: rgba(63, 211, 226, 0.12);
  --system-sky-soft: rgba(111, 168, 255, 0.14);
  --shadow-level-1: 0 14px 34px rgba(0, 0, 0, 0.38);
  --shadow-level-2: 0 22px 52px rgba(0, 0, 0, 0.45);
  --shadow-level-3: 0 24px 58px rgba(0, 0, 0, 0.5);
  --tm-search-ink: #EEF2FA;
  --tm-search-muted: #9FB0D0;
  --tm-search-line: #253A66;
  --tm-search-border: #253A66;
  --tm-search-accent: #3FD3E2;
  --tm-search-soft: rgba(63, 211, 226, 0.16);
  --tm-search-soft-ink: #3FD3E2;
  --tm-search-sunken: #0C1734;
  --tm-search-focus: #3FD3E2;
}
html[data-theme='dark'] body {
  color: #EEF2FA;
  background: #07112B;
}
/* Verre discret : panneaux flottants bleu nuit à 90 %, carte floutée derrière. */
html[data-theme='dark'] :is(.workspace-rail, .sidebar, .company-panel, .map-tool-buttons,
  .appearance-panel, .map-panel, .mapped-object-control, .cockpit-collapse) {
  background: rgba(16, 28, 61, 0.9);
  border-color: #253A66;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}
html[data-theme='dark'] .tm-search {
  background: #0C1734;
  box-shadow: none;
}
/* Contrôles et fenêtres MapLibre (feuille externe). */
html[data-theme='dark'] .maplibregl-ctrl-attrib {
  color: #9FB0D0;
  background: rgba(7, 17, 43, 0.72);
}
html[data-theme='dark'] .maplibregl-ctrl-attrib a {
  color: #9FB0D0;
}
html[data-theme='dark'] .maplibregl-ctrl-attrib-button {
  filter: invert(1) hue-rotate(180deg);
}
html[data-theme='dark'] .maplibregl-ctrl-group {
  background: #101C3D;
  box-shadow: 0 0 0 1px #253A66;
}
html[data-theme='dark'] .maplibregl-ctrl-group button + button {
  border-top-color: #253A66;
}
html[data-theme='dark'] .maplibregl-ctrl button .maplibregl-ctrl-icon {
  filter: invert(1) hue-rotate(180deg);
}
html[data-theme='dark'] .maplibregl-popup-content {
  color: #EEF2FA;
  background: #101C3D;
  box-shadow: 0 0 0 1px #253A66, 0 12px 30px rgba(0, 0, 0, 0.45);
}
html[data-theme='dark'] .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #101C3D; }
html[data-theme='dark'] .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #101C3D; }
html[data-theme='dark'] .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #101C3D; }
html[data-theme='dark'] .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #101C3D; }
/* Champs natifs. */
html[data-theme='dark'] :is(input, select, textarea) {
  color: #EEF2FA;
}
html[data-theme='dark'] ::placeholder {
  color: #7F8FB2;
}
/* Logos HubSpot : carré blanc conservé. */
html[data-theme='dark'] .company-logo-img,
html[data-theme='dark'] .pipeline-deal-logo img {
  background: #fff;
}
/* Variables propres au champ de recherche (définies sur .tm-search). */
html[data-theme='dark'] .tm-search {
  --tm-search-ink: #EEF2FA;
  --tm-search-muted: #9FB0D0;
  --tm-search-line: #253A66;
  --tm-search-border: #253A66;
  --tm-search-accent: #3FD3E2;
  --tm-search-soft: rgba(63, 211, 226, 0.16);
  --tm-search-soft-ink: #3FD3E2;
  --tm-search-sunken: #0C1734;
  --tm-search-focus: #3FD3E2;
}
html[data-theme='dark'] .tm-search .tm-search-input,
html[data-theme='dark'] .tm-search input {
  background: transparent;
  border: 0;
}
/* Sélecteurs segmentés : l'option active ressort en bleu plus clair. */
html[data-theme='dark'] .terrain-section-button[aria-pressed='true'],
html[data-theme='dark'] .pipeline-status-option[aria-pressed='true'] {
  background: #1A2C5A;
  box-shadow: inset 0 0 0 1px rgba(63, 211, 226, 0.35);
}
html[data-theme='dark'] .terrain-section-button[aria-pressed='true'] {
  color: #3FD3E2;
}
html[data-theme='dark'] .pipeline-status-option[data-status='open'] { --status-color: #6FA8FF; --status-ink: #8DBBFF; }
html[data-theme='dark'] .pipeline-status-option[data-status='won'] { --status-color: #3DD39A; --status-ink: #5FE0AE; }
html[data-theme='dark'] .pipeline-status-option[data-status='all'] { --status-color: #9FB0D0; --status-ink: #EEF2FA; }
html[data-theme='dark'] .pipeline-status-option[data-status='all']::before {
  background: linear-gradient(90deg, #6FA8FF 50%, #3DD39A 50%);
}
html[data-theme='dark'] .company-panel-tab[aria-selected='true'] {
  color: #3FD3E2;
}
/* Interrupteurs : piste visible sur le sombre. */
html[data-theme='dark'] .map-view-switch {
  background: #2A3D6B;
}
html[data-theme='dark'] .map-view-switch::after {
  background: #9FB0D0;
  box-shadow: none;
}
html[data-theme='dark'] .signal-layer-row[aria-checked='true'] .map-view-switch::after {
  background: #fff;
}
/* Pastilles colorées posées en JS (cycle de vie…) : version sombre. */
html[data-theme='dark'] .has-badge-colors {
  color: color-mix(in srgb, var(--badge-source) 52%, #ffffff) !important;
  background-color: color-mix(in srgb, var(--badge-source) 20%, #101C3D) !important;
  border-color: color-mix(in srgb, var(--badge-source) 45%, transparent) !important;
}
html[data-theme='dark'] .lifecycle-badge.deal-risk-badge.deal-risk-badge {
  color: color-mix(in srgb, var(--risk-color) 70%, #ffffff);
  background: color-mix(in srgb, var(--risk-color) 18%, #101C3D);
}
html[data-theme='dark'] .appearance-mode-option[aria-checked='true'] {
  color: #EEF2FA;
  background: rgba(63, 211, 226, 0.12);
  border-color: #3FD3E2;
}
/* Logo du rail : icône d'app « Terre de nuit ». */
html[data-theme='dark'] .rail-brand img:not(.rail-brand-dark) {
  display: none;
}
html[data-theme='dark'] .rail-brand .rail-brand-dark {
  display: block;
}
/* Croix du radar. */
html[data-theme='dark'] .radar-close {
  color: #9FB0D0;
  background: #101C3D;
  border-color: #253A66;
}
html[data-theme='dark'] .radar-close:hover,
html[data-theme='dark'] .radar-close:focus-visible {
  color: #EEF2FA;
}
/* Comptes HubSpot (Réglages › Intégrations). */
html[data-theme='dark'] .hubspot-accounts-label,
html[data-theme='dark'] .hubspot-account-copy small,
html[data-theme='dark'] .hubspot-account-more {
  color: #9FB0D0;
}
html[data-theme='dark'] .hubspot-account {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .hubspot-account.is-displayed {
  background: rgba(63, 211, 226, 0.1);
  border-color: #3FD3E2;
}
html[data-theme='dark'] .hubspot-account-more:hover,
html[data-theme='dark'] .hubspot-account-more[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .hubspot-account-menu {
  background: #101C3D;
  border-color: #253A66;
}
html[data-theme='dark'] .hubspot-account-menu button {
  color: #EEF2FA;
}
html[data-theme='dark'] .hubspot-account-menu button:hover {
  background: #16264D;
}
html[data-theme='dark'] .hubspot-account-menu .is-danger {
  color: #FF9A8B;
}
html[data-theme='dark'] .hubspot-account-add {
  border-color: #3A5288;
}
html[data-theme='dark'] .hubspot-account-add:hover {
  border-color: #3FD3E2;
}
/* Indicateurs « HUD » en sombre : aqua lumineux. */
html[data-theme='dark'] .organization-kpis .organization-kpi {
  --hud-color: #3FD3E2;
  --hud-glow: rgba(63, 211, 226, 0.06);
  background-color: transparent;
  background-image:
    linear-gradient(180deg, transparent, rgba(63, 211, 226, 0.14), transparent),
    linear-gradient(var(--hud-glow), var(--hud-glow)),
    repeating-linear-gradient(90deg, transparent 0 11px, var(--hud-glow) 11px 12px);
  border: 0;
}
html[data-theme='dark'] .organization-kpis .organization-kpi span {
  color: #7FB7C4;
}
html[data-theme='dark'] .organization-kpis .organization-kpi strong {
  color: #E6FCFF;
  text-shadow: 0 0 8px rgba(63, 211, 226, 0.45);
}

/* Démarcation indicateurs / informations clés */
html[data-theme='dark'] .organization-kpis + .organization-section {
  border-top-color: #253A66;
}

/* Titres de section : couleur subtile (cyan atténué) */
html[data-theme='dark'] .organization-section-title {
  color: #6FC9D6;
}

/* Prospection : bulles d'actions du radar et confirmation */
html[data-theme='dark'] .targeting-dialog-hint {
  color: #9FB0D0;
}
html[data-theme='dark'] .radar-bubble {
  color: #FFFFFF;
  background: #2F74E8;
  border-color: #5C98F5;
  box-shadow: 0 0 0 1px rgba(92, 152, 245, 0.25), 0 10px 26px -8px rgba(47, 116, 232, 0.65);
}
html[data-theme='dark'] .radar-bubble:hover {
  background: #3D84F5;
}
html[data-theme='dark'] .radar-bubble-count {
  color: #3FD3E2;
  background: rgba(63, 211, 226, 0.14);
}
html[data-theme='dark'] .radar-bubble.is-primary {
  color: #05112B;
  background: #3FD3E2;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .radar-bubble.is-primary .radar-bubble-count {
  color: #EEF2FA;
  background: #05112B;
}
html[data-theme='dark'] .radar-bubble.is-soon {
  color: #7F8FB2;
}
html[data-theme='dark'] .radar-confirm {
  color: #EEF2FA;
  background: rgba(16, 28, 61, 0.96);
  border-color: #253A66;
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-theme='dark'] .radar-confirm-head h3 {
  color: #EEF2FA;
}
html[data-theme='dark'] .radar-confirm-label {
  color: #6FC9D6;
}
html[data-theme='dark'] .radar-confirm-list label:hover {
  background: #16264D;
}
html[data-theme='dark'] .radar-confirm-list input {
  accent-color: #3FD3E2;
}
html[data-theme='dark'] .radar-confirm-field input {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .radar-confirm-due {
  background: #0C1734;
}
html[data-theme='dark'] .radar-confirm-due-option {
  color: #9FB0D0;
}
html[data-theme='dark'] .radar-confirm-due-option[aria-pressed='true'] {
  color: #EEF2FA;
  background: #16264D;
  box-shadow: inset 0 0 0 1px #3A5288;
}
html[data-theme='dark'] .radar-confirm-cancel {
  color: #9FB0D0;
}
html[data-theme='dark'] .radar-confirm-create {
  color: #05112B;
  background: #3FD3E2;
}

/* Résumé Revenu (option A) */
html[data-theme='dark'] .pipeline-screen {
  background: #16264D;
  border-color: #253A66;
  box-shadow: none;
}
html[data-theme='dark'] .pipeline-screen .pipeline-summary-line strong,
html[data-theme='dark'] .pipeline-summary-text b {
  color: #EEF2FA;
}
html[data-theme='dark'] .pipeline-summary-text {
  color: #9FB0D0;
}
html[data-theme='dark'] .pipeline-risk-pill {
  color: #FFB4A2;
  background: rgba(224, 69, 43, 0.18);
}

/* Prospection : pictos de mode et icônes des bulles d'activités */
html[data-theme='dark'] .targeting-mode {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .targeting-mode[aria-pressed='true'] {
  color: #05112B;
  background: #3FD3E2;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .radar-bubble-icon {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}

/* Missions : catégories et sous-missions */
html[data-theme='dark'] .mission-category,
html[data-theme='dark'] .mission-item {
  color: #EEF2FA;
  background: #16264D;
  border-color: #253A66;
}
html[data-theme='dark'] .mission-category:hover {
  border-color: #3A5288;
}
html[data-theme='dark'] .mission-category-text b,
html[data-theme='dark'] .mission-item-text b,
html[data-theme='dark'] .mission-head h3,
html[data-theme='dark'] .mission-item-count {
  color: #EEF2FA;
}
html[data-theme='dark'] .mission-category-text small,
html[data-theme='dark'] .mission-item-text small,
html[data-theme='dark'] .mission-note {
  color: #9FB0D0;
}
html[data-theme='dark'] .mission-category-count {
  color: #EEF2FA;
  background: #0C1734;
}
html[data-theme='dark'] .mission-back {
  color: #6FC9D6;
}
html[data-theme='dark'] .mission-item-count.is-action {
  color: #3FD3E2;
  background: rgba(63, 211, 226, 0.14);
}

/* Missions : pictos en mode sombre (fond translucide teinté, trait lumineux) */
html[data-theme='dark'] .mission-icon-enrich { color: #8DB4FF; background: rgba(91, 141, 239, 0.16); }
html[data-theme='dark'] .mission-icon-prospect { color: #6FD9A8; background: rgba(46, 179, 118, 0.16); }
html[data-theme='dark'] .mission-icon-warm { color: #FFB86B; background: rgba(240, 150, 60, 0.16); }
html[data-theme='dark'] .mission-icon-prevent { color: #FF9A85; background: rgba(224, 69, 43, 0.18); }
html[data-theme='dark'] .mission-icon-maximize { color: #B4A6FF; background: rgba(124, 104, 238, 0.18); }

/* Catalogue des intégrations (14 oct. 2026). */
html[data-theme='dark'] .integration-row {
  background-color: #101C3D;
  border-color: #253A66;
}
html[data-theme='dark'] button.integration-row:hover {
  border-color: #35508A;
}
html[data-theme='dark'] .integration-row.is-soon {
  background-color: transparent;
}
html[data-theme='dark'] .integration-row .settings-chevron {
  color: #9FB0D0;
}
html[data-theme='dark'] .integration-tile {
  background-color: #ffffff;
  border-color: #253A66;
}
html[data-theme='dark'] .integration-soon-pill {
  color: #9FB0D0;
  background-color: rgba(159, 176, 208, 0.12);
}
html[data-theme='dark'] .integration-detail-head small {
  color: #9FB0D0;
}
html[data-theme='dark'] .integration-usage {
  color: #C9D4EA;
}
html[data-theme='dark'] .integration-row.is-soon + .integration-row.is-soon {
  border-top-color: #253A66;
}

/* Fiche entreprise › Revenu : tableau des opportunités (14 oct. 2026). */
html[data-theme='dark'] .organization-opps-total span,
html[data-theme='dark'] .organization-opps-table th,
html[data-theme='dark'] .organization-opp-date {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-opps-table th,
html[data-theme='dark'] .organization-opps-table td {
  border-color: #253A66;
}
html[data-theme='dark'] .organization-opp-stage {
  color: #A9C8F5;
  background: rgba(52, 120, 212, 0.18);
}
html[data-theme='dark'] .organization-revenue-card {
  background-color: #101C3D;
  border-color: #253A66;
}
html[data-theme='dark'] .organization-revenue-card .organization-revenue-comparison.is-up {
  color: #7FD6A8;
  background: rgba(30, 155, 95, 0.18);
}
html[data-theme='dark'] .organization-revenue-card .organization-revenue-comparison.is-down {
  color: #F2A08C;
  background: rgba(224, 69, 43, 0.18);
}
html[data-theme='dark'] .deal-company-identity.is-link:hover,
html[data-theme='dark'] .deal-company-identity.is-link:focus-visible {
  background: rgba(63, 211, 226, 0.08);
}
html[data-theme='dark'] .deal-company-external {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-title-external {
  color: #9FB0D0;
}
html[data-theme='dark'] .organization-title-link:hover,
html[data-theme='dark'] .organization-title-link:focus-visible,
html[data-theme='dark'] .organization-title-link:hover .organization-title-external {
  color: #3FD3E2;
}
html[data-theme='dark'] .organization-crm-pill {
  color: #E6ECF7;
  background: #101C3D;
  border-color: #253A66;
}
html[data-theme='dark'] .organization-crm-pill:hover,
html[data-theme='dark'] .organization-crm-pill:focus-visible {
  border-color: #3FD3E2;
  background: rgba(63, 211, 226, 0.08);
}
html[data-theme='dark'] .organization-crm-pill-icon {
  color: #3FD3E2;
}
html[data-theme='dark'] .organization-person.is-link:hover,
html[data-theme='dark'] .organization-person.is-link:focus-visible {
  background: rgba(63, 211, 226, 0.08);
}
/* Signaux › Visites récentes du site (14 oct. 2026). */
html[data-theme='dark'] .web-recent-toggle,
html[data-theme='dark'] .web-recent-row small {
  color: #9FB0D0;
}
html[data-theme='dark'] .web-recent-count {
  color: #A9C8F5;
  background: rgba(52, 120, 212, 0.18);
}
html[data-theme='dark'] .web-recent-row {
  color: #E6ECF7;
}
html[data-theme='dark'] .web-recent-row:hover,
html[data-theme='dark'] .web-recent-row:focus-visible {
  background: rgba(63, 211, 226, 0.08);
}
html[data-theme='dark'] .web-recent-row em {
  color: #7FB2F0;
}
html[data-theme='dark'] .radar-note-text {
  color: #E6ECF7;
  background: #0B1530;
  border-color: #253A66;
}
html[data-theme='dark'] .radar-note-target {
  color: #E6ECF7;
}
html[data-theme='dark'] .radar-note-error {
  color: #F2A08C;
}
html[data-theme='dark'] .radar-task-subject {
  color: #E6ECF7;
  background: #0B1530;
  border-color: #253A66;
}
html[data-theme='dark'] .radar-email-recipient small,
html[data-theme='dark'] .radar-email-vars,
html[data-theme='dark'] .radar-email-preview summary {
  color: #9FB0D0;
}
html[data-theme='dark'] .radar-email-var {
  color: #A9C8F5;
  background: rgba(52, 120, 212, 0.18);
}
html[data-theme='dark'] .radar-email-preview {
  background: #0B1530;
}
html[data-theme='dark'] .radar-email-confirm {
  color: #F2C77B;
  background: rgba(240, 160, 48, 0.12);
}
/* Bulle LinkedIn (fenêtre de message) : mode sombre. */
html[data-theme='dark'] .radar-li-head,
html[data-theme='dark'] .radar-li-actions {
  border-color: #253A66;
}
html[data-theme='dark'] .radar-li-close {
  color: #B8C4DD;
}
html[data-theme='dark'] .radar-li-close:hover {
  background: #1A2A52;
}
html[data-theme='dark'] .radar-li-chip {
  color: #7FB2F0;
  border-color: #3D7BD0;
}
html[data-theme='dark'] .radar-li-chip[aria-pressed='true'] {
  color: #fff;
  background: #0A66C2;
  border-color: #0A66C2;
}
html[data-theme='dark'] .radar-li-chip.is-empty {
  color: #9AA8C6;
  border-color: #253A66;
}
html[data-theme='dark'] .radar-li-avatar {
  color: #CFE2FA;
  background: #1B3A6B;
}
html[data-theme='dark'] .radar-li-who b {
  color: #EEF2FA;
}
html[data-theme='dark'] .radar-li-who small,
html[data-theme='dark'] .radar-li-who em,
html[data-theme='dark'] .radar-linkedin-counter,
html[data-theme='dark'] .radar-linkedin-hint,
html[data-theme='dark'] .radar-linkedin-status {
  color: #9AA8C6;
}
html[data-theme='dark'] .radar-li-who em.is-known,
html[data-theme='dark'] .radar-linkedin-saved {
  color: #6FD3A4;
}
html[data-theme='dark'] .radar-li-text {
  background: #0B1530;
  border-color: transparent;
}
html[data-theme='dark'] .radar-li-modes {
  background: #0B1530;
}
html[data-theme='dark'] .radar-li-mode {
  color: #9AA8C6;
}
html[data-theme='dark'] .radar-li-mode[aria-pressed='true'] {
  color: #EEF2FA;
  background: #1A2A52;
}
html[data-theme='dark'] .radar-linkedin-profile-save {
  color: #CFE2FA;
  background: #1B3A6B;
}
/* Bulles d'action en bleu lumineux : compteur blanc sur la bulle. */
html[data-theme='dark'] .radar-bubble .radar-bubble-count {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.22);
}
/* Étiquette propriétaire (survol d'un deal) : bleu nuit plus lumineux, distinct du nom d'entreprise. */
html[data-theme='dark'] .pipeline-owner-tip {
  background-color: #1B2F5C;
  border-color: #33508A;
}
html[data-theme='dark'] .pipeline-owner-line {
  color: #CFE0FA;
}
html[data-theme='dark'] .pipeline-owner-more {
  color: #8FA9D6;
}
/* Indicateurs des fiches (Montant, Clôture…) : un cran plus clairs pour ressortir (16 oct.). */
html[data-theme='dark'] .organization-kpis .organization-kpi {
  --hud-glow: rgba(63, 211, 226, 0.09);
  background-color: #1A2B57;
  box-shadow: inset 0 0 0 1px rgba(63, 211, 226, 0.16);
}
html[data-theme='dark'] .organization-kpis .organization-kpi span {
  color: #95CAD6;
}
/* Couronne d'icônes (16 oct.) : verre bleu nuit, liseré et pictos aqua ; survol aqua plein. */
html[data-theme='dark'] .radar-crown-ring {
  border-color: rgba(63, 211, 226, 0.28);
  background: rgba(63, 211, 226, 0.03);
}
html[data-theme='dark'] .radar-bubble.is-crown {
  color: #3FD3E2;
  background: rgba(16, 28, 61, 0.94);
  border-color: rgba(63, 211, 226, 0.55);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.7);
}
html[data-theme='dark'] .radar-bubble.is-crown .radar-bubble-icon {
  color: inherit;
  background: none;
}
html[data-theme='dark'] .radar-bubble.is-crown:hover,
html[data-theme='dark'] .radar-bubble.is-crown:focus-visible {
  color: #05112B;
  background: #3FD3E2;
  border-color: #3FD3E2;
  box-shadow: 0 0 0 4px rgba(63, 211, 226, 0.18);
}
html[data-theme='dark'] .radar-bubble.is-crown .radar-bubble-label {
  color: #EEF2FA;
  background: #101C3D;
  border-color: rgba(63, 211, 226, 0.5);
}
html[data-theme='dark'] .radar-bubble.is-crown .radar-bubble-count {
  color: #05112B;
  background: #3FD3E2;
}
/* Couronne en sombre, version néon subtile (16 oct.) : liseré aqua lumineux,
   pictos aqua clair, léger halo ; plus visible sur la carte de nuit. */
html[data-theme='dark'] .radar-crown-ring {
  border-color: rgba(63, 211, 226, 0.5);
  background: rgba(63, 211, 226, 0.05);
  box-shadow: 0 0 18px rgba(63, 211, 226, 0.12), inset 0 0 18px rgba(63, 211, 226, 0.08);
}
html[data-theme='dark'] .radar-bubble.is-crown {
  color: #8CF1FA;
  background: rgba(10, 30, 58, 0.92);
  border: 1.5px solid rgba(63, 211, 226, 0.95);
  box-shadow: 0 0 0 1px rgba(63, 211, 226, 0.15), 0 0 12px rgba(63, 211, 226, 0.45), inset 0 0 8px rgba(63, 211, 226, 0.18);
}
html[data-theme='dark'] .radar-bubble.is-crown:hover,
html[data-theme='dark'] .radar-bubble.is-crown:focus-visible {
  color: #05112B;
  background: #3FD3E2;
  border-color: #8CF1FA;
  box-shadow: 0 0 0 4px rgba(63, 211, 226, 0.2), 0 0 20px rgba(63, 211, 226, 0.6);
}
/* Missions (16 oct.) : pictos allégés, accueil à deux portes. */
html[data-theme='dark'] .mission-icon[class*='mission-icon-'] {
  background: none !important;
}
html[data-theme='dark'] .mission-entry.is-game,
html[data-theme='dark'] .mission-entry.is-game:hover {
  background: rgba(18, 184, 134, 0.08);
  border-color: rgba(18, 184, 134, 0.35);
}
html[data-theme='dark'] .mission-entry-soon {
  color: #7FEBC8;
  background: rgba(18, 184, 134, 0.16);
}
/* Signal Deals à risque : deals sains estompés en sombre. */
html[data-theme='dark'] .pipeline-bubble.is-calm {
  background: #2A3657 !important;
  color: #8E9CBB !important;
  border-color: #3A4A70;
}
/* Deals à risque : résumé replié derrière la petite flèche (16 oct.). */
html[data-theme='dark'] .deal-risk-summary.is-collapsed {
  border-color: transparent;
  background: transparent;
}
html[data-theme='dark'] .deal-risk-line.is-toggle:hover b {
  color: #7FB2F0;
}
html[data-theme='dark'] .mission-icon-close { color: #6FE0B8; }
/* Couronne du deal : « Passer en perdu » rouge au survol ; message de confirmation. */
html[data-theme='dark'] .radar-bubble.is-crown.is-danger:hover,
html[data-theme='dark'] .radar-bubble.is-crown.is-danger:focus-visible {
  color: #fff;
  background: #E0483B;
  border-color: #FF8A7D;
  box-shadow: 0 0 0 4px rgba(224, 72, 59, 0.22), 0 0 20px rgba(224, 72, 59, 0.5);
}
html[data-theme='dark'] .deal-toast {
  color: #05112B;
  background: #3FD3E2;
}
/* Affichage « aperçu + épuré » (16 oct.) : mode sombre. */
html[data-theme='dark'] .appearance-preview {
  border-color: #253A66;
}
html[data-theme='dark'] .appearance-header-count {
  color: #9FB0D0;
}
html[data-theme='dark'] .legend-item.legend-chip {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .legend-item.legend-chip.is-chip-editable:hover,
html[data-theme='dark'] .legend-item.legend-chip.is-chip-editable:focus-visible {
  border-color: #3A5590;
}
html[data-theme='dark'] .legend-item.legend-chip.is-editing {
  border-color: #3FD3E2;
  box-shadow: 0 0 0 2px rgba(63, 211, 226, 0.18);
}
html[data-theme='dark'] .appearance-object[data-object='mode'] .appearance-object-title {
  color: #9FB0D0;
}
html[data-theme='dark'] .appearance-object[data-object='mode'] .appearance-mode-options {
  background: #0C1734;
}
html[data-theme='dark'] .appearance-object[data-object='mode'] .appearance-mode-option {
  color: #9FB0D0;
  background: transparent;
  border: 0;
}
html[data-theme='dark'] .appearance-object[data-object='mode'] .appearance-mode-option[aria-checked='true'] {
  color: #EEF2FA;
  background: #1A2A52;
}
/* Onglet Gaming Mode « bientôt » (16 oct.) : mode sombre. */
html[data-theme='dark'] .mission-tabs .terrain-section-button.is-soon {
  color: #5B6B8C;
}
html[data-theme='dark'] .mission-tabs .terrain-section-button.is-soon:hover {
  background: transparent;
}
html[data-theme='dark'] .mission-tab-soon {
  color: #05112B;
  background: #3FD3E2;
}
/* Téléphonie (17 oct.) : bulle Retour discrète, aide et numéro du contact. */
html[data-theme='dark'] .radar-bubble.is-crown.is-quiet {
  color: #A3AECB;
  border-color: rgba(163, 174, 203, 0.55);
  box-shadow: none;
}
html[data-theme='dark'] .radar-log-hint {
  color: #8A97B5;
}
html[data-theme='dark'] .radar-log-phone {
  color: #3FD3E2;
}
/* Température option C (17 oct.) : détail déroulant Tout · Chaud · Refroidit. */
html[data-theme='dark'] .relation-option {
  color: #EEF2FA;
}
html[data-theme='dark'] .relation-option:hover,
html[data-theme='dark'] .relation-option:focus-visible,
html[data-theme='dark'] .relation-option[aria-pressed='true'] {
  background: #1A2A52;
}
html[data-theme='dark'] .relation-option[aria-pressed='true'] b {
  color: #3FD3E2;
}
html[data-theme='dark'] .relation-option small,
html[data-theme='dark'] .relation-option em {
  color: #A3AECB;
}
/* Filtres enregistrés = calques (17 oct.). */
html[data-theme='dark'] .saved-views .saved-view-chip {
  color: #8CF1FA;
  background: #0C1734;
  border-color: rgba(63, 211, 226, 0.4);
}
html[data-theme='dark'] .saved-views .saved-view.is-on .saved-view-chip {
  color: #05112B;
  background: #3FD3E2;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .saved-views .saved-view-remove {
  color: #EEF2FA;
  background: #1A2A52;
  box-shadow: 0 0 0 1px rgba(63, 211, 226, 0.3);
}
/* Signature (17 oct.) : mode sombre. */
html[data-theme='dark'] .signature-text {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .signature-text::placeholder {
  color: #5F6F93;
}
html[data-theme='dark'] .signature-text:focus {
  background: #101C3D;
  border-color: #3FD3E2;
  box-shadow: 0 0 0 3px rgba(63, 211, 226, 0.15);
}
html[data-theme='dark'] .signature-auto,
html[data-theme='dark'] .radar-email-signature {
  color: #D5DDF0;
}
html[data-theme='dark'] .signature-auto input,
html[data-theme='dark'] .radar-email-signature input {
  accent-color: #3FD3E2;
}
html[data-theme='dark'] .radar-email-signature-preview {
  color: #A9B6D3;
  background: #0C1734;
}
html[data-theme='dark'] .radar-email-signature-empty {
  color: #7F8CAB;
}
/* Analyse (17 oct.) : mode sombre. */
html[data-theme='dark'] .analysis-scope-text {
  color: #9FB0D0;
}
html[data-theme='dark'] .analysis-scope-text b {
  color: #EEF2FA;
}
html[data-theme='dark'] .analysis-scope-link {
  color: #8FB0FF;
}
html[data-theme='dark'] .analysis-card {
  background: #101C3D;
  border-color: #253A66;
}
html[data-theme='dark'] .analysis-card-head h3 {
  color: #7F8FB2;
}
html[data-theme='dark'] .analysis-card-head em {
  color: #3FD3E2;
}
html[data-theme='dark'] .analysis-card-head em.is-risk {
  color: #FF7A6B;
}
html[data-theme='dark'] .analysis-donut-track {
  stroke: #1A2A52;
}
html[data-theme='dark'] .analysis-donut-center,
html[data-theme='dark'] .analysis-col-value {
  fill: #EEF2FA;
}
html[data-theme='dark'] .analysis-col-label {
  fill: #9FB0D0;
}
html[data-theme='dark'] .analysis-legend li,
html[data-theme='dark'] .analysis-bar-head {
  color: #C5D0E6;
}
html[data-theme='dark'] .analysis-legend li b,
html[data-theme='dark'] .analysis-bar-head b {
  color: #EEF2FA;
}
html[data-theme='dark'] .analysis-track,
html[data-theme='dark'] .analysis-stack {
  background: #1A2A52;
}
html[data-theme='dark'] button.analysis-bar:hover,
html[data-theme='dark'] button.analysis-bar:focus-visible {
  background: #16254A;
}
html[data-theme='dark'] .analysis-note,
html[data-theme='dark'] .analysis-empty {
  color: #7F8CAB;
}
html[data-theme='dark'] .analysis-chevron {
  border-color: #8fa0bd;
}
html[data-theme='dark'] button.analysis-card-head:hover h3,
html[data-theme='dark'] button.analysis-card-head:focus-visible h3 {
  color: #8fb0ff;
}
html[data-theme='dark'] .analysis-diamonds i {
  box-shadow: none;
}
html[data-theme='dark'] .analysis-diamonds-unit {
  color: #7F8FAE;
}
html[data-theme='dark'] .analysis-diamonds i[data-band='none'],
html[data-theme='dark'] .analysis-legend.is-diamond i[data-band='none'] {
  background: #3A4766 !important;
}
html[data-theme='dark'] .pin-fan-item span {
  color: #EEF2FA;
  background: rgba(16, 27, 56, 0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
html[data-theme='dark'] .pin-fan-item i,
html[data-theme='dark'] .pin-fan-hub {
  border-color: #0B1430;
}
html[data-theme='dark'] .pin-fan-hub {
  background: #EEF2FA;
}
html[data-theme='dark'] .analysis-geo-area {
  fill: #16244A;
  stroke: #2A3A66;
}
html[data-theme='dark'] .analysis-geo-river {
  stroke: #2C4C86;
}
html[data-theme='dark'] .analysis-geo-dot circle {
  stroke: #0B1430;
}
html[data-theme='dark'] .analysis-geo-dot text {
  fill: #EEF2FA;
}
html[data-theme='dark'] .analysis-geo-dot:hover circle {
  stroke: #EEF2FA;
}
html[data-theme='dark'] .analysis-geo-note {
  color: #7F8FAE;
}
html[data-theme='dark'] .marker-shape-trigger {
  color: #9FB0D0;
  background-color: #101C3D;
  border: 1px solid #253A66;
}
html[data-theme='dark'] .marker-shape-trigger:hover,
html[data-theme='dark'] .marker-shape-trigger:focus-visible,
html[data-theme='dark'] .marker-shape-trigger[aria-expanded='true'] {
  border-color: var(--system-blue);
}
html[data-theme='dark'] .marker-shape-menu {
  background: #0E1A3A;
  border-color: #253A66;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
html[data-theme='dark'] .marker-shape-trigger {
  color: #EEF2FA;
}
html[data-theme='dark'] .marker-shape-map {
  background-color: #16244A;
  background-image:
    linear-gradient(90deg, transparent 47%, #24365F 47%, #24365F 53%, transparent 53%),
    linear-gradient(0deg, transparent 58%, #24365F 58%, #24365F 64%, transparent 64%),
    linear-gradient(35deg, transparent 70%, #1B2B52 70%, #1B2B52 100%);
}
html[data-theme='dark'] .analysis-timeline {
  color: #1E2C52;
}

/* Fiche entreprise › Contacts : bouton « Voir l'organigramme », couleurs de la bulle Organigramme (néon aqua). */
html[data-theme='dark'] .organization-crm-pill.is-orgchart {
  color: #8CF1FA;
  background: rgba(10, 30, 58, 0.92);
  border: 1.5px solid rgba(63, 211, 226, 0.95);
  box-shadow: 0 0 0 1px rgba(63, 211, 226, 0.15), 0 0 10px rgba(63, 211, 226, 0.35);
}
html[data-theme='dark'] .organization-crm-pill.is-orgchart .organization-crm-pill-icon {
  color: inherit;
}
html[data-theme='dark'] .organization-crm-pill.is-orgchart:hover,
html[data-theme='dark'] .organization-crm-pill.is-orgchart:focus-visible {
  color: #05112B;
  background: #3FD3E2;
  border-color: #8CF1FA;
}

/* Bulle d'aide « ? » et panneau Aide (20 oct.). */
html[data-theme='dark'] .map-help-button {
  color: #E6ECF7;
  background: rgba(16, 28, 61, 0.92);
  border-color: #253A66;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
html[data-theme='dark'] .map-help-button:hover,
html[data-theme='dark'] .map-help-button:focus-visible,
html[data-theme='dark'] .map-help-button.is-open {
  color: #3FD3E2;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .help-intro,
html[data-theme='dark'] .help-label {
  color: #9FB0D0;
}
html[data-theme='dark'] .help-option {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .help-option:hover,
html[data-theme='dark'] .help-option:focus-visible {
  background: rgba(63, 211, 226, 0.08);
  border-color: #3FD3E2;
}
html[data-theme='dark'] .help-option-icon {
  color: #05112B;
  background: #3FD3E2;
}
html[data-theme='dark'] .help-option.is-help .help-option-icon {
  background: #8CF1FA;
}
html[data-theme='dark'] .help-option-copy span,
html[data-theme='dark'] .help-note {
  color: #9FB0D0;
}
html[data-theme='dark'] .help-back {
  color: #3FD3E2;
}
html[data-theme='dark'] .help-textarea,
html[data-theme='dark'] .help-input {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #253A66;
}
html[data-theme='dark'] .help-textarea:focus,
html[data-theme='dark'] .help-input:focus {
  border-color: #3FD3E2;
  outline-color: rgba(63, 211, 226, 0.2);
}
html[data-theme='dark'] .help-error {
  color: #FF8A7D;
}
html[data-theme='dark'] .help-submit,
html[data-theme='dark'] .help-again {
  color: #05112B;
  background: #3FD3E2;
}
html[data-theme='dark'] .help-submit:hover,
html[data-theme='dark'] .help-again:hover {
  background: #8CF1FA;
}
html[data-theme='dark'] .help-sent {
  color: #E6ECF7;
}

/* Bulle Email façon Gmail : thème sombre de Gmail (20 oct.). */
html[data-theme='dark'] .radar-confirm.is-gmail {
  color: #e3e3e3;
  background: #1f1f1f;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .gmail-bar {
  background: #2d2e30;
}
html[data-theme='dark'] .gmail-title,
html[data-theme='dark'] .gmail-from-address,
html[data-theme='dark'] .gmail-subject,
html[data-theme='dark'] .gmail-text,
html[data-theme='dark'] .gmail-chip,
html[data-theme='dark'] .gmail-add-option,
html[data-theme='dark'] .gmail-vars-option {
  color: #e3e3e3;
}
html[data-theme='dark'] .gmail-bar-button,
html[data-theme='dark'] .gmail-chip-remove,
html[data-theme='dark'] .gmail-tool,
html[data-theme='dark'] .gmail-line,
html[data-theme='dark'] .gmail-line-label,
html[data-theme='dark'] .gmail-subject::placeholder,
html[data-theme='dark'] .gmail-add-copy small,
html[data-theme='dark'] .gmail-vars-option code,
html[data-theme='dark'] .gmail-message,
html[data-theme='dark'] .gmail-status p {
  color: #c4c7c5;
}
html[data-theme='dark'] .gmail-line {
  border-bottom-color: #3c4043;
}
html[data-theme='dark'] .gmail-chip {
  background: #1f1f1f;
  border-color: #5f6368;
}
html[data-theme='dark'] .gmail-add,
html[data-theme='dark'] .gmail-preview summary,
html[data-theme='dark'] .gmail-tool.is-on {
  color: #a8c7fa;
}
html[data-theme='dark'] .gmail-add-menu,
html[data-theme='dark'] .gmail-vars-menu {
  background: #2d2e30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
html[data-theme='dark'] .gmail-add-option:hover,
html[data-theme='dark'] .gmail-vars-option:hover,
html[data-theme='dark'] .gmail-bar-button:hover,
html[data-theme='dark'] .gmail-tool:hover:not(:disabled) {
  background: rgba(227, 227, 227, 0.1);
}
html[data-theme='dark'] .gmail-signature {
  color: #9aa0a6;
}
html[data-theme='dark'] .gmail-preview {
  color: #c4c7c5;
  background: #28292a;
}
html[data-theme='dark'] .gmail-status .gmail-status-confirm {
  color: #a8c7fa;
  background: #0b2a5b;
}
html[data-theme='dark'] .gmail-status .gmail-status-error {
  color: #f2b8b5;
}
html[data-theme='dark'] .gmail-send-main,
html[data-theme='dark'] .gmail-send-more {
  color: #062e6f;
  background: #a8c7fa;
}
html[data-theme='dark'] .gmail-send-more {
  border-left-color: rgba(6, 46, 111, 0.3);
}
html[data-theme='dark'] .gmail-send-main:hover:not(:disabled),
html[data-theme='dark'] .gmail-send-more:hover:not(:disabled) {
  background: #c2d7fb;
}
html[data-theme='dark'] .gmail-send-main:disabled,
html[data-theme='dark'] .gmail-send-more:disabled {
  color: rgba(6, 46, 111, 0.6);
  background: #4a5f80;
}

/* Email : mention « N emails séparés » (pas de copie). */
html[data-theme='dark'] .gmail-separate-note {
  /* Bordeaux du pin Domicile, éclairci pour rester lisible sur fond sombre. */
  color: #E8869E;
  border-bottom-color: #3c4043;
}

/* Secteurs en puces (20 oct.) : puces, menus, « + », recherche de ville. */
html[data-theme='dark'] .saved-areas .saved-area-item {
  background: #0C1734;
  border-color: rgba(63, 211, 226, 0.4);
}
html[data-theme='dark'] .saved-areas .saved-area-item:hover,
html[data-theme='dark'] .saved-areas .saved-area-item:focus-within {
  background: #0C1734;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .saved-areas .saved-area-item.is-active {
  background: #3FD3E2;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .saved-areas .saved-area-item .saved-area-name {
  color: #8CF1FA;
}
html[data-theme='dark'] .saved-areas .saved-area-item.is-active .saved-area-name,
html[data-theme='dark'] .saved-areas .saved-area-item.is-active .saved-area-recall,
html[data-theme='dark'] .saved-areas .saved-area-item.is-active .saved-area-zone-count,
html[data-theme='dark'] .saved-areas .saved-area-item.is-active .saved-area-more {
  color: #05112B;
}
html[data-theme='dark'] .saved-area-off,
html[data-theme='dark'] .saved-area-more {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-area-off:hover,
html[data-theme='dark'] .saved-area-more:hover {
  color: #EEF2FA;
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .saved-area-portal,
html[data-theme='dark'] .saved-area-picker {
  background: #101C3D;
  border-color: #253A66;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}
html[data-theme='dark'] .saved-area-menu button,
html[data-theme='dark'] .saved-area-menu .saved-area-visibility-switch,
html[data-theme='dark'] .saved-area-menu .saved-area-visibility-switch[aria-checked='true'],
html[data-theme='dark'] .saved-area-option {
  color: #E6ECF7;
}
html[data-theme='dark'] .saved-area-menu .saved-area-delete {
  color: #FF8A7D;
}
html[data-theme='dark'] .saved-area-menu button:hover,
html[data-theme='dark'] .saved-area-option:hover,
html[data-theme='dark'] .saved-area-option:focus-visible {
  background: rgba(63, 211, 226, 0.08);
}
html[data-theme='dark'] .saved-area-plus {
  color: #3FD3E2;
  background: #0C1734;
  border-color: rgba(63, 211, 226, 0.45);
}
html[data-theme='dark'] .saved-area-plus:hover,
html[data-theme='dark'] .saved-area-plus:focus-visible,
html[data-theme='dark'] .saved-area-plus.is-open {
  background: rgba(63, 211, 226, 0.12);
  border-color: #3FD3E2;
}
html[data-theme='dark'] .saved-area-plus:disabled {
  color: #4A5A80;
  border-color: #253A66;
}
html[data-theme='dark'] .saved-area-drawing-hint {
  color: #3FD3E2;
}
html[data-theme='dark'] .saved-area-search {
  color: #EEF2FA;
  background: #0C1734;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .saved-area-group,
html[data-theme='dark'] .saved-area-results-note,
html[data-theme='dark'] .saved-area-option-meta {
  color: #9FB0D0;
}
html[data-theme='dark'] .saved-area-option-icon {
  color: #3FD3E2;
  background: rgba(63, 211, 226, 0.12);
}
html[data-theme='dark'] .saved-areas .saved-area-item.is-unsaved:has(.spatial-save-form) {
  border-color: rgba(63, 211, 226, 0.4);
}

/* Bulle d'action impossible (aucun contact joignable) : grisée. */
html[data-theme='dark'] .radar-bubble.is-crown.is-unavailable,
html[data-theme='dark'] .radar-bubble.is-crown.is-unavailable:hover {
  color: #4A5A80;
  background: rgba(10, 30, 58, 0.85);
  border-color: rgba(63, 211, 226, 0.25);
  box-shadow: none;
  cursor: not-allowed;
}

/* Organiser une tournée en pause : bouton grisé « Bientôt ». */
html[data-theme='dark'] .terrain-tour-start.is-soon,
html[data-theme='dark'] .terrain-tour-start.is-soon:hover {
  color: #7F8FB2;
  background: #16244A;
}
html[data-theme='dark'] .terrain-tour-soon {
  color: #9FB0D0;
  background: #0C1734;
}

/* Consigner un appel : menu déroulant du contact. */
html[data-theme='dark'] .radar-log-contact {
  color: #E6ECF7;
  background-color: #0C1734;
  border-color: #253A66;
}

/* En-têtes d'activité (variante B) en sombre : bandeau nuit, liseré aqua. */
html[data-theme='dark'] .radar-confirm-head.is-banner,
html[data-theme='dark'] .radar-confirm.is-gmail .gmail-bar {
  background: #0E2350;
  border-bottom: 1px solid rgba(63, 211, 226, 0.35);
}
html[data-theme='dark'] .radar-head-bubble {
  color: #8CF1FA;
  background: rgba(10, 30, 58, 0.92);
  border-color: rgba(63, 211, 226, 0.95);
  box-shadow: 0 0 10px rgba(63, 211, 226, 0.35);
}
html[data-theme='dark'] .radar-head-subtitle {
  color: #9FB0D0;
}
html[data-theme='dark'] .radar-confirm.is-gmail .gmail-title,
html[data-theme='dark'] .radar-confirm.is-gmail .gmail-bar-button {
  color: #EEF2FA;
}

/* Résultat d'appel : pastilles (style des filtres enregistrés). */
html[data-theme='dark'] .radar-log-outcome {
  color: #8CF1FA;
  background: #0C1734;
  border-color: rgba(63, 211, 226, 0.4);
}
html[data-theme='dark'] .radar-log-outcome[aria-pressed='true'] {
  color: #05112B;
  background: #3FD3E2;
  border-color: #3FD3E2;
}
html[data-theme='dark'] .radar-log-outcome[aria-pressed='true'] .radar-log-outcome-dot {
  background: #05112B;
}

/* LinkedIn : menu déroulant des contacts. */
html[data-theme='dark'] .radar-li-select {
  color: #70B5F9;
  background-color: #0C1734;
  border-color: #70B5F9;
}

/* Champs de saisie en sombre (21 oct., variante C) : fond un cran plus clair
   que le panneau, contour bleu-gris visible, texte d'aide lisible ; aqua au clic.
   Hors Gmail (DA Google), menu LinkedIn et filtres en pastilles. */
html[data-theme='dark'] :is(input:not([type]), input[type='text'], input[type='search'], input[type='email'], input[type='url'], input[type='tel'], input[type='number'], input[type='date'], textarea, select):not(.tm-search-input):not(.gmail-subject):not(.gmail-text):not(.radar-li-select):not(.pipeline-chip) {
  color: #F4F7FD;
  background-color: #1A2A55;
  border: 1px solid #4A64A0;
}
html[data-theme='dark'] :is(input:not([type]), input[type='text'], input[type='search'], input[type='email'], input[type='url'], input[type='tel'], input[type='number'], input[type='date'], textarea, select):not(.tm-search-input):not(.gmail-subject):not(.gmail-text):not(.radar-li-select):not(.pipeline-chip):hover {
  border-color: #6A84C0;
}
html[data-theme='dark'] :is(input:not([type]), input[type='text'], input[type='search'], input[type='email'], input[type='url'], input[type='tel'], input[type='number'], input[type='date'], textarea, select):not(.tm-search-input):not(.gmail-subject):not(.gmail-text):not(.radar-li-select):not(.pipeline-chip):focus {
  border-color: #3FD3E2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 211, 226, 0.2);
}
html[data-theme='dark'] :is(input, textarea):not(.gmail-subject):not(.gmail-text)::placeholder {
  color: #A9B8D6;
}
/* Barre de recherche : le cadre est porté par le conteneur. */
html[data-theme='dark'] .tm-search {
  background-color: #1A2A55;
  border: 1px solid #4A64A0;
}
html[data-theme='dark'] .tm-search:hover {
  border-color: #6A84C0;
}
html[data-theme='dark'] .tm-search:focus-within {
  border-color: #3FD3E2;
  box-shadow: 0 0 0 3px rgba(63, 211, 226, 0.2);
}
html[data-theme='dark'] .tm-search .tm-search-input {
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-theme='dark'] .tm-search .tm-search-input::placeholder {
  color: #A9B8D6;
}
