:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d9e1ec;
  --ok: #1f9d55;
  --warn: #d97706;
  --danger: #dc2626;
  --error: #6b7280;
  --primary: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.container {
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container.wide {
  width: 80%;
  max-width: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
}

h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.subtitle {
  margin-top: 0;
  color: var(--muted);
}

.status-line {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.status {
  font-weight: 600;
}

.status.checking {
  color: #6b7280;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--danger);
}

.errors {
  border: 1px solid #f5c2c7;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.7rem;
}

label {
  font-weight: 600;
}

select,
textarea,
button {
  font: inherit;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff;
}

textarea {
  resize: vertical;
}

button,
.button-link {
  width: fit-content;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

button:hover,
.button-link:hover {
  filter: brightness(0.95);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.copy-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  font-size: 1.2rem;
}

.metric.critical strong {
  color: var(--danger);
}

.metric.high strong {
  color: var(--warn);
}

.metric.clean strong {
  color: var(--ok);
}

.metric.error strong {
  color: var(--error);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.55rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
}
