* { box-sizing: border-box; margin: 0; }
body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; background: #f2f4f7; color: #1a202c; }
header { background: #1f3a5f; color: #fff; padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
header h1 { font-size: 19px; flex: 1; }
header a, header button { color: #cfe0f5; background: none; border: 1px solid #4a6a96; border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; text-decoration: none; }
main { padding: 16px; max-width: 1250px; margin: 0 auto; }
.card { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { font-size: 16px; margin-bottom: 12px; color: #1f3a5f; }
label { font-size: 13px; color: #444; display: block; margin: 8px 0 3px; }
input, select, textarea { padding: 8px 10px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 15px; width: 100%; }
button.primary { background: #1f6feb; color: #fff; border: none; padding: 9px 18px; border-radius: 7px; font-size: 15px; cursor: pointer; margin-top: 10px; }
button.small { background: #eef2f7; border: 1px solid #cbd5e0; border-radius: 5px; padding: 3px 9px; font-size: 12.5px; cursor: pointer; margin: 1px; }
button.danger { background: #fde8e8; border-color: #f5b5b5; color: #b02a2a; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 7px 8px; border-bottom: 1px solid #e6eaf0; text-align: left; vertical-align: top; }
th { background: #f7f9fc; color: #445; white-space: nowrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 130px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e8eef7; color: #1f3a5f; }
.tag.done { background: #def7e3; color: #19692c; }
.tag.claimed { background: #fff3cd; color: #8a6100; }
.tag.suspended { background: #fde8e8; color: #b02a2a; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { padding: 8px 16px; border: none; border-radius: 8px 8px 0 0; background: #dde5ef; cursor: pointer; font-size: 14.5px; }
.tabs button.active { background: #fff; font-weight: 600; color: #1f6feb; }
.toast { position: fixed; top: 16px; right: 16px; padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 15px; z-index: 99; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.toast.ok { background: #1e9e50; } .toast.err { background: #d33; }
.scanbox { font-size: 26px !important; padding: 16px !important; text-align: center; letter-spacing: 1px; }
.bigmsg { font-size: 22px; text-align: center; padding: 18px; border-radius: 10px; margin-top: 14px; min-height: 66px; }
.bigmsg.ok { background: #def7e3; color: #19692c; } .bigmsg.err { background: #fde8e8; color: #b02a2a; }

.verbadge { font-size: 12px; font-weight: 600; color: #9fb6d6; border: 1px solid #4a6a96; border-radius: 5px; padding: 2px 7px; margin-right: 10px; white-space: nowrap; }
.verbadge.fixed { position: fixed; top: 4px; left: 6px; z-index: 99; background: #0e1726; }
/* 大号姓名按钮（库工站 / 装卸站，触屏与 PDA） */
.namegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.namebtn { min-height: 64px; font-size: 22px; font-weight: 600; border: 2px solid #cbd5e0; border-radius: 10px; background: #fff; color: #1f3a5f; cursor: pointer; padding: 6px 8px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.namebtn.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.namebtn.on::before { content: "✓ "; }
.namebtn.mini { min-height: 48px; font-size: 18px; }
.namebtn:disabled { opacity: .35; cursor: default; }
button.big { font-size: 16px; padding: 8px 14px; min-height: 44px; }
.whoami { font-size: 20px; margin-top: 8px; }
.whoami b { color: #1f6feb; }

.healthbar { background: #5a4a12; color: #ffe9a8; border-bottom: 2px solid #c9a227; padding: 7px 44px 7px 14px; font-size: 14px; position: relative; z-index: 98; }
.healthbar b { color: #fff3c4; margin-right: 6px; }
.healthbar small { color: #d9c37a; margin-left: 10px; }
.healthbar .x { position: absolute; right: 12px; top: 6px; cursor: pointer; color: #ffe9a8; font-weight: 700; }
