/* Credit Remaining: match other apps (white), not green */
#toolStatusSummaryBar[data-tool="skiptrace"] .credit-value,
#toolStatusSummaryBar[data-tool="skiptrace"] .credit-infinity,
#toolStatusSummaryBar[data-tool="skiptrace"] [data-role="primary-credit-value"],
#skiptrace_credit_remaining,
[data-app="skiptrace"][data-role="primary-credit-value"] {
  color: rgba(255,255,255,0.92) !important;
  text-shadow: none !important;
}

.skiptrace-ui{
  display:flex;
  flex-direction:column;
  gap:16px;
  color:#e5e7eb;
}

.skiptrace-results{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.progress-shell{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.progress-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.9rem;
  color:#cbd5f5;
}

.skiptrace-form-card{
  background:rgba(15, 23, 42, 0.45);
  border:1px solid rgba(148, 163, 184, 0.35);
  border-radius:14px;
  padding:16px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  box-sizing:border-box;
  width:100%;
}

.skiptrace-form-card .form-group{
  display:flex;
  flex-direction:column;
}

.skiptrace-form-card .form-group.full{
  grid-column:1 / -1;
}

.skiptrace-form-card label{
  font-size:0.95rem;
  color:#e5e7eb;
  margin-bottom:6px;
  font-weight:600;
}

.skiptrace-form-card input{
  width:100%;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:transparent;
  color:#e5e7eb;
  font-size:0.95rem;
  box-sizing:border-box;
}

.skiptrace-form-card select{
  width:100%;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:transparent;
  color:#e5e7eb;
  font-size:0.95rem;
  box-sizing:border-box;
}

.skiptrace-form-card input::placeholder{
  color:#cbd5f5;
  opacity:0.75;
}

.skiptrace-button{
  padding:10px 18px;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#1f2937;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  width:100%;
  box-sizing:border-box;
}

@media (max-width: 900px){
  .skiptrace-form-card{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}

.progress-container{
  height:6px;
  background:#111;
  border-radius:4px;
  overflow:hidden;
}

.progress-shell{
  opacity:1;
  transition:opacity 0.35s ease;
}

.progress-shell.progress-complete{
  opacity:0;
}

.progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#6366f1,#9333ea);
  transition:width 0.3s;
}

.result-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  padding:18px;
  border-radius:10px;
  margin-top:14px;
  animation:fadeUp 0.4s ease;
}

.skiptrace-section{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.skiptrace-section-title{
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#cbd5f5;
}

.skiptrace-section-body{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.skiptrace-card{
  background:rgba(15, 23, 42, 0.6);
  border:1px solid rgba(148, 163, 184, 0.3);
  border-radius:12px;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.skiptrace-card.skiptrace-muted{
  color:#94a3b8;
  font-size:0.9rem;
}

.skiptrace-kv{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.skiptrace-kv-label{
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:#94a3b8;
}

.skiptrace-kv-value{
  font-weight:600;
  color:#f8fafc;
}

.skiptrace-note{
  font-size:0.9rem;
  color:#cbd5f5;
  line-height:1.4;
}

.skiptrace-score{
  font-size:2rem;
  font-weight:700;
  color:#f8fafc;
}

.result-title{
  font-weight:bold;
  margin-bottom:8px;
}

.result-row{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
}

.result-block{
  margin-top:12px;
}

.result-label{
  font-weight:600;
  opacity:0.85;
  margin-bottom:4px;
}

.result-value{
  font-weight:400;
  opacity:0.95;
  word-break:break-word;
  overflow-wrap:anywhere;
  white-space:normal;
  line-height:1.5;
}

.result-summary-text{
  text-align:center;
  opacity:0.75;
  margin-top:10px;
  font-size:14px;
}

.match-bar-bg{
  width:100%;
  height:10px;
  border-radius:8px;
  background:rgba(255,255,255,0.06);
  margin-top:6px;
  overflow:hidden;
}

.match-bar-fill{
  height:100%;
  border-radius:8px;
  transition:width 0.8s ease;
  box-shadow:0 0 12px rgba(168,85,247,0.4);
}

.strength-row{
  margin-top:12px;
}

.strength-bar-container{
  width:100%;
  height:10px;
  border-radius:6px;
  background:rgba(255,255,255,0.06);
  overflow:hidden;
  margin:6px 0;
}

.strength-bar-fill{
  height:100%;
  width:0%;
  border-radius:6px;
  transition:width 0.6s ease;
}

.strength-low{
  background:linear-gradient(
    90deg,
    #ef4444,
    #f97316
  );
}

.strength-medium{
  background:linear-gradient(
    90deg,
    #f59e0b,
    #eab308
  );
}

.strength-good{
  background:linear-gradient(
    90deg,
    #84cc16,
    #22c55e
  );
}

.strength-high{
  background:linear-gradient(
    90deg,
    #22c55e,
    #16a34a
  );
}

.result-divider{
  border:none;
  border-top:1px solid rgba(255,255,255,0.06);
  margin:14px 0;
}

.address-container{
  margin-top:14px;
}

.address-timeline{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-left:22px;
}

.address-timeline::before{
  content:"";
  position:absolute;
  left:6px;
  top:6px;
  bottom:6px;
  width:2px;
  background:rgba(147,51,234,0.2);
}

.address-entry{
  position:relative;
  margin-top:0;
  background:rgba(255,255,255,0.02);
}

.address-entry::before{
  content:"";
  position:absolute;
  left:-18px;
  top:18px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:rgba(147,51,234,0.9);
  box-shadow:0 0 0 4px rgba(147,51,234,0.12);
}

.signal-container{
  position:relative;
  margin-top:14px;
  padding-left:28px;
}

.signal-container::before{
  content:"";
  position:absolute;
  left:10px;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(
    to bottom,
    rgba(147,51,234,0.6),
    rgba(147,51,234,0.1)
  );
}

.signal-dot{
  position:absolute;
  left:3px;
  top:12px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#9333ea;
  box-shadow:0 0 8px rgba(147,51,234,0.8),
    0 0 18px rgba(147,51,234,0.4);
}

.signal-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(147,51,234,0.25);
  border-radius:10px;
  padding:14px;
  margin-bottom:14px;
  transition:all 0.25s ease;
}

.signal-card:hover{
  border-color:rgba(147,51,234,0.6);
  box-shadow:0 0 14px rgba(147,51,234,0.15);
}

.timeline-container{
  position:relative;
  margin-top:14px;
  padding-left:28px;
}

.timeline-container::before{
  content:"";
  position:absolute;
  left:10px;
  top:0;
  bottom:0;
  width:2px;
  background:linear-gradient(
    to bottom,
    rgba(147,51,234,0.6),
    rgba(147,51,234,0.1)
  );
}

.timeline-entry{
  position:relative;
}

.timeline-dot{
  position:absolute;
  left:3px;
  top:12px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#9333ea;
  box-shadow:0 0 8px rgba(147,51,234,0.8),
    0 0 18px rgba(147,51,234,0.4);
}

.timeline-card{
  margin-left:0;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(147,51,234,0.25);
  border-radius:10px;
  padding:14px;
  transition:all 0.25s ease;
}

.timeline-card:hover{
  border-color:rgba(147,51,234,0.6);
  box-shadow:0 0 14px rgba(147,51,234,0.15);
}

.timeline-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:600;
  cursor:pointer;
}

.timeline-expand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid rgba(147,51,234,0.35);
  color:#e5e7eb;
  font-size:16px;
  transition:transform 0.2s ease, background 0.2s ease;
}

.timeline-card.is-collapsed .timeline-expand{
  transform:rotate(-90deg);
  background:rgba(147,51,234,0.12);
}

.timeline-body{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.timeline-card.is-collapsed .timeline-body{
  display:none;
}

.result-card.expandable{
  cursor:pointer;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.result-card.expandable:hover{
  border-color:rgba(147,51,234,0.35);
}

.result-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:600;
}

.result-card-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid rgba(147,51,234,0.35);
  color:#e5e7eb;
  font-size:16px;
  transition:transform 0.2s ease, background 0.2s ease;
}

.result-card.is-collapsed .result-card-toggle{
  transform:rotate(-90deg);
  background:rgba(147,51,234,0.12);
}

.result-card.is-collapsed .result-block{
  display:none;
}

.result-card.is-collapsed .result-block:first-of-type{
  display:block;
}

.result-card.is-collapsed .result-block:first-of-type .result-label{
  opacity:0.7;
}

.result-card.is-collapsed .result-block:first-of-type .result-value{
  display:-webkit-box;
  line-clamp:2;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

#public-section{
  max-height:600px;
  overflow-y:auto;
}

.result-meaning{
  font-size:13px;
  opacity:0.7;
  margin-top:4px;
}

.result-score{
  font-size:28px;
  font-weight:bold;
}

.reliability-container{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:20px;
  --score:0;
}

.reliability-circle{
  width:120px;
  height:120px;
  border-radius:50%;
  border:3px solid rgba(147,51,234,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:600;
  background:
    radial-gradient(
      rgba(147,51,234,0.12),
      rgba(147,51,234,0.02)
    );
  position:relative;
}

.reliability-ring{
  position:absolute;
  inset:-6px;
  transform:rotate(-90deg);
}

.reliability-ring-track,
.reliability-ring-progress{
  fill:none;
  stroke-width:6;
}

.reliability-ring-track{
  stroke:rgba(147,51,234,0.18);
}

.reliability-ring-progress{
  stroke:rgba(147,51,234,0.85);
  stroke-linecap:round;
  stroke-dasharray:339.292;
  stroke-dashoffset:339.292;
  animation:ringFill 1.2s ease forwards;
}

.reliability-text{
  margin-top:14px;
  text-align:center;
  opacity:0.75;
}

@keyframes ringFill{
  from{
    stroke-dashoffset:339.292;
  }
  to{
    stroke-dashoffset:calc(339.292 - (339.292 * var(--score)) / 100);
  }
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
