:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #d9e0e7;
  --panel: #ffffff;
  --page: #eef3f5;
  --accent: #0b6e69;
  --accent-dark: #084f4c;
  --warn: #a15c00;
  --bad: #b42318;
  --good: #147a42;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #dfe9ec 0%, var(--page) 42%, #f8fafb 100%);
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.lookup-panel,
.results {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(23, 33, 43, 0.08);
}

.lookup-panel {
  padding: 28px;
}

.brand-row,
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-row {
  justify-content: flex-start;
}

.mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.lookup-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b7c4cc;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  background: #fff;
}

input {
  min-height: 46px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(11, 110, 105, 0.18);
  border-color: var(--accent);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.message {
  min-height: 20px;
  margin: 0;
  grid-column: 1 / -1;
  color: var(--bad);
  font-weight: 700;
}

.captcha-container {
  grid-column: 1 / -1;
  min-height: 65px;
}

.file-field,
.paste-field {
  grid-column: 1 / -1;
}

.privacy-note {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.results {
  margin-top: 22px;
  padding: 24px;
}

.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8f6ef;
  color: var(--good);
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.missing {
  background: #fff4e5;
  color: var(--warn);
}

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

.summary-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 86px;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: #e8f6ef;
  color: var(--good);
}

.check-icon.missing {
  background: #ffe9e6;
  color: var(--bad);
}

.check-title {
  font-weight: 850;
}

.check-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3px;
}

.certificate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
}

.gaps {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .lookup-form,
  .summary-grid,
  .columns {
    grid-template-columns: 1fr;
  }

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