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

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.report-input,
.report-card,
.score-card,
.day-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-input {
  padding: 20px;
}

.report-input textarea {
  min-height: 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}

.report-actions {
  position: static;
  background: none;
}

.report-output {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.report-card {
  padding: 20px;
}

.report-card h2,
.report-card h3 {
  margin: 0 0 12px;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.score-card {
  padding: 14px;
  box-shadow: none;
}

.score-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  line-height: 1.25;
}

.score-value {
  color: var(--brand);
  font-size: 1.65rem;
  font-weight: 900;
}

.list-stack,
.day-grid {
  display: grid;
  gap: 10px;
}

.list-item,
.day-card {
  padding: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item strong,
.day-card strong {
  display: block;
  margin-bottom: 6px;
}

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

.day-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.copy-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

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

  .report-header {
    display: grid;
  }
}
