/* ============================================
   MOBILE / DESKTOP chrome by DEVICE (html.wink-mobile | html.wink-desktop)
   Set by /js/wink-device.js — not by CSS width alone.
   ============================================ */

/* Hide desktop sidebar by default on mobile devices */
html.wink-mobile .sidebar-desktop {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 50 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease;
    width: 260px !important;
    min-width: 260px !important;
}

html.wink-mobile .sidebar-desktop.mobile-open {
    transform: translateX(0) !important;
}

html.wink-mobile .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 12px;
}

html.wink-mobile .mobile-menu-btn:hover {
    background-color: #f3f4f6;
}

html.wink-mobile .mobile-menu-icon {
    width: 20px;
    height: 20px;
    color: #4b5563;
}

html.wink-mobile .mobile-logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
}

html.wink-mobile .mobile-logo-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

html.wink-mobile .mobile-logo-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

html.wink-mobile .sidebar-toggle-btn {
    display: none !important;
}

html.wink-mobile .main-content-area {
    width: 100%;
}

html.wink-mobile .main-header {
    padding-left: 16px;
    padding-right: 16px;
}

html.wink-mobile .header-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

html.wink-mobile .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

html.wink-mobile .llm-selector-btn {
    display: none !important;
}

html.wink-mobile .main-footer {
    display: none !important;
}

html.wink-mobile .app-container {
    width: 100%;
}

html.wink-mobile .mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    transition: opacity 0.3s ease;
}

html.wink-mobile .mobile-overlay.hidden {
    display: none;
}

html.wink-mobile .sidebar-desktop.mobile-open .sidebar-expanded-content {
    display: flex !important;
    flex-direction: column !important;
}

html.wink-mobile .sidebar-desktop.mobile-open .sidebar-collapsed-content {
    display: none !important;
}

html.wink-mobile .sidebar-desktop.mobile-open .sidebar-header {
    display: flex !important;
}

html.wink-mobile .sidebar-desktop.mobile-open .sidebar-logo-text {
    display: inline !important;
}

html.wink-mobile .sidebar-nav-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Desktop devices: always desktop chrome (even if the window is narrow) */
html.wink-desktop .mobile-menu-btn {
    display: none !important;
}

html.wink-desktop .mobile-overlay {
    display: none !important;
}

html.wink-desktop .sidebar-desktop {
    position: relative !important;
    transform: none !important;
}

html.wink-desktop .mobile-logo-container {
    display: none !important;
}
