:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #205f9f;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d9e0e7;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
}

.brand {
  color: #17202a;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 16px;
}

.shell,
.report-grid {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 24px;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

h1 {
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 20px;
}

.summary {
  color: #465666;
  font-size: 18px;
  line-height: 1.55;
}

.search {
  display: flex;
  gap: 8px;
  max-width: 680px;
}

input,
button {
  border-radius: 6px;
  font: inherit;
  min-height: 44px;
}

input {
  border: 1px solid #bcc8d4;
  flex: 1;
  padding: 0 12px;
}

button {
  background: #17202a;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
}

.report-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.report-main,
.right-rail,
.ad-zone,
.cards article,
.result {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
}

.report-main {
  padding: 24px;
}

.eyebrow {
  color: #5d6f80;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.cards article {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
}

.cards span {
  color: #465666;
  overflow-wrap: anywhere;
}

.tool-links {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.ad-zone {
  color: #536577;
  display: grid;
  min-height: 160px;
  padding: 16px;
  place-items: center;
  text-align: center;
}

.right-rail {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.inline {
  min-height: 120px;
}

.result {
  overflow-x: auto;
  padding: 16px;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  .hero,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .search {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 16px;
  }

  h1 {
    font-size: 32px;
  }
}
