:root {
  --bg: #f7f8f3;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #d8ddd2;
  --green: #2f7d54;
  --green-soft: #e6f3ec;
  --yellow: #fff4d6;
  --red: #b91c1c;
  --chip: #eef2f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
.container { max-width: 1120px; margin: 0 auto; padding: 36px 24px 60px; }
.hero { margin-bottom: 24px; }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .06em; margin: 0 0 6px; }
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 0 0 18px; }
h3 { font-size: 17px; margin: 18px 0 8px; }
h4 { margin: 18px 0 6px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin: 18px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.notice, .warning { background: var(--yellow); border-color: #f2d58b; }
.next { background: var(--green-soft); border-color: #b5dbc6; }
.small { color: var(--muted); font-size: 14px; }
.error { color: var(--red); font-weight: 700; }
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
label span { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=file] {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
button, .button {
  appearance: none;
  border: none;
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
th { background: #f1f4ef; text-align: left; }
code { background: #f3f4f6; border-radius: 5px; padding: 2px 5px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.status-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fbfcfa; }
.total-card { background: #f4fbf7; }
.metric { font-size: 20px; font-weight: 800; margin: 8px 0 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--chip); }
.badge.ok { background: #dff3e8; color: #17613d; }
.badge.warn { background: #fee2e2; color: #991b1b; }
.badge.neutral { background: #eef2f7; color: #334155; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.kpi-row div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfa; }
.kpi-row span { display: block; color: var(--muted); font-size: 13px; }
.kpi-row strong { display: block; font-size: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.chip { display: inline-block; background: #eef7f1; border: 1px solid #cfe8d8; border-radius: 999px; padding: 5px 12px; font-size: 14px; }
details { margin-top: 18px; }
summary { cursor: pointer; font-weight: 700; color: var(--green); }
.small-table { font-size: 13px; }
.quote { margin: 18px 0; }
.quote h3 { margin-bottom: 6px; }
.quote h3 span { color: var(--muted); font-size: 13px; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  max-height: 260px;
  overflow: auto;
  font-family: inherit;
}
@media print {
  body { background: #fff; }
  .card { break-inside: avoid; box-shadow: none; }
  button, .button { display: none; }
}
.steps { margin: 8px 0 0 1.2em; padding: 0; }
.steps li { margin: 5px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfa; }
.feature-grid p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.review { background: #fbfffc; border-color: #cfe8d8; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.warning-line { background: #fff4d6; border: 1px solid #f2d58b; border-radius: 10px; padding: 10px 12px; }
.ok-line { background: #e6f3ec; border: 1px solid #b5dbc6; border-radius: 10px; padding: 10px 12px; }
