.central-admin-link {
    text-decoration: none;
}

.central-card {
    max-width: 390px;
}

.central-drivers-panel {
    position: absolute;
    z-index: 520;
    right: 16px;
    bottom: 178px;
    width: min(320px, calc(100vw - 32px));
    max-height: min(360px, calc(100vh - 260px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.12);
    backdrop-filter: blur(14px);
}

.central-drivers-list {
    display: grid;
    gap: 10px;
}

.central-panel-heading {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.central-driver-item,
.central-filter-button {
    appearance: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.central-driver-item {
    display: grid;
    gap: 4px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.central-driver-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.central-driver-item.active .central-driver-name,
.central-driver-item:hover .central-driver-name {
    color: var(--brand-dark);
}

.central-driver-item.active {
    border-radius: 8px;
    padding: 10px;
    background: rgba(15, 139, 141, 0.09);
}

.central-driver-item.active:first-child {
    padding-top: 10px;
}

.central-driver-name {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.central-driver-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.central-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.central-driver-marker {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
}

.central-driver-dot {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    background: #172033;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.25);
}

.central-driver-arrow {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #172033;
    border-left: 6px solid transparent;
    transform: translateX(-50%) rotate(var(--driver-heading, 0deg));
    transform-origin: 50% 25px;
    opacity: 0;
}

.central-driver-marker.has-heading .central-driver-arrow {
    opacity: 1;
}

.driver-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #172033;
}

.central-filter-button {
    width: 100%;
    border-radius: 8px;
    padding: 5px 7px;
}

.central-filter-button:hover,
.central-filter-button.active {
    background: rgba(15, 139, 141, 0.1);
}

.central-filter-button:not(.active) {
    opacity: 0.72;
}

@media (max-width: 760px) {
    .central-drivers-panel {
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 124px);
        left: 12px;
        width: auto;
        max-height: 158px;
        padding: 12px;
    }

    .central-legend {
        display: none;
    }

    .central-shell .stats {
        overflow-x: auto;
        justify-content: flex-start;
        max-width: calc(100vw - 82px);
        padding-bottom: 2px;
    }

    .central-shell .stat {
        min-width: 104px;
    }
}
