.tool-page { padding: 2.5rem 0 3.5rem; }
.tool-layout { max-width: 800px; }
.tool-header h1 { font-size: clamp(1.6rem, 4vw, 2rem); margin: 0 0 0.5rem; }
.tool-lead { color: var(--text-muted); margin: 0; }
.tool-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin: 1.5rem 0 1.25rem;
}
.field-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--text-muted); }
.tool-input-row { display: flex; gap: 0.75rem; }
.tool-input-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 0.7rem 0.9rem; font: inherit;
}
.field-hint { margin: 0.55rem 0 0; font-size: 0.8rem; color: var(--text-dim); }
.field-error { margin: 0.55rem 0 0; color: #f87171; font-size: 0.85rem; }
.tool-status {
  margin-bottom: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text-muted);
}
.tool-status.loading { border-color: rgba(59, 130, 246, 0.4); }
.tool-status.error { border-color: rgba(248, 113, 113, 0.45); color: #fca5a5; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; margin-bottom: 1rem;
}
.card h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.score-hero { text-align: center; }
.score-kicker { font-size: 0.75rem; text-transform: uppercase; color: var(--text-dim); }
.score-total { font-size: 2.2rem; font-weight: 700; margin: 0; }
.score-grade { font-size: 1.4rem; font-weight: 700; color: var(--accent-hover); margin: 0.2rem 0; }
.score-bar { height: 0.5rem; background: rgba(148,163,184,0.2); border-radius: 999px; max-width: 280px; margin: 0.5rem auto; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent); width: 0; transition: width 0.3s; }
.score-version { font-size: 0.75rem; color: var(--text-dim); }
.score-cats { list-style: none; padding: 0.75rem 0 0; margin: 0.75rem 0 0; border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.score-cats li { display: flex; justify-content: space-between; font-size: 0.9rem; text-transform: capitalize; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin: 0; }
.meta-grid dt { font-size: 0.7rem; text-transform: uppercase; color: var(--text-dim); }
.meta-grid dd { margin: 0; }
.meta-grid code { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }
.findings-list, .recs-list { margin: 0; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.9rem; }
.findings-list .success strong { color: #4ade80; }
.findings-list .warning strong { color: #fbbf24; }
.findings-list .error strong { color: #f87171; }
.group { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-subtle); }
.group .ua { margin: 0 0 0.35rem; }
.group ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; }
.empty { color: var(--text-dim); font-size: 0.9rem; }
@media (max-width: 560px) {
  .tool-input-row { flex-direction: column; }
  .score-cats { grid-template-columns: 1fr; }
}
