.live-view-shell {
    display: flex;
    height: calc(100vh - 88px);
    min-height: 640px;
    margin: -1.5rem -1.5rem 0;
    background: #f5f7fb;
    overflow: hidden;
}

.live-view-panel {
    width: min(420px, 40vw);
    min-width: 360px;
    background: #ffffff;
    border-right: 1px solid #e9edf3;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 32px rgba(24, 28, 50, 0.06);
    z-index: 2;
}

.live-view-panel-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #eff2f5;
}

.live-view-panel-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #181c32;
    margin: 0 0 0.35rem;
}

.live-view-panel-header p {
    margin: 0;
    color: #7e8299;
    font-size: 0.9rem;
}

.live-view-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.live-view-stat {
    border: 1px solid #eef1f5;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fafbfc;
}

.live-view-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a5b7;
}

.live-view-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #181c32;
    margin-top: 0.15rem;
}

.live-view-toolbar {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #eff2f5;
    display: flex;
    gap: 0.65rem;
}

.live-view-search {
    position: relative;
    flex: 1;
}

.live-view-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a5b7;
}

.live-view-search input {
    width: 100%;
    border: 1px solid #e4e6ef;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem 0.7rem 2.35rem;
    font-size: 0.92rem;
    background: #fafbfc;
}

.live-view-search input:focus {
    outline: none;
    border-color: #1b84ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 132, 255, 0.12);
}

.live-view-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem 1.25rem;
}

.live-view-card {
    width: 100%;
    text-align: left;
    border: 1px solid #e9edf3;
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 0.95rem 1rem;
    margin-bottom: 0.7rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.live-view-card:hover {
    border-color: #c9dcff;
    box-shadow: 0 8px 24px rgba(27, 132, 255, 0.08);
}

.live-view-card.selected {
    border-color: #1b84ff;
    box-shadow: 0 10px 28px rgba(27, 132, 255, 0.14);
    transform: translateY(-1px);
}

.live-view-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.live-view-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #181c32;
}

.live-view-card-subtitle {
    font-size: 0.78rem;
    color: #7e8299;
    margin-top: 0.15rem;
}

.live-view-status {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.live-view-status.moving {
    background: #e8fff3;
    color: #50cd89;
}

.live-view-status.idle {
    background: #fff8dd;
    color: #f1a800;
}

.live-view-status.stopped,
.live-view-status.offline {
    background: #f1f1f4;
    color: #7e8299;
}

.live-view-status.no-position {
    background: #fff5f8;
    color: #f1416c;
}

.live-view-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
}

.live-view-card-grid span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a5b7;
}

.live-view-card-grid strong {
    display: block;
    font-size: 0.8rem;
    color: #3f4254;
    margin-top: 0.1rem;
}

.live-view-card-address {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #5e6278;
}

.live-view-empty {
    text-align: center;
    color: #7e8299;
    padding: 2rem 1rem;
}

.live-view-map-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    background: #e9edf3;
}

.live-view-map-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.live-view-map-canvas,
.live-view-map-host .mapboxgl-map {
    width: 100%;
    height: 100%;
}

.live-fleet-marker {
    position: relative;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.live-fleet-marker-dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(24, 28, 50, 0.35);
    transition: box-shadow 0.15s ease;
}

.live-fleet-marker.selected .live-fleet-marker-dot {
    box-shadow: 0 0 0 4px rgba(27, 132, 255, 0.3), 0 2px 10px rgba(24, 28, 50, 0.35);
}

.live-fleet-marker-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(24, 28, 50, 0.88);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.live-fleet-marker.moving .live-fleet-marker-dot {
    background: #47be7d;
}

.live-fleet-marker.idle .live-fleet-marker-dot {
    background: #f1a800;
}

.live-fleet-marker.stopped .live-fleet-marker-dot,
.live-fleet-marker.offline .live-fleet-marker-dot,
.live-fleet-marker.no-position .live-fleet-marker-dot {
    background: #7e8299;
}

.live-fleet-hover-popup .mapboxgl-popup-content {
    padding: 0;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(24, 28, 50, 0.18);
}

.live-fleet-hover-card {
    min-width: 240px;
    max-width: 300px;
    padding: 0.85rem 0.9rem;
    background: #ffffff;
}

.live-fleet-hover-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #181c32;
    margin-bottom: 0.55rem;
}

.live-fleet-hover-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}

.live-fleet-hover-row span {
    color: #a1a5b7;
    font-weight: 600;
}

.live-fleet-hover-row strong {
    color: #3f4254;
    text-align: right;
}

.live-fleet-hover-address {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid #eff2f5;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #5e6278;
}

.live-fleet-hover-footer {
    margin-top: 0.45rem;
    font-size: 0.7rem;
    color: #a1a5b7;
}

