/* The Detector Dial — the class, drawn as people */
.st-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: visible; }
.st-bg { fill: transparent; cursor: ew-resize; }
.st-svg.is-dragging, .st-svg.is-dragging * { cursor: ew-resize !important; }

.st-lane-rule { stroke: var(--soft); }
.st-lane-label, .st-lane-stat { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.st-lane-label { font-size: 12.5px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.st-lane-stat { font-size: 12px; font-weight: 500; fill: var(--muted); font-variant-numeric: tabular-nums; }
.st-lane-stat.is-bad { fill: var(--flag); font-weight: 600; }

.st-axis-line { stroke: var(--line); }
.st-tick { stroke: var(--line); }
.st-tick-label { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.st-axis-cap { font-size: 11.5px; fill: var(--muted); font-weight: 500; }
.st-axis-cap--mid { fill: var(--ink); font-weight: 600; }

.st-zone { fill: rgba(180, 35, 24, 0.055); transition: x 0.1s linear, width 0.1s linear; pointer-events: none; }
.st-band-rect { fill: rgba(154, 88, 0, 0.1); stroke: var(--el); stroke-width: 1.2; stroke-dasharray: 4 3; pointer-events: none; animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; } }

.thr { cursor: ew-resize; }
.thr-hit { stroke: transparent; stroke-width: 26; }
.thr-line { stroke: var(--flag); stroke-width: 2; pointer-events: none; }
.thr-handle { fill: var(--flag); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.thr-label { fill: #fff; font-size: 11.5px; font-weight: 600; pointer-events: none; font-variant-numeric: tabular-nums; }
.st-svg.is-dragging .thr-handle { fill: var(--flag-dark); }

/* People */
.p { cursor: pointer; transition: transform 0.4s var(--ease), opacity 0.25s ease; outline: none; }
.p-body { stroke-width: 1.3; transition: fill 0.16s ease, stroke 0.16s ease; }
.p-init { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; pointer-events: none; transition: fill 0.16s ease; }
.p-ring { fill: none; stroke: var(--blue); stroke-width: 2.5; opacity: 0; transition: opacity 0.15s ease; }

.p--cleared .p-body, .p--clear .p-body { fill: #fff; stroke: #b9b9c0; }
.p--cleared .p-init, .p--clear .p-init { fill: #48484a; }
.p--accused .p-body { fill: var(--flag); stroke: var(--flag); }
.p--accused .p-init { fill: #fff; }
.p--caught .p-body { fill: var(--ink); stroke: var(--ink); }
.p--caught .p-init { fill: #fff; }
.p--slipped .p-body { fill: #fff; stroke: var(--ink); stroke-dasharray: 3 2.2; stroke-width: 1.6; }
.p--slipped .p-init { fill: var(--ink); }
.p--flagged .p-body { fill: #fbe9e7; stroke: var(--flag); stroke-width: 1.6; }
.p--flagged .p-init { fill: var(--flag-dark); }

.p:hover .p-body { stroke-width: 2.2; }
.p:focus-visible .p-ring, .p.is-selected .p-ring { opacity: 1; }
.p.is-dim { opacity: 0.16; }
.p.is-hl .p-ring { opacity: 1; stroke: var(--el); stroke-dasharray: 3 2; }
.p.is-hl.is-selected .p-ring, .p.is-hl:focus-visible .p-ring { stroke: var(--blue); stroke-dasharray: none; }

/* Person card */
.st-card {
  position: absolute; z-index: 6; width: 236px;
  background: #fff; border: 1px solid var(--soft); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding: 11px 13px 12px; pointer-events: none;
  animation: rise 0.18s var(--ease);
}
.st-card-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; }
.st-card-group { font-size: 12px; color: var(--muted); margin-top: 1px; }
.st-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.st-card-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; border-radius: 999px; padding: 2px 9px; background: var(--alt); color: var(--ink); }
.st-card-tag[data-tone="accused"], .st-card-tag[data-tone="flagged"] { background: var(--flag); color: #fff; }
.st-card-tag[data-tone="caught"] { background: var(--ink); color: #fff; }
.st-card-tag[data-tone="slipped"] { background: #fff; border: 1.5px dashed var(--ink); }
.st-card-score { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.st-card-line { font-size: 13px; line-height: 1.45; margin-top: 7px; color: #3a3a3c; }

@media (max-width: 899px) {
  .st-card { width: 210px; padding: 9px 11px 10px; }
  .st-lane-label { font-size: 11.5px; }
  .st-lane-stat { font-size: 11px; }
}
