:root {
  color-scheme: light;
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.94);
  --text: #1d1b18;
  --muted: #5f5a52;
  --accent: #1b6b73;
  --accent-strong: #124b51;
  --border: rgba(29, 27, 24, 0.12);
  --shadow: 0 18px 40px rgba(53, 40, 17, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(27, 107, 115, 0.18), transparent 30%),
    linear-gradient(135deg, #f8f3ec 0%, #efe8dc 100%);
}

.page {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.panel {
  width: min(960px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.intro {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.summary-form {
  margin-top: 24px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  font: inherit;
  line-height: 1.5;
  background: #fffdf9;
}

textarea:focus,
button:focus {
  outline: 3px solid rgba(27, 107, 115, 0.2);
  outline-offset: 2px;
}

button {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
}

button[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.status {
  min-height: 1.5rem;
  margin-top: 16px;
  color: var(--muted);
}

.result {
  margin-top: 24px;
}

.result-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.result-block {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
}

.result-block ul {
  margin: 0;
  padding-left: 20px;
}

.result-block li + li {
  margin-top: 8px;
}

.metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0;
}

.metadata dt {
  font-weight: 700;
}

.metadata dd {
  margin: 0;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .panel {
    padding: 22px;
    border-radius: 20px;
  }
}

