:root {
  --brand: #2f6fed;
  --brand-d: #1f54c4;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2733;
  --muted: #8a94a6;
  --ok: #18a058;
  --warn: #f0a020;
  --line: #e6eaf2;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
}
header {
  background: linear-gradient(90deg, var(--brand), var(--brand-d));
  color: #fff; padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
header h1 { font-size: 18px; margin: 0; font-weight: 600; }
.identity { display: flex; align-items: center; gap: 8px; }
.identity select, .identity input {
  padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); color: #fff; font-size: 14px;
}
.identity select option { color: #1f2733; }
.container { max-width: 1080px; margin: 18px auto; padding: 0 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  padding: 8px 16px; border-radius: 8px 8px 0 0; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-bottom: none;
  color: var(--muted); font-weight: 600;
}
.tab.active { color: var(--brand); box-shadow: 0 -2px 6px rgba(0,0,0,.04); }
.tabpanel { display: none; }
.tabpanel.active { display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card .meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.btn {
  display: inline-block; padding: 7px 14px; border-radius: 7px; border: none;
  background: var(--brand); color: #fff; cursor: pointer; font-size: 13px;
}
.btn:hover { background: var(--brand-d); }
.btn.ghost { background: #eef2fb; color: var(--brand); }
.progress { height: 8px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 10px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--brand); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.ok { background: #e6f7ee; color: var(--ok); }
.badge.no { background: #fdeede; color: var(--warn); }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { background: #f0f3fa; color: var(--muted); font-weight: 600; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: min(820px, 94vw); padding: 18px; }
.modal video { width: 100%; border-radius: 8px; background: #000; }
.modal .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1f2733; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 99;
}
.toast.show { opacity: 1; }
.upload-box { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.upload-box label { display: block; margin: 8px 0 4px; color: var(--muted); font-size: 13px; }
.upload-box input[type=text], .upload-box input[type=file] { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.kpi { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.kpi .box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; min-width: 130px; }
.kpi .num { font-size: 24px; font-weight: 700; color: var(--brand); }
.kpi .lbl { color: var(--muted); font-size: 12px; margin-top: 2px; }
.dept-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dept-row .progress { flex: 1; margin: 0; }
.qitem { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.qhead { font-weight: 600; margin-bottom: 8px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: center; gap: 6px; padding: 3px 0; cursor: pointer; }
.q-editor { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.q-editor .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.q-editor input[type=text], .q-editor input[type=number], .q-editor select,
.q-editor textarea { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.q-editor .opt-row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.mini { padding: 4px 10px; font-size: 12px; }
