:root {
  color-scheme: light;
  font-family: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  background: #f6f7f9;
  color: #20242a;
}

.log-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.log-status article {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 18px;
}

.log-status span {
  display: block;
  color: #667085;
  font-size: 14px;
}

.log-status strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.correct-row {
  background: #e7f7ec;
  box-shadow: inset 4px 0 0 #1f8f4d;
}

.correct-row td {
  background: #e7f7ec;
}

.wrong-row {
  background: #fdecec;
  box-shadow: inset 4px 0 0 #d63b3b;
}

.wrong-row td {
  background: #fdecec;
}

.reference-row {
  background: #fff3df;
  box-shadow: inset 4px 0 0 #d9822b;
}

.reference-row td {
  background: #fff3df;
}

@media (max-width: 900px) {
  .log-status {
    grid-template-columns: 1fr;
  }
}

body {
  margin: 0;
}

.top {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  background: #ffffff;
  border-bottom: 1px solid #dfe3e8;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.top p {
  margin-top: 8px;
  color: #667085;
}

.key-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

input, button, .install-button, .menu-box summary {
  height: 38px;
  border-radius: 6px;
  border: 1px solid #cfd6df;
  font-size: 14px;
}

input {
  padding: 0 12px;
}

button {
  padding: 0 14px;
  background: #295f98;
  color: #ffffff;
  cursor: pointer;
}

.install-button {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: #2f6f4e;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.install-button.secondary {
  background: #5a6472;
}

.menu-box {
  position: relative;
}

.menu-box summary {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: #5a6472;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.menu-box summary::-webkit-details-marker {
  display: none;
}

.menu-box summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 12px;
}

.menu-box[open] summary::after {
  content: "▴";
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 20;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(20, 32, 48, 0.16);
}

.menu-panel a {
  display: block;
  padding: 11px 14px;
  color: #20242a;
  text-decoration: none;
  white-space: nowrap;
}

.menu-panel a:hover {
  background: #eef4fb;
}

.page-tools {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

.wide-section {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
}

.number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.summary-grid, .chart-grid, .table-grid {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(5, 1fr);
}

.chart-grid, .table-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

section > div, .summary-grid article, main > section:not(.summary-grid):not(.chart-grid):not(.table-grid) {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 18px;
}

.summary-grid span {
  display: block;
  color: #667085;
  font-size: 14px;
}

.summary-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
}

th {
  color: #667085;
  font-weight: 600;
}

main > section:last-child {
  margin-top: 22px;
}

.message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #20242a;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .top, .key-box {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-panel {
    left: 0;
    right: auto;
  }

  .summary-grid, .chart-grid, .table-grid {
    grid-template-columns: 1fr;
  }
}
