/* Tema escuro RoutePilot: grafite neutro, contraste confortável e azul moderado. */
/* Paleta unica (GitHub dark): fundo #0d1117, azul reservado as acoes.
   Os mesmos tokens sao definidos em routepilot.css e reafirmados mais abaixo. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6edf3;
  --muted: #8b949e;
  --line: #30363d;
  --bg: #0d1117;
  --accent: #58a6ff;
  --route-navy: #dce8ec;
  --route-navy-strong: #edf3f5;
  --route-cyan: #58a6ff;
  --route-cyan-dark: #79c0ff;
  --route-border: #30363d;
  --route-green: #63c79c;
  --btn-bg: #21262d;
  --btn-border: #3d444d;
  --btn-text: #c9d1d9;
  --btn-hover-bg: #30363d;
  --btn-hover-border: #484f58;
  --btn-hover-text: #fff;
  --input-bg: #0d1117;
  --input-border: #30363d;
  --input-text: #e6edf3;
  --input-placeholder: #8b949e;
  --focus-ring: rgba(88, 166, 255, .35);
  --surface: #161b22;
  --surface-elevated: #21262d;
  --surface-hover: #21262d;
  --divider: #30363d;
  --dark-page: #0d1117;
  --dark-sidebar: #161b22;
  --dark-surface: #161b22;
  --dark-raised: #21262d;
  --dark-border: #30363d;
  --dark-heading: #e6edf3;
  --dark-copy: #c9d1d9;
  --dark-muted: #8b949e;
  --dark-accent: #aab4bf;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app.is-start,
html[data-theme="dark"] .app.is-map-hidden,
html[data-theme="dark"] .operations-workspace {
  background: var(--dark-page);
  color: var(--dark-heading);
}

html[data-theme="dark"] header {
  background: #19262f;
  color: var(--dark-heading);
  border-color: #334650;
  box-shadow: inset 0 2px #328ea0;
}

html[data-theme="dark"] aside,
html[data-theme="dark"] #contextSidebar,
html[data-theme="dark"] .system-footer,
html[data-theme="dark"] .map-context {
  background: var(--dark-sidebar);
  color: var(--dark-heading);
  border-color: var(--dark-border);
}

html[data-theme="dark"] .map-note {
  background: #141f27;
  color: var(--dark-muted);
  border-color: var(--dark-border);
}

html[data-theme="dark"] :where(h1, h2, h3, .context-heading h2, .operations-heading h2, .modal-heading h2, .section-title) {
  color: var(--dark-heading);
}

html[data-theme="dark"] .header-copy h1,
html[data-theme="dark"] .start-heading h2,
html[data-theme="dark"] .context-heading h2,
html[data-theme="dark"] .operations-heading h2 {
  color: #e2ecef;
  text-shadow: none;
}

html[data-theme="dark"] :where(p, small, dt, .empty, .address-note, .map-caution, .local-storage-note, .agenda-empty, .panel-intro, .nav-row small) {
  color: var(--dark-muted);
}

html[data-theme="dark"] .start-heading .start-subtitle,
html[data-theme="dark"] .city-grid-intro {
  color: var(--dark-copy);
}

html[data-theme="dark"] .context-heading small,
html[data-theme="dark"] .operations-heading small,
html[data-theme="dark"] .modal-heading small,
html[data-theme="dark"] .layers-heading small,
html[data-theme="dark"] .is-start .nav-top h2,
html[data-theme="dark"] #navigation .nav-top h2 {
  color: var(--dark-accent);
}

html[data-theme="dark"] .start-heading .start-eyebrow {
  background: #1b3039;
  color: #a3dce4;
  border-color: #3a5b66;
}

html[data-theme="dark"] .start-heading .start-eyebrow::before {
  background: var(--route-green);
  box-shadow: 0 0 0 3px rgba(99, 199, 156, .14);
}

html[data-theme="dark"] .stat-chip {
  background: #1a2931;
  color: #c2d4d9;
  border-color: #354a54;
}

/* Aviso de cobertura: discreto no tema escuro, mantendo contraste AA. */
html[data-theme="dark"] .coverage-warning {
  background: #2b211c;
  border-left-color: #d98a6d;
  color: #f0c9b9;
}

html[data-theme="dark"] .coverage-warning p {
  color: #e3c4b7;
}

html[data-theme="dark"] #contextSidebar #searchForm {
  background: #17232b;
  border-color: #354953;
}

html[data-theme="dark"] #contextSidebar #searchForm label,
html[data-theme="dark"] .is-start #searchForm label {
  color: #a5d5dc;
}

html[data-theme="dark"] .search-field,
html[data-theme="dark"] #contextSidebar .search-field,
html[data-theme="dark"] .app.is-start .search-field {
  background: #1a2932;
  border-color: #405762;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
}

html[data-theme="dark"] :where(input, select, textarea) {
  background: #1b2932;
  color: #e6eef1;
  border-color: #455c67;
}

html[data-theme="dark"] :where(input, select, textarea)::placeholder {
  color: #9aadb5;
  opacity: 1;
}

html[data-theme="dark"] :where(input, select, textarea):focus {
  outline-color: #63c3d1;
  border-color: #63c3d1;
  box-shadow: 0 0 0 3px rgba(88, 191, 208, .14);
}

html[data-theme="dark"] :where(.auth-menu, .agenda-modal, .route-builder-panel > section, .work-order-form, .operations-map-panel, .admin-review-section, .admin-review-summary > div, .compare-suggestions, .map-guide, .layers-popover, .agenda-filter-popover, .unassigned-drawer, .tools-panel, .area-inspector, .add-point-modal, .confirmation-card, .submissions-panel, .review-modal) {
  background: #19262f;
  color: var(--dark-heading);
  border-color: var(--dark-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] :where(.modal-header, .panel-header, .review-section) {
  border-color: var(--dark-border);
}

html[data-theme="dark"] :where(.modal-section h3, .review-section h3) {
  color: #c9dadd;
}

html[data-theme="dark"] :where(.coords-display input, .coords-row input, .modal-minimap) {
  background: #17242c;
  color: #b2c0c6;
  border-color: #405762;
}

html[data-theme="dark"] :where(.work-order-card, .schedule-result, .unassigned-card, .agenda-choice button, .technician-suggestion-list button, .technician-chip, .address-correction-list article, .admin-review-card, .saved-filter-list article, .box, .hint, .review-note, .radius-row) {
  background: var(--dark-surface);
  color: var(--dark-heading);
  border-color: var(--dark-border);
  box-shadow: none;
}

html[data-theme="dark"] .app.is-start .city-grid .nav-row,
html[data-theme="dark"] .weather-city-card {
  background: var(--dark-surface);
  color: var(--dark-heading);
  border-color: var(--dark-border);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .13);
}

html[data-theme="dark"] .app.is-start .city-grid .nav-row:hover,
html[data-theme="dark"] .weather-city-card:hover {
  background: var(--dark-raised);
  border-color: #55727d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .app.is-start .nav-copy,
html[data-theme="dark"] #navigation .nav-copy,
html[data-theme="dark"] .weather-city-name {
  color: #e0eaed;
}

html[data-theme="dark"] .app.is-start .nav-row small,
html[data-theme="dark"] #navigation .nav-row small,
html[data-theme="dark"] .weather-city-range {
  color: #b5c4ca;
}

html[data-theme="dark"] .weather-city-icon.is-sunny {
  color: #e2bd72;
}

html[data-theme="dark"] .weather-city-icon.is-wet {
  color: #78bdd0;
}

html[data-theme="dark"] .weather-city-icon.is-cloudy {
  color: #aec0c7;
}

html[data-theme="dark"] .weather-popover {
  background: rgba(8, 18, 24, .68);
}

html[data-theme="dark"] .weather-dialog-panel {
  background: #1a2730;
  color: #e2ecef;
  border-color: #3c505a;
}

html[data-theme="dark"] .weather-current {
  background: #23343d;
}

html[data-theme="dark"] .weather-current-details b,
html[data-theme="dark"] .weather-day strong,
html[data-theme="dark"] .weather-popover-heading strong {
  color: #e2ecef;
}

html[data-theme="dark"] .weather-current-details span,
html[data-theme="dark"] .weather-day,
html[data-theme="dark"] .weather-source {
  color: #b5c4ca;
}

html[data-theme="dark"] .weather-day {
  border-color: #344650;
}

html[data-theme="dark"] .city-monogram:has(.city-map-thumbnail) {
  background: color-mix(in srgb, var(--city-color) 16%, #182730);
  border-color: color-mix(in srgb, var(--city-color) 45%, #30434c);
}

html[data-theme="dark"] .city-map-thumbnail {
  filter: brightness(1.18) saturate(.88);
}

html[data-theme="dark"] .city-map-thumbnail circle {
  stroke: #182730;
}

html[data-theme="dark"] .is-start .chevron {
  background: #283a43;
  color: #a6dce3;
}

html[data-theme="dark"] :where(button, .nav-row, .reference-row, .compare-suggestion):hover {
  background-color: #2a3b44;
  color: #f0f5f6;
  border-color: #526a75;
}

html[data-theme="dark"] :where(.primary-tabs, .compare-modes) {
  background: #151f26;
  border-color: var(--dark-border);
}

html[data-theme="dark"] .primary-tabs button,
html[data-theme="dark"] .compare-modes button {
  background: transparent;
  color: #b9c8cd;
  border-color: transparent;
}

html[data-theme="dark"] :where(.primary-tabs button[aria-pressed="true"], .compare-modes button[aria-pressed="true"], .map-toolbar button[aria-pressed="true"], .radius-options button[aria-pressed="true"]) {
  background: #176f7d;
  color: #f2fbfc;
  border-color: #4f9eaa;
  box-shadow: none;
}

html[data-theme="dark"] .map-toolbar,
html[data-theme="dark"] .street-view-tool {
  background: rgba(25, 38, 47, .97);
  border-color: #405660;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .map-toolbar button {
  background: transparent;
  color: #c2d9de;
}

html[data-theme="dark"] .map-toolbar button:hover {
  background: #2a414b;
  color: #f0f7f8;
}

html[data-theme="dark"] .agenda-board,
html[data-theme="dark"] .agenda-column {
  background-color: #17232b;
  border-color: #344b55;
}

html[data-theme="dark"] .agenda-time-header,
html[data-theme="dark"] .agenda-tech-header,
html[data-theme="dark"] .agenda-time-axis {
  background: #1d2c35;
  color: #d4e0e4;
  border-color: #3a505b;
}

html[data-theme="dark"] .agenda-column {
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #344b55 1px);
}

html[data-theme="dark"] .agenda-block {
  background: #2a3b44;
  color: #f0f5f6;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .23);
}

html[data-theme="dark"] .route-origin,
html[data-theme="dark"] .route-edit-stop,
html[data-theme="dark"] .route-stop-card {
  background: #1b2932;
  color: var(--dark-heading);
  border-color: #3b515c;
  box-shadow: none;
}

html[data-theme="dark"] .route-origin {
  border-left-color: #d98245;
}

html[data-theme="dark"] .route-origin label,
html[data-theme="dark"] .route-edit-stop label {
  color: #c5d4d8;
}

html[data-theme="dark"] .route-stop-copy strong {
  color: #e2ecef;
}

html[data-theme="dark"] .route-stop-copy small,
html[data-theme="dark"] .route-place-context,
html[data-theme="dark"] .route-summary small,
html[data-theme="dark"] .route-summary span {
  color: var(--dark-muted);
}

html[data-theme="dark"] .route-add-stop {
  background: #1b2d35;
  color: #9dd9e1;
  border-color: #527782;
}

html[data-theme="dark"] .route-summary {
  background: #20343c;
  border-color: #3c5b65;
}

html[data-theme="dark"] .route-summary strong {
  color: #a7dce4;
}

html[data-theme="dark"] .note-summary,
html[data-theme="dark"] .note-state,
html[data-theme="dark"] .review-status {
  background: #3a3426;
  color: #f0d9a4;
  border-color: #76643b;
}

html[data-theme="dark"] .note-state.is-validated,
html[data-theme="dark"] .review-status.is-approved,
html[data-theme="dark"] .review-status.is-validated {
  background: #1c382e;
  color: #bce8d3;
  border-color: #42745f;
}

html[data-theme="dark"] .agenda-warning {
  background: #3b3023 !important;
  color: #f4d3a5 !important;
  border-color: #80613a !important;
}

html[data-theme="dark"] .auth-gate {
  color-scheme: dark;
  background: #111a21;
  color: var(--dark-heading);
}

html[data-theme="dark"] .auth-gate-card {
  background: #1b2932;
  color: var(--dark-heading);
  border-color: var(--dark-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .auth-gate h1 {
  color: var(--dark-heading);
}

html[data-theme="dark"] .auth-gate #authGateMessage,
html[data-theme="dark"] .auth-gate small {
  color: var(--dark-copy);
}

html[data-theme="dark"] .auth-gate button {
  background: #176f7d;
  color: #f2fbfc;
  border-color: #4f9eaa;
}

html[data-theme="dark"] .app-toast {
  background: #d9f3f7;
  color: #102d36;
}

html[data-theme="dark"] ::selection {
  background: #356d79;
  color: #fff;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #17232b;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #405660;
  border-color: #17232b;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #5a737d;
}

/* Reafirma a MESMA paleta do bloco inicial ( fonte unica ) para garantir
   precedencia sobre qualquer regra de routepilot.css carregada antes. */
html[data-theme="dark"] {
  --ink: #e6edf3;
  --muted: #8b949e;
  --line: #30363d;
  --bg: #0d1117;
  --accent: #58a6ff;
  --route-cyan: #58a6ff;
  --route-cyan-dark: #79c0ff;
  --route-border: #30363d;
  --dark-page: #0d1117;
  --dark-sidebar: #161b22;
  --dark-surface: #161b22;
  --dark-raised: #21262d;
  --dark-border: #30363d;
  --dark-heading: #e6edf3;
  --dark-copy: #c9d1d9;
  --dark-muted: #8b949e;
  --dark-accent: #aab4bf;
}

html[data-theme="dark"] header {
  background: #161b22;
  border-color: #30363d;
  box-shadow: none;
}

html[data-theme="dark"] :where(aside, #contextSidebar, .system-footer, .map-context, .map-note, .auth-menu, .agenda-modal, .route-builder-panel > section, .work-order-form, .operations-map-panel, .admin-review-section, .admin-review-summary > div, .compare-suggestions, .map-guide, .layers-popover, .agenda-filter-popover, .unassigned-drawer, .tools-panel, .area-inspector, .add-point-modal, .confirmation-card, .submissions-panel, .review-modal) {
  border-color: #30363d;
}

html[data-theme="dark"] .map-note {
  background: #161b22;
}

html[data-theme="dark"] :where(.header-copy h1, .start-heading h2, .context-heading h2, .operations-heading h2) {
  color: #e6edf3;
  text-shadow: none;
}

html[data-theme="dark"] :where(.context-heading small, .operations-heading small, .modal-heading small, .layers-heading small, .is-start .nav-top h2, #navigation .nav-top h2, #contextSidebar #searchForm label, .is-start #searchForm label) {
  color: #aab4bf;
}

html[data-theme="dark"] .start-heading .start-eyebrow {
  background: #161b22;
  color: #c9d1d9;
  border-color: #30363d;
}

html[data-theme="dark"] :where(.stat-chip, #contextSidebar #searchForm, .search-field, #contextSidebar .search-field, .app.is-start .search-field) {
  background: #0d1117;
  color: #c9d1d9;
  border-color: #30363d;
  box-shadow: none;
}

html[data-theme="dark"] :where(input, select, textarea) {
  background: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

html[data-theme="dark"] :where(input, select, textarea)::placeholder {
  color: #8b949e;
}

html[data-theme="dark"] :where(input, select, textarea):focus,
html[data-theme="dark"] .search-field:focus-within,
html[data-theme="dark"] .app.is-start .search-field:focus-within {
  outline-color: #58a6ff;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, .18);
}

html[data-theme="dark"] :where(.auth-menu, .agenda-modal, .route-builder-panel > section, .work-order-form, .operations-map-panel, .admin-review-section, .admin-review-summary > div, .compare-suggestions, .map-guide, .layers-popover, .agenda-filter-popover, .unassigned-drawer, .tools-panel, .area-inspector, .add-point-modal, .confirmation-card, .submissions-panel, .review-modal) {
  background: #161b22;
  color: #e6edf3;
}

html[data-theme="dark"] :where(.work-order-card, .schedule-result, .unassigned-card, .agenda-choice button, .technician-suggestion-list button, .technician-chip, .address-correction-list article, .admin-review-card, .saved-filter-list article, .app.is-start .city-grid .nav-row, .weather-city-card) {
  background: #161b22;
  color: #e6edf3;
  border-color: #30363d;
  box-shadow: none;
}

html[data-theme="dark"] :where(.app.is-start .city-grid .nav-row:hover, .weather-city-card:hover) {
  background: #21262d;
  border-color: #484f58;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] :where(.app.is-start .nav-copy, #navigation .nav-copy, .weather-city-name, .weather-city-reading strong) {
  color: #e6edf3;
}

html[data-theme="dark"] :where(.app.is-start .nav-row small, #navigation .nav-row small, .weather-city-range, .start-heading .start-subtitle, .city-grid-intro) {
  color: #8b949e;
}

html[data-theme="dark"] :where(a, .context-breadcrumb button) {
  color: #58a6ff;
}

html[data-theme="dark"] .map-visibility-button,
html[data-theme="dark"] .theme-button,
html[data-theme="dark"] .auth-button.is-authenticated {
  background: #21262d;
  color: #c9d1d9;
  border-color: #30363d;
}

html[data-theme="dark"] :where(.agenda-primary, .compare-button, .primary-tabs button[aria-pressed="true"], .share-mode-tabs button[aria-pressed="true"], .map-toolbar button[aria-pressed="true"]:not(#annotatePointButton), .radius-options button[aria-pressed="true"]) {
  background: #1f6feb !important;
  color: #fff !important;
  border-color: #1f6feb !important;
  box-shadow: none !important;
}

/* "Anotar ponto" e a acao laranja: NAO pode virar azul no tema escuro. */
html[data-theme="dark"] #mapToolbarItems #annotatePointButton[aria-pressed="true"] {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(242, 118, 34, .25) !important;
}

html[data-theme="dark"] :where(.agenda-primary, .compare-button):hover {
  background: #388bfd !important;
  border-color: #388bfd !important;
}

html[data-theme="dark"] :where(.context-actions button, .context-actions a, .inspector-actions button, .inspector-actions a, .near-buttons button, .map-point-menu-actions button) {
  background: #21262d;
  color: #c9d1d9;
  border-color: #30363d;
}

html[data-theme="dark"] .map-toolbar,
html[data-theme="dark"] .street-view-tool {
  background: rgba(22, 27, 34, .97);
  border-color: #30363d;
}

html[data-theme="dark"] .map-toolbar button {
  color: #c9d1d9;
}

html[data-theme="dark"] :where(.route-origin, .route-edit-stop, .route-stop-card, .route-summary) {
  background: #161b22;
  color: #e6edf3;
  border-color: #30363d;
  box-shadow: none;
}

html[data-theme="dark"] .route-add-stop {
  background: #161b22;
  color: #79c0ff;
  border-color: #3d444d;
}

html[data-theme="dark"] :where(.weather-city-icon.is-wet, .weather-city-icon.is-cloudy) {
  color: #8b949e;
}

html[data-theme="dark"] :where(.weather-city-icon.is-sunny) {
  color: #d29922;
}

html[data-theme="dark"] :where(.weather-strip-heading span:first-child, .weather-current > strong, .weather-content button) {
  color: #c9d1d9;
}

html[data-theme="dark"] .weather-strip-heading span:first-child {
  color: #8b949e !important;
}

html[data-theme="dark"] .app.is-start .city-grid .city-option .city-map-thumbnail {
  filter: saturate(.62);
}

html[data-theme="dark"] .weather-city-icon.is-wet,
html[data-theme="dark"] .weather-city-icon.is-cloudy {
  color: #8b949e;
}

html[data-theme="dark"] ::selection {
  background: #1f6feb;
}

html[data-theme="dark"] ::-webkit-scrollbar-track,
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: #161b22;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  border-color: #0d1117;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background-color: #30363d;
}

/* Menu de contexto do mapa e prompt de login para solicitar ponto */
html[data-theme="dark"] .map-context-menu-popup .leaflet-popup-content-wrapper,
html[data-theme="dark"] .map-context-menu-popup .leaflet-popup-tip {
  background: #161b22;
  color: #e6edf3;
}

html[data-theme="dark"] .map-context-menu {
  background: #161b22;
  color: #e6edf3;
}

html[data-theme="dark"] .map-context-head {
  background: #1b2730;
  border-color: #30363d;
}

html[data-theme="dark"] .map-context-heading small {
  color: #9db1bb;
}

html[data-theme="dark"] .map-context-heading b {
  color: #eef4f7;
}

html[data-theme="dark"] .map-context-glyph {
  background: #123948;
  color: #54cade;
}

html[data-theme="dark"] .map-context-badge.is-signed {
  background: #173a2a;
  color: #7fd8a8;
}

html[data-theme="dark"] .map-context-badge.is-guest {
  background: #3a2b17;
  color: #f0c27b;
}

html[data-theme="dark"] .map-context-close {
  color: #9db1bb;
}

html[data-theme="dark"] .map-context-close:hover {
  background: #26343d;
  color: #eef4f7;
}

html[data-theme="dark"] .map-context-coords > div {
  background: #0d161d;
  border-color: #314552;
}

html[data-theme="dark"] .map-context-coords span {
  color: #93a8b3;
}

html[data-theme="dark"] .map-context-coords b {
  color: #dbe9ee;
}

html[data-theme="dark"] .menu-secondary-action {
  background: #1b2832;
  border-color: #314552;
  color: #a9c7d1;
}

html[data-theme="dark"] .menu-secondary-action:hover {
  background: #223540;
  border-color: #456272;
  color: #d7eef4;
}

html[data-theme="dark"] .map-context-note {
  background: #161b22;
  border-color: #30363d;
  color: #9db1bb;
}

html[data-theme="dark"] .map-context-note.is-guest {
  background: #2b2316;
  color: #e3c07a;
}

html[data-theme="dark"] .point-login-hero {
  background: #2b2316;
  border-color: #5c4a1f;
}

html[data-theme="dark"] .point-login-hero b {
  color: #f0c27b;
}

html[data-theme="dark"] .point-login-hero p {
  color: #d6bd8a;
}

html[data-theme="dark"] .point-login-badge {
  background: #3a2b17;
  color: #f0c27b;
}

html[data-theme="dark"] .point-login-location {
  background: #0d161d;
  border-color: #314552;
}

html[data-theme="dark"] .point-login-location b {
  color: #eef4f7;
}

html[data-theme="dark"] .point-login-location span {
  color: #9db1bb;
}

html[data-theme="dark"] .point-login-pin {
  background: #123948;
  color: #54cade;
}

html[data-theme="dark"] .point-login-steps b {
  color: #c9dadd;
}

html[data-theme="dark"] .point-login-steps small {
  color: #9db1bb;
}

html[data-theme="dark"] .point-login-steps li > span {
  background: #123948;
  color: #54cade;
}

html[data-theme="dark"] .point-login-note {
  color: #9db1bb;
}

html[data-theme="dark"] .point-login-note .app-icon {
  color: #7fd8a8;
}

html[data-theme="dark"] .point-icon-preview {
  background: #123948;
  border-color: #314552;
  color: #54cade;
}

html[data-theme="dark"] .form-hint {
  color: #9db1bb;
}

/* Formulário compacto e seletor visual de ícones no tema escuro. */
html[data-theme="dark"] .add-point-modal-compact .modal-header small {
  color: #9db1bb;
}

html[data-theme="dark"] .add-point-location {
  background: #122b34;
  border-color: #395763;
}

html[data-theme="dark"] .add-point-location-pin {
  background: #123948;
  color: #54cade;
}

html[data-theme="dark"] .add-point-location-copy small,
html[data-theme="dark"] .add-point-location-copy > span {
  color: #9db1bb;
}

html[data-theme="dark"] .add-point-location-copy b {
  color: #e5f4f7;
}

html[data-theme="dark"] .add-point-map-toggle {
  background: #142832;
  border-color: #395763;
  color: #9bdbe6;
}

html[data-theme="dark"] .add-point-map-toggle:hover {
  background: #1b3540;
  border-color: #4d7480;
}

html[data-theme="dark"] .add-point-note {
  color: #9db1bb;
}

html[data-theme="dark"] .add-point-note .app-icon {
  color: #7fd8a8;
}

html[data-theme="dark"] .point-icon-trigger {
  background: #14232c;
  border-color: #395763;
  color: #d8e8ed;
}

html[data-theme="dark"] .point-icon-trigger:hover,
html[data-theme="dark"] .point-icon-trigger.has-selection {
  background: #182d37;
  border-color: #4d7480;
}

html[data-theme="dark"] .point-icon-trigger.is-open {
  border-color: #4f9eaa;
  box-shadow: 0 0 0 2px rgba(37, 184, 208, .14);
}

html[data-theme="dark"] .point-icon-preview.is-empty {
  background: #101d24;
  border-color: #405660;
  color: #8eacb7;
}

html[data-theme="dark"] .point-icon-trigger-copy small,
html[data-theme="dark"] .point-icon-trigger-chevron {
  color: #9db1bb;
}

html[data-theme="dark"] .point-icon-picker {
  background: #10222b;
  border-color: #395763;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .point-icon-search {
  background: #0e1b22;
  border-color: #3a5762;
  color: #9db1bb;
}

html[data-theme="dark"] .point-icon-search input {
  color: #e5f4f7;
}

html[data-theme="dark"] .point-icon-search input::placeholder {
  color: #8eacb7;
}

html[data-theme="dark"] .point-icon-group + .point-icon-group {
  border-color: #304651;
}

html[data-theme="dark"] .point-icon-group legend {
  color: #9db1bb;
}

html[data-theme="dark"] .point-icon-option-face {
  background: #14232c;
  border-color: #344a56;
  color: #c9dadd;
}

html[data-theme="dark"] .point-icon-option-face .app-icon {
  color: #6fd3e2;
}

html[data-theme="dark"] .point-icon-option:hover .point-icon-option-face {
  background: #1b333d;
  border-color: #4d7480;
}

html[data-theme="dark"] .point-icon-option input:checked + .point-icon-option-face {
  background: #17343e;
  border-color: #4f9eaa;
  color: #e5f4f7;
  box-shadow: inset 0 0 0 1px #4f9eaa;
}

html[data-theme="dark"] .point-icon-empty {
  color: #9db1bb;
}

html[data-theme="dark"] .point-icon-trigger,
html[data-theme="dark"] .point-icon-group {
  --point-icon-accent: #78d7e7;
  --point-icon-tile-a: #177f91;
  --point-icon-tile-b: #0e5664;
  --point-icon-glow: rgba(84, 202, 222, .25);
}

html[data-theme="dark"] .point-icon-trigger[data-category="rede_telecom"],
html[data-theme="dark"] .point-icon-group[data-icon-group="rede_telecom"] {
  --point-icon-accent: #86c8f0;
  --point-icon-tile-a: #1d6f9e;
  --point-icon-tile-b: #124b6d;
  --point-icon-glow: rgba(124, 196, 244, .26);
}

html[data-theme="dark"] .point-icon-trigger .point-icon-preview {
  background: linear-gradient(145deg, var(--point-icon-tile-a), var(--point-icon-tile-b));
  color: #fff;
}

html[data-theme="dark"] .point-icon-trigger.has-selection .point-icon-preview {
  background: linear-gradient(145deg, var(--point-icon-tile-a), var(--point-icon-tile-b));
  color: #fff;
}

html[data-theme="dark"] .point-icon-option-icon {
  background: linear-gradient(145deg, var(--point-icon-tile-a), var(--point-icon-tile-b));
  color: #fff;
  box-shadow: 0 2px 6px var(--point-icon-glow);
}

html[data-theme="dark"] .point-icon-option-face {
  background: #14232c;
  border-color: #344a56;
  color: #d8e8ed;
}

html[data-theme="dark"] .point-icon-option:hover .point-icon-option-face {
  background: #1b333d;
  border-color: #4d7480;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .point-icon-option input:checked + .point-icon-option-face {
  background: #17343e;
  border-color: var(--point-icon-accent);
  color: #e5f4f7;
  box-shadow: inset 0 0 0 1px var(--point-icon-accent), 0 2px 9px var(--point-icon-glow);
}

html[data-theme="dark"] .point-icon-option input:checked + .point-icon-option-face .point-icon-option-icon {
  background: linear-gradient(145deg, var(--point-icon-tile-a), var(--point-icon-tile-b));
  color: #fff;
}

html[data-theme="dark"] .point-icon-option input:checked + .point-icon-option-face .point-icon-option-icon .app-icon {
  color: #fff;
}

html[data-theme="dark"] .point-icon-option-check {
  background: var(--point-icon-accent);
  color: #0b1c24;
}

html[data-theme="dark"] .point-icon-option-check .app-icon {
  color: #0b1c24;
}

html[data-theme="dark"] .point-icon-option-icon .app-icon {
  color: #fff;
}

html[data-theme="dark"] .point-icon-trigger .point-icon-preview.is-empty {
  background: #101d24;
  color: #8eacb7;
  box-shadow: none;
}

html[data-theme="dark"] .point-icon-trigger[data-category="servicos"],
html[data-theme="dark"] .point-icon-group[data-icon-group="servicos"] {
  --point-icon-accent: #f0b563;
  --point-icon-tile-a: #b46d16;
  --point-icon-tile-b: #8a4f08;
  --point-icon-glow: rgba(240, 181, 99, .24);
}

html[data-theme="dark"] .point-icon-option-icon.is-brand,
html[data-theme="dark"] .point-icon-trigger .point-icon-preview.is-brand,
html[data-theme="dark"] .point-icon-option input:checked + .point-icon-option-face .point-icon-option-icon.is-brand {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 163, 227, .55), 0 2px 8px rgba(253, 128, 0, .22);
}

html[data-theme="dark"] .popup-icon.is-brand {
  background: #fff;
}
