/* Visitor Profile Console */

.vprofile-page {
  --vp-bg: #050914;
  --vp-bg-2: #0a1220;
  --vp-bg-3: #0d1728;
  --vp-bg-elev: #111d33;
  --vp-surface: rgba(255,255,255,.035);
  --vp-surface-2: rgba(255,255,255,.06);
  --vp-surface-3: rgba(255,255,255,.09);
  --vp-line: rgba(255,255,255,.07);
  --vp-line-2: rgba(255,255,255,.13);
  --vp-line-3: rgba(255,255,255,.22);
  --vp-text: #f5f8ff;
  --vp-text-2: #c8d2e2;
  --vp-muted: #8b9aae;
  --vp-muted-2: #5e6b80;
  --vp-muted-3: #3d4659;
  --vp-cyan: #55d8ff;
  --vp-cyan-2: #8eefff;
  --vp-cyan-soft: rgba(85,216,255,.12);
  --vp-blue: #6f8cff;
  --vp-violet: #8b6cff;
  --vp-violet-soft: rgba(139,108,255,.13);
  --vp-green: #50e3a4;
  --vp-green-soft: rgba(80,227,164,.13);
  --vp-yellow: #ffbf5a;
  --vp-yellow-soft: rgba(255,191,90,.13);
  --vp-red: #ff4d67;
  --vp-red-soft: rgba(255,77,103,.13);
  --vp-orange: #ff8b51;
  --vp-orange-soft: rgba(255,139,81,.13);
  --vp-shadow: 0 28px 90px rgba(0,0,0,.5);
  --vp-shadow-pop: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px var(--vp-line-2);
  --vp-ease: cubic-bezier(.2,.8,.2,1);
  position: relative;
  z-index: 1;
  height: calc(100vh - 76px);
  min-height: 760px;
  overflow: hidden;
  color: var(--vp-text);
  background:
    radial-gradient(ellipse 70% 40% at 20% -10%, rgba(85,216,255,.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(255,77,103,.05), transparent 60%),
    var(--vp-bg);
  font-size: 13px;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.005em;
}

.vprofile-page *,
.vprofile-page *::before,
.vprofile-page *::after {
  box-sizing: border-box;
}

.vprofile-page a {
  color: inherit;
  text-decoration: none;
}

.vprofile-page button,
.vprofile-page input,
.vprofile-page textarea,
.vprofile-page select {
  font: inherit;
}

.vprofile-page button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.vprofile-page ::selection {
  background: var(--vp-cyan-soft);
  color: var(--vp-cyan-2);
}

.vprofile-page ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.vprofile-page ::-webkit-scrollbar-track {
  background: transparent;
}

.vprofile-page ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.06);
  border: 2px solid var(--vp-bg);
  border-radius: 8px;
}

.vprofile-page ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.12);
}

.vprofile-head {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--vp-line);
  background: rgba(5,9,20,.85);
  backdrop-filter: blur(24px) saturate(1.4);
  position: relative;
  z-index: 30;
}

.vprofile-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.vprofile-brand-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--vp-cyan) 0%, var(--vp-blue) 100%);
  color: #051124;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(85,216,255,.2), 0 6px 20px rgba(85,216,255,.18);
}

.vprofile-head-sep,
.vprofile-crumb span {
  color: var(--vp-muted-3);
}

.vprofile-crumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vp-muted);
  white-space: nowrap;
}

.vprofile-crumb a:hover {
  color: var(--vp-text);
}

.vprofile-crumb strong {
  max-width: 280px;
  overflow: hidden;
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.vprofile-domain {
  max-width: 220px;
  overflow: hidden;
  padding: 3px 8px;
  border: 1px solid var(--vp-line);
  border-radius: 6px;
  background: var(--vp-surface);
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
}

.vprofile-head-spacer {
  flex: 1;
}

.vprofile-search {
  width: min(320px, 34vw);
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--vp-line-2);
  border-radius: 7px;
  background: var(--vp-surface);
  color: var(--vp-muted);
  transition: border-color .15s, background .15s;
}

.vprofile-search:focus-within,
.vprofile-search:hover {
  border-color: var(--vp-line-3);
  background: var(--vp-surface-2);
}

.vprofile-search svg {
  flex: 0 0 auto;
  opacity: .7;
}

.vprofile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vp-text);
  font-size: 12px;
}

.vprofile-search input::placeholder {
  color: var(--vp-muted);
}

.vprofile-kbd {
  padding: 2px 5px;
  border: 1px solid var(--vp-line-2);
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  color: var(--vp-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
}

.vprofile-icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--vp-muted);
}

.vprofile-icon-btn:hover {
  background: var(--vp-surface-2);
  color: var(--vp-text);
}

.vprofile-workspace {
  height: calc(100% - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  overflow: hidden;
}

.vprofile-main {
  min-width: 0;
  overflow-y: auto;
  position: relative;
}

.vprofile-right-rail {
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--vp-line);
  background: var(--vp-bg-2);
}

.vprofile-identity {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--vp-line);
  background: linear-gradient(180deg, var(--vp-bg-2) 0%, var(--vp-bg) 100%);
}

.vprofile-identity-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
}

.vprofile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  position: relative;
  background: linear-gradient(135deg, var(--vp-cyan) 0%, var(--vp-blue) 100%);
  color: #051124;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(85,216,255,.25), 0 12px 40px rgba(85,216,255,.12);
}

.vprofile-avatar.crit,
.vprofile-avatar.high {
  background: linear-gradient(135deg, var(--vp-red) 0%, #b91c3a 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,77,103,.3), 0 12px 40px rgba(255,77,103,.18);
}

.vprofile-avatar.warn {
  background: linear-gradient(135deg, var(--vp-yellow), var(--vp-orange));
  color: #1d0d04;
}

.vprofile-avatar span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vp-line-2);
  border-radius: 50%;
  background: var(--vp-bg-2);
  font-size: 13px;
}

.vprofile-id-info {
  min-width: 0;
}

.vprofile-id-key {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vprofile-id-key span {
  min-width: 0;
  overflow: hidden;
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-id-key button {
  color: var(--vp-muted-2);
  font-size: 14px;
}

.vprofile-id-key button:hover,
.vprofile-id-key button.is-on {
  color: var(--vp-yellow);
}

.vprofile-id-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--vp-text-2);
  font-size: 12px;
}

.vprofile-id-meta .mono {
  color: var(--vp-text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.vprofile-id-meta .mono:hover {
  color: var(--vp-cyan-2);
}

.vprofile-id-meta i {
  color: var(--vp-muted-3);
  font-style: normal;
}

.vprofile-id-meta em {
  color: var(--vp-muted-2);
  font-style: normal;
}

.vprofile-id-meta strong {
  color: var(--vp-text);
  font-weight: 700;
}

.vprofile-id-meta strong.is-green {
  color: var(--vp-green);
}

.vprofile-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.vprofile-threat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vprofile-threat.scanner { border-color: rgba(255,77,103,.4); background: var(--vp-red-soft); color: var(--vp-red); }
.vprofile-threat.tor { border-color: rgba(139,108,255,.4); background: var(--vp-violet-soft); color: var(--vp-violet); }
.vprofile-threat.vpn { border-color: rgba(255,139,81,.4); background: var(--vp-orange-soft); color: var(--vp-orange); }
.vprofile-threat.bot { border-color: rgba(255,191,90,.4); background: var(--vp-yellow-soft); color: var(--vp-yellow); }
.vprofile-threat.first { border-color: rgba(85,216,255,.4); background: var(--vp-cyan-soft); color: var(--vp-cyan-2); }
.vprofile-threat.repeat { border-color: var(--vp-line-2); background: var(--vp-surface); color: var(--vp-muted); }

.vprofile-risk-head {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.vprofile-risk-gauge {
  width: 110px;
  height: 60px;
  position: relative;
}

.vprofile-risk-gauge svg {
  width: 100%;
  height: 100%;
}

.vprofile-risk-gauge strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--vp-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.vprofile-risk-gauge small {
  color: var(--vp-muted-2);
  font-size: 10px;
  font-weight: 600;
}

.vprofile-risk-head p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--vp-muted);
  font-size: 11px;
}

.vprofile-risk-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.vprofile-risk-head p.crit { color: var(--vp-red); }
.vprofile-risk-head p.high { color: var(--vp-orange); }
.vprofile-risk-head p.warn { color: var(--vp-yellow); }
.vprofile-risk-head p.ok { color: var(--vp-green); }

.vprofile-tabs {
  position: sticky;
  top: 109px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 24px;
  border-bottom: 1px solid var(--vp-line);
  background: rgba(5,9,20,.96);
  backdrop-filter: blur(16px);
}

.vprofile-tabs > span {
  flex: 1;
}

.vprofile-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--vp-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.vprofile-tabs button:hover {
  color: var(--vp-text-2);
}

.vprofile-tabs button.is-active {
  border-bottom-color: var(--vp-cyan);
  color: var(--vp-text);
}

.vprofile-tabs button span {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--vp-surface);
  color: var(--vp-muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.vprofile-tabs button.is-active span {
  background: var(--vp-cyan-soft);
  color: var(--vp-cyan);
}

.vprofile-tabs button.danger span {
  background: var(--vp-red-soft);
  color: var(--vp-red);
}

.vprofile-tabs button.mini {
  min-height: 26px;
  margin: 0 0 0 6px;
  padding: 0 10px;
  border: 1px solid var(--vp-line-2);
  border-radius: 6px;
  background: var(--vp-surface);
  color: var(--vp-muted);
  font-size: 11.5px;
}

.vprofile-tabs button.mini:hover {
  border-color: var(--vp-line-3);
  color: var(--vp-text);
}

.vprofile-panel {
  display: none;
  padding: 24px;
}

.vprofile-panel.is-active {
  display: block;
}

.vprofile-sec {
  margin-bottom: 28px;
}

.vprofile-sec:last-child {
  margin-bottom: 0;
}

.vprofile-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.vprofile-sec-head h3 {
  margin: 0;
  color: var(--vp-text);
  font-size: 13px;
  font-weight: 900;
}

.vprofile-sec-head span,
.vprofile-sec-head a,
.vprofile-sec-head button {
  color: var(--vp-muted-2);
  font-size: 11.5px;
}

.vprofile-sec-head a,
.vprofile-sec-head button {
  color: var(--vp-cyan);
}

.vprofile-sec-head a:hover,
.vprofile-sec-head button:hover {
  color: var(--vp-cyan-2);
}

.vprofile-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--vp-line);
  border-radius: 12px;
  background: var(--vp-bg-2);
}

.vprofile-qstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.vprofile-qstats article {
  padding: 12px 14px;
  border: 1px solid var(--vp-line);
  border-radius: 10px;
  background: var(--vp-bg-2);
}

.vprofile-qstats span {
  display: block;
  color: var(--vp-muted-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vprofile-qstats strong {
  display: block;
  margin-top: 4px;
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
}

.vprofile-qstats em {
  display: block;
  margin-top: 2px;
  color: var(--vp-muted);
  font-style: normal;
  font-size: 11px;
}

.vprofile-qstats article.crit strong { color: var(--vp-red); }
.vprofile-qstats article.warn strong { color: var(--vp-yellow); }
.vprofile-qstats article.ok strong { color: var(--vp-green); }

.vprofile-risk-grid,
.vprofile-activity-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.vprofile-activity-grid {
  grid-template-columns: 1.5fr 1fr;
}

.vprofile-risk-summary {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--vp-line);
  border-radius: 12px;
  background: var(--vp-bg-2);
}

.vprofile-risk-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--vp-red);
}

.vprofile-risk-summary.high::before { background: var(--vp-orange); }
.vprofile-risk-summary.warn::before { background: var(--vp-yellow); }
.vprofile-risk-summary.ok::before { background: var(--vp-green); }

.vprofile-risk-summary > span {
  color: var(--vp-muted-2);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vprofile-risk-summary > strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0;
  color: var(--vp-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
}

.vprofile-risk-summary.high > strong { color: var(--vp-orange); }
.vprofile-risk-summary.warn > strong { color: var(--vp-yellow); }
.vprofile-risk-summary.ok > strong { color: var(--vp-green); }

.vprofile-risk-summary small {
  color: var(--vp-muted-2);
  font-size: 16px;
  font-weight: 600;
}

.vprofile-risk-summary p {
  margin: 0;
  color: var(--vp-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.vprofile-risk-summary em {
  display: block;
  margin-top: 4px;
  color: var(--vp-muted);
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.45;
}

.vprofile-bar {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}

.vprofile-bar span {
  color: var(--vp-text-2);
  font-size: 11.5px;
}

.vprofile-bar i {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--vp-surface);
}

.vprofile-bar b {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.vprofile-bar b.crit { background: linear-gradient(90deg, var(--vp-red), #ff8090); }
.vprofile-bar b.high { background: linear-gradient(90deg, var(--vp-orange), #ffb080); }
.vprofile-bar b.warn { background: linear-gradient(90deg, var(--vp-yellow), #ffd980); }
.vprofile-bar b.info { background: linear-gradient(90deg, var(--vp-cyan), #a0e8ff); }

.vprofile-bar strong {
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  text-align: right;
}

.vprofile-spark-card svg {
  width: 100%;
  height: 80px;
  display: block;
}

.vprofile-spark-stats {
  display: flex;
  gap: 22px;
  margin-bottom: 12px;
}

.vprofile-spark-stats div {
  min-width: 0;
}

.vprofile-spark-stats strong {
  display: block;
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 900;
}

.vprofile-spark-stats span {
  display: block;
  margin-top: 2px;
  color: var(--vp-muted-2);
  font-size: 11px;
}

.vprofile-spark-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--vp-muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.vprofile-heatmap-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--vp-muted-2);
  font-size: 11px;
  text-transform: uppercase;
}

.vprofile-heatmap-head strong {
  color: var(--vp-text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.vprofile-heatmap,
.vprofile-heatmap-axis {
  display: grid;
  grid-template-columns: 22px repeat(24, 1fr);
  gap: 3px;
  color: var(--vp-muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.vprofile-heatmap .day {
  align-self: center;
  padding-right: 4px;
  text-align: right;
}

.vprofile-heatmap .cell {
  height: 14px;
  border-radius: 2px;
  background: rgba(255,255,255,.04);
  transition: transform .08s;
}

.vprofile-heatmap .cell:hover {
  position: relative;
  z-index: 2;
  transform: scale(1.4);
}

.vprofile-heatmap .l1 { background: rgba(255,77,103,.18); }
.vprofile-heatmap .l2 { background: rgba(255,77,103,.34); }
.vprofile-heatmap .l3 { background: rgba(255,77,103,.55); }
.vprofile-heatmap .l4 { background: rgba(255,77,103,.78); }
.vprofile-heatmap .l5 { background: var(--vp-red); }

.vprofile-heatmap-axis {
  margin-top: 6px;
}

.vprofile-heatmap-axis em {
  font-style: normal;
  text-align: center;
}

.vprofile-snap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--vp-line);
  border-radius: 12px;
  background: var(--vp-line);
}

.vprofile-snap-grid div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--vp-bg-2);
}

.vprofile-snap-grid div.wide {
  grid-column: span 2;
}

.vprofile-snap-grid div.full {
  grid-column: 1 / -1;
}

.vprofile-snap-grid span {
  color: var(--vp-muted-2);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vprofile-snap-grid strong {
  min-width: 0;
  color: var(--vp-text);
  font-size: 12.5px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.vprofile-snap-grid .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.vprofile-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.vprofile-signal {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--vp-line);
  border-radius: 10px;
  background: var(--vp-bg-2);
}

.vprofile-signal .ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 13px;
}

.vprofile-signal .ico.crit { background: var(--vp-red-soft); color: var(--vp-red); }
.vprofile-signal .ico.high { background: var(--vp-orange-soft); color: var(--vp-orange); }
.vprofile-signal .ico.warn { background: var(--vp-yellow-soft); color: var(--vp-yellow); }
.vprofile-signal .ico.info { background: var(--vp-cyan-soft); color: var(--vp-cyan); }

.vprofile-signal strong {
  display: block;
  color: var(--vp-text);
  font-size: 12px;
  font-weight: 900;
}

.vprofile-signal em {
  display: block;
  margin-top: 2px;
  color: var(--vp-muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.4;
}

.vprofile-signal .weight {
  padding-top: 2px;
  color: var(--vp-muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}


.vprofile-cookie-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vprofile-cookie-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--vp-line);
  border-radius: 12px;
  background: var(--vp-bg-2);
}

.vprofile-cookie-summary span {
  display: block;
  color: var(--vp-muted-2);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vprofile-cookie-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 900;
}

.vprofile-cookie-summary em {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: var(--vp-muted);
  font-style: normal;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-infra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vprofile-infra-section {
  min-width: 0;
}

.vprofile-infra-card {
  display: grid;
  gap: 1px;
  padding: 8px;
}

.vprofile-infra-row {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 9px;
  background: transparent;
  transition: background .12s ease;
}

.vprofile-infra-row:hover {
  background: var(--vp-surface);
}

.vprofile-infra-primary {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.vprofile-infra-primary a {
  min-width: 0;
  overflow: hidden;
  color: var(--vp-cyan-2);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-infra-primary a:hover {
  color: #fff;
}

.vprofile-infra-primary span {
  flex: 0 0 auto;
  color: var(--vp-muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.vprofile-infra-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vprofile-infra-tags span {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--vp-line);
  border-radius: 999px;
  color: var(--vp-text-2);
  background: var(--vp-surface);
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-infra-foot {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 10px;
  color: var(--vp-muted-2);
  font-size: 10.5px;
}

.vprofile-infra-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vprofile-hlist {
  display: grid;
  gap: 1px;
}

.vprofile-hrow {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 60px;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
}

.vprofile-hrow:hover {
  background: var(--vp-surface);
}

.vprofile-hbar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  background: var(--vp-cyan-soft);
  border-right: 1px solid rgba(85,216,255,.3);
}

.vprofile-hrow.is-danger .vprofile-hbar {
  background: var(--vp-red-soft);
  border-right-color: rgba(255,77,103,.3);
}

.vprofile-hrow.is-warn .vprofile-hbar {
  background: var(--vp-yellow-soft);
  border-right-color: rgba(255,191,90,.3);
}

.vprofile-hrow > *:not(.vprofile-hbar) {
  position: relative;
  z-index: 1;
}

.vprofile-hvalue {
  min-width: 0;
  overflow: hidden;
  color: var(--vp-text-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-hvalue.mono,
.vprofile-hvalue em,
.vprofile-hcount {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vprofile-hvalue em {
  margin-right: 6px;
  color: var(--vp-violet);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.vprofile-hcount {
  color: var(--vp-text);
  font-size: 11.5px;
  text-align: right;
}

.vprofile-htime {
  color: var(--vp-muted);
  font-size: 10.5px;
  text-align: right;
}

.vprofile-events-stream {
  overflow: hidden;
  border: 1px solid var(--vp-line);
  border-radius: 12px;
  background: var(--vp-bg-2);
}

.vprofile-events-head,
.vprofile-event-row {
  display: grid;
  grid-template-columns: 8px 110px 130px minmax(0, 1fr) 130px 90px 28px;
  gap: 12px;
  align-items: center;
}

.vprofile-events-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--vp-line);
  background: var(--vp-bg);
  color: var(--vp-muted-2);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vprofile-event-row {
  min-height: 50px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--vp-line);
  cursor: pointer;
}

.vprofile-event-row:hover {
  background: rgba(85,216,255,.03);
}

.vprofile-event-row:last-child {
  border-bottom: 0;
}

.vprofile-event-rail {
  width: 3px;
  min-height: 24px;
  height: 100%;
  border-radius: 2px;
  background: var(--vp-muted-3);
}

.vprofile-event-rail.crit { background: var(--vp-red); box-shadow: 0 0 8px rgba(255,77,103,.4); }
.vprofile-event-rail.high { background: var(--vp-orange); }
.vprofile-event-rail.warn { background: var(--vp-yellow); }
.vprofile-event-rail.info { background: var(--vp-cyan); }
.vprofile-event-rail.ok { background: var(--vp-green); }

.vprofile-event-time {
  display: grid;
  gap: 2px;
}

.vprofile-event-time time {
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.vprofile-event-time em {
  color: var(--vp-muted);
  font-style: normal;
  font-size: 10.5px;
}

.vprofile-event-pill {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-event-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.vprofile-event-pill.crit { border-color: rgba(255,77,103,.25); background: var(--vp-red-soft); color: var(--vp-red); }
.vprofile-event-pill.high { border-color: rgba(255,139,81,.25); background: var(--vp-orange-soft); color: var(--vp-orange); }
.vprofile-event-pill.warn { border-color: rgba(255,191,90,.25); background: var(--vp-yellow-soft); color: var(--vp-yellow); }
.vprofile-event-pill.info { border-color: rgba(85,216,255,.25); background: var(--vp-cyan-soft); color: var(--vp-cyan-2); }
.vprofile-event-pill.ok { border-color: rgba(80,227,164,.25); background: var(--vp-green-soft); color: var(--vp-green); }
.vprofile-event-pill.dim { border-color: var(--vp-line-2); background: var(--vp-surface); color: var(--vp-muted); }

.vprofile-event-path {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vprofile-event-path strong {
  min-width: 0;
  overflow: hidden;
  color: var(--vp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-event-path em {
  margin-right: 5px;
  color: var(--vp-violet);
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

.vprofile-event-path small,
.vprofile-event-source {
  overflow: hidden;
  color: var(--vp-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vprofile-event-source,
.vprofile-event-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.vprofile-event-status {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--vp-muted);
  background: var(--vp-surface);
}

.vprofile-event-status.s2 { background: var(--vp-green-soft); color: var(--vp-green); }
.vprofile-event-status.s3 { background: var(--vp-cyan-soft); color: var(--vp-cyan-2); }
.vprofile-event-status.s4 { background: var(--vp-yellow-soft); color: var(--vp-yellow); }
.vprofile-event-status.s5 { background: var(--vp-red-soft); color: var(--vp-red); }

.vprofile-event-more {
  color: var(--vp-muted-2);
  text-align: center;
}

.vprofile-rail-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--vp-line);
}

.vprofile-rail-section h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--vp-muted-2);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vprofile-rail-section h4 button {
  color: var(--vp-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.vprofile-mit-state {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--vp-line-2);
  border-radius: 8px;
  background: var(--vp-surface);
}

.vprofile-mit-state.danger {
  border-color: rgba(255,77,103,.3);
  background: var(--vp-red-soft);
}

.vprofile-mit-state.warn {
  border-color: rgba(255,191,90,.3);
  background: var(--vp-yellow-soft);
}

.vprofile-mit-state > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--vp-surface-2);
}

.vprofile-mit-state.danger > span { background: rgba(255,77,103,.18); color: var(--vp-red); }
.vprofile-mit-state.warn > span { background: rgba(255,191,90,.18); color: var(--vp-yellow); }

.vprofile-mit-state strong {
  display: block;
  color: var(--vp-text);
  font-size: 12px;
}

.vprofile-mit-state.danger strong { color: var(--vp-red); }
.vprofile-mit-state.warn strong { color: var(--vp-yellow); }

.vprofile-mit-state em {
  display: block;
  color: var(--vp-muted);
  font-style: normal;
  font-size: 11px;
}

.vprofile-action-grid,
.vprofile-action-grid form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.vprofile-action-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--vp-line-2);
  border-radius: 8px;
  background: var(--vp-surface);
  color: var(--vp-text-2);
  text-align: left;
}

.vprofile-action-btn:hover {
  border-color: var(--vp-line-3);
  color: var(--vp-text);
}

.vprofile-action-btn.primary {
  border-color: rgba(255,77,103,.4);
  background: rgba(255,77,103,.16);
  color: var(--vp-red);
}

.vprofile-action-btn > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--vp-surface-2);
  font-size: 12px;
}

.vprofile-action-btn > span.danger { background: var(--vp-red-soft); color: var(--vp-red); }
.vprofile-action-btn > span.warn { background: var(--vp-yellow-soft); color: var(--vp-yellow); }
.vprofile-action-btn > span.ok { background: var(--vp-green-soft); color: var(--vp-green); }
.vprofile-action-btn > span.info { background: var(--vp-cyan-soft); color: var(--vp-cyan); }
.vprofile-action-btn > span.violet { background: var(--vp-violet-soft); color: var(--vp-violet); }

.vprofile-action-btn strong {
  display: block;
  color: inherit;
  font-size: 12.5px;
  font-weight: 800;
}

.vprofile-action-btn em {
  display: block;
  margin-top: 1px;
  color: var(--vp-muted);
  font-style: normal;
  font-size: 11px;
}

.vprofile-status-form,
.vprofile-notes-form {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.vprofile-select,
.vprofile-note-input {
  width: 100%;
  border: 1px solid var(--vp-line-2);
  border-radius: 8px;
  background: var(--vp-surface);
  color: var(--vp-text);
  outline: 0;
}

.vprofile-select {
  min-height: 34px;
  padding: 0 10px;
}

.vprofile-note-input {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}

.vprofile-select:focus,
.vprofile-note-input:focus {
  border-color: var(--vp-cyan);
  background: var(--vp-surface-2);
}

.vprofile-small-submit {
  min-height: 30px;
  border: 1px solid rgba(85,216,255,.3);
  border-radius: 8px;
  background: var(--vp-cyan-soft);
  color: var(--vp-cyan-2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vprofile-timeline {
  position: relative;
  padding-left: 18px;
}

.vprofile-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--vp-line-2);
}

.vprofile-timeline div {
  position: relative;
  padding: 6px 0;
}

.vprofile-timeline div::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vp-cyan);
  box-shadow: 0 0 0 2px var(--vp-bg-2);
}

.vprofile-timeline div.danger::before { background: var(--vp-red); }
.vprofile-timeline div.warn::before { background: var(--vp-yellow); }

.vprofile-timeline time {
  display: block;
  color: var(--vp-muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
}

.vprofile-timeline strong {
  display: block;
  margin-top: 1px;
  color: var(--vp-text);
  font-size: 12px;
}

.vprofile-timeline span {
  display: block;
  margin-top: 1px;
  color: var(--vp-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.vprofile-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--vp-line);
}

.vprofile-note div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--vp-muted);
  font-size: 11px;
}

.vprofile-note div span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--vp-violet), var(--vp-blue));
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.vprofile-note p {
  margin: 4px 0 0;
  color: var(--vp-text-2);
  font-size: 12px;
  line-height: 1.45;
}

.vprofile-empty {
  margin: 0;
  color: var(--vp-muted);
  font-size: 12px;
  line-height: 1.5;
}

.vprofile-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--vp-line-2);
  border-radius: 10px;
  background: var(--vp-bg-elev);
  box-shadow: var(--vp-shadow-pop);
  color: var(--vp-text-2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: opacity .25s var(--vp-ease), transform .25s var(--vp-ease);
}

.vprofile-toast.is-showing {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vprofile-toast span {
  color: var(--vp-cyan-2);
}

.vprofile-toast strong {
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  .vprofile-workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .vprofile-qstats,
  .vprofile-cookie-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .vprofile-risk-grid,
  .vprofile-activity-grid,
  .vprofile-infra-grid,
  .vprofile-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .vprofile-page {
    height: auto;
    min-height: calc(100vh - 76px);
    overflow: visible;
  }

  .vprofile-workspace {
    height: auto;
    display: block;
    overflow: visible;
  }

  .vprofile-main,
  .vprofile-right-rail {
    overflow: visible;
  }

  .vprofile-right-rail {
    border-left: 0;
    border-top: 1px solid var(--vp-line);
  }

  .vprofile-identity,
  .vprofile-tabs {
    position: relative;
    top: auto;
  }

  .vprofile-identity-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .vprofile-risk-head {
    justify-items: start;
  }

  .vprofile-tabs {
    overflow-x: auto;
  }

  .vprofile-tabs > span,
  .vprofile-tabs button.mini {
    display: none;
  }

  .vprofile-snap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vprofile-signals-grid {
    grid-template-columns: 1fr;
  }

  .vprofile-events-head,
  .vprofile-event-row {
    grid-template-columns: 8px 90px minmax(0, 1fr) 28px;
    grid-template-areas:
      "rail time path more"
      "rail event path more"
      "rail source status more";
  }

  .vprofile-events-head {
    display: none;
  }

  .vprofile-event-rail { grid-area: rail; }
  .vprofile-event-time { grid-area: time; }
  .vprofile-event-pill { grid-area: event; }
  .vprofile-event-path { grid-area: path; }
  .vprofile-event-source { grid-area: source; }
  .vprofile-event-status { grid-area: status; }
  .vprofile-event-more { grid-area: more; }
}

@media (max-width: 720px) {
  .vprofile-head {
    gap: 8px;
  }

  .vprofile-brand span:last-child,
  .vprofile-head-sep,
  .vprofile-crumb a:first-child,
  .vprofile-crumb span:first-of-type {
    display: none;
  }

  .vprofile-search {
    width: 38vw;
  }

  .vprofile-qstats,
  .vprofile-cookie-summary,
  .vprofile-snap-grid {
    grid-template-columns: 1fr;
  }

  .vprofile-panel {
    padding: 16px;
  }
}
