/* RecruitersOS · AI Vetting — self-contained, professional styles.
   Namespaced under .vt-view so it can't collide. Uses app-wide tokens (works in
   dark + light) with a restrained brand accent: gradient reserved for primary
   action + key data, everything else calm and structured. */
.vt-view {
  --vt-accent: #7c5cff; --vt-accent2: #4dd0ff;
  --vt-grad: linear-gradient(135deg, #7c5cff, #4dd0ff);
  --vt-good: #38e0a6; --vt-warn: #ffc24d; --vt-bad: #ff6b6b;
  --vt-r: 14px; --vt-r-sm: 10px;
}
.vt-view * { box-sizing: border-box; }

/* ---- tabs ---- */
.vt-tabs { display: flex; gap: 8px; margin: 2px 0 20px; flex-wrap: wrap; }
.vt-tab {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.vt-tab:hover { color: var(--text); border-color: var(--border-strong); }
.vt-tab.active { color: #fff; border-color: transparent; background: var(--vt-grad); box-shadow: 0 6px 18px -8px rgba(124, 92, 255, .6); }

/* ---- toolbar (list header: count + new) ---- */
.vt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vt-count { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ---- section labels (group a form into stages) ---- */
.vt-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-dim); margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--border);
}
.vt-section span { color: var(--text-dim); }
.vt-card > h3 + .vt-section { border-top: 0; padding-top: 4px; margin-top: 6px; }

/* ---- cards ---- */
.vt-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--vt-r);
  padding: 22px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -32px rgba(0,0,0,.6);
}
.vt-card + .vt-card, .vt-desk { margin-top: 12px; }
.vt-card > h3 { font-size: 16px; margin: 0; letter-spacing: -.01em; }

/* ---- form ---- */
.vt-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 16px; }
.vt-field { min-width: 0; }
.vt-field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.vt-field input, .vt-field select, .vt-field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--vt-r-sm);
  color: var(--text); padding: 10px 12px; font: inherit; font-size: 14px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.vt-field textarea { resize: vertical; line-height: 1.55; }
.vt-field select { cursor: pointer; }
.vt-field input::placeholder, .vt-field textarea::placeholder { color: var(--text-dim); }
.vt-field input:focus, .vt-field select:focus, .vt-field textarea:focus {
  outline: none; border-color: var(--vt-accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(124, 92, 255, .14);
}
.vt-field .vt-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }
.vt-field-full { grid-column: 1 / -1; }

/* qualifier rows */
.vt-qrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; margin-top: 8px; }
.vt-must { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); white-space: nowrap; cursor: pointer; user-select: none; }
.vt-must input { width: 15px; height: 15px; accent-color: var(--vt-accent); }

.vt-formactions { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---- buttons ---- */
.vt-btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--vt-r-sm); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: border-color .14s ease, color .14s ease, background .14s ease, box-shadow .14s ease, transform .12s ease;
}
.vt-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.vt-btn-primary { border: 0; color: #fff; background: var(--vt-grad); box-shadow: 0 8px 22px -10px rgba(124, 92, 255, .7); }
.vt-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); background: var(--vt-grad); border: 0; box-shadow: 0 12px 26px -10px rgba(124, 92, 255, .8); }
.vt-btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.vt-btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.vt-btn-danger { color: var(--text-dim); }
.vt-btn-danger:hover { border-color: var(--vt-bad); color: var(--vt-bad); background: transparent; }

/* ---- desk card ---- */
.vt-desk {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--vt-r); padding: 18px 20px 18px 22px;
  position: relative; overflow: hidden; transition: border-color .14s ease, box-shadow .14s ease;
}
.vt-desk::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--vt-grad); }
.vt-desk:hover { border-color: var(--border-strong); box-shadow: 0 18px 40px -34px rgba(0,0,0,.6); }
.vt-desk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.vt-desk-title { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.vt-desk-title span { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.vt-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.vt-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; line-height: 1.2;
}
.vt-chip b { color: var(--text); font-weight: 600; }
.vt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.vt-warn { font-size: 12.5px; color: var(--vt-warn); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.vt-msg { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.vt-msg:empty { display: none; }
.vt-msg.warn { color: var(--vt-warn); }

/* status pill */
.vt-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; text-transform: capitalize; }
.vt-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.vt-pill.live { color: var(--vt-good); background: rgba(56, 224, 166, .12); border-color: rgba(56, 224, 166, .28); }
.vt-pill.live::before { box-shadow: 0 0 8px var(--vt-good); animation: vtPulse 2s infinite; }
.vt-pill.paused { color: var(--vt-warn); background: rgba(255, 194, 77, .12); border-color: rgba(255, 194, 77, .28); }
.vt-pill.draft, .vt-pill.provisioning { color: var(--text-dim); background: var(--bg-soft); border-color: var(--border); }
@keyframes vtPulse { 0% { box-shadow: 0 0 0 0 rgba(56, 224, 166, .5); } 70% { box-shadow: 0 0 0 6px rgba(56, 224, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 224, 166, 0); } }

/* empty state */
.vt-empty { text-align: center; color: var(--text-muted); padding: 40px 28px; border: 1px dashed var(--border-strong); border-radius: var(--vt-r); font-size: 14px; line-height: 1.6; }

/* ---- calls ---- */
.vt-select-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-select-wrap label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.vt-select-wrap select { max-width: 300px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--vt-r-sm); color: var(--text); padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; }

.vt-call {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--vt-r); padding: 16px 18px;
  margin-top: 10px; cursor: pointer; transition: border-color .14s ease, box-shadow .14s ease;
}
.vt-call:hover { border-color: var(--border-strong); box-shadow: 0 16px 38px -34px rgba(0,0,0,.6); }
.vt-call-top { display: flex; gap: 16px; align-items: center; }
.vt-ring {
  --pct: 0; --ring: var(--vt-accent);
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: -.02em;
  background: radial-gradient(closest-side, var(--surface) 75%, transparent 76%),
              conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--bg-soft) 0);
}
.vt-call-name { font-weight: 600; font-size: 14.5px; }
.vt-call-name span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.vt-call-sub { font-size: 12.5px; margin-top: 3px; }
.vt-call-summary { color: var(--text-muted); font-size: 12.5px; margin-top: 6px; line-height: 1.55; }
.vt-qual-yes { color: var(--vt-good); font-weight: 600; }
.vt-qual-no { color: var(--vt-bad); font-weight: 600; }

/* call detail */
.vt-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.vt-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.vt-bar { margin: 4px 0; }
.vt-bar-h { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; color: var(--text-muted); }
.vt-bar-h span:last-child { font-family: var(--mono, monospace); color: var(--text); font-weight: 600; }
.vt-bar-track { height: 6px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.vt-bar-fill { height: 100%; border-radius: 4px; background: var(--vt-grad); }
.vt-substat { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }
.vt-substat b { color: var(--text); }
.vt-rationale { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.vt-rationale b { color: var(--text); }
.vt-verdicts { margin-top: 14px; }
.vt-verdicts h4, .vt-tr-h { font-size: 12px; font-weight: 700; margin: 0 0 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; }
.vt-verdict { font-size: 12.5px; margin-top: 6px; line-height: 1.55; }
.vt-verdict .vt-q-ans { color: var(--text); }
.vt-verdict .vt-q-rat { color: var(--text-dim); }
.vt-next { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--vt-r-sm); padding: 10px 13px; line-height: 1.55; }
.vt-next b { color: var(--text); }

/* transcript */
.vt-transcript { margin-top: 16px; }
.vt-tr-body { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: var(--vt-r-sm); padding: 14px; background: var(--bg-soft); }
.vt-turn { font-size: 13px; line-height: 1.6; margin: 7px 0; }
.vt-turn b { font-weight: 700; }
.vt-turn.agent b { color: var(--vt-accent); }
.vt-turn.candidate b { color: var(--vt-accent2); }

@media (max-width: 720px) {
  .vt-scores { grid-template-columns: 1fr; }
  .vt-qrow { grid-template-columns: 1fr; }
}
