/* 工人簽到頁：字大、按鈕大；不用 flex gap（工地老平板 Chrome 79 不支援） */
:root {
  --bg: #F2F4F6; --panel: #fff; --ink: #15233F; --muted: #5A6577; --blue: #1D5BB8; --green: #2E9A55; --red: #D23B2E; --line: #C9D1DA; --signal: #F3C318;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0F1724; --panel: #172236; --ink: #E6ECF4; --muted: #9AA7BA; --line: #2A3850; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0F1724; --panel: #172236; --ink: #E6ECF4; --muted: #9AA7BA; --line: #2A3850; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
button, input, select { font: inherit; color: inherit; }
small { font-size: 14px; color: var(--muted); font-weight: 400; }
.top { background: #15233F; color: #fff; padding: 14px 16px 12px; border-bottom: 5px solid var(--signal); }
.top h1 { margin: 0; font-size: 22px; line-height: 1.3; }
.sub { margin: 4px 0 0; font-size: 15px; color: #C9D6EA; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.lead { margin: 4px 0 14px; font-size: 18px; font-weight: 700; }
.note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; background: #FBE9E7; color: var(--red); border-left: 6px solid var(--red); }
.msg.ok { background: #E6F4EA; color: var(--green); border-left-color: var(--green); }

.btn { display: inline-block; min-height: 52px; padding: 10px 18px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; cursor: pointer; text-align: center; }
.btn small { display: block; color: inherit; opacity: .8; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.line { background: var(--panel); border-color: var(--line); }
.btn.block { display: block; width: 100%; margin-bottom: 12px; }
.btn.huge { min-height: 68px; font-size: 21px; }
.row { display: flex; margin: 10px -5px; }
.row .btn { flex: 1; margin: 0 5px; }

.input { display: block; width: 100%; min-height: 52px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 20px; }
.input.big { font-size: 34px; letter-spacing: .2em; }
.center { text-align: center; }
.field { display: block; margin-bottom: 16px; }
.lab { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.date3 { display: flex; margin: 0 -4px; }
.date3 .input { flex: 1; margin: 0 4px; font-size: 18px; padding: 8px 6px; }

.choices { display: block; }
.choice { display: block; width: 100%; min-height: 54px; margin-bottom: 8px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; font-size: 19px; font-weight: 700; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--blue); background: #E3ECF8; color: #15233F; }
.choices.two { display: flex; margin: 0 -5px; }
.radio { flex: 1; margin: 0 5px; display: block; min-height: 54px; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 700; }
.radio input { width: 22px; height: 22px; vertical-align: -4px; }
.consent { display: block; padding: 12px; border: 2px dashed var(--line); border-radius: 10px; margin-bottom: 16px; font-size: 16px; }
.consent input { width: 24px; height: 24px; vertical-align: -5px; margin-right: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.names { margin-top: 14px; }
.name-btn { display: block; width: 100%; min-height: 56px; margin-bottom: 8px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; font-size: 21px; font-weight: 700; cursor: pointer; }
.name-btn.signed { opacity: .5; }
.name-btn .tag { float: right; font-size: 15px; color: var(--green); }

.who { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.padbox { position: relative; }
.pad { display: block; width: 100%; height: 220px; background: #fff; border: 3px solid #15233F; border-radius: 10px; touch-action: none; }
.padhint { position: absolute; left: 0; right: 0; top: 96px; text-align: center; color: #9AA3AF; pointer-events: none; font-size: 18px; }
.done { text-align: center; padding: 24px 0; }
.check { display: block; font-size: 72px; color: var(--green); line-height: 1; }
.done p { font-size: 24px; font-weight: 700; margin: 10px 0 0; }
.ts { margin-top: 16px; }
