:root {
  --blue: #1e3a8a;
  --green: #16a34a;
  --orange: #f97316;
  --red: #dc2626;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: #1f2937;
  font-size: 18px;
  line-height: 1.6;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { color: var(--blue); font-size: 1.5rem; margin: 0 0 4px; }
.sub { color: #64748b; font-size: .95rem; margin-bottom: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.tid-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 4px 14px;
  font-size: 1.2rem;
  font-weight: 700;
}
label { display: block; font-weight: 600; margin: 14px 0 6px; }
select, input[type="number"], textarea {
  width: 100%;
  font-size: 1.25rem;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
textarea { font-size: 1.05rem; min-height: 110px; resize: vertical; }
button.primary {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 12px;
}
button.primary:disabled { background: #94a3b8; }
.msg-ok { color: var(--green); font-weight: 700; }
.msg-err { color: var(--red); font-weight: 700; }
.big { font-size: 1.6rem; }
.center { text-align: center; }
.link-report { display: block; text-align: center; margin-top: 24px; color: var(--orange); font-weight: 600; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cat-grid button {
  padding: 16px 8px;
  font-size: 1.15rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.cat-grid button.sel { border-color: var(--green); background: #f0fdf4; color: var(--green); }
.hidden { display: none; }
.notice { background: #fef9c3; border: 1px solid #fde047; border-radius: 10px; padding: 12px 14px; font-size: 1rem; }
