/* Tema individual coeso: cor forte nos detalhes e fundo sempre escuro. */
:root {
  --user-accent: #3a86ff;
  --user-accent-rgb: 58, 134, 255;
  --user-accent-light: #5a99ff;
  --user-accent-dark: #306ed1;
  --user-accent-contrast: #ffffff;
  --user-menu-bg: #050b19;
  --user-menu-bg-rgb: 5, 11, 25;
  --user-canvas-start: #03060d;
  --user-canvas-middle: #070a13;
  --user-canvas-end: #03060c;
  --user-surface-top: #141a26;
  --user-surface-bottom: #0c111b;
  --user-surface-raised: #181e2d;
  --user-field-bg: #0a0d15;
  --user-field-focus: #0f1521;
  color-scheme: dark;
  --dash-module-surface:
    radial-gradient(
      circle at 14% 0%,
      rgba(var(--user-accent-rgb), 0.065),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(var(--user-menu-bg-rgb), 0.78),
      rgba(var(--user-menu-bg-rgb), 0.58)
    );
  --dash-module-surface-raised:
    radial-gradient(
      circle at 14% 0%,
      rgba(var(--user-accent-rgb), 0.055),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      rgba(var(--user-menu-bg-rgb), 0.9),
      rgba(var(--user-menu-bg-rgb), 0.7)
    );
}

html,
body {
  background:
    radial-gradient(
      circle at 16% 10%,
      rgba(var(--user-accent-rgb), 0.12),
      transparent 22%
    ),
    radial-gradient(
      circle at 82% 8%,
      rgba(var(--user-accent-rgb), 0.06),
      transparent 18%
    ),
    linear-gradient(
      180deg,
      var(--user-canvas-start) 0%,
      var(--user-canvas-middle) 38%,
      var(--user-canvas-end) 100%
    );
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 46px,
      rgba(var(--user-accent-rgb), 0.022) 47px,
      transparent 48px
    );
}

.sidebar {
  border-color: rgba(var(--user-accent-rgb), 0.16);
  background:
    radial-gradient(
      circle at 22% 8%,
      rgba(var(--user-accent-rgb), 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(var(--user-menu-bg-rgb), 0.995),
      rgba(var(--user-menu-bg-rgb), 0.97)
    ),
    var(--user-menu-bg);
  box-shadow: inset -1px 0 0 rgba(var(--user-accent-rgb), 0.07);
}

.brand-mini-dot,
.brand-mini-logo,
.account-avatar {
  border-color: rgba(var(--user-accent-rgb), 0.36);
}

.nav-item {
  border-color: rgba(var(--user-accent-rgb), 0.1);
  background: rgba(255, 255, 255, 0.018);
}

.module-tab {
  border-color: rgba(var(--user-accent-rgb), 0.16);
  background: rgba(var(--user-accent-rgb), 0.055);
}

.nav-item:hover,
.sidebar-nav .nav-item.active {
  border-color: rgba(var(--user-accent-rgb), 0.38);
  background: rgba(var(--user-accent-rgb), 0.14);
  color: var(--text);
  box-shadow:
    inset 3px 0 0 var(--user-accent),
    0 10px 24px rgba(var(--user-accent-rgb), 0.08);
}

.module-tab:hover,
.module-switcher-actions .module-tab.active {
  border-color: rgba(var(--user-accent-rgb), 0.4);
  background: rgba(var(--user-accent-rgb), 0.13);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(var(--user-accent-rgb), 0.08);
}

.primary-button,
.quick-add-button {
  border-color: rgba(var(--user-accent-rgb), 0.52);
  background: linear-gradient(
    135deg,
    var(--user-accent-light),
    var(--user-accent)
  );
  color: var(--user-accent-contrast);
  box-shadow:
    0 12px 28px rgba(var(--user-accent-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.quick-add-button:hover {
  background: linear-gradient(
    135deg,
    var(--user-accent-light),
    var(--user-accent-dark)
  );
  box-shadow:
    0 15px 34px rgba(var(--user-accent-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.secondary-button,
.ghost-button {
  border-color: rgba(var(--user-accent-rgb), 0.18);
}

.ghost-button {
  background: rgba(var(--user-accent-rgb), 0.07);
}

.hero-header {
  border-color: rgba(var(--user-accent-rgb), 0.17);
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(var(--user-accent-rgb), 0.12),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      var(--user-surface-raised),
      var(--user-surface-bottom)
    );
}

.brand-title {
  color: color-mix(in srgb, var(--user-accent) 72%, white);
  text-shadow:
    0 0 12px rgba(var(--user-accent-rgb), 0.16),
    0 0 28px rgba(var(--user-accent-rgb), 0.08);
}

.hero-badge,
.panel-eyebrow,
.field-hint {
  border-color: rgba(var(--user-accent-rgb), 0.2);
  color: color-mix(in srgb, var(--user-accent) 62%, white);
}

.module-switcher-panel,
.toolbar-panel,
.stat-card,
.panel {
  border-color: rgba(var(--user-accent-rgb), 0.16);
  background: linear-gradient(
    180deg,
    var(--user-surface-top),
    var(--user-surface-bottom)
  );
}

.moving-border::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(var(--user-accent-rgb), 0.56) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
}

.stat-card:hover {
  border-color: rgba(var(--user-accent-rgb), 0.28);
  box-shadow:
    var(--shadow-soft),
    0 0 20px rgba(var(--user-accent-rgb), 0.08);
}

.modal-content {
  border-color: rgba(var(--user-accent-rgb), 0.18) !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(var(--user-accent-rgb), 0.1),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      var(--user-surface-raised),
      var(--user-surface-bottom)
    ) !important;
}

.module-placeholder-card,
.module-item-card,
.goals-form-group,
.goal-progress-card,
.today-kpi-strip,
.temporal-kpi-grid,
.balance-location-card,
.automation-summary-card,
.club365-account-card,
.betting-house-account-card,
.betting-operation-card,
.betting-cash-item,
.betting-month-item,
.betting-agenda-item,
.recurring-template-card,
.backup-point-item,
.audit-log-item,
.expense-control-kpi,
.expense-category-row,
.invoice-summary-grid article,
.invoice-item {
  border-color: rgba(var(--user-accent-rgb), 0.14);
  background: linear-gradient(
    180deg,
    var(--user-surface-raised),
    var(--user-surface-bottom)
  );
}

.finance-analytics-panel {
  background: var(--user-surface-top);
}

.analytics-view-toggle,
.temporal-selected-day-card,
.temporal-chart-wrapper,
.category-ranking-empty,
.expense-budget-editor,
.expense-category-add-form,
.club365-entry-item,
.club365-account-numbers > div,
.user-admin-summary > div,
.automation-alert-item,
.betting-subnav,
.betting-filter-button,
.betting-subnav-button {
  background-color: var(--user-field-bg);
}

.expense-control-overview {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(var(--user-accent-rgb), 0.09),
      transparent 42%
    ),
    var(--user-surface-top);
}

.goal-state-progress .goal-progress-fill,
.club365-progress-fill {
  background: linear-gradient(
    90deg,
    var(--user-accent),
    var(--user-accent-light)
  );
  box-shadow: 0 0 14px rgba(var(--user-accent-rgb), 0.26);
}

.club365-account-complete .club365-progress-fill {
  background: linear-gradient(90deg, var(--green), var(--user-accent-light));
}

.expense-control-overview:not(.expense-state-attention):not(
    .expense-state-critical
  ):not(.expense-state-exceeded)
  .expense-main-progress
  span,
.expense-category-row:not(.expense-category-state-attention):not(
    .expense-category-state-critical
  ):not(.expense-category-state-exceeded)
  .expense-category-progress
  span {
  background: linear-gradient(
    90deg,
    var(--user-accent),
    var(--user-accent-light)
  );
}

.goals-input,
.filters-inline input,
.filters-inline select,
.table-filters input,
.table-filters select,
.module-inline-filter input,
.module-inline-filter select,
.today-date-control input,
.settings-panel input:not([type="checkbox"]):not([type="color"]),
.settings-panel select,
.modal-content input,
.modal-content select,
.modal-content textarea,
.modal-card input,
.modal-card select,
.modal-card textarea,
.transaction-form input,
.transaction-form select,
.transaction-form textarea {
  border-color: rgba(var(--user-accent-rgb), 0.18) !important;
  background-color: var(--user-field-bg) !important;
}

.betting-cash-panel input#bettingWorkCashInput,
.betting-cash-panel input.betting-balance-input,
.betting-cash-item input#bettingWorkCashInput {
  border-color: rgba(var(--user-accent-rgb), 0.18) !important;
  background-color: var(--user-field-bg) !important;
}

.goals-input:focus,
.filters-inline input:focus,
.filters-inline select:focus,
.table-filters input:focus,
.table-filters select:focus,
.module-inline-filter input:focus,
.module-inline-filter select:focus,
.settings-panel input:not([type="checkbox"]):not([type="color"]):focus,
.settings-panel select:focus,
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus,
.transaction-form input:focus,
.transaction-form select:focus,
.transaction-form textarea:focus {
  border-color: rgba(var(--user-accent-rgb), 0.52) !important;
  background-color: var(--user-field-focus) !important;
  box-shadow: 0 0 0 3px rgba(var(--user-accent-rgb), 0.12) !important;
}

.betting-cash-panel input#bettingWorkCashInput:focus,
.betting-cash-panel input.betting-balance-input:focus {
  border-color: rgba(var(--user-accent-rgb), 0.52) !important;
  background-color: var(--user-field-focus) !important;
  box-shadow: 0 0 0 3px rgba(var(--user-accent-rgb), 0.12) !important;
}

.settings-panel input:not([type="checkbox"]):not([type="color"]),
.settings-panel select,
.settings-module-list label,
.theme-color-field,
.theme-preview {
  border-color: rgba(var(--user-accent-rgb), 0.19);
}

.settings-module-list label,
.theme-color-field,
.theme-preview,
.theme-preset,
.settings-chip {
  background-color: var(--user-field-bg);
}

.settings-panel input:not([type="checkbox"]):not([type="color"]):focus,
.settings-panel select:focus {
  border-color: rgba(var(--user-accent-rgb), 0.52);
  box-shadow: 0 0 0 3px rgba(var(--user-accent-rgb), 0.12);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--user-accent);
}

/* Superfícies dos módulos: sempre derivadas da cor escolhida para o menu. */
#financeToolbarPanel,
#section-finance .panel,
#section-finance .stat-card,
#section-club365 .panel,
#section-club365 .stat-card,
#section-today .panel,
#section-today .stat-card,
#section-today .today-kpi-strip,
#section-automation .panel,
#section-automation .automation-summary-card,
#section-settings .panel,
.modal-card,
.modal-content,
.account-menu {
  border-color: rgba(var(--user-accent-rgb), 0.14);
  background: var(--dash-module-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 18px 44px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

#section-finance .finance-internal-tabs {
  border-color: rgba(var(--user-accent-rgb), 0.16);
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(var(--user-accent-rgb), 0.065),
      transparent 34%
    ),
    rgba(var(--user-menu-bg-rgb), 0.9);
}

#section-finance .goal-progress-card,
#section-finance .balance-location-card,
#section-finance .invoice-summary-grid article,
#section-finance .invoice-item,
#section-finance .expense-budget-editor,
#section-finance .expense-control-overview,
#section-finance .expense-control-kpi,
#section-finance .expense-category-add-form,
#section-finance .expense-category-row,
#section-finance .temporal-kpi-grid,
#section-finance .temporal-selected-day-card,
#section-finance .temporal-chart-wrapper,
#section-finance .category-chart-wrapper,
#section-finance .category-ranking-item,
#section-finance .category-ranking-empty,
#section-club365 .club365-week-label,
#section-club365 .club365-account-numbers > div,
#section-club365 .club365-tier-status span,
#section-club365 .club365-result-grid > div,
#section-club365 .club365-entry-item,
#section-automation .automation-alert-item,
#section-automation .recurring-template-card,
#section-automation .recurring-upcoming-item,
#section-automation .backup-status-panel,
#section-automation .backup-point-item,
#section-automation .publication-readiness-panel,
#section-automation .invite-admin-panel,
#section-automation .user-admin-panel,
#section-automation .audit-panel,
#section-settings .settings-module-list label,
#section-settings .theme-color-field,
#section-settings .theme-preview,
#section-settings .settings-chip {
  border-color: rgba(var(--user-accent-rgb), 0.13);
  background: var(--dash-module-surface-raised);
}

#section-automation .automation-tabs,
#section-automation .automation-tab {
  border-color: rgba(var(--user-accent-rgb), 0.16);
}

#section-automation .automation-tab.active {
  border-color: rgba(var(--user-accent-rgb), 0.42);
  background: rgba(var(--user-accent-rgb), 0.12);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--user-accent);
}

#section-automation input:not([type="checkbox"]):not([type="radio"]),
#section-automation select,
#section-automation textarea,
#section-settings input:not([type="checkbox"]):not([type="color"]),
#section-settings select,
#section-settings textarea {
  border-color: rgba(var(--user-accent-rgb), 0.18);
  background-color: var(--user-field-bg);
}

#section-automation input:not([type="checkbox"]):not([type="radio"]):focus,
#section-automation select:focus,
#section-automation textarea:focus,
#section-settings input:not([type="checkbox"]):not([type="color"]):focus,
#section-settings select:focus,
#section-settings textarea:focus {
  border-color: rgba(var(--user-accent-rgb), 0.52);
  background-color: var(--user-field-focus);
  box-shadow: 0 0 0 3px rgba(var(--user-accent-rgb), 0.12);
}

#section-finance .monthly-closing-summary {
  gap: 10px;
  border: 0;
}

#section-finance .monthly-closing-summary article {
  padding: 16px;
  border: 1px solid rgba(var(--user-accent-rgb), 0.13);
  border-radius: 13px;
  background: var(--dash-module-surface-raised);
}

#section-club365 .club365-account-card.club365-account-complete {
  border-color: rgba(0, 255, 156, 0.25);
}

#section-club365 .club365-account-form input,
#section-club365 .club365-account-form select,
#section-club365 .club365-entry-form input {
  border-color: rgba(var(--user-accent-rgb), 0.18);
  background-color: var(--user-field-bg);
}

#section-club365 .club365-account-form input:focus,
#section-club365 .club365-account-form select:focus,
#section-club365 .club365-entry-form input:focus {
  border-color: rgba(var(--user-accent-rgb), 0.52);
  background-color: var(--user-field-focus);
  box-shadow: 0 0 0 3px rgba(var(--user-accent-rgb), 0.12);
}

/* Lista financeira: linhas independentes, hierarquia e ações sem ruído. */
#transactions-section {
  overflow: hidden;
}

#transactions-section .transaction-panel-header {
  align-items: center;
}

.transaction-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(var(--user-accent-rgb), 0.18);
  border-radius: 999px;
  background: rgba(var(--user-accent-rgb), 0.07);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

#transactions-section .table-filters-extended {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.35fr)
    minmax(160px, 0.7fr)
    minmax(210px, 1fr)
    auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid rgba(var(--user-accent-rgb), 0.12);
  border-radius: 16px;
  background: var(--dash-module-surface-raised);
}

#transactions-section .table-filters-extended > * {
  width: 100%;
  min-width: 0;
}

#transactions-section .selection-summary {
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid rgba(var(--user-accent-rgb), 0.2);
  border-radius: 12px;
  background: rgba(var(--user-accent-rgb), 0.075);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

#transactions-section .table-wrapper {
  overflow-x: auto;
  border-radius: 0;
  background: transparent;
  scrollbar-color: rgba(var(--user-accent-rgb), 0.28) transparent;
}

#transactions-section .transaction-type-badge,
#transactions-section .transaction-category,
#transactions-section .transaction-id {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

#transactions-section .transaction-id {
  color: var(--muted-2);
}

#transactions-section .transaction-type-badge {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid transparent;
}

#transactions-section .transaction-type-badge.type-income {
  border-color: rgba(0, 255, 156, 0.2);
  background: rgba(0, 255, 156, 0.07);
  color: var(--green);
}

#transactions-section .transaction-type-badge.type-expense {
  border-color: rgba(255, 95, 122, 0.2);
  background: rgba(255, 95, 122, 0.07);
  color: var(--red);
}

#transactions-section .transaction-category {
  min-height: 27px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(var(--user-accent-rgb), 0.14);
  background: rgba(var(--user-accent-rgb), 0.05);
  color: color-mix(in srgb, var(--user-accent) 38%, var(--text));
  text-overflow: ellipsis;
}

#transactions-section .transaction-description-cell strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#transactions-section .transaction-amount-cell,
#transactions-section .transaction-date-cell {
  white-space: nowrap;
}

#transactions-section .transaction-amount-cell strong {
  font-size: 0.84rem;
}

#transactions-section .transaction-amount-cell.type-income strong {
  color: var(--green);
}

#transactions-section .transaction-amount-cell.type-expense strong {
  color: var(--red);
}

#transactions-section .transaction-date-cell time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

#transactions-section .action-cell {
  white-space: nowrap;
  text-align: right;
}

#transactions-section .action-cell .edit-button,
#transactions-section .action-cell .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 0 0 6px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 750;
}

#transactions-section .action-cell .edit-button {
  border: 1px solid rgba(var(--user-accent-rgb), 0.2);
  background: rgba(var(--user-accent-rgb), 0.07);
  color: var(--text);
}

#transactions-section .action-cell .edit-button:hover {
  border-color: rgba(var(--user-accent-rgb), 0.38);
  background: rgba(var(--user-accent-rgb), 0.12);
}

#transactions-section .action-cell .danger-button {
  border-color: rgba(255, 95, 122, 0.18);
  background: rgba(255, 95, 122, 0.07);
}

#transactions-section .pagination-bar {
  padding-top: 2px;
}

#transactions-section .pagination-button {
  min-height: 42px;
}

@media (min-width: 861px) {
  #transactions-section table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 9px;
  }

  #transactions-section .transaction-col-select {
    width: 42px;
  }

  #transactions-section .transaction-col-id {
    width: 62px;
  }

  #transactions-section .transaction-col-type {
    width: 104px;
  }

  #transactions-section .transaction-col-category {
    width: 150px;
  }

  #transactions-section .transaction-col-description {
    width: auto;
  }

  #transactions-section .transaction-col-amount {
    width: 126px;
  }

  #transactions-section .transaction-col-date {
    width: 112px;
  }

  #transactions-section .transaction-col-actions {
    width: 166px;
  }

  #transactions-section thead th {
    padding: 0 11px 6px;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
  }

  #transactions-section thead th:nth-last-child(-n + 3) {
    text-align: right;
  }

  #transactions-section tbody td {
    padding: 13px 11px;
    border-top: 1px solid rgba(var(--user-accent-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--user-accent-rgb), 0.1);
    background: var(--dash-module-surface-raised);
    vertical-align: middle;
    transition:
      border-color 0.18s ease,
      background 0.18s ease;
  }

  #transactions-section tbody td:first-child {
    border-left: 1px solid rgba(var(--user-accent-rgb), 0.1);
    border-radius: 13px 0 0 13px;
    text-align: center;
  }

  #transactions-section tbody td:last-child {
    border-right: 1px solid rgba(var(--user-accent-rgb), 0.1);
    border-radius: 0 13px 13px 0;
  }

  #transactions-section tbody tr:hover td,
  #transactions-section tbody tr.selected-row td {
    border-color: rgba(var(--user-accent-rgb), 0.28);
    background:
      linear-gradient(
        180deg,
        rgba(var(--user-accent-rgb), 0.075),
        rgba(var(--user-accent-rgb), 0.025)
      ),
      rgba(var(--user-menu-bg-rgb), 0.84);
  }

  #transactions-section tbody tr.selected-row td:first-child {
    box-shadow: inset 3px 0 0 var(--user-accent);
  }
}

@media (min-width: 861px) and (max-width: 1150px) {
  #transactions-section .table-filters-extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #transactions-section .transaction-panel-header {
    align-items: flex-start;
  }

  #transactions-section colgroup {
    display: none;
  }

  #transactions-section tbody tr {
    background: var(--dash-module-surface-raised) !important;
  }

  #transactions-section .transaction-description-cell strong {
    -webkit-line-clamp: 4;
  }

  #transactions-section .transaction-category {
    white-space: normal;
  }
}

.mobile-account-button {
  border-color: rgba(var(--user-accent-rgb), 0.38);
  background: var(--user-menu-bg);
  color: color-mix(in srgb, var(--user-accent) 72%, white);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .brand-title,
  .hero-badge,
  .panel-eyebrow,
  .field-hint,
  .mobile-account-button {
    color: var(--user-accent-light);
  }
}


/* Render stability: fundos opacos/fallback e menos camadas de composicao durante scroll. */
html,
body,
.app-shell {
  background-color: var(--user-canvas-start) !important;
}

.sidebar,
#financeToolbarPanel,
#section-finance .panel,
#section-finance .stat-card,
#section-club365 .panel,
#section-club365 .stat-card,
#section-today .panel,
#section-today .stat-card,
#section-today .today-kpi-strip,
#section-automation .panel,
#section-automation .automation-summary-card,
#section-settings .panel,
.modal-card,
.modal-content,
.account-menu {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 3.0.30 · Campos nativos e autofill sempre obedecem ao tema escuro. */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
  color-scheme: dark;
  background-color: var(--user-field-bg) !important;
  color: var(--text) !important;
  border-color: rgba(var(--user-accent-rgb), 0.18) !important;
  caret-color: var(--text);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="hidden"])::placeholder,
textarea::placeholder {
  color: var(--muted-2) !important;
  opacity: 1;
}
select option,
select optgroup {
  color: var(--text);
  background: var(--user-field-bg);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--user-field-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--user-field-bg) inset !important;
  border-color: rgba(var(--user-accent-rgb), 0.28) !important;
  transition: background-color 9999s ease-out 0s;
}
input:autofill,
textarea:autofill,
select:autofill {
  background: var(--user-field-bg) !important;
  color: var(--text) !important;
}

