* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #687386;
  --border: #e4e8ef;
  --primary: #2457d6;
  --primary-dark: #1944ae;
  --success: #18794e;
  --success-bg: #eaf8f0;
  --warning: #a24d00;
  --warning-bg: #fff3e8;
  --shadow: 0 12px 30px rgba(25, 38, 65, 0.07);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1120px, 92%);
  margin: 42px auto;
}

.page-header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.page-header p:last-child,
.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 20px;
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.summary-card strong {
  font-size: 1.05rem;
}

.panel {
  padding: 22px;
  margin-bottom: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
button {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(36, 87, 214, 0.14);
  border-color: var(--primary);
}

.lookup-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.lookup-row input {
  max-width: 260px;
}

button {
  width: auto;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--primary-dark);
}

.lookup-result {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

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

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #4d596d;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: #fafcff;
}

.status-pass,
.status-fail {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-pass {
  color: var(--success);
  background: var(--success-bg);
}

.status-fail {
  color: var(--warning);
  background: var(--warning-bg);
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f1f3f7;
  font-family: Consolas, monospace;
}

@media (max-width: 720px) {
  .container {
    width: min(94%, 1120px);
    margin: 24px auto;
  }

  .summary-cards,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .lookup-row {
    flex-direction: column;
  }

  .lookup-row input,
  .lookup-row button {
    max-width: none;
    width: 100%;
  }

  .panel {
    padding: 16px;
  }
}
