/* V36.7.19 — seasonal glass consistency, tap-focus cleanup and refresh release. */

/* Pointer taps must not leave bright rectangular focus/pressed frames on brand or mascot. */
.brand:focus,
.brand-icon:focus,
#btn-chat-trigger:focus,
#btn-chat-trigger:active,
#btn-chat-trigger .launcher-frame:focus,
#btn-chat-trigger .theme-chat-mascot-wrap:focus {
  outline: none !important;
  box-shadow: none !important;
}
.brand,
#btn-chat-trigger {
  -webkit-tap-highlight-color: transparent !important;
}
.brand:focus-visible,
.brand-icon:focus-visible,
#btn-chat-trigger:focus-visible,
#dashboard-refresh:focus-visible {
  outline: 2px solid var(--scene-accent, var(--accent, #ff9a45)) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* Dashboard refresh: never retain a tap/focus tile after the user releases the button. */
#dashboard-refresh,
#dashboard-refresh:hover,
#dashboard-refresh:active,
#dashboard-refresh:focus:not(:focus-visible) {
  -webkit-tap-highlight-color: transparent !important;
}
#dashboard-refresh:focus,
#dashboard-refresh:active {
  outline: none !important;
  box-shadow: none !important;
}
#dashboard-refresh.is-press-feedback {
  transform: scale(.97) !important;
  filter: brightness(1.04) !important;
}
#dashboard-refresh:not(.is-press-feedback) {
  transform: none !important;
}
@media (hover:none) {
  #dashboard-refresh:hover { transform:none !important; box-shadow:none !important; }
}

/* One shared translucent chat surface for Halloween, Winter and Ocean. */
body.theme-halloween #ai-chat-modal.chat-modal,
body.theme-winter #ai-chat-modal.chat-modal,
body.theme-ocean #ai-chat-modal.chat-modal {
  background: rgba(18, 17, 39, .76) !important;
  border-color: rgba(205, 190, 255, .34) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.10) !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
}
body.theme-halloween #ai-chat-modal .chat-header,
body.theme-winter #ai-chat-modal .chat-header,
body.theme-ocean #ai-chat-modal .chat-header {
  background: rgba(24, 19, 43, .88) !important;
  border-color: rgba(205,190,255,.25) !important;
}
body.theme-halloween #ai-chat-modal .chat-messages,
body.theme-winter #ai-chat-modal .chat-messages,
body.theme-ocean #ai-chat-modal .chat-messages {
  background: rgba(10, 20, 38, .24) !important;
}
body.theme-halloween #ai-chat-modal .chat-mode-bar,
body.theme-halloween #ai-chat-modal .chat-input-row,
body.theme-winter #ai-chat-modal .chat-mode-bar,
body.theme-winter #ai-chat-modal .chat-input-row,
body.theme-ocean #ai-chat-modal .chat-mode-bar,
body.theme-ocean #ai-chat-modal .chat-input-row {
  background: rgba(20, 18, 40, .88) !important;
  border-color: rgba(205,190,255,.24) !important;
}
/* Theme tint remains recognizable while all three use the same transparency level. */
body.theme-halloween #ai-chat-modal.chat-modal { background-color: rgba(34, 19, 48, .76) !important; }
body.theme-winter #ai-chat-modal.chat-modal { background-color: rgba(13, 31, 55, .76) !important; }
body.theme-ocean #ai-chat-modal.chat-modal { background-color: rgba(5, 43, 57, .76) !important; }

/* Account and linked-contact pages: outer shell is more transparent than the inner cards. */
body.theme-halloween #tab-profile .profile-page-card,
body.theme-halloween #tab-contact-links .profile-page-card,
body.theme-winter #tab-profile .profile-page-card,
body.theme-winter #tab-contact-links .profile-page-card,
body.theme-ocean #tab-profile .profile-page-card,
body.theme-ocean #tab-contact-links .profile-page-card {
  background: rgba(18, 17, 39, .48) !important;
  border-color: rgba(210,195,255,.30) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.08) !important;
}
body.theme-halloween #tab-profile .profile-contact-row,
body.theme-halloween #tab-contact-links .profile-contact-row,
body.theme-winter #tab-profile .profile-contact-row,
body.theme-winter #tab-contact-links .profile-contact-row,
body.theme-ocean #tab-profile .profile-contact-row,
body.theme-ocean #tab-contact-links .profile-contact-row {
  background: rgba(24, 20, 48, .78) !important;
  border-color: rgba(210,195,255,.34) !important;
  -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
  backdrop-filter: blur(10px) saturate(115%) !important;
}
body.theme-winter #tab-profile .profile-page-card,
body.theme-winter #tab-contact-links .profile-page-card { background-color:rgba(9,29,52,.48)!important; }
body.theme-winter #tab-profile .profile-contact-row,
body.theme-winter #tab-contact-links .profile-contact-row { background-color:rgba(11,39,68,.78)!important; }
body.theme-ocean #tab-profile .profile-page-card,
body.theme-ocean #tab-contact-links .profile-page-card { background-color:rgba(3,31,43,.48)!important; }
body.theme-ocean #tab-profile .profile-contact-row,
body.theme-ocean #tab-contact-links .profile-contact-row { background-color:rgba(5,53,69,.78)!important; }

@media (prefers-reduced-motion: reduce) {
  #dashboard-refresh { transition:none !important; }
}
