/* ─── Site Analytics Panel ─────────────────────────────────────────── */

.vo-ap-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
}

.vo-ap-overlay.open { display: flex; }

.vo-ap-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.vo-ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 10px;
}

.vo-ap-title {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.vo-ap-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.vo-ap-close:hover { background: #f3f4f6; color: #111827; }

.vo-ap-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 12px;
}

.vo-ap-range-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.82rem;
    cursor: pointer;
}

.vo-ap-range-btn.active {
    background: #2D7D7D;
    border-color: #2D7D7D;
    color: #ffffff;
}

.vo-ap-custom {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 12px;
}

.vo-ap-custom.open { display: flex; }

.vo-ap-custom-label {
    font-size: 0.82rem;
    color: #6b7280;
}

.vo-ap-custom input[type="date"] {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.82rem;
    color: #374151;
}

.vo-ap-custom-apply {
    background: #2D7D7D;
    border: none;
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 0.82rem;
    cursor: pointer;
}

.vo-ap-body {
    padding: 4px 24px 8px;
    overflow-y: auto;
}

.vo-ap-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.vo-ap-tile {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.vo-ap-tile-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.vo-ap-tile-label {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
}

.vo-ap-section { margin-bottom: 18px; min-width: 0; }

.vo-ap-section-title {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #374151;
}

.vo-ap-chart-wrap {
    position: relative;
    height: 220px;
}

.vo-ap-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vo-ap-right-col { min-width: 0; }

.vo-ap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vo-ap-list-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.86rem;
}

.vo-ap-list-label {
    color: #1f2937;
    overflow-wrap: anywhere;
    min-width: 0;
}

.vo-ap-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.vo-ap-list-value {
    color: #6b7280;
    white-space: nowrap;
}

.vo-ap-state {
    text-align: center;
    padding: 40px 20px;
}

.vo-ap-state-text {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0 0 14px;
}

.vo-ap-retry {
    background: #2D7D7D;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.88rem;
}

.vo-ap-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 4px 0 24px;
}

.vo-ap-skeleton-tile {
    height: 76px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: vo-ap-shimmer 1.2s infinite;
}

@keyframes vo-ap-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vo-ap-note {
    padding: 8px 24px 16px;
    font-size: 0.75rem;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .vo-ap-tiles, .vo-ap-skeleton { grid-template-columns: repeat(2, 1fr); }
    .vo-ap-columns { grid-template-columns: 1fr; }
}
