:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202b3c;
  background: #f3f6fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  color: #3569a8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 10px 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.045em;
}

.intro,
.muted {
  color: #5b687a;
  line-height: 1.65;
}

.notice {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid #e9c66d;
  border-radius: 12px;
  background: #fff8df;
  line-height: 1.6;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card,
.panel {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(34 54 84 / 5%);
}

.summary-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.summary-card strong {
  font-size: 2rem;
}

.summary-card small {
  color: #6b7788;
}

.on-track {
  border-top: 4px solid #4c9f70;
}

.needs-attention {
  border-top: 4px solid #e9a23b;
}

.at-risk {
  border-top: 4px solid #d95d5d;
}

.panel {
  margin: 20px 0;
  padding: 24px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.input-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
}

.input-form h3 {
  margin: 0;
}

.input-form label {
  display: grid;
  gap: 6px;
  color: #516074;
  font-size: 0.9rem;
  font-weight: 650;
}

.input-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.input-form button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #245c9b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.input-form button:hover {
  background: #194879;
}

.input-form code {
  overflow-wrap: anywhere;
}

.error {
  padding: 12px 14px;
  border: 1px solid #e7a3a3;
  border-radius: 8px;
  background: #fff0f0;
  color: #8d2929;
}

.result-notice {
  border-color: #9dc4eb;
  background: #edf6ff;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

.action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.action-list article {
  padding: 16px;
  border-radius: 12px;
  background: #f6f8fb;
}

.action-list h3 {
  margin: 0 0 8px;
}

.action-list p {
  margin: 0;
  color: #5b687a;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
}

th {
  color: #516074;
  font-size: 0.8rem;
}

footer {
  padding: 12px 0;
  color: #5b687a;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .page {
    padding: 28px 0;
  }

  .summary,
  .action-list,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }
}
