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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(920px, calc(100vw - 32px));
  margin: 32px auto;
  display: grid;
  gap: 18px;
}

.panel,
.result {
  background: #fff;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  padding: 20px;
}

.heading {
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

p {
  margin-top: 6px;
  color: #52616b;
}

.form {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b8c4cc;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #172026;
}

button {
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #146c75;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.status {
  min-height: 22px;
  margin-top: 14px;
  color: #52616b;
}

.status.error {
  color: #a42323;
}

.result-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

#meta {
  color: #52616b;
  font-size: 13px;
}

.summary-content {
  min-height: 280px;
  margin: 0;
  padding: 16px;
  border-radius: 6px;
  background: #f1f4f6;
  border: 1px solid #d8e0e5;
  word-break: break-word;
  line-height: 1.45;
}

.summary-content.empty {
  color: #52616b;
}

.summary-content p {
  margin: 0 0 12px;
}

.summary-section {
  display: grid;
  gap: 8px;
}

.summary-section + .summary-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #d8e0e5;
}

.summary-section h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.summary-section ol {
  margin: 0;
  padding-left: 24px;
}

.summary-section li + li {
  margin-top: 7px;
}

.action-items h3 {
  color: #146c75;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    display: grid;
  }
}
