#vehicleBottomSheet {
    --bs-panel: rgba(255,255,255,0.96);
    --bs-surface: #ffffff;
    --bs-surface-soft: #f6f9fd;
    --bs-line: #e8ecf1;
    --bs-text: #0f172a;
    --bs-muted: #64748b;
    --bs-accent: #6366f1;
    background:
        radial-gradient(circle at 8% 0%, rgba(99,102,241,0.10), transparent 34%),
        var(--bs-panel) !important;
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    border: 1px solid var(--bs-line) !important;
    border-bottom: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -18px 48px rgba(15,23,42,0.18) !important;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--bs-text) !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
#vehicleBottomSheet::-webkit-scrollbar { width: 6px; }
#vehicleBottomSheet::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
#vehicleBottomSheet .bs-handle-area {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 50px;
    padding: 10px 16px 6px;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 72%, rgba(255,255,255,0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#vehicleBottomSheet .bs-handle-area::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    transform: translateX(-50%);
}
#vehicleBottomSheet .bs-close-btn {
    background: #f8fafc !important;
    color: #475569 !important;
    border-radius: 20px !important;
    width: auto !important; height: 32px !important;
    padding: 0 14px !important;
    border: 1px solid #e8ecf1 !important;
    font-size: 0.78rem !important; font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
    transition: all 0.18s !important;
    position: static !important;
}
#vehicleBottomSheet .bs-close-btn:hover {
    background: #eef4fb !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
}
#vehicleBottomSheet .bs-content { color: var(--bs-text) !important; }
#vehicleBottomSheet .bs-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 2px 9px;
    color: #475569 !important;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
#vehicleBottomSheet .bs-section-heading i {
    margin-right: 6px;
    color: var(--bs-accent) !important;
}
#vehicleBottomSheet .bs-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857 !important;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
}
#vehicleBottomSheet .bs-live-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
#vehicleBottomSheet .bs-live-pill.is-stale {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b !important;
}
#vehicleBottomSheet .bs-live-pill.is-stale::before {
    background: #94a3b8;
    box-shadow: none;
}
#vehicleBottomSheet .bs-glass-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--bs-line);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.045);
}
#vehicleBottomSheet .bs-glass-card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
    border: 1px solid var(--bs-line);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
#vehicleBottomSheet .bs-glass-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 24px;
    font-size: 0.72rem; font-weight: 700;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    color: #475569 !important;
}
#vehicleBottomSheet .bs-glass-badge.moving {
    background: #ecfdf5; border-color: #bbf7d0; color: #047857 !important;
}
#vehicleBottomSheet .bs-glass-badge.blocked {
    background: #fef2f2; border-color: #fecaca; color: #dc2626 !important;
}
#vehicleBottomSheet .bs-telemetry-layout {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
#vehicleBottomSheet .bs-telemetry-layout .bs-tele-card {
    grid-column: span 2;
}
#vehicleBottomSheet .bs-telemetry-layout .bs-tele-card:nth-child(-n + 2) {
    grid-column: span 3;
}
#vehicleBottomSheet .bs-telemetry-layout.is-tag .bs-tele-card {
    grid-column: 1 / -1;
}
#vehicleBottomSheet .bs-tele-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid var(--bs-line);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15,23,42,0.035);
}
#vehicleBottomSheet .bs-tele-card:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    background: #ffffff;
}
#vehicleBottomSheet .bs-tele-card .bs-tele-header {
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: #64748b !important; margin-bottom: 6px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
#vehicleBottomSheet .bs-tele-card .bs-tele-header i {
    color: var(--bs-accent) !important;
}
#vehicleBottomSheet .bs-tele-card .bs-tele-val {
    font-size: 1.3rem; font-weight: 800; color: var(--bs-text) !important;
}
#vehicleBottomSheet .bs-tele-card .bs-tele-val small {
    font-size: 0.65rem; color: #94a3b8 !important; margin-left: 4px; font-weight: 600;
}
#vehicleBottomSheet .bs-glass-detail-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eef6;
}
#vehicleBottomSheet .bs-glass-detail-item:last-child { border-bottom: none; }
#vehicleBottomSheet .bs-glass-detail-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: #eef2ff;
    display: flex; align-items: center; justify-content: center;
    color: var(--bs-accent) !important; font-size: 0.9rem;
    flex-shrink: 0;
}
#vehicleBottomSheet .bs-glass-detail-label {
    font-size: 0.68rem; color: #64748b !important; text-transform: uppercase;
    letter-spacing: 0.05em; font-weight: 600;
}
#vehicleBottomSheet .bs-glass-detail-val {
    font-size: 0.85rem; color: #1e293b; font-weight: 650; margin-top: 2px;
}
#vehicleBottomSheet .bs-glass-pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px; padding: 14px 16px;
    display: none; justify-content: space-between; align-items: center;
    box-shadow: 0 6px 18px rgba(245,158,11,0.08);
}
#vehicleBottomSheet .bs-glass-pending-title { color: #92400e !important; font-weight: 800 !important; font-size: 0.8rem !important; }
#vehicleBottomSheet .bs-glass-pending-desc { color: #b45309 !important; font-weight: 600 !important; font-size: 0.73rem !important; }
#vehicleBottomSheet #bsCancelPendingButton {
    background: #fff !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}
#vehicleBottomSheet .bs-glass-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
#vehicleBottomSheet .bs-glass-actions .bs-glass-util-btn {
    grid-column: span 2;
}
#vehicleBottomSheet .bs-glass-actions .bs-glass-util-btn:nth-last-child(-n + 2) {
    grid-column: span 3;
}
#vehicleBottomSheet .bs-glass-util-btn {
    min-height: 42px;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--bs-line);
    border-radius: 12px; padding: 10px 14px;
    color: #475569 !important; font-size: 0.73rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15,23,42,0.035);
}
#vehicleBottomSheet .bs-glass-util-btn i { color: var(--bs-accent) !important; }
#vehicleBottomSheet .bs-glass-util-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(99,102,241,0.12);
}
#vehicleBottomSheet .bs-glass-status-label {
    font-weight: 900; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
    padding: 6px 18px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px;
}
#vehicleBottomSheet .bs-glass-status-label.blocked {
    background: #fef2f2; color: #dc2626 !important; border: 1px solid #fecaca;
}
#vehicleBottomSheet .bs-glass-status-label.unblocked {
    background: #ecfdf5; color: #047857 !important; border: 1px solid #bbf7d0;
}
#vehicleBottomSheet .bs-glass-photo-frame {
    width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
    border: 1px solid #e8ecf1;
    background: #eef4fb;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 7px 18px rgba(15,23,42,0.08);
}
#vehicleBottomSheet .bs-glass-photo-frame img {
    width: 100%; height: 100%; object-fit: cover;
}
#vehicleBottomSheet .bs-glass-photo-frame > i { color: #94a3b8 !important; }
#vehicleBottomSheet .bs-glass-admin-photo-btn {
    background: #6366f1; border: 2px solid #ffffff;
    border-radius: 10px; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff !important; cursor: pointer; font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(99,102,241,0.25);
}
#vehicleBottomSheet .bs-glass-admin-photo-btn i { color: #ffffff !important; }
#vehicleBottomSheet .bs-glass-admin-photo-btn:hover {
    background: #4f46e5; color: #fff !important;
}
#vehicleBottomSheet .bs-glass-anchor-active {
    background: #fffbeb !important;
    border-color: #fcd34d !important;
    color: #b45309 !important;
}
#vehicleBottomSheet .bs-glass-anchor-active i { color: #d97706 !important; }
#vehicleBottomSheet .battery-icon { background: #ffffff !important; }
#vehicleBottomSheet .battery-text { text-shadow: none !important; font-weight: 900 !important; }
#vehicleBottomSheet .neo-toggle-container {
    --toggle-width: 230px;
    --toggle-height: 54px;
    margin: 8px 0 2px;
    opacity: 1;
    filter: none;
}
#vehicleBottomSheet .neo-toggle {
    width: var(--toggle-width);
    height: var(--toggle-height);
    border-radius: 18px;
    overflow: hidden;
    outline: none;
}
#vehicleBottomSheet .neo-track {
    border: 1px solid #a7f3d0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    box-shadow: 0 8px 22px rgba(16,185,129,0.12), inset 0 1px 0 rgba(255,255,255,0.85);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
#vehicleBottomSheet .neo-toggle-input:checked + .neo-toggle .neo-track {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff1f2 0%, #fef2f2 100%);
    box-shadow: 0 8px 22px rgba(239,68,68,0.12), inset 0 1px 0 rgba(255,255,255,0.85);
}
#vehicleBottomSheet .bs-engine-copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-left: 48px;
    color: #047857 !important;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
#vehicleBottomSheet .bs-engine-copy i { color: currentColor !important; }
#vehicleBottomSheet .bs-engine-copy.blocked {
    padding-right: 48px;
    padding-left: 0;
    color: #b91c1c !important;
    opacity: 0;
    transform: translateX(-8px);
}
#vehicleBottomSheet .neo-toggle-input:checked + .neo-toggle .bs-engine-copy.unblocked {
    opacity: 0;
    transform: translateX(8px);
}
#vehicleBottomSheet .neo-toggle-input:checked + .neo-toggle .bs-engine-copy.blocked {
    opacity: 1;
    transform: translateX(0);
}
#vehicleBottomSheet .neo-thumb {
    top: 6px;
    left: 6px;
    width: 42px;
    height: 42px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#vehicleBottomSheet .neo-thumb-ring {
    border: 3px solid #ffffff;
    background: #10b981;
    box-shadow: 0 5px 14px rgba(16,185,129,0.28);
}
#vehicleBottomSheet .neo-toggle-input:checked + .neo-toggle .neo-thumb {
    transform: translateX(calc(var(--toggle-width) - 54px));
}
#vehicleBottomSheet .neo-toggle-input:checked + .neo-toggle .neo-thumb-ring {
    border-color: #ffffff;
    background: #ef4444;
    box-shadow: 0 5px 14px rgba(239,68,68,0.28);
}
#vehicleBottomSheet .neo-thumb-icon {
    color: #ffffff !important;
    font-size: 0.92rem;
}
#vehicleBottomSheet .neo-thumb-icon i { color: #ffffff !important; }
#vehicleBottomSheet .neo-toggle-input:focus-visible + .neo-toggle {
    outline: 3px solid rgba(99,102,241,0.28);
    outline-offset: 3px;
}
#vehicleBottomSheet .bs-engine-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 18px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
#vehicleBottomSheet .neo-toggle-container.neo-is-commanding {
    opacity: 1;
    filter: none;
    animation: none;
    pointer-events: none;
}
#vehicleBottomSheet .neo-is-commanding .neo-thumb,
#vehicleBottomSheet .neo-is-commanding .bs-engine-copy {
    opacity: 0;
}
#vehicleBottomSheet .neo-is-commanding .bs-engine-overlay.pending {
    display: flex;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #a16207 !important;
}
#vehicleBottomSheet .neo-toggle-container.vps-offline-disabled {
    pointer-events: none;
}
#vehicleBottomSheet .vps-offline-disabled .neo-thumb,
#vehicleBottomSheet .vps-offline-disabled .bs-engine-copy,
#vehicleBottomSheet .vps-offline-disabled .bs-engine-overlay.pending {
    display: none;
}
#vehicleBottomSheet .vps-offline-disabled .bs-engine-overlay.offline {
    display: flex;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b !important;
}
@media (max-width: 380px) {
    #vehicleBottomSheet .bs-glass-util-btn {
        padding-inline: 8px;
        font-size: 0.68rem;
    }
    #vehicleBottomSheet .bs-glass-card-header {
        padding-inline: 14px;
    }
}
