:root {
  --bg: #f3f7ff;
  --card: #ffffff;
  --line: #d8e1f2;
  --text: #1e2a3a;
  --muted: #62718a;
  --primary: #315efb;
  --primary2: #5e8dff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 100%);
}
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
  box-shadow: 0 10px 30px rgba(49, 94, 251, 0.08);
  margin-bottom: 18px;
}
.logo-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
  box-shadow: 0 10px 30px rgba(49, 94, 251, 0.08);
  margin-bottom: 18px;
  text-align: center;
}
.logo-image {
  width: min(420px, 92%);
  height: auto;
}
.hero h1 {
  margin: 0 0 8px;
  font-family: "Jua", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #15306b;
}
.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(22, 40, 78, 0.05);
  margin-bottom: 18px;
}
.panel h2 {
  margin: 0 0 16px;
  font-family: "Jua", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #26428e;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .full { grid-column: 1 / -1; }
}
label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #33425f;
}
input, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cad5eb;
  padding: 12px 13px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
input:focus, select:focus {
  outline: none;
  border-color: #7f9dff;
  box-shadow: 0 0 0 3px rgba(97, 137, 255, 0.18);
}
button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #cad5eb;
  background: #f8fbff;
  color: #2f4b87;
  font-weight: 700;
  cursor: pointer;
}
.btn-secondary:hover { background: #eff5ff; }
button:hover { opacity: 0.96; transform: translateY(-1px); }
button:disabled { cursor: default; opacity: 0.75; transform: none; }
.footer-home {
  text-align: center;
  margin: 20px 0 30px;
}
.back-btn {
  font-family: "Nanum Pen Script", cursive;
  font-size: 22px;
  display: inline-block;
  margin-top: 20px;
  text-align: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.back-btn:focus {
  outline: none;
}
.back-btn img {
  width: 120px;
  transition: transform 0.2s ease;
  border: none;
  outline: none;
}
.back-btn img:hover {
  transform: scale(1.05);
}
.status {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}
.status.info { display: block; color: #1f3f89; background: #eaf1ff; }
.status.ok { display: block; color: #0d6d3a; background: #e8f9ef; }
.status.warn { display: block; color: #925a12; background: #fff5e6; }
.status.bad { display: block; color: #a02525; background: #ffe9e9; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  border: 1px solid #cfdbf8;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  color: #35559a;
  background: #f4f8ff;
}
.report-images {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.report-images img {
  width: 100%;
  border: 1px solid #d8e1f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border: 1px solid #dce5f6;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
  margin-bottom: 18px;
}
.chart-wrap canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.chart-wrap h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-family: "Jua", sans-serif;
  font-weight: 400;
  color: #233f86;
}
.chart-summary {
  margin: 8px 0 0;
  color: #3a4b68;
  font-size: 14px;
  line-height: 1.6;
  background: #f1f6ff;
  border: 1px solid #dae5fb;
  border-radius: 10px;
  padding: 10px 12px;
}
@media (max-width: 480px) {
  .chart-wrap { height: 180px; }
}
.back {
  display: inline-flex;
  margin-top: 14px;
  color: #34589f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
