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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 32px;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.topbar p {
  margin-top: 8px;
  color: #52616f;
}

.docsLink,
button {
  border: 0;
  border-radius: 8px;
  background: #176b87;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 16px;
  text-decoration: none;
}

.docsLink:hover,
button:hover {
  background: #124f64;
}

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

.card,
.answer {
  background: white;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  padding: 20px;
}

form {
  display: grid;
  gap: 12px;
}

input[type="file"],
textarea,
.statusBox,
.answerText {
  width: 100%;
  border: 1px solid #c8d5df;
  border-radius: 8px;
  background: #f8fbfd;
  color: #17202a;
  padding: 12px;
}

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

.statusBox {
  margin-top: 12px;
  color: #52616f;
}

.answer {
  margin-top: 18px;
}

.answerText {
  min-height: 92px;
  white-space: pre-wrap;
}

.citations {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.citation {
  border-left: 4px solid #176b87;
  background: #f8fbfd;
  border-radius: 6px;
  padding: 12px;
}

.citation strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .shell {
    padding: 18px;
  }

  .topbar,
  .grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }
}
