/* DAVR blue finishing pass. Presentation only, preserve all existing actions.
 * Brand palette: #021024 #052659 #5483B3 #7DA0CA #C1E8FF.
 */
html.davr-desktop-browser-layout #root header,
html.davr-mobile-layout #root header {
  background: linear-gradient(105deg,#e5f1fc 0%,#f0f7fe 55%,#dbeaf9 100%) !important;
  border-bottom: 1px solid #c9dced !important;
  box-shadow: 0 5px 22px rgba(5,38,89,.075) !important;
}
html.davr-desktop-browser-layout #root header .davr-header-search {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(5,38,89,.075) !important;
}
html.davr-desktop-browser-layout #root header .brand,
html.davr-mobile-layout #root header .brand {
  color: #021024 !important;
}
/* Previously green floating support and chat controls */
html.davr-desktop-browser-layout .support-fab,
html.davr-mobile-layout .support-fab,
html.davr-desktop-browser-layout .support-chat-send,
html.davr-mobile-layout .support-chat-send {
  background: linear-gradient(135deg,#052659,#214d85) !important;
  color: white !important;
  box-shadow: 0 10px 26px rgba(5,38,89,.24) !important;
}
html.davr-desktop-browser-layout .support-fab:hover,
html.davr-mobile-layout .support-fab:hover,
html.davr-desktop-browser-layout .support-chat-send:not(:disabled):hover,
html.davr-mobile-layout .support-chat-send:not(:disabled):hover {
  background: #164379 !important;
}
html.davr-desktop-browser-layout :is(.support-chat-avatar,.support-chat-welcome-icon,.chat-avatar-mini),
html.davr-mobile-layout :is(.support-chat-avatar,.support-chat-welcome-icon,.chat-avatar-mini) {
  background: linear-gradient(135deg,#5483B3,#052659) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(5,38,89,.14) !important;
}
html.davr-desktop-browser-layout .support-chat-modal,
html.davr-mobile-layout .support-chat-modal,
html.davr-desktop-browser-layout .support-chat-ui,
html.davr-mobile-layout .support-chat-ui {
  background: #f0f6fd !important;
}
html.davr-desktop-browser-layout .support-chat-title small,
html.davr-mobile-layout .support-chat-title small,
html.davr-desktop-browser-layout .chat-bubble strong,
html.davr-mobile-layout .chat-bubble strong {
  color: #356b9d !important;
}
html.davr-desktop-browser-layout .chat-bubble-row.mine .chat-bubble,
html.davr-mobile-layout .chat-bubble-row.mine .chat-bubble {
  background: #052659 !important;
  color: #fff !important;
}
html.davr-desktop-browser-layout .chat-bubble-row.staff .chat-bubble,
html.davr-mobile-layout .chat-bubble-row.staff .chat-bubble {
  background: #e2f0fc !important;
  color: #021024 !important;
}
html.davr-desktop-browser-layout .support-chat-composer,
html.davr-mobile-layout .support-chat-composer {
  border-top: 1px solid #d1e3f2 !important;
}
html.davr-desktop-browser-layout .support-chat-composer textarea:focus,
html.davr-mobile-layout .support-chat-composer textarea:focus {
  border-color: #5483B3 !important;
  box-shadow: 0 0 0 3px rgba(84,131,179,.14) !important;
}
/* Profile's connected Telegram card is a blue identity panel; preserve
   verification check and status text. */
html.davr-desktop-browser-layout .telegram-login-card.connected,
html.davr-mobile-layout .telegram-login-card.connected {
  background: linear-gradient(115deg,#edf6ff,#e5f1fc) !important;
  border: 1px solid #accbe4 !important;
  box-shadow: 0 8px 23px rgba(5,38,89,.055) !important;
}
html.davr-desktop-browser-layout .telegram-login-card.connected .telegram-login-icon,
html.davr-mobile-layout .telegram-login-card.connected .telegram-login-icon {
  background: #052659 !important;
  color: #fff !important;
}
html.davr-desktop-browser-layout :is(.profile-back,.profile-actions button,.profile-shops .outline),
html.davr-mobile-layout :is(.profile-back,.profile-actions button,.profile-shops .outline) {
  color: #052659 !important;
}
/* Shared secondary buttons and catalog selectors. Preserve semantic error colors. */
html.davr-desktop-browser-layout :is(.shop-banner .outline,.store-card .outline,.detail-action,.filter-modal .reset-filters,.save-search-button),
html.davr-mobile-layout :is(.shop-banner .outline,.store-card .outline,.detail-action,.filter-modal .reset-filters,.save-search-button) {
  border-color: #bcd6ec !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout :is(.shop-banner .outline,.store-card .outline,.detail-action,.filter-modal .reset-filters):hover,
html.davr-mobile-layout :is(.shop-banner .outline,.store-card .outline,.detail-action,.filter-modal .reset-filters):hover {
  background: #e9f4ff !important;
  border-color: #7DA0CA !important;
}
html.davr-desktop-browser-layout .detail-modal .detail-edit-button,
html.davr-mobile-layout .detail-modal .detail-edit-button,
html.davr-desktop-browser-layout .management-tabs button.active,
html.davr-mobile-layout .management-tabs button.active {
  background: #e2f0fc !important;
  color: #052659 !important;
  border-color: #9fbee1 !important;
}
html.davr-desktop-browser-layout .detail-modal .detail-edit-button:hover,
html.davr-mobile-layout .detail-modal .detail-edit-button:hover {
  background: #d4e8fa !important;
}
/* Human-readable categories: balanced density, no duplicate tree containers. */
html.davr-desktop-browser-layout .davr-desktop-posting-card {
  border: 1px solid #cadfed !important;
  box-shadow: 0 25px 70px rgba(2,16,36,.18) !important;
}
html.davr-desktop-browser-layout .davr-posting-row {
  min-height: 52px;
  padding-block: 11px !important;
  border-bottom: 1px solid #e3edf5 !important;
}
html.davr-desktop-browser-layout .davr-posting-row:hover,
html.davr-desktop-browser-layout .davr-catalog-section-title:hover {
  background: #e9f3fc !important;
}
html.davr-desktop-browser-layout .davr-catalog-section-grid {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 16px 20px !important;
}
html.davr-desktop-browser-layout .davr-catalog-section {
  border: 1px solid #d4e5f4 !important;
  border-radius: 16px;
  background: #fff !important;
  padding: 16px !important;
}
html.davr-desktop-browser-layout .davr-catalog-section-links {
  gap: 5px !important;
}
html.davr-desktop-browser-layout .davr-catalog-link {
  padding: 8px 10px !important;
  border-radius: 11px !important;
  color: #315f8f !important;
  line-height: 1.45;
}
html.davr-desktop-browser-layout .davr-catalog-link:hover {
  background: #eaf4ff !important;
  color: #052659 !important;
}
@media (min-width: 701px) and (max-width: 1100px) {
  html.davr-desktop-browser-layout .davr-catalog-section-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width: 700px) {
  html.davr-mobile-layout .davr-mobile-category-row {
    min-height: 56px;
    border-bottom-color: #deebf7 !important;
  }
  html.davr-mobile-layout .davr-mobile-category-row:focus-visible {
    outline-color: #5483B3 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.davr-desktop-browser-layout :is(.support-fab,.support-chat-send,.davr-catalog-link),
  html.davr-mobile-layout :is(.support-fab,.support-chat-send,.davr-mobile-category-row) {
    transition: none !important;
  }
}
