/* Comutator compact, in bara de sus. Siglele oficiale isi pastreaza culorile. */
.ase-topbar-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.ase-topbar .ase-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:7px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:transparent;color:#fff;flex-shrink:0}
.ase-topbar .ase-theme-toggle:hover{background:rgba(255,255,255,.15);border-color:#fff}
.ase-topbar .ase-theme-toggle:focus-visible{outline-color:#fff;outline-offset:3px}
.ase-theme-toggle[hidden]{display:none!important}
.ase-theme-toggle svg{width:20px;height:20px;flex:0 0 20px}
.ase-theme-sun{display:none}html[data-theme="dark"] .ase-theme-sun{display:block}html[data-theme="dark"] .ase-theme-moon{display:none}
@media(max-width:620px){.ase-topbar-actions{gap:10px}}

@media screen {
    html[data-theme="dark"]{color-scheme:dark;--ase-text:#e3e8f1;--ase-muted:#b3bfd0;--ase-border:#39475d;--ase-bg:#141b26;--ase-blue:#a5c0ff;--ase-blue-dark:#d0deff;--ase-success:#7cdec5;--ase-error:#ffacc9;--ase-surface:#1d2736;--ase-surface-alt:#263246}
    html[data-theme="dark"] body{background:var(--ase-bg);color:var(--ase-text)}
    html[data-theme="dark"] :is(.ase-masthead,.ase-sidebar,.ase-footer,.content,.panel,.ase-entry-request,.ase-entry-staff,.sumar-card,.statistica,.lista-alocare,.alocare-card,.cerere,.camera-card,.solicitare-card,.resend-card,.reservation-room,.grup-ocupare,.grup-form fieldset,.grup-card,.ai-chat,.ai-msg-bot,.ai-chat-form,.ai-chat-status,.ase-cookie-notice){background:var(--ase-surface);color:var(--ase-text);border-color:var(--ase-border)}
    html[data-theme="dark"] :is(.ase-account-mark,.ase-sidebar a.active,.ase-sidebar a:hover,.ase-nav-submenu summary:hover,.solicitare-detalii,.companion-detail,.ai-result,.information,.resend-search,.resend-card-header,.resend-empty,.room-applicant,.grup-form,.grup-type,.grup-occupancy-card,.grup-card summary,.ai-chat-messages){background:var(--ase-surface-alt);color:var(--ase-text)}
    html[data-theme="dark"] .ase-topbar,html[data-theme="dark"] .ase-login-intro,html[data-theme="dark"] .ai-chat-head{background:#203b79;color:#fff}
    html[data-theme="dark"] .ase-brand{background:#fff}
    html[data-theme="dark"] .ase-nav-toggle{background:var(--ase-surface);color:var(--ase-text)}
    html[data-theme="dark"] :is(button,.button,input[type="submit"],input[type="button"]){background:#355bbb;border-color:#6485d8;color:#fff}
    html[data-theme="dark"] :is(button,.button,input[type="submit"],input[type="button"]):hover{background:#426aca;border-color:#a5c0ff;color:#fff}
    html[data-theme="dark"] :is(.button.alt,.button.secondary,button.secondary,.remove-companion,.remove-person,.finance-pdf-button,.paginare button){background:var(--ase-surface);color:var(--ase-blue);border-color:var(--ase-border)}
    html[data-theme="dark"] .paginare button.activ{background:#355bbb;color:#fff}
    html[data-theme="dark"] .solicitare-header{background:var(--ase-surface)!important;color:var(--ase-text)!important}
    html[data-theme="dark"] .solicitare-header:hover{background:var(--ase-surface-alt)!important}
    html[data-theme="dark"] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),select,textarea){background:#172130;color:var(--ase-text);border-color:#667791}
    html[data-theme="dark"] input[readonly]{background:var(--ase-surface-alt)!important;color:var(--ase-muted)!important}
    html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a6b3c7;opacity:1}
    html[data-theme="dark"] .resend-card-details .resend-email input.is-editing{background:#172130!important}
    html[data-theme="dark"] table th{background:var(--ase-surface-alt);color:var(--ase-text)}
    html[data-theme="dark"] table tbody tr:nth-child(even){background:#202d3f}
    html[data-theme="dark"] :is(.notice,.mesaj){background:#253653;color:var(--ase-text)}
    html[data-theme="dark"] :is(.error,.eroare,.mesaj-eroare,.ai-error,.ai-msg-error){background:#492639;color:#ffd1e1}
    html[data-theme="dark"] :is(.success,.ok,.mesaj-ok,.status-achitat,.alocata){background:#173c36;color:#9debd7}
    html[data-theme="dark"] :is(.status-no,.status-neachitat,.resend-card-footer .resend-invalid-email){color:#ffb3b3}
    html[data-theme="dark"] .ai-msg-user{background:#355bbb;color:#fff}
    html[data-theme="dark"] .ai-global-button{background:#355bbb!important;color:#fff!important}
    html[data-theme="dark"] .ase-footer .ase-cookie-info{background:transparent;color:var(--ase-blue);border:0}
    html[data-theme="dark"] .ase-topbar .ase-theme-toggle{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
    html[data-theme="dark"] .ase-topbar .ase-theme-toggle:hover{background:rgba(255,255,255,.15)}
    html[data-theme="dark"] .ase-entry-staff-form .ase-login-submit{background:#fff!important;color:#1f1f1f!important;border-color:#747775!important}
    html[data-theme="dark"] .ase-skip{background:var(--ase-surface);color:var(--ase-blue)}
}
@media print{.ase-theme-toggle{display:none!important}}
