:root {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  color: #0f172a;
  background: #f1f5f9;
}

body {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.top h1 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.sub {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.panel h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.row.gap {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.row span,
.row label span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

input[type="url"],
input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"] {
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  box-sizing: border-box;
}

button {
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #0ea5e9;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

button:hover {
  background: #0284c7;
  border-color: #0284c7;
}

button.secondary {
  background: #fff;
  color: #0369a1;
  border-color: #7dd3fc;
}

button.secondary:hover {
  background: #e0f2fe;
}

.meta {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.35rem 0;
  min-height: 1.2em;
}

.status-ok {
  color: #15803d;
}

.status-warn {
  color: #a16207;
}

.tbl-wrap {
  overflow: auto;
  max-height: 28rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.tbl th {
  color: #64748b;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #f8fafc;
}

.json-fallback {
  margin: 0;
  padding: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  overflow: auto;
  max-height: 24rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

details.bronze {
  margin-top: 0.5rem;
}

details.bronze summary {
  cursor: pointer;
  font-weight: 600;
  color: #475569;
}

.results {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results li {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  background: #f8fafc;
}

.results code {
  display: block;
  color: #0c4a6e;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 0.35rem;
}

.panel.wfp {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 0.5rem);
}

.wfp-row {
  align-items: flex-end;
}

.preset-btns {
  margin-top: 0.15rem;
}

button.btn-wfp {
  align-self: flex-end;
  white-space: nowrap;
}

.top a {
  color: #0284c7;
}

.top a:hover {
  text-decoration: underline;
}

.results.compact li {
  font-size: 0.78rem;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
}

.file-meta {
  color: #64748b;
  font-weight: 400;
}
