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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(33, 108, 94, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(161, 45, 35, 0.10), transparent 28%),
    #eef3f4;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid rgba(86, 105, 112, 0.18);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #b72d26;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar strong {
  display: block;
  font-size: 15px;
}

.topbar span {
  display: block;
  margin-top: 2px;
  color: #627179;
  font-size: 12px;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.intro {
  min-height: 520px;
  padding: 48px 24px 24px 0;
}

.intro h1 {
  max-width: 560px;
  font-size: 42px;
  line-height: 1.16;
}

.intro p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px 0 0;
  color: #52636b;
  line-height: 1.75;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.checks span {
  padding: 8px 10px;
  border: 1px solid rgba(33, 108, 94, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #216c5e;
  font-size: 13px;
  font-weight: 800;
}

.panel {
  background: #ffffff;
  border: 1px solid #d7dee2;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(18, 32, 38, 0.10);
}

.primary {
  grid-row: span 2;
}

.secondary {
  grid-column: 2;
}

.heading {
  margin-bottom: 24px;
}

.heading.small {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #286a76;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h2 {
  font-size: 24px;
}

.form {
  display: grid;
  gap: 16px;
}

.compact {
  gap: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #30414a;
}

input,
select,
button {
  min-height: 48px;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid #b9c5ca;
  padding: 0 12px;
  background: #fbfcfc;
  color: #142027;
}

input:focus,
select:focus {
  border-color: #216c5e;
  box-shadow: 0 0 0 3px rgba(33, 108, 94, 0.16);
  outline: none;
}

button {
  border: 0;
  padding: 0 16px;
  background: #216c5e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(33, 108, 94, 0.22);
}

button:hover {
  background: #185d50;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status {
  margin-top: 18px;
  min-height: 24px;
  color: #46555d;
  line-height: 1.5;
  word-break: break-word;
}

.status.error {
  color: #a3382f;
}

@media (max-width: 780px) {
  .topbar {
    padding: 0 16px;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .intro {
    min-height: auto;
    padding: 12px 0 4px;
  }

  .intro h1 {
    font-size: 30px;
  }

  .primary,
  .secondary {
    grid-column: auto;
  }

  .row {
    grid-template-columns: 1fr;
  }
}
