* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Noto Sans TC", "Microsoft JhengHei", sans-serif; background: #f7f5f2; color: #222; }
[hidden] { display: none !important; }
.test-bar { background: #ffcc00; color: #000; text-align: center; padding: 6px 16px; font-size: 14px; font-weight: 700; }
header { background: #9b1c1c; color: #fff; padding: 18px 16px; text-align: center; }
header h1 { margin: 0; font-size: 22px; }
header p { margin: 6px 0 0; opacity: .85; font-size: 14px; }
main { max-width: 460px; margin: 0 auto; padding: 16px; }
h2 { font-size: 17px; margin: 24px 0 4px; }

.card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 14px; }
.center { text-align: center; }
.sub, .muted { color: #666; font-size: 14px; margin: 0 0 8px; }
label { display: block; font-size: 14px; margin: 14px 0 6px; font-weight: 600; }
input, select { width: 100%; font-size: 18px; padding: 12px; border: 1px solid #ccc; border-radius: 10px; background: #fff; }
.btn { width: 100%; margin-top: 16px; font-size: 18px; padding: 14px; border: 0; border-radius: 10px; background: #9b1c1c; color: #fff; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .6; }
.btn.link { background: none; color: #9b1c1c; font-weight: 400; font-size: 15px; margin-top: 6px; }
.btn.gray { background: #555; font-size: 16px; padding: 10px; }
.btn.small { width: auto; margin: 0; font-size: 16px; padding: 10px 14px; }
.msg { margin-top: 12px; color: #b00020; font-size: 15px; min-height: 1em; }
.warn { background: #fff3cd; padding: 14px; border-radius: 10px; }

/* 領取 QR Code */
#qr { display: inline-block; padding: 12px; background: #fff; margin: 14px 0 6px; }
.big { font-size: 22px; font-weight: 700; }
.code { font-family: monospace; color: #666; font-size: 13px; }
.tip { background: #fff7e0; border-radius: 10px; padding: 12px; font-size: 15px; margin-top: 14px; text-align: left; line-height: 1.6; }

/* 報到結果 */
.icon { font-size: 64px; line-height: 1; }
.status { font-size: 26px; font-weight: 800; margin: 10px 0; }
.ok { color: #1b7f3b; } .warnc { color: #b86e00; } .err { color: #b00020; }
.pill { display: inline-block; background: #eee; border-radius: 20px; padding: 4px 14px; font-size: 16px; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 17px; text-align: left; }
td { padding: 8px 4px; border-bottom: 1px solid #eee; }
.headcount { background: #9b1c1c; color: #fff; border-radius: 12px; padding: 10px; font-size: 22px; margin: 6px 0 4px; }
.headcount b { font-size: 44px; margin: 0 6px; vertical-align: -4px; }
.headcount small { font-size: 14px; opacity: .85; }
td:first-child { color: #666; width: 30%; }
.pin { font-size: 22px; text-align: center; letter-spacing: 4px; }

/* 工作人員頁 */
.row { display: flex; gap: 8px; margin-top: 10px; }
.row input { flex: 1; }
.stats { display: flex; gap: 10px; text-align: center; margin-top: 12px; }
.stats div { flex: 1; background: #f3f3f3; border-radius: 10px; padding: 10px 4px; }
.stats b { display: block; font-size: 26px; }
.stats span { font-size: 13px; color: #666; }
.item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.item .who { flex: 1; }
.item .name { font-weight: 700; font-size: 17px; }
.item .sm { font-size: 13px; color: #666; }
.done { color: #1b7f3b; font-size: 14px; font-weight: 700; }

/* 首頁連結 */
.list a { display: block; background: #fff; border-radius: 12px; padding: 16px; margin: 10px 0; color: #9b1c1c; text-decoration: none; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.list a small { display: block; color: #666; font-weight: 400; margin-top: 4px; }
