#map {
    width: 100%;
    height: 70vh;
    min-height: 480px;
    border-radius: 10px;
}

.run-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.run-controls input {
    width: 90px;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.timeline-controls input[type="range"] {
    min-width: 260px;
    flex: 1;
}

.timeline-value {
    min-width: 180px;
    font-size: 12px;
    color: #374151;
}

.device-health {
    margin-top: 14px;
}

.device-health h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.device-health-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.device-health-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
}

.device-health-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.device-health-dot.green {
    background: #16a34a;
}

.device-health-dot.orange {
    background: #f59e0b;
}

.device-health-dot.red {
    background: #dc2626;
}

.location-history {
    margin-top: 14px;
}

.location-history h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.location-history-list {
    max-height: 260px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.location-history-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
}

.location-history-item:last-child {
    border-bottom: none;
}

.location-history-time {
    color: #374151;
    font-family: Consolas, "Courier New", monospace;
}

.location-history-details {
    color: #111827;
}

.leaflet-tooltip.device-label {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    color: #111827;
    padding: 6px 8px;
}

.device-label-title {
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
}

.device-label-guid {
    margin-top: 2px;
    font-size: 10px;
    color: #6b7280;
    line-height: 1.2;
}
