:root {
  --bg: #f4f6f8; --card: #fff; --ink: #1d2733; --muted: #6b7785; --line: #e3e8ee;
  --ok: #1f9d55; --warn: #d97706; --bad: #dc2626; --accent: #2563eb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
       background: var(--bg); color: var(--ink); line-height: 1.45; }
main { max-width: 760px; margin: 0 auto; padding: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
/* 中英文对照：中文在上，英文小字在下 */
.bi { display: inline-flex; flex-direction: column; line-height: 1.15; vertical-align: middle; }
.bi .en { font-size: .72em; color: var(--muted); font-weight: normal; }
button .bi .en, .chip .bi .en { color: inherit; opacity: .75; }
.big { font-size: 2.6rem; font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 160px; min-width: 0; }
.row > * { min-width: 0; max-width: 100%; }
input, select, button { max-width: 100%; }
input[type=file] { flex: 1 1 100%; }
html, body { overflow-x: hidden; }
.muted { color: var(--muted); }
.status { padding: 8px 12px; border-radius: 8px; margin-top: 8px; }
.status.ok { background: #e7f7ee; color: var(--ok); }
.status.no { background: #fdecec; color: var(--bad); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; background: #eef2f6; }
.chip.todo { background: #eef2f6; }
.chip.submitted { background: #fff4dd; color: var(--warn); }
.chip.approved { background: #e7f7ee; color: var(--ok); }
.chip.rejected { background: #fdecec; color: var(--bad); }
.task { border-top: 1px solid var(--line); padding: 10px 0; }
.task:first-child { border-top: 0; }
button { font: inherit; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--accent); color: #fff; cursor: pointer; }
button.ghost { background: #eef2f6; color: var(--ink); }
button.danger { background: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
textarea { width: 100%; min-height: 60px; }
.form { display: grid; gap: 8px; }
.err { color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d2733; color: #fff;
         padding: 10px 16px; border-radius: 10px; max-width: 90%; z-index: 9; }
.thumbs img { height: 70px; border-radius: 6px; margin: 4px 4px 0 0; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
td, th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.hero .brand { font-size: 1.8rem; font-weight: 800; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 5; }
.tabs button { background: #e6ebf1; color: var(--ink); }
.tabs button.on { background: var(--accent); color: #fff; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .8rem; text-align: center; margin-left: 4px; }
.kv { display: grid; grid-template-columns: 8em 1fr; gap: 6px 10px; align-items: center; }
.code-big { font-size: 2.4rem; font-weight: 800; letter-spacing: .25em; }
.thumbs img.big { height: 160px; }
pre.summary { white-space: pre-wrap; font: inherit; margin: 0; }
label.agree { display: flex; gap: 8px; align-items: flex-start; }
label.agree input { margin-top: 4px; flex: none; }
.qrbox { display: grid; gap: 10px; }
img.qr { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: 10px; image-rendering: pixelated; }
select.langsel { padding: 6px 8px; }
