/* 沿用工作台 public/app.css 的色彩、圓角、字型與主要按鈕。 */
:root {
  --blue: #1450f5;
  --blue-dark: #0d3dbd;
  --cyan: #32c7f9;
  --canvas: #edf6ff;
  --ink: #0e1728;
  --muted: #536783;
  --line: #d7e7f8;
  --red: #ad3549;
  --red-bg: #fff1f4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: radial-gradient(circle at 85% 7%, #d5edff 0, transparent 29rem), linear-gradient(180deg, #e8f4ff 0%, #f7fbff 74%);
  min-height: 100vh;
  line-height: 1.7;
}
.shell { width: 100%; max-width: 600px; padding: 28px 16px 56px; margin: 0 auto; }
.intro { display: grid; gap: 16px; margin-bottom: 24px; }
.logo { display: block; width: 64px; height: 64px; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 700; }
h2 { font-size: 18px; line-height: 1.5; }
.intro p, .hint { color: var(--muted); }
.hint { font-size: 16px; }
.card {
  display: grid; gap: 22px; min-width: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 48px -30px rgba(13, 61, 189, .45);
}
.field, .optional { display: grid; gap: 8px; min-width: 0; }
.field > label, legend { font-weight: 700; }
input, button { font: inherit; font-size: 16px; }
input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px;
  border: 1px solid #cbdff5; border-radius: 11px; color: var(--ink); background: #fff;
}
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 8px; max-width: 100%; overflow-wrap: anywhere; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 44px; width: 100%;
  padding: 8px 0; cursor: pointer; overflow-wrap: anywhere;
}
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.choice span { min-width: 0; }
.consent { align-items: flex-start; }
.consent input { margin-top: 4px; }
.optional { gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.honeypot { position: fixed; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
a { color: var(--blue); text-underline-offset: 4px; overflow-wrap: anywhere; }
.privacy-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
button {
  min-height: 48px; width: 100%; padding: 10px 18px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 24px -14px var(--blue);
}
button:hover { background: var(--blue-dark); }
button, a, .choice { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--red-bg); color: var(--red); }
.result { display: grid; gap: 24px; padding-top: 48px; }
@media (max-width: 380px) { .card { padding: 18px; } }
