/* ==========================================================================
   nullen.cc — null cleaner specifics
   The shared tool chrome lives in tool.css; this file only adds the health
   panel and the per-column breakdown.
   ========================================================================== */

/* ---------- Findings panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
}

.health {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.health__ring {
  position: relative;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
}

.health__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.health__ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.health__track {
  stroke: var(--surface-3);
}

.health__value {
  stroke: var(--accent);
  stroke-dasharray: 100 100;
  transition: stroke-dasharray var(--duration-slow) var(--ease);
}

.health__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.health__label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

.health__label span {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.health__stats {
  display: grid;
  gap: var(--space-5);
}

.health__stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.health__stats li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.health__stats strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.health__stats strong.is-accent {
  color: var(--accent-text);
}

.health__stats span {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- Column breakdown ---------- */
.columns {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-4);
}

.columns__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 48px;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.columns__name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.columns__track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}

.columns__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width var(--duration-slow) var(--ease);
}

.columns__count {
  color: var(--accent-text);
  font-weight: 500;
  text-align: right;
}

.columns__count--none {
  color: var(--muted-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .health {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
