:root {
  --brand: #0e9f6e;
  --brand-d: #0b8043;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --danger: #e04646;
  --warn: #d98324;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand-d); }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.header h1 { font-size: 17px; margin: 0; font-weight: 600; }
.header .sub { font-size: 12px; opacity: .9; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 10px; padding: 11px 16px; font-size: 15px; cursor: pointer; background: var(--brand); color: #fff; font-weight: 600; transition: .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: #eef2f0; color: var(--brand-d); }
.btn.danger { background: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 15px; background: #fff; color: var(--text); outline: none; }
.input:focus, select:focus, textarea:focus { border-color: var(--brand); }
label { font-size: 13px; color: var(--muted); display: block; margin: 10px 0 5px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(0,0,0,.82); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; z-index: 50; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; }
/* 登录 */
.login-box { max-width: 380px; margin: 12vh auto 0; }
/* 任务项 */
.task { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: none; }
.check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 2px; transition: .15s; }
.check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.task .body { flex: 1; }
.task .title { font-size: 15px; font-weight: 600; }
.task .desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.task .meta { margin-top: 8px; }
.proof-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #f0f0f0; }
.thumb.file { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-decoration: none; padding: 4px; text-align: center; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #e6f6ee; color: var(--brand-d); }
.pill.no { background: #fdeaea; color: var(--danger); }
.pill.warn { background: #fdf2e2; color: var(--warn); }
.pill.req { background: #fde8ef; color: #c0344d; }
/* 决策端 */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.stat { background: var(--card); border-radius: 12px; padding: 12px; text-align: center; }
.stat .n { font-size: 22px; font-weight: 700; color: var(--brand-d); }
.stat .t { font-size: 12px; color: var(--muted); margin-top: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: #fafbfc; position: sticky; top: 0; }
.table-scroll { overflow: auto; border-radius: 12px; background: var(--card); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { padding: 9px 16px; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; border: 1px solid var(--line); }
.tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 600px; max-height: 86vh; overflow: auto; padding: 18px; }
.modal h3 { margin: 0 0 12px; }
.tag-input { display: flex; gap: 8px; }
.tag-input input { flex: 1; }
@media (max-width: 520px){ .stats{ grid-template-columns: repeat(2,1fr);} th,td{ font-size:12.5px; padding:7px 6px;} }
