/* Palette/fonts: see /css/site-theme.css */


* { box-sizing: border-box; }

/* body chrome from site-theme */


code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: #e2e8f0;
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 1.15rem 1.1rem 2.75rem; }

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.9rem;
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.025em;
}
.lede { margin: 0 0 1rem; max-width: 52rem; color: var(--muted); font-size: 1.02rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.15rem;
  margin-bottom: 1rem;
}
.card h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.limits {
  background: var(--warn-bg);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
  color: #78350f;
  font-size: 0.92rem;
}
.limits strong { color: var(--warn); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.row label { font-size: 0.9rem; color: var(--muted); }

input[type="file"],
input[type="number"],
select,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}
textarea { width: 100%; min-height: 7rem; font-family: var(--mono); font-size: 0.82rem; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { border-color: #94a3b8; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.metric {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.metric b { display: block; font-size: 1.25rem; letter-spacing: -0.02em; }
.metric span { font-size: 0.82rem; color: var(--muted); }

.status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.35em;
}
.status.is-ok { color: var(--good); }
.status.is-error { color: #b91c1c; }

.table-wrap {
  overflow: auto;
  max-height: min(62vh, 720px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  font-weight: 600;
  z-index: 1;
}
tr:hover td { background: #f8fafc; }
.qname { font-family: var(--mono); font-size: 0.8rem; }
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.chip.hi { background: var(--hi-bg); color: var(--hi); }
.samples { color: var(--muted); font-size: 0.8rem; max-width: 28rem; }

.note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .table-wrap { max-height: 55vh; }
}
