:root{color-scheme:light;--bg:#f3f7fa;--paper:#fff;--ink:#172d3b;--muted:#627885;--line:#dce8ed;--accent:#127c87;--accent-soft:#e7f6f5;--green:#137855;--red:#a83234;--amber:#8c5814}
*{box-sizing:border-box}html{font-family:'Microsoft JhengHei',Arial,sans-serif;background:var(--bg);color:var(--ink)}body{margin:0;font-size:15px;line-height:1.55}main{max-width:1200px;margin:auto;padding:0 22px 60px}header{background:linear-gradient(125deg,#0c5765,#0f7782);color:#fff;padding:25px max(22px,calc((100vw - 1156px)/2))}header h1{font-size:25px;margin:8px 0 6px}header p{font-size:13px;color:#d8eff0;margin:0}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.05em;color:#cce8eb}.tag{display:inline-block;margin-left:9px;background:#fff4d8;color:#7b5c13;border-radius:22px;padding:2px 9px;font-size:11px;letter-spacing:0}.notice{border:1px solid #ecd7a8;border-radius:11px;background:#fff7e4;color:#77541d;padding:12px 15px;margin:17px 0;font-size:13px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:21px;margin:15px 0;box-shadow:0 6px 22px #2042530b}.grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.triple{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.field{background:#f7fafb;border:1px solid var(--line);border-radius:10px;padding:13px}.field label,.label{display:block;font-weight:700;font-size:13px;margin-bottom:7px}.field input[type=file]{display:block;width:100%;font-size:12px}.file-info,.hint,.small{font-size:12px;color:var(--muted)}h2{font-size:18px;margin:0 0 11px}h3{font-size:15px;margin:15px 0 9px}p.hint{margin:6px 0 12px}.radios{display:flex;gap:15px;flex-wrap:wrap;font-size:13px}.radios label{display:flex;align-items:center;gap:5px}input,select,button{font:inherit}input[type=text],input[type=search],select{padding:9px 11px;border:1px solid #b9cdd6;border-radius:8px;background:white;color:var(--ink)}input[type=text]{width:100%}input[type=checkbox]{accent-color:var(--accent)}button{border:0;border-radius:9px;background:var(--accent);color:white;padding:10px 15px;min-height:40px;font-weight:750;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:var(--accent-soft);color:#0b5961}button.outline{background:#fff;border:1px solid #bad7dc;color:#175961}button.danger{background:#9e3336}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #75b8c4;outline-offset:2px}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.status{font-size:13px;padding:10px 12px;border-radius:9px;background:#edf7f1;color:#156341;margin:10px 0;white-space:pre-wrap}.status.warn{background:#fff2dc;color:#78501a}.status.bad{background:#ffecec;color:#9e2932}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.stat{background:#f2f8fa;border-radius:11px;padding:12px}.stat strong{display:block;font-weight:800;font-size:23px;font-variant-numeric:tabular-nums}.stat span{font-size:11px;color:var(--muted)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;min-width:960px;font-size:12px}th,td{border-bottom:1px solid #e6eef2;text-align:left;padding:10px 8px;vertical-align:top;overflow-wrap:anywhere}th{background:#f2f8fa;color:#546d79;white-space:nowrap}tbody tr:last-child td{border-bottom:0}.num{white-space:nowrap}.detail{max-width:300px}.decision{min-width:175px;width:100%}.reason{min-width:175px;width:100%;font-size:12px!important}.label-pill{display:inline-block;font-size:11px;font-weight:700;background:#e8f4f5;color:#136873;border-radius:10px;padding:2px 6px}.label-pill.warn{background:#fff0d9;color:#82500e}.label-pill.error{background:#ffe8e5;color:#992e32}.hidden{display:none!important}.approval{border:1px solid #cce0e4;background:#f7fafb;border-radius:10px;padding:14px;margin:15px 0}.flag{color:#9a5b0d;font-size:11px}.audit-item{padding:10px 0;border-bottom:1px solid #e9f1f3;font-size:12px;overflow-wrap:anywhere}.audit-item:last-child{border:0}.row-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.small-note{background:#f3f8fa;border-radius:9px;padding:10px;font-size:12px;color:#4f6974;margin:9px 0}footer{text-align:center;font-size:12px;color:#68818a;margin:25px 0}.summary{font-weight:700;font-size:14px}

.header-action{display:flex;align-items:center;gap:9px;white-space:nowrap}
button.tiny{min-height:29px;padding:3px 10px;border-radius:7px;font-size:12px;background:#126b75;color:#fff}
.checkcell{text-align:center;vertical-align:middle;width:95px}
.checkcell input{width:21px;height:21px;cursor:pointer;vertical-align:middle}
tr.pending td{background:#fff9ee}
tr.confirmed td{background:#f5fbfa}
#decision-summary{padding:10px 12px;background:#edf5f8;border-radius:8px;white-space:pre-wrap}

/* v0.2.2: keep the heading text centered directly above its checkbox, while placing bulk action to its left. */
table{min-width:980px}th.check-heading{width:105px;min-width:105px;text-align:center;vertical-align:middle}
th.confirm-heading{position:relative;min-width:208px;width:208px;text-align:center;vertical-align:middle}
th.confirm-heading>button{position:absolute;left:9px;top:50%;transform:translateY(-50%)}
th.confirm-heading>span{display:block;width:100%;text-align:center}
.section-count{font-size:12px;font-weight:600;color:var(--muted);margin-left:7px}
#update-body .checkcell:first-of-type,#deletion-body .checkcell{vertical-align:middle}
#update-body td.confirm-col{width:208px;min-width:208px}
#update-body td.pending-col,#deletion-body td.checkcell{width:105px;min-width:105px}
#deletion-body tr.confirmed td{background:#fff8e7}
#auth .actions{margin:10px 0}
#current-state{font-size:14px;line-height:1.8;color:#184c60;font-weight:650}
#result .small-note{margin:16px 0}
#login-guest,#login-wrong{font-size:13px}
body{min-width:960px}

.login-link{display:inline-block;border-radius:8px;background:#0b6977;color:#fff;padding:10px 16px;text-decoration:none;font-weight:700}
