            .analytics-view {
                display: flex;
                flex-direction: column;
                gap: 16px;
                color: #e5eefc;
            }
            .entity-actions {
                white-space: nowrap;
                text-align: center;
            }

            .analytics-mini-btn {
                padding: 6px 10px;
                border-radius: 10px;
                border: 1px solid rgba(59, 130, 246, 0.18);
                background: rgba(15, 23, 42, 0.72);
                color: #dce8ff;
                cursor: pointer;
                font-size: 12px;
                font-weight: 600;
                transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
            }

            .analytics-mini-btn:hover {
                transform: translateY(-1px);
                border-color: rgba(96, 165, 250, 0.35);
                box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
            }
            .analytics-header,
            .analytics-card {
                background: rgba(9, 18, 43, 0.92);
                border: 1px solid rgba(92, 123, 255, 0.18);
                border-radius: 14px;
                padding: 16px 18px;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
            }

            .analytics-header-title {
                font-size: 20px;
                font-weight: 700;
                margin-bottom: 6px;
            }

            .analytics-header-subtitle {
                color: #9eb0d1;
                font-size: 13px;
                margin-bottom: 14px;
            }

            .analytics-metrics-grid,
            .analytics-grid {
                display: grid;
                gap: 12px;
            }

            .analytics-metrics-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            }

            .analytics-grid-2 {
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            }

            .metric-card {
                background: rgba(14, 27, 60, 0.96);
                border: 1px solid rgba(102, 130, 255, 0.14);
                border-radius: 12px;
                padding: 12px 14px;
            }

            .metric-label {
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: 0.06em;
                color: #8ea2c8;
                margin-bottom: 6px;
            }

            .metric-value {
                font-size: 22px;
                font-weight: 700;
                color: #f3f7ff;
            }

            .metric-subvalue {
                margin-top: 4px;
                font-size: 12px;
                color: #97acd3;
            }

            .analytics-card-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 12px;
            }

            .analytics-card-title {
                font-size: 15px;
                font-weight: 700;
                color: #f3f7ff;
            }

            .analytics-badge {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-height: 24px;
                padding: 4px 10px;
                border-radius: 999px;
                font-size: 11px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.04em;
                border: 1px solid rgba(255, 255, 255, 0.1);
            }

            .risk-high {
                background: rgba(176, 39, 39, 0.16);
                color: #ffb0b0;
                border-color: rgba(255, 99, 99, 0.24);
            }

            .risk-medium {
                background: rgba(194, 123, 17, 0.14);
                color: #ffd38e;
                border-color: rgba(255, 202, 88, 0.24);
            }

            .risk-low {
                background: rgba(30, 124, 77, 0.14);
                color: #9fe6b7;
                border-color: rgba(95, 214, 150, 0.22);
            }

            .analytics-entity-main {
                font-size: 16px;
                font-weight: 700;
                margin-bottom: 10px;
                color: #ffffff;
            }
            .analytics-kv-row {
                display: flex;
                justify-content: space-between;
                gap: 16px;
                padding: 8px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            }

            .analytics-kv-row:last-child {
                border-bottom: none;
            }

            .analytics-kv-label {
                color: #8ea2c8;
                font-size: 13px;
            }

            .analytics-kv-value {
                color: #eef4ff;
                font-size: 13px;
                font-weight: 600;
                text-align: right;
            }

            .analytics-top-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 16px;
            }

            .analytics-empty {
                color: #93a9cf;
                font-size: 13px;
            }

            .analytics-error {
                color: #ffb7b7;
                background: rgba(120, 17, 17, 0.18);
                border: 1px solid rgba(255, 88, 88, 0.18);
                border-radius: 12px;
                padding: 14px 16px;
            }

            .analytics-loading {
                color: #9fb2d7;
                padding: 6px 0;
            }
            .analytics-entity-row {
                cursor: pointer;
                transition: background 0.15s ease, transform 0.08s ease;
            }

            .analytics-entity-row:hover {
                background: rgba(80, 120, 255, 0.08);
            }

            .analytics-entity-row:active {
                transform: scale(0.998);
            }

            .analytics-entity-row.top-threat {
                background: rgba(255, 80, 80, 0.06);
                border-left: 3px solid rgba(255, 90, 90, 0.8);
            }

            .top-threat-pill {
                display: inline-block;
                margin-right: 6px;
                padding: 2px 8px;
                font-size: 10px;
                font-weight: 700;
                border-radius: 999px;
                background: rgba(255, 70, 70, 0.18);
                color: #ff9b9b;
                border: 1px solid rgba(255, 80, 80, 0.25);
            }

            .decision-badge {
                padding: 4px 8px;
                border-radius: 6px;
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.03em;
            }

            .decision-badge.critical {
                background: rgba(255, 80, 80, 0.18);
                color: #ff9b9b;
            }

            .decision-badge.warning {
                background: rgba(255, 180, 60, 0.18);
                color: #ffd27a;
            }

            .decision-badge.info {
                background: rgba(80, 160, 255, 0.18);
                color: #9ecbff;
            }

            .decision-badge.muted {
                background: rgba(120, 140, 160, 0.18);
                color: #aab8c8;
            }
            .analytics-entity-section {
                margin-top: 18px;
            }

            .analytics-section-header {
                font-size: 13px;
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: #8ea2c8;
                margin-bottom: 8px;
            }

            .analytics-entity-table-wrapper {
                overflow-y: auto;
                max-height: 420px;
            }

            .analytics-entity-table thead th {
                position: sticky;
                top: 0;
                background: rgba(9, 18, 43, 0.98);
                backdrop-filter: blur(6px);
                z-index: 2;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }
            .analytics-sortable {
                cursor: pointer;
                user-select: none;
            }

            .analytics-sortable:hover {
                color: #dbe7ff;
            }

            .analytics-sortable:focus {
                outline: 1px solid rgba(120, 160, 255, 0.45);
                outline-offset: -1px;
            }
            .analytics-detail-reason {
                margin-top: 14px;
                padding: 12px 14px;
                border-radius: 12px;
                background: rgba(14, 27, 60, 0.72);
                border: 1px solid rgba(102, 130, 255, 0.12);
            }

            .analytics-detail-reason-label {
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: 0.06em;
                color: #8ea2c8;
                margin-bottom: 6px;
            }

            .analytics-detail-reason-value {
                font-size: 13px;
                color: #eef4ff;
                line-height: 1.5;
            }
            .analytics-sidepanel-overlay {
                position: fixed;
                inset: 0;
                background: rgba(3, 8, 24, 0.48);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.22s ease;
                z-index: 999;
            }

            .analytics-sidepanel-overlay.open {
                opacity: 1;
                pointer-events: auto;
            }

            .analytics-sidepanel {
                position: fixed;
                top: 0;
                right: 0;
                width: min(520px, 92vw);
                height: 100vh;
                background: rgba(7, 16, 40, 0.98);
                border-left: 1px solid rgba(92, 123, 255, 0.18);
                box-shadow: -16px 0 40px rgba(0, 0, 0, 0.42);
                transform: translateX(100%);
                transition: transform 0.24s ease;
                z-index: 1000;
                display: flex;
                flex-direction: column;
            }

            .analytics-sidepanel.open {
                transform: translateX(0);
            }

            .analytics-sidepanel-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                padding: 16px 18px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            }

            .analytics-sidepanel-title {
                font-size: 16px;
                font-weight: 700;
                color: #f3f7ff;
            }

            .analytics-sidepanel-close {
                border: none;
                background: rgba(255, 255, 255, 0.06);
                color: #eef4ff;
                width: 32px;
                height: 32px;
                border-radius: 8px;
                cursor: pointer;
                font-size: 20px;
                line-height: 1;
            }

            .analytics-sidepanel-close:hover {
                background: rgba(255, 255, 255, 0.12);
            }

            .analytics-sidepanel-body {
                padding: 16px 18px 22px;
                overflow-y: auto;
            }
            .analytics-btn-refresh {
                background: #1f2a44;
                border: 1px solid #2e3b5e;
                color: #cfe3ff;
                padding: 6px 10px;
                border-radius: 6px;
                cursor: pointer;
            }

            .analytics-btn-refresh:hover {
                background: #2a3a5f;
            }
            .analytics-vps-modal-overlay {
                position: fixed;
                inset: 0;
                background: rgba(2, 8, 23, 0.72);
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 1200;
                backdrop-filter: blur(4px);
            }

            .analytics-vps-modal {
                width: min(720px, calc(100vw - 40px));
                background: linear-gradient(180deg, rgba(7,18,42,0.98), rgba(3,10,28,0.98));
                border: 1px solid rgba(59,130,246,0.18);
                border-radius: 18px;
                box-shadow: 0 30px 80px rgba(0,0,0,0.45);
                padding: 20px;
                color: #e5eefc;
            }

            .analytics-vps-modal-header {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                gap: 16px;
                margin-bottom: 14px;
            }

            .analytics-vps-modal-title {
                font-size: 22px;
                font-weight: 700;
            }

            .analytics-vps-modal-subtitle {
                margin-top: 4px;
                color: #94a3b8;
                font-size: 14px;
            }

            .analytics-vps-modal-close {
                border: 0;
                background: rgba(15, 23, 42, 0.8);
                color: #e5eefc;
                width: 36px;
                height: 36px;
                border-radius: 10px;
                cursor: pointer;
                font-size: 22px;
            }

            .analytics-vps-modal-badge-row {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-bottom: 14px;
            }

            .analytics-vps-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 14px;
            }

            .analytics-vps-card {
                background: rgba(15, 23, 42, 0.55);
                border: 1px solid rgba(59,130,246,0.12);
                border-radius: 14px;
                padding: 14px;
            }

            .analytics-vps-card-title {
                font-size: 13px;
                font-weight: 700;
                letter-spacing: 0.08em;
                color: #93a4c3;
                margin-bottom: 10px;
                text-transform: uppercase;
            }

            .analytics-vps-kv {
                display: flex;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 8px;
            }

            .analytics-vps-kv span {
                color: #94a3b8;
            }

            .analytics-vps-evidence-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            .analytics-vps-evidence-item {
                padding: 10px 12px;
                border-radius: 10px;
                background: rgba(30, 41, 59, 0.55);
                color: #d7e4ff;
            }

            .analytics-vps-actions {
                display: flex;
                justify-content: flex-end;
                gap: 10px;
                margin-top: 16px;
            }
