:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg2: #121934;
  --card: rgba(13, 19, 41, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f5fb;
  --muted: #98a3c7;
  --accent: #7c9cff;
  --accent-strong: #5d82ff;
  --ok: #1ec98b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #172347, var(--bg) 45%);
  color: var(--text);
}
.shell {
  width: min(860px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.hero {
  padding: 28px;
}
.brand {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
}
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.lede { color: var(--muted); max-width: 640px; }
.lookup-form label { display: block; margin-bottom: 12px; font-weight: 600; }
.lookup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
input, button {
  font: inherit;
  border-radius: 16px;
  border: 1px solid var(--line);
}
input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 16px 18px;
}
button {
  cursor: pointer;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 0;
  font-weight: 700;
}
.secondary-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
}
.form-status, .muted { color: var(--muted); }
.form-status { margin: 14px 2px 0; }
.result-card {
  margin-top: 22px;
  padding: 24px 28px;
}
.result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.14);
  color: #dbe4ff;
  font-size: 0.85rem;
  font-weight: 700;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.history-actions { margin-bottom: 14px; }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table th,
.history-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.history-table tbody tr:last-child td { border-bottom: 0; }
.hidden { display: none; }
@media (max-width: 700px) {
  .shell { width: min(100vw - 20px, 860px); padding-top: 20px; }
  .hero, .result-card { padding: 20px; border-radius: 20px; }
  .brand { align-items: flex-start; }
  .lookup-row, .result-grid, .result-header { grid-template-columns: 1fr; display: grid; }
  .result-header { gap: 10px; }
  button { width: 100%; }
}
