:root {
  color-scheme: light;
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

body {
  margin: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 32px;
  background: #ffffff;
  border-bottom: 1px solid #d8dee6;
}

h1, h2 {
  margin: 0 0 10px;
}

p {
  margin: 0;
  color: #52606d;
}

.health {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  min-width: 260px;
  text-align: right;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
  padding: 24px 32px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  padding: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.note {
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  background: #0f766e;
  cursor: pointer;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #111827;
  color: #d1fae5;
  border-radius: 6px;
  padding: 12px;
  min-height: 72px;
}

.resultBox {
  margin-top: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  min-height: 72px;
  line-height: 1.7;
  background: #f8fafc;
}

.resultBox a {
  color: #0f766e;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery a {
  grid-column: 1 / -1;
  color: #0f766e;
  font-weight: 700;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #d8dee6;
  border-radius: 6px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 18px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

@media (max-width: 800px) {
  .topbar, .layout {
    display: block;
    padding: 18px;
  }
  .panel {
    margin-bottom: 16px;
  }
  .health {
    margin-top: 12px;
    text-align: left;
  }
}
