:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14211b;
  background: #f3f1e9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(78, 126, 102, 0.16), transparent 28rem),
    linear-gradient(180deg, #f8f7f1 0%, #efede4 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(20, 33, 27, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #f8f7f1;
  background: #173f32;
  font-family: Georgia, serif;
}

.logout { color: #315948; font-size: 0.9rem; font-weight: 650; }

main { width: min(1180px, 90vw); margin: 0 auto; padding: 72px 0 44px; }

.hero { max-width: 810px; margin-bottom: 54px; }

.eyebrow,
.step {
  margin: 0 0 12px;
  color: #5f735f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.intro { max-width: 700px; margin: 26px 0; color: #526057; font-size: 1.08rem; line-height: 1.7; }

.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  color: white;
  background: #173f32;
  box-shadow: 0 8px 24px rgba(23, 63, 50, 0.2);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover { background: #225b48; }
button:disabled { cursor: wait; opacity: 0.55; }
#checked-at { color: #718077; font-size: 0.82rem; }

.status-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; margin-bottom: 18px; }

.card {
  padding: 28px;
  border: 1px solid rgba(20, 33, 27, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(37, 51, 43, 0.07);
  backdrop-filter: blur(12px);
}

.card-heading,
.results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
h2 { margin: 0; font-size: 1.38rem; letter-spacing: -0.025em; }

.status {
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: right;
}

.status[data-tone="pending"] { color: #685522; background: #f5e9bd; }
.status[data-tone="ok"] { color: #16553c; background: #d8eee1; }
.status[data-tone="error"] { color: #7d2924; background: #f4d8d4; }

.identity-details {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) 1fr;
  gap: 9px 20px;
  margin: 26px 0 0;
  font-size: 0.87rem;
}

dt { color: #77827b; }
dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.query-name { margin: 34px 0 0; color: #436352; font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.results-card { padding: 0; overflow: hidden; }
.results-heading { padding: 28px; }
.limit { color: #78837c; font-size: 0.78rem; }
.table-region { max-width: 100%; overflow-x: auto; border-top: 1px solid rgba(20, 33, 27, 0.1); }

table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th, td { padding: 13px 18px; border-bottom: 1px solid rgba(20, 33, 27, 0.08); text-align: left; white-space: nowrap; }
th { color: #607067; background: rgba(232, 234, 226, 0.74); font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:hover { background: rgba(221, 232, 222, 0.52); }
.empty { margin: 0; padding: 34px 28px; color: #718077; }
.error-copy { color: #7d2924; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 24px 0 38px;
  color: #7c8780;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  main { padding-top: 48px; }
  .status-grid { grid-template-columns: 1fr; }
  .card-heading { flex-direction: column; }
  .status { text-align: left; }
  .identity-details { grid-template-columns: 1fr; }
  dd { margin-bottom: 8px; }
  footer { flex-direction: column; }
}
