/* Shared customer dock; inherited fallbacks also support report's legacy themes. */
#home-bottom-nav.bottom-nav { position: fixed; z-index: 1000; bottom: max(8px, env(safe-area-inset-bottom)) !important; left: 12px; right: 12px; width: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; height: 56px; min-height: 56px; max-height: 56px; padding: 5px 6px; align-items: center; overflow: hidden; box-sizing: border-box; border-radius: 24px; border: 1px solid var(--border-color, var(--cabinet-border, var(--border-light, currentColor))); background: var(--surface-color, var(--cabinet-surface, inherit)); box-shadow: none; }
#home-bottom-nav .nav-item { width: auto; min-width: 0; min-height: 44px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; color: var(--text-secondary, var(--cabinet-muted, inherit)); font-size: 11px; line-height: 14px; text-decoration: none; }
#home-bottom-nav .nav-item[aria-current] { background: var(--border-light, var(--cabinet-accent-soft, transparent)); color: var(--primary-color, var(--cabinet-accent, inherit)); font-weight: 700; }
#home-bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#home-bottom-nav .nav-item:focus-visible { outline: 2px solid var(--primary-color, var(--cabinet-accent, currentColor)); outline-offset: 2px; }
.assistant-launcher { display: none; }
@media (max-width: 768px) {
  /* An opaque dock avoids WebKit/Yandex repaint blur while the document scrolls. */
  #home-bottom-nav.bottom-nav,
  body:has(#home-bottom-nav) .main-header,
  body:has(#home-bottom-nav) .mobile-header,
  body:has(#home-bottom-nav) .mobile-fixed-buttons {
    background: var(--surface-color, var(--cabinet-surface, var(--bg-color, inherit)));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #home-bottom-nav.bottom-nav {
    isolation: isolate;
    contain: layout paint;
    transform: none;
    -webkit-transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  #home-bottom-nav.bottom-nav,
  #home-bottom-nav .nav-item,
  #home-bottom-nav .nav-item svg,
  #home-bottom-nav .nav-item span {
    filter: none;
    opacity: 1;
    transform: none;
    -webkit-transform: none;
    will-change: auto;
    animation: none;
    text-shadow: none;
    -webkit-text-size-adjust: 100%;
    transition: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #home-bottom-nav .nav-item::before,
  #home-bottom-nav .nav-item::after { content: none; }
  body:has(#home-bottom-nav) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(#home-bottom-nav) .mobile-fixed-buttons { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(#home-bottom-nav) main.car-detail-container { padding-bottom: 64px; }
  body:has(#home-bottom-nav) .mobile-chat-list { bottom: calc(64px + env(safe-area-inset-bottom)); height: auto; }
  body:has(#home-bottom-nav) .mobile-active-chat.show { bottom: calc(64px + env(safe-area-inset-bottom)) !important; height: auto; }
  body:has(#home-bottom-nav) .mobile-active-chat .mobile-chat-messages { height: auto; min-height: 0; }
  body:has(#home-bottom-nav) .mobile-active-chat .mobile-chat-input { padding-bottom: 15px; }
  body:has(#home-bottom-nav):has(#reset-password-form) { position: static; height: auto; min-height: 100vh; overflow-y: auto; }
  body:has(#home-bottom-nav):has(#reset-password-form) .auth-main-page { height: auto; min-height: calc(100vh - 135px - env(safe-area-inset-bottom)); overflow: visible; }
}
@media (min-width: 769px) {
  #home-bottom-nav.bottom-nav { display: none; }
  .assistant-launcher { position: fixed; z-index: 1000; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--primary-color); border-radius: 24px; background: var(--surface-color); color: var(--text-primary); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 16px var(--shadow-medium); }
  .assistant-launcher svg { width: 24px; height: 24px; fill: none; stroke: var(--primary-color); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .assistant-launcher:hover { background: var(--border-light); }
  .assistant-launcher:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
  body:has(.assistant-launcher) .scroll-to-top { bottom: 88px; }
}
@media print { #home-bottom-nav.bottom-nav, .assistant-launcher { display: none; } }
