.object-inspector-hud {
    position: fixed;
    inset: 0;
    z-index: 75;
    pointer-events: none;
    color: #e2e8f0;
}

.object-inspector-reticle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45));
}

.object-inspector-corner {
    position: absolute;
    width: 19px;
    height: 19px;
    border-color: #67e8f9;
    border-style: solid;
}

.object-inspector-corner-nw {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.object-inspector-corner-ne {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.object-inspector-corner-sw {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.object-inspector-corner-se {
    right: 0;
    bottom: 0;
    border-width: 0 2px 2px 0;
}

.object-inspector-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2), 0 0 12px #22d3ee;
    transform: translate(-50%, -50%);
}

.object-inspector-panel {
    position: absolute;
    left: 50%;
    bottom: 5.5vh;
    width: min(720px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-left: 4px solid #22d3ee;
    border-radius: 8px;
    background:
        linear-gradient(110deg, rgba(8, 16, 28, 0.97), rgba(13, 28, 43, 0.96)),
        #08101c;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.03);
    transform: translateX(-50%);
    transition: border-color 160ms ease, border-left-color 160ms ease;
}

.object-inspector-panel.is-empty {
    border-color: rgba(100, 116, 139, 0.45);
    border-left-color: #64748b;
}

.object-inspector-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 10px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.72);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.07), transparent 58%);
}

.object-inspector-heading p,
.object-inspector-label {
    margin: 0;
    color: #67e8f9;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.object-inspector-heading h2 {
    margin: 2px 0 0;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.object-inspector-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a5f3fc;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.object-inspector-state::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
    content: "";
    animation: object-inspector-pulse 1.25s ease-in-out infinite;
}

.object-inspector-panel.is-empty .object-inspector-state {
    color: #94a3b8;
}

.object-inspector-panel.is-empty .object-inspector-state::before {
    background: #64748b;
    box-shadow: none;
}

.object-inspector-readout {
    padding: 14px 18px 12px;
}

.object-inspector-readout strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #f8fafc;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: 700;
    letter-spacing: 0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.object-inspector-readout strong.is-unavailable {
    color: #fbbf24;
}

.object-inspector-panel.is-empty .object-inspector-label,
.object-inspector-panel.is-empty .object-inspector-readout strong {
    color: #64748b;
}

.object-inspector-metrics {
    display: grid;
    grid-template-columns: 1fr 0.65fr 1.65fr 0.65fr;
    margin: 0;
    border-top: 1px solid rgba(51, 65, 85, 0.52);
    border-bottom: 1px solid rgba(51, 65, 85, 0.52);
}

.object-inspector-metrics div {
    min-width: 0;
    padding: 10px 14px;
    border-right: 1px solid rgba(51, 65, 85, 0.52);
}

.object-inspector-metrics div:last-child {
    border-right: 0;
}

.object-inspector-metrics dt {
    margin-bottom: 4px;
    color: #64748b;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.object-inspector-metrics dd {
    margin: 0;
    overflow: hidden;
    color: #cbd5e1;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.object-inspector-panel footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 9px 14px;
    color: #64748b;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.object-inspector-panel kbd {
    padding: 3px 7px;
    border: 1px solid #475569;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #111827;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 9px;
}

@keyframes object-inspector-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 800px) {
    .object-inspector-panel {
        bottom: 3vh;
    }

    .object-inspector-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .object-inspector-metrics div:nth-child(2) {
        border-right: 0;
    }

    .object-inspector-metrics div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(51, 65, 85, 0.52);
    }
}

@media (prefers-reduced-motion: reduce) {
    .object-inspector-state::before {
        animation: none;
    }
}
