/* ============================================================
   huyuning.top 样式
   ============================================================ */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --card-2: #f9fafc;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --line: #e6e8ee;
  --line-2: #d5d9e2;
  --accent: #2f6bff;
  --accent-hover: #1f58e6;
  --accent-soft: #edf2ff;
  --violet: #7c4dff;
  --violet-soft: #f2edff;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --danger: #dc2626;
  --danger-soft: #fdeceb;
  --warn: #a16207;
  --warn-soft: #fdf5e0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
  --radius: 16px;
  --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --card-2: #1d2128;
    --text: #eef0f4;
    --text-2: #c9ced8;
    --muted: #9aa1ad;
    --line: #2a2f38;
    --line-2: #363c47;
    --accent: #6b93ff;
    --accent-hover: #86a7ff;
    --accent-soft: #1d2740;
    --violet: #a68bff;
    --violet-soft: #2a2244;
    --ok: #6fd08c;
    --ok-soft: #173222;
    --danger: #f2837b;
    --danger-soft: #3a2020;
    --warn: #f0c75e;
    --warn-soft: #362d17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-size: 15px; font-weight: 800;
}
.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topbar-nav a, .topbar-nav button {
  color: var(--muted); font-size: 15px; padding: 6px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer;
}
.topbar-nav a:hover, .topbar-nav button:hover { background: var(--card-2); color: var(--text); text-decoration: none; }

/* ---------- 布局 ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 28px 16px calc(100px + env(safe-area-inset-bottom)); }
.wrap.wide { max-width: 1120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.page-head h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; word-break: break-word; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.back:hover { color: var(--accent); text-decoration: none; }
.section-title { font-size: 18px; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 180px; min-width: 0; }
.spacer { flex: 1; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; min-width: 0;
}
.card.bad { border-color: var(--danger); }
.card-title, .h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.card-sub { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.btn.ghost { background: var(--card); color: var(--text-2); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn.soft:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn.violet { background: var(--violet); border-color: var(--violet); }
.btn.violet:hover { filter: brightness(1.08); }
.btn.danger { background: var(--card); color: var(--danger); border-color: var(--line-2); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; font-weight: 500; border-radius: 8px; }
.btn.icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; font-size: 15px; background: transparent; border-color: transparent; color: var(--muted); }
.btn.icon:hover { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.icon.del:hover { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { display: flex; width: 100%; height: 50px; font-size: 17px; }

/* ---------- 表单 ---------- */
.input, select.input, textarea.input {
  width: 100%; min-height: 40px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 8px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; line-height: 1.6; }
.input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.title-input { font-size: 17px; font-weight: 600; }
select.input { width: auto; padding-right: 28px; cursor: pointer; }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.inline-num { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.inline-num .input { width: 90px; }

/* 开关 */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }
.switch .sw-text { display: grid; line-height: 1.4; }
.switch .sw-text small { color: var(--muted); font-size: 13px; }

.err { color: var(--danger); font-size: 14px; margin: 8px 2px 0; }
.err:empty { display: none; }

/* ---------- 标签 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px;
  font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--card-2); color: var(--muted); border: 1px solid var(--line);
}
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.ok::before, .pill.off::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.normal { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.appraisal { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 6px; font-weight: 600; }
.tag.ok { color: var(--ok); background: var(--ok-soft); }
.tag.no { color: var(--muted); background: var(--card-2); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag.bad { color: var(--danger); background: var(--danger-soft); }
.tag.normal { color: var(--accent); background: var(--accent-soft); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.user { background: var(--card-2); color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.pending-card { border-color: var(--warn); }
.pending-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pending-row:first-of-type { border-top: 0; }
.pending-row .who { flex: 1 1 220px; min-width: 0; }
.pending-row .who small { display: block; color: var(--muted); }
.switch-link { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.notice ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- 分段切换 / 标签页 ---------- */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; margin-bottom: 20px;
}
.seg button {
  border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: #fff; }
.seg button.on.violet { background: var(--violet); }
.seg .count { font-size: 12px; padding: 0 7px; border-radius: 10px; background: rgba(127, 127, 127, .15); }
.seg button.on .count { background: rgba(255, 255, 255, .25); }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 20px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; border: 0; background: transparent; padding: 10px 14px; cursor: pointer;
  color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs.violet button.on { color: var(--violet); border-bottom-color: var(--violet); }

/* ---------- 问卷卡片列表 ---------- */
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.s-card {
  display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 14px 22px;
  transition: border-color .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.s-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.s-card.appraisal::before { background: var(--violet); }
.s-card:hover { border-color: var(--line-2); box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
.s-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.s-card-title { font-size: 17px; font-weight: 700; margin: 0; word-break: break-word; }
.s-card-title a { color: var(--text); }
.s-card-meta { display: flex; gap: 28px; }
.s-card-meta .k { font-size: 13px; color: var(--muted); }
.s-card-meta .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.s-card-meta .v.date { font-size: 15px; font-weight: 600; padding-top: 4px; }
.s-card-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }

.empty { text-align: center; padding: 48px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty .btn { margin-top: 14px; }

/* 首页、公开列表 */
.hero { padding: 16px 0 20px; }
.hero h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.02em; }
.portal { display: grid; gap: 14px; }
.portal-card {
  display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.portal-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 6px 20px rgba(16, 24, 40, .08); }
a.portal-card.appraisal:hover { border-color: var(--violet); }
a.portal-card:active { transform: scale(.99); }
.portal-card.disabled { opacity: .55; box-shadow: none; }
.portal-text { flex: 1; min-width: 0; }
.portal-text strong { display: block; font-size: 17px; }
.portal-text .muted { display: block; font-size: 14px; }
.portal-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); }
.portal-icon.violet { background: var(--violet-soft); }
.portal-go { flex: none; color: var(--muted); font-size: 22px; }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--card-2); }
tbody tr:hover td { background: var(--card-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { display: block; font-size: 12px; color: var(--muted); }
.final { font-weight: 700; font-size: 16px; }

.bar-row { margin: 12px 0; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bar-label span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; border-radius: 4px; background: var(--accent-soft); margin-top: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.texts { margin: 0; padding-left: 18px; }
.texts li { margin: 6px 0; word-break: break-word; }

/* ---------- 题目编辑器 ---------- */
.q-edit { padding: 0; overflow: hidden; }
.q-edit-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px 10px 18px; background: var(--card-2); border-bottom: 1px solid var(--line);
}
.q-edit-body { padding: 18px 20px 20px; }
.q-edit-body > * + * { margin-top: 14px; }
.qnum {
  flex: none; min-width: 28px; height: 28px; border-radius: 8px; padding: 0 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; display: inline-grid; place-items: center;
}
.q-edit-head .switch { padding: 0; font-size: 14px; color: var(--text-2); gap: 8px; }
.q-edit-head .switch .track { width: 34px; height: 20px; }
.q-edit-head .switch .track::after { width: 14px; height: 14px; }
.q-edit-head .switch input:checked + .track::after { transform: translateX(14px); }
.q-edit-head select.input { min-height: 34px; height: 34px; padding: 4px 28px 4px 10px; font-size: 14px; font-weight: 600; }
.q-actions { margin-left: auto; display: flex; gap: 2px; }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 24px; }
.add-btn {
  flex: 1 1 140px; height: 48px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: transparent;
  color: var(--text-2); font-weight: 600; cursor: pointer; transition: all .15s;
}
.add-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.save-bar {
  position: sticky; bottom: 0; z-index: 20; margin: 8px 0 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.save-bar .muted { flex: 1 1 0; min-width: 0; font-size: 14px; }

/* 绩效考评设置 */
.item-row { display: grid; grid-template-columns: 1fr 100px auto; gap: 8px; align-items: start; padding: 12px 0; border-top: 1px dashed var(--line); }
.item-row:first-child { border-top: 0; padding-top: 0; }
.item-row .desc { grid-column: 1 / -1; }
.item-actions { display: flex; gap: 2px; }
.weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- 弹窗 ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 17, 21, .45);
  display: grid; place-items: center; padding: 16px; animation: fade .15s;
}
.modal {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 460px;
  max-height: calc(100vh - 32px); overflow: auto; padding: 24px; animation: pop .18s;
}
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.link-box { display: flex; gap: 8px; margin-top: 14px; }
.link-box .input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.qr-wrap { text-align: center; margin-top: 16px; }
.qr { width: 200px; height: 200px; image-rendering: pixelated; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px;
  transition: all .25s; z-index: 80; font-size: 15px; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   填写页
   ============================================================ */
.fill-head {
  background: linear-gradient(135deg, var(--accent), #5b8cff); color: #fff;
  border-radius: var(--radius); padding: 26px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.fill-head.appraisal { background: linear-gradient(135deg, #5b3fd6, var(--violet)); }
.fill-head h1 { margin: 0 0 6px; font-size: 24px; }
.fill-head p { margin: 0; opacity: .92; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }

.q {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  padding: 20px 18px 16px; margin: 0 0 14px; min-width: 0; transition: border-color .2s;
}
.q.bad { border-color: var(--danger); }
.q legend { display: flex; align-items: flex-start; gap: 10px; float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 17px; }
.q legend + * { clear: both; }
.q .qnum { min-width: 26px; height: 26px; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.qt { flex: 1; }
.qt .muted { font-weight: 400; margin-left: 4px; font-size: 14px; }
.req, .opt { flex: none; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-top: 3px; }
.req { color: var(--danger); background: var(--danger-soft); }
.opt { color: var(--muted); background: var(--card-2); }
.opts { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s;
}
.choice:hover { border-color: var(--accent); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.mark { flex: none; width: 20px; height: 20px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .15s; }
.is-single .mark { border-radius: 50%; }
.is-multi .mark { border-radius: 6px; }
.choice.checked { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + .mark { border-color: var(--accent); background: var(--accent); }
.is-single input:checked + .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.is-multi input:checked + .mark::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.choice input:focus-visible + .mark { outline: 2px solid var(--accent); outline-offset: 2px; }

.done { text-align: center; padding: 64px 16px; }
.check { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; }
.done h2 { margin: 0 0 8px; }

/* 绩效考评填写 */
.search { width: 100%; font-size: 17px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.search:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.pick-list { display: grid; gap: 8px; }
.pick {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer;
}
.pick:hover { border-color: var(--violet); background: var(--violet-soft); }
.pick .muted { font-size: 14px; text-align: right; }
.items-legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.items-legend li { display: flex; gap: 8px; font-size: 15px; }
.items-legend b { white-space: nowrap; }
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.person-head h3 { margin: 0; font-size: 18px; }
.subtotal { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.subtotal.done { color: var(--ok); font-weight: 700; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.score-row:first-of-type { border-top: 0; }
.score-row label { flex: 1; min-width: 0; }
.score-row input {
  width: 92px; flex: none; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums;
  padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card);
}
.score-row input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.score-row input.bad { border-color: var(--danger); background: var(--danger-soft); }
.max { color: var(--muted); font-size: 14px; }
.comment { margin-top: 10px; }
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
}
.bottom-bar .inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bottom-bar .count { flex: 1; font-variant-numeric: tabular-nums; }

/* 绩效考评后台用紫色强调 */
.theme-violet .btn:not(.ghost):not(.danger):not(.icon):not(.soft) { background: var(--violet); border-color: var(--violet); }
.theme-violet .btn:not(.ghost):not(.danger):not(.icon):not(.soft):hover { filter: brightness(1.08); }
.theme-violet .tabs button.on { color: var(--violet); border-bottom-color: var(--violet); }
.theme-violet .switch input:checked + .track { background: var(--violet); }

@media (max-width: 600px) {
  .page-head h1 { font-size: 22px; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .q-edit-body { padding: 16px; }
  .q-edit-head { padding: 10px 8px 10px 14px; gap: 8px; }
  .weights { grid-template-columns: 1fr; }
  .s-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}
