/* Variação clara sobre o layout original; o tema escuro permanece como padrão. */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.theme-toggle:hover { background: #ffffff0c; border-color: #64717b; }
.theme-toggle:focus-visible { outline: 2px solid #b78b00; outline-offset: 3px; }
.theme-icon-dark, [data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: inline-flex; }
.auth-theme-control { position: absolute; top: 16px; right: 20px; z-index: 1; }
.account-header > .theme-toggle { margin-left: auto; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f7; --side: #ffffff; --panel: #ffffff; --panel-raised: #eef1f4;
  --line: #cbd2da; --text: #202c38; --muted: #536170;
  --gold: #ffcf24; --gold-hover: #ffdc59; --green: #126545; --red: #aa2438;
  --color-bg: var(--bg); --color-panel: var(--panel); --color-input: #ffffff;
  --color-border: #7e8d9a; --color-text: var(--text); --color-muted: var(--muted);
  --color-primary: #795800; --color-primary-hover: #584000;
  --color-danger: var(--red); --color-success: var(--green); --accent-text: #795800;
  background: var(--bg); color: var(--text);
}
:root[data-theme="light"] body { color: var(--text); background: var(--bg); }
:root[data-theme="light"] .app-shell { --panel: #ffffff; --panel-raised: #eef1f4; background: var(--bg); }
:root[data-theme="light"] .app-shell::before { opacity: .16; }
:root[data-theme="light"] .app-shell::after { opacity: .08; }
:root[data-theme="light"] :is(.app-shell > .sidebar, .app-shell .topbar, .account-header) { background: #ffffff; border-color: var(--line); }
:root[data-theme="light"] :is(.sidebar .brand, .nav-group, .account-tabs, .account-panel, .account-identity, .account-footnote) { border-color: var(--line); }
:root[data-theme="light"] :is(.nav-heading, .nav-soon, .page-footer, .page-footer button) { color: var(--muted); }
:root[data-theme="light"] .nav-link { color: var(--text); }
:root[data-theme="light"] .nav-link:hover { background: #eef1f4; color: var(--text); }
:root[data-theme="light"] .nav-link.active { background: var(--gold); color: #202411; }
:root[data-theme="light"] :is(.company-switch, .global-search, .icon-btn.boxed) { background: #f3f5f7; border-color: var(--line); color: var(--text); }
:root[data-theme="light"] .global-search kbd { background: #e2e7ec; color: var(--text); }
:root[data-theme="light"] :is(.icon-btn:hover, .theme-toggle:hover, .password-toggle:hover) { background: #e9edf1; color: var(--text); border-color: var(--line); }
:root[data-theme="light"] :is(.app-shell .panel, .app-shell .admin-editor, .app-shell .access-card, .context-panel, .app-shell .permission-group, .app-shell .access-company-bar) { background: #ffffff; border-color: var(--line); }
:root[data-theme="light"] :is(.app-shell .access-card:hover, .stat:hover) { background: #fffdf4; border-color: #9a7a14; }
:root[data-theme="light"] :is(.btn, .button) { background: #ffffff; border-color: #a4afba; color: var(--text); }
:root[data-theme="light"] :is(.btn:hover, .button:hover) { background: #e9edf1; border-color: #778795; color: var(--text); }
:root[data-theme="light"] :is(.btn-primary, .button--primary, .page-number.active) { background: var(--gold); border-color: #b78b00; color: #202411; }
:root[data-theme="light"] :is(.btn-primary:hover, .button--primary:hover) { background: var(--gold-hover); color: #202411; }
:root[data-theme="light"] :is(.text-btn, .btn-gold, .gold, .tab.active, .brand-words b, .priority > .icon, .sync-status .icon, .company-switch > .icon:first-child) { color: var(--accent-text); }
:root[data-theme="light"] a:hover { color: var(--accent-text); }
:root[data-theme="light"] :is(.btn-primary:hover, .nav-link.active:hover) { color: #202411; }
:root[data-theme="light"] :is(.field > span, .field > label, .form-field label, .empty h3, .table .name-link, .sync-status strong, .profile-label, .account-readonly strong, .review-summary strong) { color: var(--text); }
:root[data-theme="light"] :is(.input, select, textarea, .form-field input:not([type=checkbox]):not([type=radio])) { background: #ffffff; border-color: #7e8d9a; color: var(--text); }
:root[data-theme="light"] :is(input, textarea)::placeholder { color: #64717f; }
:root[data-theme="light"] :is(input, select, textarea):is([readonly], :disabled) { background: #eef1f4; color: #536170; }
:root[data-theme="light"] :is(input, select, textarea)[aria-invalid=true] { border-color: var(--red); }
:root[data-theme="light"] :is(button, a, input, select, textarea):focus-visible { outline-color: #866400; }
:root[data-theme="light"] :is(input[type=checkbox], input[type=radio]) { accent-color: #856200; }
:root[data-theme="light"] :is(.badge, .status, .nav-count) { color: #273543; background: #e2e7ec; }
:root[data-theme="light"] .badge.stage { color: #202c38; background: color-mix(in srgb, var(--accent) 15%, #ffffff); border-color: color-mix(in srgb, var(--accent) 60%, #536170); }
:root[data-theme="light"] :is(.status.active, .allowed) { color: #126545; background: #e6f5eb; }
:root[data-theme="light"] :is(.status.pending, .exception-note, .warning-text) { color: #765300; background: #fff5d4; }
:root[data-theme="light"] :is(.status.inactive, .denied) { color: #536170; }
:root[data-theme="light"] .stat-icon { color: color-mix(in srgb, var(--accent, #795800) 50%, #273543); background: #eef1f4; }
:root[data-theme="light"] .app-shell .kanban-column { background: #e9eef2; border-right-color: var(--line); border-bottom-color: var(--line); border-left-color: var(--line); }
:root[data-theme="light"] .app-shell .lead-card { background: #ffffff; border-color: #bac5ce; color: var(--text); }
:root[data-theme="light"] .app-shell .lead-card:hover { background: #fffdf4; border-color: #697d8d; }
:root[data-theme="light"] .lead-card-name { color: var(--text); }
:root[data-theme="light"] .column-title .count { background: color-mix(in srgb, var(--accent) 20%, #ffffff); color: #202c38; }
:root[data-theme="light"] :is(.column-value, .lead-card-id, .load-more) { color: #536170; }
:root[data-theme="light"] .load-more { border-color: #8696a3; }
@supports not selector(::-webkit-scrollbar) {
  :root[data-theme="light"] :is(.kanban, .kanban-column > .lead-cards) { scrollbar-color: #8798a6 #e9eef2; }
}
:root[data-theme="light"] :is(.kanban, .lead-cards)::-webkit-scrollbar-track { background: #e9eef2; }
:root[data-theme="light"] :is(.kanban, .lead-cards)::-webkit-scrollbar-thumb { background: #8798a6; }
:root[data-theme="light"] .table th { background: #edf1f4; color: #344352; }
:root[data-theme="light"] :is(.table th, .table td) { border-color: var(--line); }
:root[data-theme="light"] .table tbody tr:hover { background: #f5f7f9; }
:root[data-theme="light"] :is(.table td .small, .person-cell .small, .detail-grid dt, .account-readonly .email, .teams-copy, .context-panel > p, .context-steps p, .review-summary p, .access-preview p, .counter-line) { color: var(--muted); }
:root[data-theme="light"] :is(.users-panel-header > span, .team-options, .company-option, .review-summary, .access-preview) { color: var(--text); background: #f3f5f7; border-color: var(--line); }
:root[data-theme="light"] :is(.team-option, .context-bottom) { border-color: var(--line); }
:root[data-theme="light"] .team-option input:checked + span { color: var(--accent-text); }
:root[data-theme="light"] .context-steps li { color: var(--text); border-color: var(--line); }
:root[data-theme="light"] :is(.editor-company, .context-icon, .context-steps li::before, .bulkbar, .company-option[aria-pressed=true]) { background: #fff6d9; border-color: #b19336; color: #765300; }
:root[data-theme="light"] .progress-track { background: #dce3e9; }
:root[data-theme="light"] dialog { background: #ffffff; color: var(--text); border-color: #98a7b4; box-shadow: 0 18px 64px #23344733; }
:root[data-theme="light"] dialog::backdrop { background: #27354366; }
:root[data-theme="light"] :is(.detail-list .icon, .security-guide .icon) { color: #536170; }
:root[data-theme="light"] :is(.form-errors, .notice.error, .notice--error, .validation-summary) { color: #aa2438; background: #fff1f2; border-color: #cb7a88; }
:root[data-theme="light"] :is(.errorlist, .form-error, .field-error, .blocked) { color: #aa2438; }
:root[data-theme="light"] :is(.notice.success, .notice--success) { color: #126545; background: #eaf7ee; border-color: #78ae8b; }
:root[data-theme="light"] .notice.warning { color: #765300; background: #fff6d9; border-color: #b19336; }
:root[data-theme="light"] .notice:not(.success):not(.error):not(.warning):not(.notice--error):not(.notice--success) { background: #edf3fa; color: #344f69; border-color: #a0b5ca; }
:root[data-theme="light"] .auth { background-image: linear-gradient(90deg, #f5f6f9b8, #f9f8f199), url("../img/auth-background.04c027640c48.png"); }
:root[data-theme="light"] .auth-card { background: #ffffffed; border-color: #c4c9cf; box-shadow: 0 20px 65px #26384a1a; }
:root[data-theme="light"] :is(.auth-tagline, .auth-intro > p:not(.auth-tagline), .auth-footer) { color: var(--text); }
:root[data-theme="light"] :is(.auth-benefits li, .auth-support) { border-color: var(--line); }
:root[data-theme="light"] .auth-line { background: var(--gold); }
:root[data-theme="light"] .account-avatar { color: #ffffff; }
:root[data-theme="light"] .senne-mark { mix-blend-mode: multiply; }
:root[data-theme="light"] :is(.conversation-copy small, .conversation-meta, .message-meta, .visually-muted) { color: var(--muted); }
:root[data-theme="light"] .conversation-item:hover { background: var(--overlay-hover); color: var(--text); }
@media (max-width: 800px) { .auth { padding-top: 76px; } }
@media print { .theme-toggle, .auth-theme-control { display: none; } }
