:root { color-scheme: dark; }
[x-cloak] { display: none !important; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bg-grid {
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 56px 56px;
}
.card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); border-radius: 14px; }
.field { width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #111; padding: 12px 14px; color: #fafafa; outline: none; }
.field:focus { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; color: #a1a1aa; }
.btn-primary { display: inline-flex; cursor: pointer; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: #fafafa; color: #09090b; padding: 11px 16px; font-weight: 650; }
.btn-primary:hover { background: #e4e4e7; }
.btn-secondary { display: inline-flex; cursor: pointer; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fafafa; padding: 10px 14px; font-weight: 600; }
.btn-secondary:hover { background: rgba(255,255,255,.08); }
.btn-primary:disabled, .btn-secondary:disabled { cursor: wait; opacity: .62; }
.icon-btn { display: grid; height: 36px; width: 36px; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); color: #d4d4d8; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: white; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 650; }
.badge-critical { background: rgba(239,68,68,.15); color: #fca5a5; }
.badge-warning { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-notice { background: rgba(59,130,246,.15); color: #93c5fd; }
.badge-pass { background: rgba(16,185,129,.14); color: #86efac; }
.badge-muted { background: rgba(113,113,122,.14); color: #a1a1aa; }
.score-dot-wrap { position: relative; display: inline-flex; cursor: pointer; align-items: center; justify-content: center; }
.score-dot { display: inline-block; height: 14px; width: 14px; border-radius: 999px; border-width: 1px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.score-tooltip {
    pointer-events: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 30;
    min-width: 150px;
    transform: translateX(-50%) translateY(2px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(9,9,11,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.38);
    color: #e4e4e7;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0;
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: opacity .08s ease, transform .08s ease;
}
.score-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    height: 8px;
    width: 8px;
    transform: translateX(-50%) translateY(-4px) rotate(45deg);
    border-bottom: 1px solid rgba(255,255,255,.14);
    border-right: 1px solid rgba(255,255,255,.14);
    background: rgba(9,9,11,.96);
}
.score-dot-wrap:hover .score-tooltip,
.score-dot-wrap:focus-within .score-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.history-tooltip-wrap { position: relative; flex-shrink: 0; }
.history-tooltip {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 40;
    min-width: 170px;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(9,9,11,.98);
    box-shadow: 0 18px 45px rgba(0,0,0,.38);
    color: #e4e4e7;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0;
    padding: 9px 10px;
    text-align: center;
    white-space: nowrap;
}
.history-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    height: 8px;
    width: 8px;
    transform: translateX(-50%) translateY(4px) rotate(45deg);
    border-left: 1px solid rgba(255,255,255,.14);
    border-top: 1px solid rgba(255,255,255,.14);
    background: rgba(9,9,11,.98);
}
.history-tooltip-wrap:hover .history-tooltip,
.history-tooltip-wrap:focus-within .history-tooltip {
    opacity: 1;
}
.report-menu {
    position: sticky;
    top: 12px;
}
.report-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #a1a1aa;
    padding: 9px 10px;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.report-nav-link:hover {
    background: rgba(255,255,255,.05);
    color: #f4f4f5;
}
.report-nav-link-active {
    border-color: rgba(96,165,250,.28);
    background: rgba(59,130,246,.08);
    color: #dbeafe;
}
.report-nav-link-small {
    gap: 6px;
    padding: 7px 9px;
    font-size: 12px;
}
