/* ALVORA — admin language and theme */
.admin-preferences{display:inline-flex;align-items:center;gap:7px;flex-shrink:0}
.admin-preferences .language-switch{display:flex;align-items:center;padding:3px;gap:2px;border-radius:7px;border:1px solid var(--border);background:#f0f2ed}
.admin-preferences .language-switch button{border:0;background:transparent;color:#728074;font:700 11px var(--sans);border-radius:4px;padding:6px 8px;min-width:35px;min-height:30px;cursor:pointer}
.admin-preferences .language-switch button.selected{background:var(--ink);color:white}
.admin-preferences .theme-switch{width:38px;height:38px;border:1px solid var(--border);background:#f0f2ed;color:var(--ink);border-radius:7px;font-size:21px;line-height:1;display:grid;place-items:center}
.admin-preferences .theme-switch .sun{display:none}
:root[data-theme="dark"] .admin-preferences .theme-switch .sun{display:block}
:root[data-theme="dark"] .admin-preferences .theme-switch .moon{display:none}
.login-box{position:relative}
.login-box>.admin-preferences{position:absolute;top:30px;left:clamp(24px,12vw,180px)}
.dashboard-header-actions{gap:18px}
@media(max-width:640px){.login-box>.admin-preferences{left:30px;top:25px}.dashboard-header-actions{gap:8px}.admin-preferences .language-switch button{min-width:27px;padding:4px;font-size:10px}.admin-preferences .theme-switch{width:33px;height:33px}.dashboard-header .brand small{display:none}.logout{font-size:11px;padding:7px}}
:root[data-theme="dark"]{color-scheme:dark;--ink:#dfe9df;--forest:#d3dfd1;--cream:#101b16;--border:#394d40;--gold:#dfba85}
:root[data-theme="dark"] body{background:#111c17;color:#e5eee5}
:root[data-theme="dark"] .brand{color:#e4eee3}
:root[data-theme="dark"] .brand small{color:#c0cfc1}
:root[data-theme="dark"] .login-box>p,:root[data-theme="dark"] .back,:root[data-theme="dark"] .dashboard-intro p:not(.eyebrow){color:#b9cbb9}
:root[data-theme="dark"] .login-form input,:root[data-theme="dark"] .search-bar input,:root[data-theme="dark"] .search-bar select,:root[data-theme="dark"] .status-form select{background:#0d1b13;color:#e8f1e8;border-color:#506958}
:root[data-theme="dark"] .primary,:root[data-theme="dark"] .small-primary{background:#dab785;color:#14231b}
:root[data-theme="dark"] .primary:hover,:root[data-theme="dark"] .small-primary:hover{background:#f1d3a1}
:root[data-theme="dark"] .dashboard-header,:root[data-theme="dark"] .metric,:root[data-theme="dark"] .requests{background:#1a2921;border-color:#3c5141}
:root[data-theme="dark"] .metric strong,:root[data-theme="dark"] td strong{color:#e8f1e7}
:root[data-theme="dark"] .metric span,:root[data-theme="dark"] .metric small,:root[data-theme="dark"] td small{color:#bdcbbb}
:root[data-theme="dark"] .requests-title h2 span{color:#b0c0ae}
:root[data-theme="dark"] th{background:#233629;color:#bbceba}
:root[data-theme="dark"] td{border-color:#35493b}
:root[data-theme="dark"] .email{color:#abd8bc}
:root[data-theme="dark"] .logout{color:#e6eee4;border-color:#546d58}
:root[data-theme="dark"] .logout:hover,:root[data-theme="dark"] .filter-button{background:#334c39;color:#e9f2e7}
:root[data-theme="dark"] .clear-filter,:root[data-theme="dark"] .lead-details summary,:root[data-theme="dark"] .empty-state a{color:#c6dfc2}
:root[data-theme="dark"] .lead-detail-box{background:#101e16;border-color:#4b6350}
:root[data-theme="dark"] .lead-detail-box .message{color:#d2e0d0}
:root[data-theme="dark"] .status-novo{background:#493b28;color:#f2cf8d}
:root[data-theme="dark"] .status-contactado{background:#263f55;color:#c3e4fb}
:root[data-theme="dark"] .status-concluido{background:#224633;color:#b3e8c1}
:root[data-theme="dark"] .status-arquivado{background:#344037;color:#d1d9d1}
:root[data-theme="dark"] .alert.warn{background:#4d3c25;color:#fae2b6;border-color:#deac6b}
:root[data-theme="dark"] .alert.success{background:#224633;color:#c1f2c9;border-color:#5ba270}
:root[data-theme="dark"] .dashboard-disclaimer,:root[data-theme="dark"] .empty-state p{color:#b2c4b1}
:root[data-theme="dark"] .admin-preferences .language-switch,:root[data-theme="dark"] .admin-preferences .theme-switch{background:#192b20;border-color:#57705a;color:#e4eee5}
:root[data-theme="dark"] .admin-preferences .language-switch button{color:#c0d0bc}
:root[data-theme="dark"] .admin-preferences .language-switch button.selected{background:#d9b786;color:#18261c}
:root[data-theme="dark"] .art-label{color:#f2dfbc}

/* Upload & go: admin password self-service */
.security-panel{margin:0 0 24px;padding:16px 22px;border:1px solid var(--border,#c8cec8);border-radius:12px;background:var(--surface,#fff);color:inherit}
.security-panel summary{cursor:pointer;font-size:13px;font-weight:700;letter-spacing:.01em}
.security-panel .password-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;align-items:end;margin-top:22px}
.security-panel label{font-size:12px;font-weight:600}
.security-panel input{width:100%;min-width:0;border:1px solid #a8ada6;border-radius:6px;padding:11px 12px;background:var(--input-bg,#fff);color:inherit}
.security-panel button{grid-column:1/-1;justify-self:start;margin-top:9px}
@media(max-width:750px){.security-panel .password-form{grid-template-columns:1fr}.security-panel button{grid-column:auto}}
html[data-theme="dark"] .security-panel{background:#1c2b29;border-color:#435650;color:#f6f4ef}html[data-theme="dark"] .security-panel input{background:#263a37;border-color:#50645f;color:#fff}
