@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --paper: #f5f7fa;
  --paper-dark: #edf2f7;
  --surface: rgba(255, 255, 255, 0.94);
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(15, 118, 110, 0.08), transparent),
    radial-gradient(900px 700px at 100% 0%, rgba(59, 130, 246, 0.08), transparent),
    linear-gradient(180deg, var(--paper), var(--paper-dark));
}

.page-shell {
  min-height: 100vh;
  padding: 28px 18px 44px;
}

.hero,
.content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.brand-logo img {
  display: block;
  height: 24px;
  width: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-chip img {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.content {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.intro-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 26px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-card h1 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.intro-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.lookup-form {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lookup-form input {
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  font: inherit;
  background: #fff;
  outline: none;
}

.lookup-form input:focus {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.lookup-form button {
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.helper {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.feedback {
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: rgba(180, 83, 9, 0.08);
  color: #92400e;
  padding: 14px 16px;
}

.results {
  display: grid;
  gap: 18px;
}

.result-card {
  padding: 20px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.result-title {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.result-sub {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.sync-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
  padding: 12px 14px;
  min-width: 128px;
}

.sync-chip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sync-chip-value {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.sync-chip-sub {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.summary-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-field {
  display: grid;
  gap: 4px;
  padding: 2px 0;
}

.summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.timeline-mobile {
  display: none;
  margin-bottom: 12px;
  gap: 10px;
}

.timeline-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.timeline-row > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
}

.timeline-row > summary::-webkit-details-marker {
  display: none;
}

.timeline-row-date {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.timeline-row-time {
  font-size: 10px;
  font-weight: 500;
}

.timeline-row-main {
  min-width: 0;
}

.timeline-row-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-row-note {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.timeline-row-details {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

.timeline-row-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-block {
  margin-top: 18px;
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: none;
}

.stack-primary {
  font-weight: 600;
}

.stack-secondary {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  min-height: 16px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero,
  .result-header,
  .timeline-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 22px 14px 34px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-card h1 {
    font-size: 31px;
  }

  .summary-grid,
  .timeline-row-grid {
    grid-template-columns: 1fr;
  }

  .timeline-mobile {
    display: grid;
  }

  .table-wrap {
    display: none;
  }
}
