/* VxSure console V3: styles for the parts vx-data.js / vx-ui.js add to the V14 page. */
#vx-fail { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(5, 8, 14, .82); }
#vx-fail > div { max-width: 420px; padding: 24px 28px; border: 1px solid var(--line, #243049); border-radius: 16px; background: var(--surface, #0f1522); color: var(--ink, #eef3fb); }
#vx-fail h2 { margin: 0 0 8px; font-size: 17px; }
#vx-fail p { margin: 0 0 16px; color: var(--ink-2, #9fb0c8); font-size: 13px; }
#vx-fail button { height: 32px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line, #243049); background: var(--surface-2, #162033); color: inherit; cursor: pointer; }
#vx-live-chip { position: fixed; right: 18px; bottom: 74px; z-index: 70; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line, #243049); background: var(--surface, #0f1522); color: var(--ink-2, #9fb0c8); font: 550 12px Inter, system-ui, sans-serif;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; cursor: pointer; }
#vx-live-chip.on { opacity: 1; transform: none; pointer-events: auto; }

/* labels on everything that would change something (vx-ui.js sets --vx-sim from the mode) */
#vx-sim-chip { flex: none; margin-right: 6px; height: 24px; display: inline-flex; align-items: center; padding: 0 10px; align-self: center;
  border: 1px dashed rgba(255, 196, 87, .55); border-radius: 999px; color: #ffcf7a; font: 550 11.5px Inter, system-ui, sans-serif; white-space: nowrap; pointer-events: auto; cursor: help; z-index: 5; }
@media (max-width: 1100px) { #vx-sim-chip { font-size: 0; } #vx-sim-chip::after { content: attr(data-short); font-size: 11px; } }
#toast .vx-sim-note { display: block; margin-top: 3px; color: #ffcf7a; font-size: 11px; font-weight: 550; }
#wiz::before, .pm-modal-dialog::before, .save-pop::before, .hv-mod-drawer::before, #pbuild::before, #state-pop::before, #appr-pop::before, #panel .p-foot::before,
.lv-acts::before, #acct-pop::before, #ig-active-modal .pm-modal-dialog::before, .net-pop::before, #hubview .hv-form::before {
  content: var(--vx-sim); display: block; margin: 0 0 8px; padding: 3px 8px; border: 1px dashed rgba(255, 196, 87, .5); border-radius: 7px;
  color: #ffcf7a; font: 550 11px/1.4 Inter, system-ui, sans-serif; letter-spacing: .01em; width: fit-content; }
#wiz::before { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000; background: rgba(20, 16, 6, .92); margin: 0; }
.lv-acts::before { margin: 0 8px 0 0; align-self: center; }

/* Health */
#btn-health { color: var(--ink-2, #9fb0c8); }
#vx-health { position: fixed; z-index: 120; width: 380px; max-height: 70vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line, #243049);
  border-radius: 14px; background: var(--surface, #0f1522); color: var(--ink, #eef3fb); box-shadow: 0 18px 48px rgba(0, 0, 0, .5); font: 13px/1.45 Inter, system-ui, sans-serif; }
#vx-health .hp-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#vx-health .hp-h .p-x { background: none; border: 0; color: inherit; cursor: pointer; }
#vx-health .hp-eng { margin: 0 0 4px; font-weight: 600; }
#vx-health .hp-sub { margin: 2px 0 8px; color: var(--ink-2, #9fb0c8); font-size: 12px; }
#vx-health .hp-sub.bad { color: #ff8a8a; }
#vx-health h4 { margin: 12px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3, #6f7f99); }
#vx-health .hp-t { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 6px; }
#vx-health .hp-t td { padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
#vx-health .hp-t td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
#vx-health .hp-t .hp-sec td { padding-top: 8px; color: var(--ink-3, #6f7f99); font-weight: 600; border: 0; }
#vx-health .hp-l { margin: 0; padding-left: 16px; font-size: 12px; }
#vx-health .hp-l.ev li { color: var(--ink-2, #9fb0c8); }
#vx-hub-events { position: fixed; z-index: 6; transform: translateX(-50%); height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 196, 87, .35);
  background: rgba(30, 24, 10, .85); color: #ffcf7a; font: 550 11.5px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
#vx-hub-events[hidden] { display: none; }
.vx-trace em { display: block; word-break: break-all; }
/* version picker placeholder (observatory-version.js) */
.ver-menu { width: 150px; max-height: 60vh; overflow: auto; }
.ver-item.off { opacity: .42; cursor: not-allowed; }
.ver-note { padding: 6px 10px 4px; font-size: 10.5px; color: var(--ink-3, #6f7f99); border-top: 1px solid var(--line, #243049); margin-top: 4px; }
/* Live traffic (Detailed › Row logs) */
#raw-logs-modal .vx-tr-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; align-items: center; }
#raw-logs-modal .vx-tr-bar .btn.on { background: rgba(255, 255, 255, .14); }
#raw-logs-modal .vx-tr-bar input { flex: 1; min-width: 180px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line, #243049); background: #0d121c; color: inherit; }
#raw-logs-modal .vx-tr-body { flex: 1; overflow: auto; padding: 0 18px 18px; max-height: 62vh; }
#raw-logs-modal table.vx-tr { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
#raw-logs-modal .vx-tr th:nth-child(1) { width: 96px; } #raw-logs-modal .vx-tr th:nth-child(2) { width: 140px; } #raw-logs-modal .vx-tr th:nth-child(3) { width: 110px; } #raw-logs-modal .vx-tr th:nth-child(5) { width: 170px; }
#raw-logs-modal .vx-tr th { text-align: left; font-weight: 600; color: var(--ink-3, #6f7f99); padding: 4px 6px; position: sticky; top: 0; background: var(--surface, #0f1522); }
#raw-logs-modal .vx-tr td { padding: 4px 6px; border-top: 1px solid rgba(255, 255, 255, .05); vertical-align: top; overflow-wrap: anywhere; }
#raw-logs-modal .vx-tr td small { display: block; color: var(--ink-3, #6f7f99); }
#raw-logs-modal .vx-tr tr.bad td:last-child { color: #ff8a8a; }
