/*
 * DAVR Blue — visual-only palette for browser and Telegram web layout.
 * Approved reference: #021024, #052659, #5483B3, #7DA0CA, #C1E8FF.
 * Preserve the original DAVR logo, photographs, existing state and APIs.
 * Last stylesheet in public/index.html; reversible by removing one link.
 */
html.davr-desktop-browser-layout,
html.davr-mobile-layout {
  --primary: #052659;
  --foreground: #021024;
  --muted: #edf5fc;
  --muted-foreground: #536d88;
  --border: #d5e5f3;
  --background: #f2f7fd;
  --davr-canvas: #f2f7fd;
  --davr-surface: #ffffff;
  --davr-elevated: #f7fbff;
  --davr-line: #d8e7f4;
  --davr-brand: #052659;
  --davr-brand-deep: #021024;
  --davr-text: #021024;
  --davr-secondary-text: #536d88;
  --davr-focus: #5483B3;
  --davr-ui-accent: #052659;
  --davr-ui-ink: #021024;
  --davr-ui-border: #d5e4f2;
  --davr-ui-shadow: 0 9px 28px rgba(5,38,89,.07);
  --davr-soft-shadow: 0 8px 24px rgba(5,38,89,.065);
  --davr-elevated-shadow: 0 15px 36px rgba(5,38,89,.10);
  --davr-blue-deep: #021024;
  --davr-blue-navy: #052659;
  --davr-blue-mid: #5483B3;
  --davr-blue-light: #7DA0CA;
  --davr-blue-ice: #C1E8FF;
  --davr-blue-border: #ccdfef;
  --davr-blue-background: #f2f7fd;
  --davr-blue-selected: #e8f3ff;
  --davr-blue-hover: #eaf3fc;
  --davr-blue-shadow: 0 11px 30px rgba(5,38,89,.09);
  color-scheme: light;
}
html.davr-desktop-browser-layout body,
html.davr-mobile-layout body {
  background: linear-gradient(145deg,#f7fbff 0%,#f0f6fd 47%,#e9f2fc 100%) fixed !important;
  color: #021024;
}
html.davr-desktop-browser-layout :is(h1,h2,h3),
html.davr-mobile-layout :is(h1,h2,h3) {
  color: #021024;
}
html.davr-desktop-browser-layout :where(a,button,input,textarea,select):focus-visible,
html.davr-mobile-layout :where(a,button,input,textarea,select):focus-visible {
  outline-color: #5483B3;
}
html.davr-desktop-browser-layout .primary,
html.davr-mobile-layout .primary,
html.davr-desktop-browser-layout .davr-header-search-submit {
  background: linear-gradient(135deg,#052659,#17447a) !important;
  border-color: #052659 !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(5,38,89,.19);
}
html.davr-desktop-browser-layout .primary:hover,
html.davr-mobile-layout .primary:hover,
html.davr-desktop-browser-layout .davr-header-search-submit:hover {
  background: linear-gradient(135deg,#103b75,#285b95) !important;
  box-shadow: 0 10px 23px rgba(5,38,89,.23);
}
html.davr-desktop-browser-layout .outline,
html.davr-mobile-layout .outline,
html.davr-desktop-browser-layout :where(.filter-button,.filter-toolbar-button),
html.davr-mobile-layout :where(.filter-button,.filter-toolbar-button) {
  border-color: #c9deef !important;
  background: #fff !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout :where(.outline,.filter-button,.filter-toolbar-button):hover,
html.davr-mobile-layout :where(.outline,.filter-button,.filter-toolbar-button):hover {
  border-color: #7DA0CA !important;
  background: #eaf3fc !important;
}
html.davr-desktop-browser-layout :where(.selected,.active-filter-summary),
html.davr-mobile-layout :where(.selected,.active-filter-summary) {
  border-color: #9cc1e5;
  color: #052659;
}
html.davr-desktop-browser-layout :where(.intro,.page-heading,.section-heading),
html.davr-mobile-layout :where(.intro,.page-heading,.section-heading) {
  color: #021024;
}
html.davr-desktop-browser-layout .section-heading > span,
html.davr-mobile-layout .section-heading > span,
html.davr-desktop-browser-layout :where(.card p,.store-card p,.profile-banner p,.seller-overview-title p),
html.davr-mobile-layout :where(.card p,.store-card p,.profile-banner p,.seller-overview-title p) {
  color: #607993;
}
/* Header and centered search: maintain existing search behaviour and geometry. */
@media (min-width: 1024px) {
  html.davr-desktop-browser-layout #root header {
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid #dae7f4 !important;
    box-shadow: 0 3px 17px rgba(5,38,89,.045) !important;
  }
  html.davr-desktop-browser-layout #root header > .davr-header-search {
    background: #f6faff !important;
    border-color: #ccdfef !important;
    box-shadow: 0 4px 16px rgba(5,38,89,.07) !important;
  }
  html.davr-desktop-browser-layout #root header > .davr-header-search:hover {
    border-color: #7DA0CA !important;
  }
  html.davr-desktop-browser-layout #root header > .davr-header-search:focus-within {
    border-color: #5483B3 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(84,131,179,.18),0 7px 18px rgba(5,38,89,.09) !important;
  }
  html.davr-desktop-browser-layout .davr-header-search > svg {
    color: #5483B3 !important;
  }
  html.davr-desktop-browser-layout .davr-header-search input {
    color: #021024 !important;
  }
  html.davr-desktop-browser-layout .davr-header-search input::placeholder {
    color: #6686a6 !important;
  }
  html.davr-desktop-browser-layout #root header .header-actions > .city-picker,
  html.davr-desktop-browser-layout #root header .header-actions > .picker {
    border-color: #ccdfef !important;
    background: #f7fbff !important;
    color: #052659 !important;
    box-shadow: 0 3px 11px rgba(5,38,89,.055);
  }
  html.davr-desktop-browser-layout #root header .header-actions > .city-picker > svg {
    color: #5483B3 !important;
  }
  html.davr-desktop-browser-layout #root header .header-actions > .city-picker .picker {
    color: #052659 !important;
    background: transparent !important;
  }
  html.davr-desktop-browser-layout #root header .header-actions > .city-picker:hover,
  html.davr-desktop-browser-layout #root header .header-actions > .picker:hover {
    background: #eaf4ff !important;
    border-color: #7DA0CA !important;
  }
  html.davr-desktop-browser-layout #root header .header-actions > .city-picker:focus-within,
  html.davr-desktop-browser-layout #root header .header-actions > .picker:focus-visible {
    outline-color: rgba(84,131,179,.3) !important;
    border-color: #5483B3 !important;
  }
}
/* Dark navy glass sidebar: stable icons/labels, no structural changes. */
@media (min-width: 1024px) {
  html.davr-desktop-browser-layout .davr-desktop-sidebar {
    border: 1px solid #17437d !important;
    background: linear-gradient(164deg,#021024 0%,#052659 62%,#0c376c 100%) !important;
    color: #C1E8FF !important;
    box-shadow: 0 19px 40px rgba(2,16,36,.22) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-caption {
    color: #98b7d6 !important;
    letter-spacing: .105em;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button {
    color: #d0e7fa !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button > svg {
    stroke: #9cbee1 !important;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button:hover {
    border-color: rgba(193,232,255,.14) !important;
    background: rgba(125,160,202,.20) !important;
    color: #fff !important;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button:hover > svg {
    stroke: #C1E8FF !important;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button[aria-current="page"],
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button[aria-expanded="true"] {
    border-color: rgba(193,232,255,.35) !important;
    background: linear-gradient(105deg,rgba(84,131,179,.55),rgba(125,160,202,.25)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 #C1E8FF,0 6px 15px rgba(0,0,0,.08) !important;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button[aria-current="page"] > svg,
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button[aria-expanded="true"] > svg {
    stroke: #C1E8FF !important;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button:focus-visible {
    outline: 3px solid #7DA0CA !important;
    outline-offset: 2px;
  }
  html.davr-desktop-browser-layout .davr-desktop-sidebar-count:not([hidden]) {
    background: #c83f57 !important; /* unread is status, not decorative */
    color: white !important;
  }
}
/* Products: white photographs-first cards on the new cool background. */
html.davr-desktop-browser-layout .listing-grid > .card,
html.davr-mobile-layout .listing-grid > .card {
  border: 1px solid #d2e3f2 !important;
  background: #fff !important;
  box-shadow: 0 10px 27px rgba(5,38,89,.075) !important;
}
html.davr-desktop-browser-layout .listing-grid > .card:hover,
html.davr-mobile-layout .listing-grid > .card:hover {
  border-color: #9cbdda !important;
  box-shadow: 0 17px 38px rgba(5,38,89,.12) !important;
}
html.davr-desktop-browser-layout .listing-grid > .card .photo,
html.davr-mobile-layout .listing-grid > .card .photo {
  background: #e9f2fa !important;
}
html.davr-desktop-browser-layout .listing-grid > .card strong,
html.davr-mobile-layout .listing-grid > .card strong,
html.davr-desktop-browser-layout .listing-grid > .card h3,
html.davr-mobile-layout .listing-grid > .card h3 {
  color: #021024 !important;
}
html.davr-desktop-browser-layout .listing-grid > .card .location,
html.davr-mobile-layout .listing-grid > .card .location {
  color: #567da5 !important;
}
/* Featured search + categories: show hierarchy without recolouring category meanings. */
html.davr-desktop-browser-layout :where(.davr-catalog-subpanel,.filter-panel,.catalog-discovery .search),
html.davr-mobile-layout :where(.davr-catalog-subpanel,.filter-panel,.catalog-discovery .search) {
  border-color: #d5e4f3 !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(5,38,89,.065);
}
html.davr-desktop-browser-layout :where(.davr-catalog-section,.category-leaf,.category-level > button),
html.davr-mobile-layout :where(.davr-catalog-section,.category-leaf,.category-level > button) {
  border-color: #d8e7f4 !important;
  background: #fafdff !important;
}
html.davr-desktop-browser-layout :where(.davr-catalog-section-title,.davr-catalog-subpanel-title),
html.davr-mobile-layout :where(.davr-catalog-section-title,.davr-catalog-subpanel-title) {
  color: #052659 !important;
}
html.davr-desktop-browser-layout :where(.davr-catalog-link,.category-leaf,.category-level > button):hover,
html.davr-mobile-layout :where(.davr-catalog-link,.category-leaf,.category-level > button):hover {
  background: #e9f3fd !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout .davr-catalog-link:focus-visible,
html.davr-mobile-layout .davr-catalog-link:focus-visible {
  outline-color: #5483B3 !important;
}
html.davr-desktop-browser-layout .filter-modal,
html.davr-mobile-layout .filter-modal,
html.davr-desktop-browser-layout :where(.category-modal,.detail-modal,.form-modal),
html.davr-mobile-layout :where(.category-modal,.detail-modal,.form-modal) {
  border-color: #d5e4f2 !important;
  background: #f5f9fe !important;
  box-shadow: 0 24px 70px rgba(2,16,36,.22) !important;
}
html.davr-desktop-browser-layout :where(.filter-modal .modal-top,.form-modal .modal-top,.detail-modal .modal-top),
html.davr-mobile-layout :where(.filter-modal .modal-top,.form-modal .modal-top,.detail-modal .modal-top) {
  border-color: #d6e6f4 !important;
  background: #fff !important;
}
html.davr-desktop-browser-layout .filter-modal .catalog-filters,
html.davr-mobile-layout .filter-modal .catalog-filters {
  background: #f0f6fd !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-sections > .filter-group:first-child,
html.davr-mobile-layout .filter-modal .filter-sections > .filter-group:first-child {
  border-color: #a6c8e6 !important;
  background: linear-gradient(115deg,#fff,#eaf5ff) !important;
  box-shadow: 0 8px 24px rgba(5,38,89,.06) !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-group,
html.davr-mobile-layout .filter-modal .filter-group {
  border-color: #d5e4f2 !important;
  background: #fff !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-group summary,
html.davr-mobile-layout .filter-modal .filter-group summary {
  color: #052659 !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-group summary:hover,
html.davr-mobile-layout .filter-modal .filter-group summary:hover {
  background: #eff6fd !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-category-list button,
html.davr-mobile-layout .filter-modal .filter-category-list button,
html.davr-desktop-browser-layout .filter-modal .filter-category-trail button,
html.davr-mobile-layout .filter-modal .filter-category-trail button {
  border-color: #d4e5f3 !important;
  background: #fff !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-category-list button:hover,
html.davr-mobile-layout .filter-modal .filter-category-list button:hover {
  border-color: #7DA0CA !important;
  background: #ecf5ff !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-category-list button.active,
html.davr-mobile-layout .filter-modal .filter-category-list button.active,
html.davr-desktop-browser-layout .filter-modal .filter-category-trail button[aria-current="page"],
html.davr-mobile-layout .filter-modal .filter-category-trail button[aria-current="page"] {
  border-color: #5483B3 !important;
  background: #e2f0ff !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout .filter-modal .filter-actions,
html.davr-mobile-layout .filter-modal .filter-actions {
  border-top-color: #d7e6f4 !important;
  background: #fff !important;
}
html.davr-desktop-browser-layout :where(.filter-modal input,.filter-modal .picker,.listing-form input,.listing-form select,.listing-form textarea),
html.davr-mobile-layout :where(.filter-modal input,.filter-modal .picker,.listing-form input,.listing-form select,.listing-form textarea) {
  border-color: #ccdfef !important;
  background: #fff !important;
  color: #021024 !important;
}
html.davr-desktop-browser-layout :where(.filter-modal input,.filter-modal .picker,.listing-form input,.listing-form select,.listing-form textarea):focus,
html.davr-mobile-layout :where(.filter-modal input,.filter-modal .picker,.listing-form input,.listing-form select,.listing-form textarea):focus {
  border-color: #5483B3 !important;
}
/* Shops, profiles, live analytics, and posting editor share the cool palette. */
html.davr-desktop-browser-layout :where(.shop-grid .store-card,.shop-banner,.profile-shops,.profile-banner,.seller-overview,.stats > div,.seller-metrics > div,.management-metrics article,.davr-desktop-posting-card),
html.davr-mobile-layout :where(.shop-grid .store-card,.shop-banner,.profile-shops,.profile-banner,.seller-overview,.stats > div,.seller-metrics > div,.management-metrics article) {
  border-color: #d2e3f2 !important;
  background: linear-gradient(135deg,#fff,#f4f9ff) !important;
  box-shadow: 0 9px 25px rgba(5,38,89,.065) !important;
}
html.davr-desktop-browser-layout :where(.store-card h2,.profile-banner h2,.seller-overview-title h2),
html.davr-mobile-layout :where(.store-card h2,.profile-banner h2,.seller-overview-title h2) {
  color: #021024 !important;
}
html.davr-desktop-browser-layout :where(.seller-metrics strong,.stats strong,.management-metrics strong),
html.davr-mobile-layout :where(.seller-metrics strong,.stats strong,.management-metrics strong) {
  color: #052659 !important;
}
html.davr-desktop-browser-layout .seller-overview-title > svg,
html.davr-mobile-layout .seller-overview-title > svg,
html.davr-desktop-browser-layout .store-avatar,
html.davr-mobile-layout .store-avatar {
  background: #e2f0fc !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout :where(.store-type,.shop-category-tabs button.active,.management-tabs button.active),
html.davr-mobile-layout :where(.store-type,.shop-category-tabs button.active,.management-tabs button.active) {
  border-color: #9dbfdd !important;
  background: #e2f0ff !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout .shop-category-tabs button,
html.davr-mobile-layout .shop-category-tabs button,
html.davr-desktop-browser-layout .management-tabs button,
html.davr-mobile-layout .management-tabs button {
  border-color: #d4e5f3;
}
html.davr-desktop-browser-layout :where(.profile-actions button,.management-user,.own-row,.moderation-row),
html.davr-mobile-layout :where(.profile-actions button,.management-user,.own-row,.moderation-row) {
  border-color: #d5e5f4 !important;
  background: #fff !important;
}
html.davr-desktop-browser-layout :where(.profile-actions button,.management-user,.own-row,.moderation-row):hover,
html.davr-mobile-layout :where(.profile-actions button,.management-user,.own-row,.moderation-row):hover {
  border-color: #aac8e1 !important;
}
html.davr-desktop-browser-layout :where(.detail-description-inline,.detail-specs,.seller,.detail-sale-terms,.detail-address),
html.davr-mobile-layout :where(.detail-description-inline,.detail-specs,.seller,.detail-sale-terms,.detail-address) {
  border-color: #d5e4f2 !important;
  background: #fff !important;
}
html.davr-desktop-browser-layout .detail-gallery-stage,
html.davr-mobile-layout .detail-gallery-stage {
  background: #e7f0fb !important;
}
html.davr-desktop-browser-layout .davr-photo-address,
html.davr-mobile-layout .davr-photo-address {
  border-color: #c9dff1 !important;
  background: #eaf4ff !important;
  color: #315b85 !important;
}
html.davr-desktop-browser-layout .davr-photo-address-icon,
html.davr-mobile-layout .davr-photo-address-icon {
  color: #052659 !important;
}
html.davr-desktop-browser-layout .davr-photo-address:hover,
html.davr-mobile-layout .davr-photo-address:hover {
  background: #dbedfd !important;
  border-color: #7DA0CA !important;
}
html.davr-desktop-browser-layout .davr-posting-category-picker,
html.davr-mobile-layout .davr-posting-category-picker {
  border-color: #c2dcef !important;
  background: #eaf5ff !important;
  color: #052659 !important;
}
html.davr-desktop-browser-layout .davr-posting-row:hover {
  background: #eef6ff !important;
}
/* Notifications/status: preserve red/warning semantics, recolour only UI chrome. */
html.davr-desktop-browser-layout :where(.davr-notification-panel,.davr-notification-card,.support-chat-modal,.support-inbox),
html.davr-mobile-layout :where(.davr-notification-panel,.davr-notification-card,.support-chat-modal,.support-inbox) {
  border-color: #d5e5f2 !important;
  background: #fff !important;
  box-shadow: 0 14px 35px rgba(2,16,36,.13) !important;
}
html.davr-desktop-browser-layout :where(.davr-notification-item,.davr-notification-toast,.saved-searches,.empty),
html.davr-mobile-layout :where(.davr-notification-item,.davr-notification-toast,.saved-searches,.empty) {
  border-color: #dae8f4 !important;
  background: #fff !important;
}
html.davr-desktop-browser-layout :where(.davr-notification-item:hover,.saved-search-row:hover),
html.davr-mobile-layout :where(.davr-notification-item:hover,.saved-search-row:hover) {
  background: #f0f7ff !important;
}
html.davr-desktop-browser-layout :where(.davr-notification-item-icon,.davr-notification-toast-icon):not([data-kind]),
html.davr-mobile-layout :where(.davr-notification-item-icon,.davr-notification-toast-icon):not([data-kind]) {
  background: #e6f2fe !important;
  color: #052659 !important;
}
/* Mobile browser + Telegram web: keep working navigation, use same blue palette. */
@media (max-width: 700px) {
  html.davr-mobile-layout #root header {
    background: rgba(255,255,255,.97) !important;
    border-bottom-color: #d7e7f5 !important;
  }
  html.davr-mobile-layout .catalog-discovery,
  html.davr-mobile-layout .davr-mobile-category-header {
    background: rgba(250,253,255,.98) !important;
    border-color: #d9e9f5 !important;
  }
  html.davr-mobile-layout .davr-mobile-profile,
  html.davr-mobile-layout .davr-mobile-city-row,
  html.davr-mobile-layout .davr-mobile-category-search-wrap {
    border-color: #d0e2f0 !important;
    background: #f4f9ff !important;
    color: #052659 !important;
  }
  html.davr-mobile-layout .davr-mobile-tabbar {
    border-color: #143e74 !important;
    background: linear-gradient(115deg,rgba(2,16,36,.97),rgba(5,38,89,.97)) !important;
    box-shadow: 0 11px 28px rgba(2,16,36,.23) !important;
  }
  html.davr-mobile-layout .davr-mobile-tab {
    color: #bfd6ed !important;
  }
  html.davr-mobile-layout .davr-mobile-tab.is-active {
    border-color: rgba(193,232,255,.22) !important;
    background: rgba(84,131,179,.37) !important;
    color: #C1E8FF !important;
    text-shadow: none !important;
  }
  html.davr-mobile-layout .davr-mobile-tab.is-post {
    color: #fff !important;
  }
  html.davr-mobile-layout .davr-mobile-post-icon {
    background: linear-gradient(135deg,#5483B3,#052659) !important;
    box-shadow: 0 4px 14px rgba(5,38,89,.23) !important;
  }
  html.davr-mobile-layout .davr-mobile-category-row:active {
    background: #e9f4ff !important;
  }
  html.davr-mobile-layout .davr-mobile-category-result {
    border-color: #aecde8 !important;
    background: linear-gradient(130deg,#eaf5ff,#fff) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.davr-desktop-browser-layout .davr-desktop-sidebar-nav button,
  html.davr-mobile-layout .davr-mobile-tab {
    transition: none !important;
  }
}
