:root {
  color-scheme: light;
  font-family: "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f2f5fb;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.container {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 480px);
  padding: 36px;
  background: #ffffff;
  border: 1px solid #dce3ef;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(31, 54, 95, 0.12);
}

.eyebrow { margin: 0; color: #506b9f; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 10px 0; font-size: 1.7rem; }
.description { margin: 0 0 28px; color: #5b667c; line-height: 1.6; }
form { display: grid; gap: 10px; }
label { margin-top: 6px; font-size: 0.9rem; font-weight: 700; }
input {
  min-height: 44px;
  padding: 10px 12px;
  color: inherit;
  border: 1px solid #b9c6dc;
  border-radius: 8px;
  font: inherit;
}
input:focus { outline: 3px solid #c9dcff; border-color: #2f6fd4; }
button {
  min-height: 44px;
  margin-top: 14px;
  color: #fff;
  background: #245fc0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
button:hover { background: #194d9e; }
button:disabled { cursor: wait; opacity: 0.65; }
.result { min-height: 1.5em; margin: 20px 0 0; color: #176b3a; line-height: 1.5; overflow-wrap: anywhere; }
.result.error { color: #b42318; }

@media (max-width: 480px) {
  .container { padding: 12px; }
  .panel { padding: 24px; }
}

.hidden { display: none; }
.step-note { margin: 0 0 18px; color: #5b667c; line-height: 1.6; }
button.secondary { margin-top: 8px; color: #245fc0; background: #eaf1ff; }
button.secondary:hover { background: #dbe8ff; }
