/* ==========================================================================
   Liquid Theme AI Transport Assistant Stylesheet (ai-chat.css)
   Strictly adheres to AGENTS.md: Liquid Glass, Zero-Emoji, Mobile Breakpoints
   ========================================================================== */

/* 1. Floating Launcher Button (Natural Animated Speech Bubble) */
.ai-chat-launcher {
    position: fixed;
    left: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom, 8px));
    z-index: 9999 !important;
    width: 62px;
    height: 62px;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    outline: none;
    padding: 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 8px 16px rgba(14, 27, 51, 0.25));
}

.ai-chat-launcher:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 22px rgba(36, 81, 196, 0.4));
}

.ai-chat-launcher:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.ai-chat-launcher.is-dragging {
    cursor: grabbing !important;
    transform: scale(1.16) !important;
    filter: drop-shadow(0 14px 26px rgba(36, 81, 196, 0.45)) !important;
    transition: none !important;
}

.ai-launcher-media-wrap {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    overflow: visible !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.ai-launcher-shape-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ai-launcher-shape-bg path {
    fill: rgba(36, 81, 196, 0.22);
    transition: fill 0.22s ease;
}

.ai-chat-launcher:hover .ai-launcher-shape-bg path {
    fill: rgba(36, 81, 196, 0.35);
}

.ai-launcher-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transform: none;
    z-index: 2;
}

.ai-launcher-pulse-dot {
    position: absolute;
    top: 3px;
    right: 5px;
    width: 11px;
    height: 11px;
    background: #10B981;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    z-index: 5;
}

.ai-launcher-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10B981;
    opacity: 0.7;
    animation: aiPulseRipple 1.25s ease-out infinite;
}

@keyframes aiPulseRipple {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* 2. Backdrop Overlay */
.ai-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 27, 51, 0.25);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ai-chat-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* 3. Liquid Glass Chat Drawer / Window */
.ai-chat-drawer {
    position: fixed;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 60px rgba(14, 27, 51, 0.24), 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop layout: floating card at bottom-left */
@media (min-width: 769px) {
    .ai-chat-drawer {
        left: 18px;
        bottom: calc(84px + env(safe-area-inset-bottom, 8px));
        width: 384px;
        height: 560px;
        max-height: calc(100vh - 120px);
        border-radius: 22px;
        transform: translateY(18px) scale(0.96);
    }
    .ai-chat-drawer.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .ai-chat-drag-handle {
        display: none !important;
    }
}

/* Mobile layout: iOS-style slide-up bottom sheet */
@media (max-width: 768px) {
    .ai-chat-drawer {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 80vh;
        max-height: 600px;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        transform: translateY(100%);
    }
    .ai-chat-drawer.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Mobile drag handle */
.ai-chat-drag-handle {
    width: 38px;
    height: 4.5px;
    background: rgba(14, 27, 51, 0.18);
    border-radius: 100px;
    margin: 8px auto 2px;
    flex-shrink: 0;
}

/* 4. Chat Header */
.ai-chat-header {
    padding: 10px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(14, 27, 51, 0.06);
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.ai-chat-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ai-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 0;
    overflow: visible;
    position: relative;
    border: none;
    background: transparent;
    flex-shrink: 0;
}

.ai-chat-avatar video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.ai-chat-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.ai-chat-title {
    font-size: 14.5px;
    font-weight: 750;
    color: #0E1B33;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chat-status {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 11px;
    font-weight: 600;
    color: var(--status-success-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-chat-status-dot {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ai-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(14, 27, 51, 0.04);
    border: 1px solid rgba(14, 27, 51, 0.06);
    color: #5C6B8A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.ai-header-btn:hover {
    background: rgba(36, 81, 196, 0.1);
    color: var(--theme-accent-text);
}

.ai-header-btn:active {
    transform: scale(0.92);
}

/* 4b. User Stoppage / Location Bar */
.ai-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(36, 81, 196, 0.06);
    border-bottom: 1px solid rgba(36, 81, 196, 0.12);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.ai-location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-accent-text, #2451C4);
    min-width: 0;
}

.ai-location-info svg {
    flex-shrink: 0;
}

.ai-location-label {
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(36, 81, 196, 0.22);
    border-radius: 8px;
    color: var(--theme-accent-text, #2451C4);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease;
}

.ai-location-btn:hover {
    background: var(--primary, #2451C4);
    color: #ffffff;
    border-color: var(--primary, #2451C4);
}

/* 4c. Location Picker Dropdown / Overlay */
.ai-location-picker {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(14, 27, 51, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    animation: aiLocSlideDown 0.22s ease-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

@keyframes aiLocSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-loc-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ai-loc-picker-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink, #0E1B33);
}

.ai-loc-picker-close {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(14, 27, 51, 0.06);
    border-radius: 6px;
    color: var(--ink-soft, #5C6B8A);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-loc-picker-close:hover {
    background: rgba(14, 27, 51, 0.12);
    color: var(--ink, #0E1B33);
}

.ai-loc-chips {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-loc-chip {
    flex-shrink: 0 !important;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(36, 81, 196, 0.08);
    border: 1px solid rgba(36, 81, 196, 0.18);
    color: var(--theme-accent-text, #2451C4);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap !important;
}

.ai-loc-chip:hover, .ai-loc-chip.active {
    background: var(--primary, #2451C4);
    color: #ffffff;
    border-color: var(--primary, #2451C4);
}

.ai-loc-custom-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-loc-custom-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(14, 27, 51, 0.15);
    background: #ffffff;
    font-size: 11.5px;
    color: var(--ink, #0E1B33);
    outline: none;
    transition: border-color 0.2s ease;
}

.ai-loc-custom-input:focus {
    border-color: var(--primary, #2451C4);
}

.ai-loc-save-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--primary, #2451C4);
    border: none;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ai-loc-save-btn:hover {
    opacity: 0.9;
}

.ai-loc-picker-footer {
    display: flex;
    justify-content: flex-end;
}

.ai-loc-reset-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--status-danger-text);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 4px;
}

/* Dark mode overrides for location bar & picker */
:root.dark-theme .ai-location-bar {
    background: rgba(30, 41, 59, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root.dark-theme .ai-location-info {
    color: #93C5FD;
}

:root.dark-theme .ai-location-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(147, 197, 253, 0.3);
    color: #93C5FD;
}

:root.dark-theme .ai-location-btn:hover {
    background: #3B82F6;
    color: #ffffff;
}

:root.dark-theme .ai-location-picker {
    background: rgba(30, 41, 59, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root.dark-theme .ai-loc-picker-title {
    color: #F1F5F9;
}

:root.dark-theme .ai-loc-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(147, 197, 253, 0.25);
    color: #93C5FD;
}

:root.dark-theme .ai-loc-chip:hover, :root.dark-theme .ai-loc-chip.active {
    background: #3B82F6;
    color: #ffffff;
}

:root.dark-theme .ai-loc-custom-input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    color: #F1F5F9;
}

/* 5. Messages Body Stream */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(14, 27, 51, 0.12);
    border-radius: 10px;
}

/* Welcome Card Row & Bubble */
.ai-welcome-row {
    width: 100%;
}

.ai-welcome-card {
    flex: 1;
    max-width: calc(100% - 36px);
    background: rgba(234, 240, 252, 0.7);
    border: 1px solid rgba(36, 81, 196, 0.16);
    border-radius: 18px 18px 18px 4px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #0E1B33;
    box-sizing: border-box;
}

.ai-welcome-card p {
    margin: 0 0 6px;
}

.ai-welcome-card p:last-child {
    margin-bottom: 0;
}

/* Quick Suggestion Chips */
.ai-quick-chips {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.ai-chip-btn {
    background: #FFFFFF;
    border: 1px solid rgba(36, 81, 196, 0.2);
    color: var(--theme-accent-text);
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease;
    box-shadow: 0 1px 4px rgba(36, 81, 196, 0.08);
}

.ai-chip-btn:hover {
    background: #2451C4;
    color: #FFFFFF;
    border-color: #2451C4;
    transform: translateY(-1px);
}

.ai-chip-btn:active {
    transform: scale(0.95);
}

/* Message Rows */
.ai-msg-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
}

.ai-msg-row.user {
    justify-content: flex-end;
}

.ai-msg-row.bot {
    justify-content: flex-start;
}

/* Bot Message Avatar beside Bubble */
.ai-msg-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-bottom: 2px;
    border-radius: 0;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ai-msg-avatar video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.ai-msg-bubble {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    box-sizing: border-box;
}

/* User Message */
.ai-msg-row.user .ai-msg-bubble {
    max-width: 82%;
    background: linear-gradient(135deg, #2451C4, #1B3FA3);
    color: #FFFFFF;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 14px rgba(36, 81, 196, 0.25);
    font-weight: 500;
}

/* Bot Message */
.ai-msg-row.bot .ai-msg-bubble {
    max-width: calc(100% - 36px);
    width: fit-content;
    background: #FFFFFF;
    border: 1px solid rgba(14, 27, 51, 0.08);
    color: #0E1B33;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 4px 16px rgba(14, 27, 51, 0.05);
}

.ai-msg-bubble p {
    margin: 0 0 6px;
}
.ai-msg-bubble p:last-child {
    margin-bottom: 0;
}

.ai-msg-bubble strong {
    font-weight: 700;
    color: inherit;
}

.ai-msg-bubble a {
    color: var(--theme-accent-text);
    text-decoration: underline;
    font-weight: 600;
}

/* Typing Indicator Dots */
.ai-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid rgba(14, 27, 51, 0.08);
    border-radius: 18px 18px 18px 4px;
    width: fit-content;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2451C4;
    opacity: 0.6;
    animation: aiBounceDot 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiBounceDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* 6. Footer Input Bar & Universal Quick Dock */
.ai-chat-footer {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 4px));
    border-top: 1px solid rgba(14, 27, 51, 0.06);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Universal Action Dock */
.ai-quick-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.ai-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6.5px 4px;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    color: #1D4ED8;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap !important;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.04);
}

.ai-dock-btn:hover {
    background: rgba(37, 99, 235, 0.16);
    border-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15);
}

.ai-dock-btn:active {
    transform: translateY(0);
}

.ai-dock-btn svg {
    color: var(--theme-accent-text);
    flex-shrink: 0;
}

html.dark-theme .ai-quick-dock .ai-dock-btn {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(59, 130, 246, 0.32);
    color: #93C5FD;
}

html.dark-theme .ai-quick-dock .ai-dock-btn:hover {
    background: rgba(37, 99, 235, 0.28);
    border-color: #60A5FA;
}

html.dark-theme .ai-quick-dock .ai-dock-btn svg {
    color: #60A5FA;
}

html.dark-theme .ai-chat-footer {
    background: rgba(15, 23, 42, 0.78);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.ai-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1.5px solid rgba(14, 27, 51, 0.12);
    border-radius: 100px;
    padding: 4px 6px 4px 14px;
    box-shadow: 0 2px 8px rgba(14, 27, 51, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-input-form:focus-within {
    border-color: #2451C4;
    box-shadow: 0 4px 14px rgba(36, 81, 196, 0.14);
}

.ai-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: #0E1B33;
    font-family: inherit;
    padding: 6px 0;
}

.ai-chat-input::placeholder {
    color: #93A2C2;
}

.ai-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2451C4;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.ai-send-btn:hover {
    background: #1B3FA3;
    transform: scale(1.05);
}

.ai-send-btn:active {
    transform: scale(0.92);
}

.ai-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* 7. Dark Mode Integration (Smooth Liquid Glass Inversion) */
html.dark-theme .ai-chat-launcher {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
}

html.dark-theme .ai-launcher-shape-bg path {
    fill: rgba(36, 81, 196, 0.38);
}

html.dark-theme .ai-chat-launcher:hover .ai-launcher-shape-bg path {
    fill: rgba(36, 81, 196, 0.50);
}

html.dark-theme .ai-chat-drawer {
    background: rgba(10, 20, 38, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

html.dark-theme .ai-chat-drag-handle {
    background: rgba(255, 255, 255, 0.2);
}

html.dark-theme .ai-chat-header {
    background: rgba(14, 27, 51, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .ai-chat-title {
    color: #F3F6FC;
}

html.dark-theme .ai-header-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #93A2C2;
}

html.dark-theme .ai-welcome-card {
    background: rgba(36, 81, 196, 0.12);
    border-color: rgba(36, 81, 196, 0.25);
    color: #F3F6FC;
}

html.dark-theme .ai-chip-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: rgba(20, 35, 65, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: #7AA2F7;
}

html.dark-theme .ai-msg-row.bot .ai-msg-bubble {
    background: rgba(18, 32, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    color: #F3F6FC;
}

html.dark-theme .ai-typing-indicator {
    background: rgba(18, 32, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .ai-chat-footer {
    background: rgba(10, 20, 38, 0.7);
    border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .ai-input-form {
    background: rgba(18, 32, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
}

html.dark-theme .ai-chat-input {
    color: #F3F6FC;
}

/* ==========================================================================
   Schedule & Rich Card Styles (Liquid Glass & Modern Responsive Typography)
   ========================================================================== */

.ai-chat-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 27, 51, 0.12), transparent);
    margin: 10px 0;
    width: 100%;
}

/* Stoppage Road Flow */
.ai-stoppage-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(14, 27, 51, 0.08);
    border-radius: 12px;
    padding: 9px 10px;
    margin: 8px 0;
    line-height: 1.4;
}

.ai-stop-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid rgba(14, 27, 51, 0.08);
    color: #1E293B;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ai-stop-pill.terminal {
    background: #2451C4;
    color: #FFFFFF;
    border-color: #2451C4;
}

.ai-stop-sep {
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
}

.ai-stop-caution {
    width: 100%;
    margin-top: 6px;
    font-size: 10.5px;
    color: #DC2626;
    background: rgba(239, 68, 68, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Schedule Title Banner */
.ai-schedule-title {
    font-size: 13px;
    font-weight: 700;
    color: #0E1B33;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(14, 27, 51, 0.08);
}

.ai-schedule-title svg {
    color: var(--theme-accent-text);
    flex-shrink: 0;
}

/* Trip Direction Header Badges */
.ai-trip-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3.5px 8px;
    border-radius: 6px;
    margin: 8px 0 6px;
    letter-spacing: 0.2px;
}

.ai-trip-header:first-child {
    margin-top: 0;
}

.ai-trip-header.up {
    background: rgba(36, 81, 196, 0.09);
    color: #1D4ED8;
    border: 1px solid rgba(36, 81, 196, 0.2);
}

.ai-trip-header.down {
    background: rgba(2, 132, 199, 0.1);
    color: #0284C7;
    border: 1px solid rgba(2, 132, 199, 0.22);
}

/* Trips Grid */
.ai-trips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 4px 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.ai-trips-grid.single-col {
    grid-template-columns: 1fr !important;
}

/* Trip Card */
.ai-trip-card {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(14, 27, 51, 0.09);
    border-radius: 10px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ai-trip-card[role="button"] {
    cursor: pointer;
}

.ai-trip-card[role="button"]:hover {
    background: #FFFFFF;
    border-color: #2451C4;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(36, 81, 196, 0.12);
}

.ai-trip-card[role="button"]:active {
    transform: scale(0.97);
}

.ai-trip-time {
    font-size: 11.5px;
    font-weight: 700;
    color: #0E1B33;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-trip-time svg {
    color: #64748B;
    flex-shrink: 0;
}

.ai-trip-bus {
    font-size: 11px;
    font-weight: 650;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text);
    padding: 2.5px 7px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
    flex-shrink: 1;
    text-align: right;
}

/* Live Tracking Hint */
.ai-track-hint {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11.5px;
    color: #1E40AF;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 6px;
    line-height: 1.4;
}

.ai-track-hint svg {
    color: var(--theme-accent-text);
    flex-shrink: 0;
}

/* Full Timetable CTA Action */
.ai-portal-action {
    margin-top: 8px;
    display: flex;
}

.ai-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2451C4, #1D4ED8);
    color: #FFFFFF !important;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(36, 81, 196, 0.25);
    transition: all 0.2s ease;
}

.ai-portal-btn:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 81, 196, 0.35);
}

.ai-chat-bullet-list {
    margin: 6px 0;
    padding-left: 18px;
}

.ai-chat-bullet-list li {
    margin-bottom: 3px;
}

.ai-chat-para {
    margin: 0 0 6px;
}

.ai-chat-para:last-child {
    margin-bottom: 0;
}

/* Dark Theme Overrides for Schedule Components */
html.dark-theme .ai-chat-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

html.dark-theme .ai-stoppage-flow {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .ai-stop-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}

html.dark-theme .ai-stop-pill.terminal {
    background: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

html.dark-theme .ai-stop-caution {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

html.dark-theme .ai-trip-header.up {
    background: rgba(59, 130, 246, 0.16);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.3);
}

html.dark-theme .ai-trip-header.down {
    background: rgba(245, 158, 11, 0.16);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.3);
}

html.dark-theme .ai-trip-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .ai-trip-card[role="button"]:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: #3B82F6;
}

html.dark-theme .ai-trip-time {
    color: #F1F5F9;
}

html.dark-theme .ai-trip-time svg {
    color: #94A3B8;
}

html.dark-theme .ai-trip-bus {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}

html.dark-theme .ai-track-hint {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #93C5FD;
}

html.dark-theme .ai-track-hint svg {
    color: #60A5FA;
}

/* ==========================================================================
   7. Live Bus Status Card with Mini Map Preview & Direct Map Zoom
   ========================================================================== */
.ai-bus-live-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px -6px rgba(20, 40, 90, 0.08), 0 2px 6px -1px rgba(20, 40, 90, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-bus-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ai-bus-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37, 99, 235, 0.1);
    color: #1D4ED8;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.ai-bus-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent-text);
}

.ai-bus-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.ai-bus-status-chip.moving {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ai-bus-status-chip.stopped {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.ai-bus-status-dot {
    white-space: nowrap !important;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-bus-status-chip.moving .ai-bus-status-dot {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: aiDotPulse 1.8s infinite;
}

.ai-bus-status-chip.stopped .ai-bus-status-dot {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: #F59E0B;
}

@keyframes aiDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mini Map Preview Box */
.ai-bus-minimap-box {
    position: relative;
    width: 100%;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(20, 40, 90, 0.12);
    background: #E2E8F0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-bus-minimap-box:hover {
    transform: translateY(-1px);
    border-color: #3B82F6;
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ai-minimap-canvas {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none; /* Let parent handle click smoothly */
}

.ai-minimap-canvas .leaflet-control-container {
    display: none !important;
}

.ai-minimap-zoom-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 500;
    pointer-events: none;
}

.ai-zoom-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4.5px 9px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.1px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
}

.ai-bus-minimap-box:hover .ai-zoom-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: rgba(37, 99, 235, 0.92);
}

/* Custom Mini Map Pin Marker */
.ai-minimap-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.ai-minimap-marker {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-pin-pulse {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    animation: aiPinPulse 2s infinite ease-out;
}

.ai-minimap-marker.moving .ai-pin-pulse {
    background: rgba(16, 185, 129, 0.4);
}

@keyframes aiPinPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

.ai-pin-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #1E3A8A;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 8px;
    border: 1.5px solid #FFFFFF;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.ai-minimap-marker.moving .ai-pin-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: #047857;
}

/* Details List */
.ai-bus-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-bus-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 6px 8px;
    background: rgba(241, 245, 249, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.ai-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    margin-top: 2px;
    flex-shrink: 0;
}

.ai-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ai-detail-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ai-detail-val {
    font-size: 12.5px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.35;
    word-break: break-word;
}

.ai-detail-val.address {
    font-weight: 600;
    color: #0F172A;
}

.ai-driver-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #10B981;
    color: #FFFFFF !important;
    text-decoration: none !important;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    align-self: center;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.18s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.ai-driver-call-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Action Zoom Button */
.ai-bus-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.ai-bus-zoom-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    filter: brightness(1.05);
}

.ai-bus-zoom-btn:active {
    transform: translateY(0);
}

/* Dark Theme Overrides for Bus Card */
html.dark-theme .ai-bus-live-card {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

html.dark-theme .ai-bus-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: rgba(37, 99, 235, 0.2);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.35);
}

html.dark-theme .ai-bus-status-chip.moving {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.4);
}

html.dark-theme .ai-bus-status-chip.stopped {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.4);
}

html.dark-theme .ai-bus-minimap-box {
    border-color: rgba(255, 255, 255, 0.12);
    background: #0B1120;
}

html.dark-theme .ai-bus-detail-row {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .ai-detail-label {
    color: #94A3B8;
}

html.dark-theme .ai-detail-val {
    color: #E2E8F0;
}

html.dark-theme .ai-detail-val.address {
    color: #F8FAFC;
}

html.dark-theme .ai-welcome-card {
    background: rgba(18, 32, 58, 0.85);
    border-color: rgba(59, 130, 246, 0.25);
    color: #F3F6FC;
}

html.dark-theme .ai-schedule-title {
    color: #F1F5F9;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark-theme .ai-schedule-title svg {
    color: #60A5FA;
}

html.dark-theme .ai-trip-header.up {
    background: rgba(37, 99, 235, 0.2);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.35);
}

html.dark-theme .ai-trip-header.down {
    background: rgba(2, 132, 199, 0.2);
    color: #7DD3FC;
    border-color: rgba(2, 132, 199, 0.35);
}

html.dark-theme .ai-trip-card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

html.dark-theme .ai-trip-card[role="button"]:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: #3B82F6;
}

html.dark-theme .ai-trip-time {
    color: #F1F5F9;
}

html.dark-theme .ai-trip-time svg {
    color: #94A3B8;
}

html.dark-theme .ai-trip-bus {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}

/* 8. Mobile Breakpoints Hierarchy (Strict Rule 1 Standard) */
@media (max-width: 480px) {
    .ai-chat-launcher {
        width: 54px;
        height: 54px;
        left: 12px;
        bottom: calc(82px + env(safe-area-inset-bottom, 6px));
    }
    .ai-chat-drawer {
        height: 82vh;
        max-height: 560px;
    }
    .ai-chat-header {
        padding: 8px 14px 10px;
    }
    .ai-chat-title {
        font-size: 13.5px;
    }
    .ai-chat-messages {
        padding: 12px 12px 8px;
        gap: 10px;
    }
    .ai-msg-row.bot .ai-msg-bubble {
        max-width: calc(100% - 33px);
    }
    .ai-msg-row.user .ai-msg-bubble {
        max-width: 86%;
    }
    .ai-msg-bubble {
        font-size: 12.5px;
        padding: 9px 12px;
    }
    .ai-welcome-card {
        max-width: calc(100% - 33px);
        padding: 11px 12px;
        font-size: 12.5px;
    }
    .ai-chip-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
        font-size: 10.5px;
        padding: 5px 9px;
    }
    .ai-trips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }
    .ai-trips-grid.single-col {
        grid-template-columns: 1fr !important;
    }
    .ai-trip-card {
        padding: 6px 8px;
    }
    .ai-trip-time {
        font-size: 11px;
    }
    .ai-trip-bus {
        font-size: 10px;
        padding: 2px 6px;
    }
    .ai-stop-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
        font-size: 10px;
        padding: 2.5px 6px;
    }
    .ai-bus-live-card {
        padding: 12px 10px;
        gap: 10px;
    }
    .ai-bus-minimap-box {
        height: 120px;
    }
    .ai-bus-zoom-btn {
        font-size: 12px;
        padding: 9px 12px;
    }
    .ai-quick-dock {
        gap: 4px;
        margin-bottom: 6px;
    }
    .ai-dock-btn {
        padding: 6px 3px;
        font-size: 10px;
        gap: 3px;
        border-radius: 10px;
    }
    .ai-dock-btn svg {
        width: 11px;
        height: 11px;
    }
    .ai-msg-avatar {
        width: 25px;
        height: 25px;
    }
    .ai-chat-footer {
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 4px));
    }
}

@media (max-width: 360px) {
    .ai-chat-launcher {
        width: 48px;
        height: 48px;
        left: 10px;
    }
    .ai-chat-title {
        font-size: 12.5px;
    }
    .ai-msg-avatar {
        width: 22px;
        height: 22px;
    }
    .ai-msg-row.bot .ai-msg-bubble {
        max-width: calc(100% - 28px);
    }
    .ai-msg-row.user .ai-msg-bubble {
        max-width: 88%;
    }
    .ai-msg-bubble {
        font-size: 12px;
        padding: 8px 10px;
    }
    .ai-welcome-card {
        max-width: calc(100% - 28px);
        padding: 10px 10px;
        font-size: 12px;
    }
    .ai-chip-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
        font-size: 10px;
        padding: 4px 8px;
    }
    .ai-trips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    .ai-trips-grid.single-col {
        grid-template-columns: 1fr !important;
    }
    .ai-trip-card {
        padding: 5px 6px;
        gap: 3px;
        border-radius: 7px;
    }
    .ai-trip-time {
        font-size: 10px;
        gap: 2px;
    }
    .ai-trip-time svg {
        width: 10px;
        height: 10px;
    }
    .ai-trip-bus {
        font-size: 9px;
        padding: 1.5px 5px;
        border-radius: 5px;
        max-width: 55%;
    }
    .ai-bus-live-card {
        padding: 10px 8px;
    }
    .ai-bus-minimap-box {
        height: 110px;
    }
    .ai-bus-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
        font-size: 12px;
        padding: 4px 8px;
    }
    .ai-bus-zoom-btn {
        font-size: 11.5px;
        padding: 8px 10px;
    }
    .ai-quick-dock {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .ai-quick-dock::-webkit-scrollbar {
        display: none;
    }
    .ai-dock-btn {
        flex: 0 0 auto;
        padding: 5.5px 8px;
        font-size: 9.5px;
    }
}

