/* ==========================================================================
   nullen.cc — whitespace cleaner specifics
   The shared tool chrome lives in tool.css; this file only adds the findings
   panel, the list of fixes and the affected columns.
   ========================================================================== */

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

.findings {
  display: grid;
  gap: var(--space-3);
}

.findings__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.findings__head strong {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

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

.findings__note {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* ---------- The list of fixes ---------- */
.checks__label {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* the fixes live inside the panel, so they get their own surface */
.checks label {
  background: var(--surface-2);
}

.checks .check__name {
  flex: 1 1 auto;
  min-width: 0;
}

.checks .check__count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.checks .check__count.is-hot {
  color: var(--accent-text);
}

/* ---------- Affected columns ---------- */
.affected {
  display: grid;
  gap: var(--space-3);
}

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

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

.affected__count {
  color: var(--accent-text);
  font-weight: 500;
  white-space: nowrap;
}

.affected__count--none {
  color: var(--muted-2);
  font-weight: 400;
}

.affected__empty {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .panel {
    padding: var(--space-5);
  }

  .checks label {
    flex-wrap: wrap;
  }

  .checks .check__count {
    font-size: 11px;
  }
}
