﻿/* Aano AI branded light/dark modes. This stylesheet loads last. */
:root[data-aano-color="light"] {color-scheme:light;--bg:#f7faff!important;--panel:#fff!important;--text:#193352!important;--muted:#65758e!important;--line:#dfe8f5!important;--accent:#276ed3!important;--aano-focus:#5597f4;--aano-soft:#eef6ff;--aano-ink:#193352;--aano-stroke:#dce8f8;}
:root[data-aano-color="dark"] {color-scheme:dark;--bg:#0c1524!important;--panel:#152337!important;--text:#eaf2ff!important;--muted:#adbed4!important;--line:#35465e!important;--accent:#75adff!important;--aano-focus:#90bfff;--aano-soft:#1b304e;--aano-ink:#eaf2ff;--aano-stroke:#35465e;}
:root[data-aano-color="dark"] body,:root[data-aano-color="dark"] main,:root[data-aano-color="dark"] aside,:root[data-aano-color="dark"] .shell,:root[data-aano-color="dark"] .top-header,:root[data-aano-color="dark"] .composer-wrap{color:var(--text)!important;background:var(--bg)!important;}
:root[data-aano-color="dark"] .composer,:root[data-aano-color="dark"] .settings-content,:root[data-aano-color="dark"] .get-app-dropdown,:root[data-aano-color="dark"] .panel,:root[data-aano-color="dark"] .card,:root[data-aano-color="dark"] .auth-card,:root[data-aano-color="dark"] .message.user,:root[data-aano-color="dark"] .modal,:root[data-aano-color="dark"] .toolbar{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;}
:root[data-aano-color="dark"] button,:root[data-aano-color="dark"] input,:root[data-aano-color="dark"] select,:root[data-aano-color="dark"] textarea,:root[data-aano-color="dark"] summary{color:var(--text);border-color:var(--line);} 
:root[data-aano-color="dark"] input,:root[data-aano-color="dark"] select,:root[data-aano-color="dark"] textarea{background:var(--panel)!important;color:var(--text)!important;}
:root[data-aano-color="dark"] .primary{background:#276ed3!important;color:#fff!important;}
:root[data-aano-color="dark"] .mark img,:root[data-aano-color="dark"] .orb img{background:transparent!important;filter:drop-shadow(0 0 5px rgba(117,173,255,.22));}
.aano-theme-toggle{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;}
.aano-theme-toggle:focus-visible{outline:2px solid var(--aano-focus);outline-offset:2px}
@media(max-width:560px){.aano-theme-toggle{padding:7px;font-size:12px}.aano-theme-toggle span{display:none}}
/* Do not show legacy prompt library controls even with an older cached JS asset. */
#aanoQuickTools,#aanoPromptTemplates{display:none!important}


/* AANO THEME CONSISTENCY FIX — appended after legacy hard-coded declarations.
   Restrict changes to palettes; do not change click/voice/auth behavior. */
:root[data-aano-color="light"]{
 --aano-page:#f8fbff;--aano-sidebar:#fff;--aano-control:#fff;--aano-control-hover:#edf4ff;
 --aano-active:#eaf2ff;--aano-active-text:#26599b;--aano-bubble:#e8f1ff;
 --aano-link:#245bb0;--aano-shadow:rgba(33,74,130,.11);--aano-code-inline:#edf2fa;
 --aano-secondary:#f4f8ff;--aano-welcome:#1d355b;--aano-inverse:#fff;
}
:root[data-aano-color="dark"]{
 --aano-page:#0c1524;--aano-sidebar:#101d2e;--aano-control:#1b2d43;--aano-control-hover:#28415e;
 --aano-active:#254267;--aano-active-text:#d9e9ff;--aano-bubble:#203650;
 --aano-link:#a9ccff;--aano-shadow:rgba(0,0,0,.27);--aano-code-inline:#283e57;
 --aano-secondary:#182a40;--aano-welcome:#f0f6ff;--aano-inverse:#fff;
}
:root[data-aano-color] body,
:root[data-aano-color] .shell,
:root[data-aano-color] .shell main,
:root[data-aano-color] main,
:root[data-aano-color] .composer-wrap,
:root[data-aano-color] #chatView{
 background:var(--aano-page)!important;color:var(--text)!important;
}
:root[data-aano-color] .shell>aside,
:root[data-aano-color] .top-header,
:root[data-aano-color] .profile,
:root[data-aano-color] .shell>aside .profile{
 background:var(--aano-sidebar)!important;color:var(--text)!important;border-color:var(--line)!important;
}
:root[data-aano-color] .auth-card,
:root[data-aano-color] .panel,
:root[data-aano-color] .card,
:root[data-aano-color] .settings-content,
:root[data-aano-color] .get-app-dropdown,
:root[data-aano-color] .toolbar,
:root[data-aano-color] .composer{
 background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;
}
:root[data-aano-color] .auth{background:color-mix(in srgb,var(--bg) 89%,transparent)!important;}
:root[data-aano-color] .boot-screen{background:var(--aano-page)!important;color:var(--text)!important;}
:root[data-aano-color] .welcome h1,
:root[data-aano-color] .header-name strong,
:root[data-aano-color] .brand,
:root[data-aano-color] .shell>aside .brand{
 color:var(--aano-welcome)!important;
}
:root[data-aano-color] .welcome>p,
:root[data-aano-color] .footnote,
:root[data-aano-color] .message-role,
:root[data-aano-color] .message.user strong,
:root[data-aano-color] .small,
:root[data-aano-color] label,
:root[data-aano-color] .profile span{color:var(--muted)!important;}
:root[data-aano-color] .message-body,
:root[data-aano-color] .message-body strong,
:root[data-aano-color] .message.assistant .message-body{
 color:var(--text)!important;
}
:root[data-aano-color] .message.user{
 background:var(--aano-bubble)!important;color:var(--text)!important;
}
:root[data-aano-color] .message{border-color:var(--line)!important;}
:root[data-aano-color] button:not(.primary):not(#send):not(.code-bar button):not(.nav):not(.chat-open):not(.pin-toggle),
:root[data-aano-color] .get-app-menu>summary,
:root[data-aano-color] .settings-popover>summary,
:root[data-aano-color] .aano-theme-toggle{
 background:var(--aano-control)!important;color:var(--text)!important;border-color:var(--line)!important;
}
:root[data-aano-color] button:not(.primary):not(#send):hover,
:root[data-aano-color] .get-app-menu>summary:hover,
:root[data-aano-color] .settings-popover>summary:hover{
 background:var(--aano-control-hover)!important;
}
:root[data-aano-color] .nav,
:root[data-aano-color] .history button,
:root[data-aano-color] .chat-open,
:root[data-aano-color] .pin-toggle{
 color:var(--muted)!important;background:transparent!important;
}
:root[data-aano-color] .nav.active,
:root[data-aano-color] .history button.selected{
 color:var(--aano-active-text)!important;background:var(--aano-active)!important;
}
:root[data-aano-color] .nav:hover,
:root[data-aano-color] .history button:hover,
:root[data-aano-color] .chat-history-row:hover{
 background:var(--aano-control-hover)!important;
}
:root[data-aano-color] .primary,
:root[data-aano-color] #send,
:root[data-aano-color] .composer-bottom #send{
 background:#276ed3!important;color:#fff!important;border-color:#276ed3!important;
}
:root[data-aano-color] .shell>aside>.primary{
 background:var(--aano-active)!important;color:var(--aano-active-text)!important;border-color:var(--line)!important;
}
:root[data-aano-color] input,
:root[data-aano-color] textarea,
:root[data-aano-color] select,
:root[data-aano-color] .inline-model-selector select,
:root[data-aano-color] .toolbar select{
 background:var(--aano-control)!important;color:var(--text)!important;border-color:var(--line)!important;
}
:root[data-aano-color] input::placeholder,
:root[data-aano-color] textarea::placeholder{color:var(--muted)!important;opacity:1;}
:root[data-aano-color] .composer textarea{background:transparent!important;color:var(--text)!important;}
:root[data-aano-color] .composer-bottom button:not(.primary),
:root[data-aano-color] .file-button,
:root[data-aano-color] .message-actions button{color:var(--text)!important;}
:root[data-aano-color] .get-app-dropdown a,
:root[data-aano-color] .suggestions button,
:root[data-aano-color] .guest-status{
 background:var(--aano-secondary)!important;color:var(--text)!important;border-color:var(--line)!important;
}
:root[data-aano-color] .get-app-dropdown small,
:root[data-aano-color] .suggestions span{color:var(--muted)!important;}
:root[data-aano-color] a:not(.get-app-dropdown a){color:var(--aano-link);}
:root[data-aano-color] .message-body code:not(.code-block code){background:var(--aano-code-inline)!important;color:var(--text)!important;}
:root[data-aano-color] .message-body th{background:var(--aano-secondary)!important;color:var(--text)!important;}
:root[data-aano-color] .message.assistant .aano-sources{
 background:var(--aano-secondary)!important;border-color:var(--line)!important;
}
:root[data-aano-color] .message.assistant .aano-sources summary{color:var(--text)!important;}
/* Keep code fences dark and readable in both modes. */
:root[data-aano-color] .message.assistant .code-block,
:root[data-aano-color] .message.assistant .code-block pre{
 background:#101d2e!important;color:#e9f2ff!important;
}
:root[data-aano-color] .message.assistant .code-block code{color:#e9f2ff!important;background:transparent!important;}
:root[data-aano-color] .message.assistant .code-bar{background:#1e3149!important;color:#d7e4f7!important;}
:root[data-aano-color] .message.assistant .code-bar button{background:#344e6e!important;color:#fff!important;border-color:#607593!important;}
/* Preserve original icon image unchanged; ensure no white/green square behind it. */
:root[data-aano-color] .mark,
:root[data-aano-color] .welcome .orb,
:root[data-aano-color] #bootScreen .boot-logo{
 background:transparent!important;background-image:none!important;box-shadow:none!important;
}
:root[data-aano-color] .mark img.aano-logo,
:root[data-aano-color] .welcome .orb img.aano-logo,
:root[data-aano-color] #bootScreen .boot-logo img{filter:none!important;object-fit:contain!important;}
:root[data-aano-color] .composer{box-shadow:0 10px 32px var(--aano-shadow)!important;}
:root[data-aano-color] .settings-content,
:root[data-aano-color] .get-app-dropdown{box-shadow:0 15px 36px var(--aano-shadow)!important;}

/* AANO AI: Admin, Settings and Dark Mode readability */
:root[data-aano-color="dark"] #adminView h1,
:root[data-aano-color="dark"] .view h1,
:root[data-aano-color="dark"] .header-name,
:root[data-aano-color="dark"] .header-name strong,
:root[data-aano-color="dark"] .settings-content h3 {
  color: #f1f6ff !important;
}

:root[data-aano-color="dark"] .settings-content label {
  color: #c5d5eb !important;
}

:root[data-aano-color="dark"] .settings-content input,
:root[data-aano-color="dark"] .settings-content select,
:root[data-aano-color="dark"] .settings-content option {
  background: #213249 !important;
  color: #f2f7ff !important;
  border-color: #536986 !important;
}

:root[data-aano-color="dark"] .settings-content button,
:root[data-aano-color="dark"] #adminView button {
  background: #263b55 !important;
  color: #f1f6ff !important;
  border: 1px solid #536986 !important;
}

:root[data-aano-color="dark"] button:disabled {
  opacity: .65 !important;
  cursor: not-allowed;
}

:root[data-aano-color="dark"] #adminView td,
:root[data-aano-color="dark"] #adminView th,
:root[data-aano-color="dark"] #audit {
  color: #d9e7fb !important;
}

:root[data-aano-color="light"] .settings-content input,
:root[data-aano-color="light"] .settings-content select {
  background: #fff !important;
  color: #193352 !important;
}


/* AANO SETTINGS CONTRAST HOTFIX 20261024 */
/* Override legacy forced WebKit text fill and light-only native form styling. */
:root[data-aano-color="dark"] .settings-popover .settings-content .toolbar label {
  color: #d5e5fb !important;
  -webkit-text-fill-color: #d5e5fb !important;
  opacity: 1 !important;
}
:root[data-aano-color="dark"] .settings-popover .settings-content .toolbar select,
:root[data-aano-color="dark"] .settings-popover .settings-content .toolbar input {
  background-color: #22354e !important;
  color: #f7fbff !important;
  -webkit-text-fill-color: #f7fbff !important;
  border: 1px solid #7088a6 !important;
  color-scheme: dark !important;
  opacity: 1 !important;
}
:root[data-aano-color="dark"] .settings-popover .settings-content .toolbar select option,
:root[data-aano-color="dark"] .settings-popover .settings-content .toolbar select optgroup {
  background-color: #22354e !important;
  color: #f7fbff !important;
  -webkit-text-fill-color: #f7fbff !important;
  color-scheme: dark !important;
}
:root[data-aano-color="light"] .settings-popover .settings-content .toolbar label {
  color: #405976 !important;
  -webkit-text-fill-color: #405976 !important;
}
:root[data-aano-color="light"] .settings-popover .settings-content .toolbar select,
:root[data-aano-color="light"] .settings-popover .settings-content .toolbar input {
  background-color: #ffffff !important;
  color: #193352 !important;
  -webkit-text-fill-color: #193352 !important;
  border: 1px solid #aabed9 !important;
  color-scheme: light !important;
  opacity: 1 !important;
}
:root[data-aano-color="light"] .settings-popover .settings-content .toolbar select option,
:root[data-aano-color="light"] .settings-popover .settings-content .toolbar select optgroup {
  background-color: #ffffff !important;
  color: #193352 !important;
  -webkit-text-fill-color: #193352 !important;
  color-scheme: light !important;
}
:root[data-aano-color] .settings-popover .settings-content .toolbar select:focus-visible,
:root[data-aano-color] .settings-popover .settings-content .toolbar input:focus-visible {
  outline: 2px solid var(--aano-focus, #5597f4) !important;
  outline-offset: 2px !important;
}
/* Aano AI: dark/light assistant chat and analytics readability fix.
   Applied after legacy style.css and existing aano-light-dark.css rules. */
:root[data-aano-color="dark"] .message.assistant {
  background:#152337 !important;
  border-color:#35465e !important;
  color:#eaf2ff !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body,
:root[data-aano-color="dark"] .message.assistant .message-body :is(p,li,h2,h3,h4,h5,strong,em,td,th) {
  color:#eaf2ff !important;
  -webkit-text-fill-color:#eaf2ff !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body table,
:root[data-aano-color="dark"] .message.assistant .message-body table tbody,
:root[data-aano-color="dark"] .message.assistant .message-body table tr,
:root[data-aano-color="dark"] .message.assistant .message-body table td {
  background:#1b2e46 !important;
  color:#eaf2ff !important;
  border-color:#405675 !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body table tbody tr:nth-child(even) {
  background:#223a55 !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body table tbody tr:nth-child(even) td {
  background:#223a55 !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body table tbody tr:hover td {
  background:#2a4666 !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body table :is(th,thead th) {
  background:#29425e !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
:root[data-aano-color="dark"] .message.assistant .message-body a {
  color:#aed2ff !important;
  -webkit-text-fill-color:#aed2ff !important;
}
/* Keep code fences under their own dark syntax-highlighting palette. */
:root[data-aano-color="dark"] .message.assistant .message-body .code-block,
:root[data-aano-color="dark"] .message.assistant .message-body .code-block pre,
:root[data-aano-color="dark"] .message.assistant .message-body .code-block code {
  background:#101d2e !important;
  color:#e9f2ff !important;
  -webkit-text-fill-color:#e9f2ff !important;
}
:root[data-aano-color="light"] .message.assistant {
  background:#fff !important;
  color:#193352 !important;
  border-color:#dfe8f5 !important;
}
:root[data-aano-color="light"] .message.assistant .message-body :is(p,li,h2,h3,h4,h5,td,strong,em) {
  color:#193352 !important;
  -webkit-text-fill-color:#193352 !important;
}
:root[data-aano-color="light"] .message.assistant .message-body table td {
  background:#fff !important;
  color:#193352 !important;
  border-color:#dfe8f5 !important;
}
:root[data-aano-color="light"] .message.assistant .message-body table tbody tr:nth-child(even) td {
  background:#f4f8ff !important;
}


/* AANO BOOT SCREEN VISIBILITY FIX */
#bootScreen:not([hidden]) {
  color: #eef5ff !important;
}

:root[data-aano-color="light"] #bootScreen:not([hidden]) {
  color: #193352 !important;
}

#bootScreen .boot-logo {
  display: none !important;
}

#bootScreen strong,
#bootScreen #bootMessage {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

#bootScreen[hidden] {
  display: none !important;
}


/* AANO_HIDE_EMPTY_WELCOME_ORB_V1: remove empty welcome orb in both themes, without hiding the loading/error screen. */
:root[data-aano-color] #messages .welcome .orb,
#messages .welcome .orb { display:none!important;visibility:hidden!important; }
/* Modern voice waveform button; no microphone emoji. */
.composer-bottom #voiceInput{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;border-radius:999px!important;padding:0!important;background:transparent!important;color:var(--aano-text,#4b6d93)!important;border:1px solid var(--aano-edge,#cad8e8)!important;transition:background .18s ease,transform .18s ease,border-color .18s ease!important}
.composer-bottom #voiceInput svg{width:20px;height:20px;pointer-events:none}
.composer-bottom #voiceInput:hover{background:#2a70cb20!important;transform:scale(1.045)}
.composer-bottom #voiceInput.listening{background:#c7355020!important;color:#dc3457!important;border-color:#dc3457!important;animation:none!important}
:root[data-aano-color="dark"] .composer-bottom #voiceInput{color:#e3eefd!important;border-color:#546782!important}
:root[data-aano-color="dark"] .composer-bottom #voiceInput.listening{color:#ff849b!important;border-color:#ff849b!important;background:#c7355026!important}
@media(max-width:650px){.composer-bottom #voiceInput{width:38px!important;height:38px!important;min-width:38px!important}}
