/* 360民主评议 - 设计系统（清新绿，卡片化，移动端优先） */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #14a37f;
  --primary-dark: #0d8a6a;
  --primary-soft: #e8f7f2;
  --bg: #f3f6f8;
  --card: #ffffff;
  --text: #1c2b2a;
  --muted: #7b8b8a;
  --line: #e5ecea;
  --danger: #e05656;
  --ok: #14a37f;
  --warn: #d9932a;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(17, 60, 52, .05);
  --shadow-lg: 0 12px 32px rgba(17, 60, 52, .10);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: 14px; }
input, textarea, select { color: var(--text); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 11px 20px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
}
.topbar .brand { font-size: 16px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.topbar .brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #1fc39a, #0d8a6a); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 14px; }
.topbar .user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.role-tag { padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.role-master { background: #fff3e0; color: #b26a00; }
.role-sub { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- 账号下拉菜单 ---------- */
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px;
  cursor: pointer; font-family: inherit; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.acct-btn:hover { border-color: #bfe4d8; box-shadow: 0 2px 10px rgba(20,163,127,.12); }
.acct .avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #1fc39a, #0d8a6a); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.acct .avatar.lg { width: 36px; height: 36px; font-size: 15px; }
.acct-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.acct-name b { font-size: 13px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-name .role-tag { font-size: 11px; padding: 0 6px; }
.acct .caret { font-size: 10px; color: var(--muted); transition: transform .18s; }
.acct.open .caret { transform: rotate(180deg); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 218px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.acct.open .acct-menu { opacity: 1; transform: none; pointer-events: auto; }
.acct-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-title { font-size: 13.5px; font-weight: 600; }
.acct-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: none; padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--text); cursor: pointer; font-family: inherit;
}
.acct-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
.acct-item i { font-style: normal; font-size: 14px; width: 18px; text-align: center; }
.acct-item.danger { color: var(--danger); }
.acct-item.danger:hover { background: #fdecec; }
.acct-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- 单选行 / 候选人多选列表 ---------- */
.radio-row {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px;
  font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.radio-row:hover { border-color: #bfe4d8; background: #fbfdfc; }
.radio-row input { margin-top: 4px; accent-color: var(--primary); flex: 0 0 auto; }
.pick-list { max-height: 208px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.pick-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.pick-row:hover { background: #f6fbf9; }
.pick-row input { accent-color: var(--primary); flex: 0 0 auto; }

/* ---------- 页面标题 ---------- */
.topbar .brand { cursor: pointer; user-select: none; }
.page-hero { text-align: center; padding: 8px 0 20px; }
.page-title { font-size: 29px; font-weight: 800; letter-spacing: 2px; line-height: 1.35; color: var(--text); }
.page-sub { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }

/* ---------- 短信设置 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sms-vars { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.sms-vars span { background: #f4f9f7; border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; }
.sms-preview { margin-top: 8px; }
.sms-bubble { background: #f2f6f5; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.75; color: #2c4a41; border: 1px solid var(--line); }
.sms-warn { color: var(--danger); font-size: 12px; margin-top: 6px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 18px 16px 48px; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid rgba(229,236,234,.7); }
.card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mb12 { margin-bottom: 12px; } .ml8 { margin-left: 8px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: none; border-radius: 9px;
  padding: 9px 16px; font-size: 14px; font-weight: 500;
  transition: background .15s, transform .06s; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid #bfe4d8; }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c74a4a; }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 7px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary); padding: 2px 4px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px; background: #fdfefe; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,163,127,.12); background: #fff; }
/* type=search 自带的清除小叉去掉，外观与普通文本框一致 */
input.input[type="search"]::-webkit-search-cancel-button,
input.input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
textarea.input { resize: vertical; min-height: 78px; line-height: 1.6; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; min-height: 18px; }
/* 通用提示弹窗里的问题清单 */
.nt-list { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; line-height: 2; max-height: 260px; overflow: auto; }
.nt-list li { color: var(--text); }
.nt-list li b { color: var(--danger); }
.nt-body p { font-size: 12.5px; line-height: 1.75; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--muted); }
.switch input { display: none; }
.switch i { width: 38px; height: 21px; border-radius: 20px; background: #d8e2e0; position: relative; transition: background .18s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { left: 19px; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; background: #f8fbfa; font-size: 12.5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fbfdfc; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table td.rs { border-bottom: 1px solid var(--line); }

/* ---------- 标签/徽章 ---------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag-ok { background: #e4f7f1; color: var(--ok); }
.tag-warn { background: #fdf3e2; color: var(--warn); }
.tag-gray { background: #eef2f1; color: var(--muted); }
.tag-danger { background: #fdecec; color: var(--danger); }
.tag-line { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; overflow-x: auto; box-shadow: var(--shadow); }
.tabs button { flex: 1; border: none; background: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: all .15s; }
.tabs button:hover { color: var(--primary); background: var(--primary-soft); }
.tabs button.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(20,163,127,.25); }

/* 面包屑步骤 */
.steps { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.steps b { color: var(--text); font-weight: 600; }
.steps .sep { color: #c8d4d1; }

/* ---------- 模态框 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(16, 32, 28, .42); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; padding: 22px; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 14px; font-size: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #223f39; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; max-width: 86vw; box-shadow: var(--shadow-lg); animation: tin .2s; }
.toast-error { background: var(--danger); }
.toast-ok { background: var(--primary); }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 登录页：左侧宣传区 + 右侧登录卡 ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 40%) 1fr; }
/* 左：深绿品牌区（内容收成一块面板，垂直居中） */
.login-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 40px 48px; color: #fff;
  background: linear-gradient(158deg, #127258 0%, #0c5742 50%, #094534 100%);
}
.login-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 90% at 12% 6%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 12% 6%, #000 0%, transparent 72%);
}
.login-hero > * { position: relative; z-index: 1; }
.va { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lh-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: .3px; margin-bottom: 30px; }
.lh-brand i {
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .2px;
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
}
.lh-title { font-size: 36px; line-height: 1.32; font-weight: 800; letter-spacing: .5px; margin: 0 0 14px; }
.lh-sub { font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .78); margin: 0 0 26px; }
.lh-cards {
  list-style: none; margin: 0; padding: 4px 16px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px;
}
.lh-cards li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.lh-cards li:first-child { border-top: 0; }
.lh-cards li i {
  font-style: normal; font-size: 11px; font-weight: 700; flex: 0 0 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
  background: rgba(255, 255, 255, .18);
}
.lh-cards li b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.lh-cards li span { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .64); }
/* 右：登录卡 */
.login-main {
  position: relative;
  display: flex; align-items: center; justify-content: center; padding: 36px 24px;
  background: radial-gradient(900px 420px at 108% 108%, #e7f0ff 0%, transparent 58%), #f5f8f7;
}
/* 页脚备案号（管局要求挂在网站底部） */
.beian {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11.5px; color: #9aa8a4; user-select: none;
}
.beian a { color: inherit; text-decoration: none; letter-spacing: .3px; }
.beian a:hover { color: var(--primary-dark); }
/* 填写页：备案号走文档流，垫在问卷内容底部 */
.beian-inflow { position: static; padding: 4px 0 16px; }
.login-card { background: #fff; border-radius: 20px; padding: 34px 28px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-card .logo { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: .5px; margin-bottom: 6px; }
.login-card .logo em { font-style: normal; color: var(--primary); }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
@media (max-width: 1280px) {
  .login-hero { padding: 32px 40px; }
  .lh-title { font-size: 32px; }
  .lh-cards li b { font-size: 13px; }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-main { min-height: 100vh; padding: 22px; }
}
.phone-row { display: flex; gap: 8px; }
.phone-row .input { flex: 1; }
.code-btn { white-space: nowrap; }

/* ---------- 进度 ---------- */
.progress { height: 7px; background: #e9f0ee; border-radius: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #35c79f, #14a37f); border-radius: 8px; transition: width .4s; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat-cell { background: #f8fbfa; border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; }
.stat-cell b { font-size: 22px; color: var(--primary); display: block; line-height: 1.3; }
.stat-cell span { font-size: 12px; color: var(--muted); }
.banner { border-radius: 11px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.banner-warn { background: #fdf3e2; color: #8a5b00; border: 1px solid #f3dfb6; }
.banner-info { background: var(--primary-soft); color: #0b6b53; border: 1px solid #c8e9de; }

/* ---------- 问卷填写页 ---------- */
.fill-hero { background: linear-gradient(150deg, #14a37f 0%, #0d8a6a 60%, #0a7357 100%); color: #fff; padding: 34px 20px 30px; text-align: center; }
.fill-hero h1 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.fill-hero .meta { font-size: 13px; opacity: .92; }
.fill-main { max-width: 760px; margin: 0 auto; padding: 18px 14px 48px; }
.q-head { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.q-head .num { color: var(--primary); font-weight: 800; font-size: 16px; line-height: 1.5; }
.q-title { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.q-sub { color: var(--muted); font-size: 13px; margin: 6px 0 12px; padding-left: 2px; }
/* 打分矩阵：桌面为「姓名列 + 选项列」，手机端自动折成「标签行 / 姓名 / 圆点行」 */
.mx { margin-top: 2px; }
.mx-head {
  display: grid; grid-template-columns: 150px repeat(var(--n, 5), minmax(0, 1fr));
  align-items: end; background: #f8fbfa; border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0; padding: 9px 0;
}
.mx-hname { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-left: 12px; }
.mx-hopt { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.3; padding: 0 4px; }
.mx-row {
  display: grid; grid-template-columns: 150px repeat(var(--n, 5), minmax(0, 1fr));
  align-items: center; border-bottom: 1px dashed #edf3f1;
}
.mx-row:last-child { border-bottom: none; }
.mx-subj { padding: 11px 0 11px 12px; font-weight: 500; font-size: 13px; }
.mx-cells { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); padding: 11px 0; }
.mx-cells .opt-dot { justify-self: center; }
.mx-row:hover { background: #fafdfc; }
.opt-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1.5px solid #cfded9; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; position: relative; }
.opt-dot i { display: block; width: 0; height: 0; border-radius: 50%; background: var(--primary); transition: width .15s, height .15s; }
.opt-dot:hover { border-color: var(--primary); background: var(--primary-soft); }
.opt-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.opt-dot.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 163, 127, .13); }
.opt-dot.on i { width: 14px; height: 14px; }
/* 扩大点击热区（视觉不变） */
.mx-cells .opt-dot::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }

/* 滑动条题型：每位被评者一条，左姓名 / 中滑轨 / 右当前值 */
.sliders { margin-top: 4px; }
.slide-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 56px;
  align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px dashed #edf3f1;
}
.slide-row:last-child { border-bottom: 0; }
.slide-row:hover { background: #fafdfc; }
.slide-subj { font-size: 13px; font-weight: 500; padding-left: 2px; }
.slide-track { min-width: 0; position: relative; padding-top: 15px; }  /* 顶部留白给「及格线」标签 */
.slide-range {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer;
}
.slide-range:focus { outline: none; }
.slide-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(20,163,127,.15); }
.slide-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #e6ecea; }
.slide-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px;
  border-radius: 50%; background: #fff; border: 2px solid #c9d6d2;
  box-shadow: 0 1px 3px rgba(20,60,50,.16);
  transition: border-color .12s, box-shadow .12s;
}
.slide-range::-moz-range-track { height: 6px; border-radius: 999px; background: #e6ecea; }
.slide-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid #c9d6d2; box-shadow: 0 1px 3px rgba(20,60,50,.16);
}
.slide-row.on .slide-range::-webkit-slider-runnable-track { background: #d5ebe4; }
.slide-row.on .slide-range::-moz-range-track { background: #d5ebe4; }
.slide-row.on .slide-range::-webkit-slider-thumb { border-color: var(--primary); }
.slide-row.on .slide-range::-moz-range-thumb { border-color: var(--primary); }
/* 及格线轨道渐变：0→及格线浅橙，及格线→最大值淡绿；--pass 为 0-100 数值（滑块圆心行程映射）
   加 .slide-row 前缀保证权重压过 .slide-row.on 的纯绿底 */
.slide-row .slide-range[style*="--pass"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg,
    #f7e5c6 0,
    #f4d9ab calc(10px + (100% - 20px) * var(--pass) / 100),
    #d5ebe4 calc(10px + (100% - 20px) * var(--pass) / 100),
    #d5ebe4 100%);
}
.slide-row .slide-range[style*="--pass"]::-moz-range-track {
  background: linear-gradient(90deg,
    #f7e5c6 0,
    #f4d9ab calc(10px + (100% - 20px) * var(--pass) / 100),
    #d5ebe4 calc(10px + (100% - 20px) * var(--pass) / 100),
    #d5ebe4 100%);
}
/* 刻度：整数值均分（容器左右各内缩 10px，与滑块圆心行程对齐） */
.slide-ticks { position: absolute; left: 10px; right: 10px; top: 37px; height: 13px; user-select: none; pointer-events: none; }
.slide-ticks span {
  position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap;
  font-size: 10.5px; line-height: 1.2; color: #a3b3ae; font-variant-numeric: tabular-nums;
}
.slide-ticks span::before { content: ""; position: absolute; top: -4px; left: 50%; width: 1px; height: 3px; background: #d3dedb; }
.slide-ticks span.cur { color: var(--primary-dark); font-weight: 700; }
.slide-ticks span.cur::before { background: var(--primary); height: 4px; top: -5px; }
/* 及格线标记：贯穿轨道的橙色竖带 + 上方「及格线」标签 */
.slide-pass-line {
  position: absolute; top: 19px; height: 12px; width: 3px; border-radius: 3px;
  background: var(--warn); transform: translateX(-50%); pointer-events: none; z-index: 2;
}
.slide-pass-tag {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; line-height: 15px; white-space: nowrap;
  color: #fff; background: var(--warn); border-radius: 4px; padding: 0 5px;
  pointer-events: none; z-index: 2;
}
.slide-val {
  text-align: center; font-size: 13px; font-weight: 700; color: #c2cdc9;
  padding: 3px 0; border-radius: 7px; background: #f5f8f7;
  font-variant-numeric: tabular-nums;
}
.slide-val.on { color: var(--primary-dark); background: var(--primary-soft); }
/* 未达及格线：橙色提醒（盖过绿色已答态） */
.slide-val.on.low { color: #b26a00; background: #fff3e0; }
.mx.dense .mx-cells .opt-dot::after { inset: -2px; }
/* 截止时间胶囊（标题区下方独立一行） */
.hero-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px; padding: 3px 13px; font-size: 12.5px; line-height: 1.6;
}
.fill-hero .meta b { font-weight: 700; }
.grp-badge { font-size: 11px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 20px; padding: 1px 7px; margin-left: 6px; font-weight: 500; }

/* ---------- 手机端：选项横排两行内显示，姓名单独一行，圆点适中 ---------- */
@media (max-width: 640px) {
  .fill-hero { padding: 26px 16px 22px; }
  .fill-hero h1 { font-size: 18.5px; line-height: 1.45; margin-bottom: 7px; }
  .fill-hero .meta { font-size: 13px; line-height: 1.75; }
  .hero-chip { margin-top: 9px; font-size: 12px; padding: 2px 11px; }
  .fill-main { padding: 12px 10px 40px; }
  .fill-main .card { padding: 13px 12px; }
  /* 标签行：横排一行，过长自动折成两行 */
  .mx-head {
    grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
    column-gap: 2px; padding: 10px 0 9px; border-radius: 0;
    border-bottom: 1px solid #e8eeec; align-items: stretch;
  }
  .mx-hname { display: none; }
  .mx-hopt {
    display: flex; align-items: flex-end; justify-content: center;
    font-size: 12.5px; font-weight: 500; color: #5f716d;
    line-height: 1.35; padding: 0 1px 1px; word-break: break-word;
  }
  /* 每位被评者：姓名一行 + 圆点一行 */
  .mx-row { display: block; border-bottom: 1px solid #e8eeec; padding: 0 0 14px; }
  .mx-subj {
    padding: 10px 2px 0; font-size: 13.5px; font-weight: 600;
    color: var(--primary-dark); letter-spacing: .5px;
  }
  .mx-cells {
    grid-column: auto; padding: 12px 0 0;
    grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); column-gap: 2px;
  }
  .opt-dot { width: 24px; height: 24px; }
  .opt-dot.on i { width: 12px; height: 12px; }
  /* 1~10 分题：数字横排，圆点略小 */
  .mx.num .mx-hopt { font-size: 11.5px; }
  .mx.num .opt-dot { width: 21px; height: 21px; }
  .mx.num .opt-dot.on i { width: 10px; height: 10px; }
  /* 选项超过 8 个时再收窄 */
  .mx.dense .mx-hopt { font-size: 10.5px; line-height: 1.3; }
  .mx.dense .opt-dot { width: 20px; height: 20px; }
  .mx.dense .opt-dot.on i { width: 9px; height: 9px; }
  .mx .grp-badge { margin-left: 6px; font-size: 10px; padding: 0 6px; }
}
.no-access { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; padding: 20px; text-align: center; }
.center-page { min-height: 50vh; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; flex-direction: column; gap: 10px; }
.link-line { font-size: 12px; color: var(--muted); word-break: break-all; }
.section-title { font-size: 14px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
@media (max-width: 640px) {
  .wrap { padding: 14px 12px 40px; }
  .card { padding: 14px; }
  .topbar { padding: 10px 14px; }
  .topbar .brand span { font-size: 15px; }
  .acct-name b { max-width: 84px; }
  .acct-name .role-tag { display: none; }
  .page-title { font-size: 23px; letter-spacing: 1px; }
  .grid2 { grid-template-columns: 1fr; }
}

/* ---------- 评价人分列输入 ---------- */
.people { display: flex; flex-direction: column; gap: 7px; }
/* 评价级别名称：统一级别名弹窗内一行一个输入框 */
.lv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lv-row .lv-input { flex: 1; font-weight: 600; }
.lv-row .lv-cnt { flex: 0 0 auto; font-size: 12px; min-width: 68px; text-align: right; }
/* 评价级别：一张卡片 = 一个级别（v20261124d） */
.lvc { border: 1px solid #e8efed; border-radius: 13px; margin-bottom: 12px; overflow: hidden; background: #fff; min-width: 0; }
.lvc-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 14px; background: #fafcfb; border-bottom: 1px solid #eef3f1; min-width: 0; }
.lv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.lv-dot.b { background: #4a90d9; }
.lv-dot.o { background: var(--warn); }
.lv-dot.g { background: #9db3ae; }
.lvc-head .lv-name {
  border: 0; background: transparent; font-size: 14px; font-weight: 700; color: var(--text);
  width: 118px; padding: 3px 6px; border-radius: 7px; outline: none; flex: 0 0 auto;
}
.lvc-head .lv-name:hover { background: #eef4f2; }
.lvc-head .lv-name:focus { background: #fff; box-shadow: 0 0 0 1px var(--primary) inset; }
.lvc-head .lv-cnt { font-size: 11.5px; color: #9dadaa; white-space: nowrap; }
.lvc-head .del-lv {
  margin-left: auto; border: 0; background: none; color: #96a7a4; font-size: 12px;
  cursor: pointer; padding: 4px 6px; border-radius: 7px; white-space: nowrap;
}
.lvc-head .del-lv:hover { color: var(--danger); background: #fdf2f2; }
.lvc-body { padding: 8px 12px 10px; }
.colhead { display: grid; grid-template-columns: 152px minmax(0,1fr) 178px 26px; gap: 9px; padding: 0 0 5px; font-size: 11.5px; color: #9dadaa; }
.person-row { display: grid; grid-template-columns: 152px minmax(0,1fr) 178px 26px; gap: 9px; align-items: center; }
.person-row .input { width: 100%; min-width: 0; padding: 7px 10px; font-size: 13px; }
.pdel { border: 0; background: none; color: #b3c2bf; font-size: 17px; line-height: 1; cursor: pointer; width: 26px; height: 26px; border-radius: 7px; padding: 0; }
.person-row:hover .pdel { color: #93a4a1; background: #f5f8f7; }
.pdel:hover { color: var(--danger) !important; background: #fdf2f2 !important; }
.addp {
  margin-top: 8px; width: 100%; border: 1px dashed #d6e4e0; background: #fbfdfc; color: #6d8b83;
  font-size: 12.5px; font-weight: 600; padding: 7px 0; border-radius: 9px; cursor: pointer;
}
.addp:hover { border-color: var(--primary); color: var(--primary-dark); background: #f3fbf8; }
/* 关系表里可点的级别名（点开改名） */
.lv-link { cursor: pointer; border-bottom: 1px dashed transparent; }
.lv-link:hover { color: var(--primary); border-bottom-color: currentColor; }
.ev-chip {
  display: inline-flex; flex-direction: column; line-height: 1.25;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 3px 9px; margin: 2px 6px 2px 0; font-size: 12.5px; color: var(--text);
}
.ev-chip em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .2px; }
.cb { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex: 0 0 auto; }
.btn-ghost.danger { color: var(--danger); border-color: #f0cccc; }
.btn-ghost.danger:hover { background: #fdecec; }
.tc { text-align: center; }

/* ---------- 个人得分报告 ---------- */
.report-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.report-title { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: 1px; color: var(--text); }
.report-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.report-table th, .report-table td { border: 1px solid #d9e7e2; padding: 8px 10px; font-size: 12.8px; }
.report-table thead th { background: #eef8f4; color: #2c4a41; font-weight: 600; }
.report-table .rt-name { background: #d9efe5; font-size: 14px; font-weight: 700; }
.report-table tfoot td { background: #f4faf7; font-weight: 600; }
.report-table tfoot .rt-total2 td { background: #d9f0e4; color: #0b6b53; font-weight: 700; }
.report-table tbody tr:nth-child(even) td { background: #fbfdfc; }
.rank { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 700; background: #eef2f1; color: var(--muted); }
.rank-1 { background: #ffe9b8; color: #8a5b00; }
.rank-2 { background: #e4ebf2; color: #40566b; }
.rank-3 { background: #f8e2d2; color: #97502a; }
@media (max-width: 640px) {
  .person-row { flex-wrap: wrap; }
  .person-row .p-name { flex: 1 1 100px; }
  .person-row .p-job { flex: 1 1 110px; }
  .report-wrap { padding: 10px; }
  .report-table th, .report-table td { padding: 6px; font-size: 12px; }
}

/* ---------- 计分方式切换 ---------- */
.seg { display: inline-flex; background: #eef4f1; border-radius: 8px; padding: 2px; gap: 2px; }
.seg-btn {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 6px;
  font-size: 12.5px; color: #55706a; cursor: pointer; font-family: inherit; font-weight: 500;
}
.seg-btn:hover { color: var(--primary); }
.seg-btn.on { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 3px rgba(20,60,45,.12); }

/* ---------- 评议活动首页：左栏 + 工具行 + 五列卡片（方案B2） ---------- */
.wrap.wide { max-width: 1600px; }
.camps-shell { display: flex; align-items: flex-start; gap: 18px; }
/* 左栏：新建按钮 / 快捷筛选（搜索+账号+状态）/ 概览 / 底部快捷项 */
.camps-side {
  flex: 0 0 225px; width: 225px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; align-self: stretch;
}
.camps-side .btn { width: 100%; justify-content: center; }
.side-h { font-size: 11px; color: #9db1bb; font-weight: 600; letter-spacing: .6px; margin: 16px 0 6px; }
.kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; color: #4a606b; }
.kv b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kv b.g { color: var(--primary-dark); }
/* 概览数字与筛选面板里的计数右对齐（面板内缩 16px） */
.camps-side .kv { padding-right: 16px; }
.qk {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  font-size: 12.5px; color: #4a606b; padding: 6px 9px; border-radius: 7px;
  border: 0; background: none; cursor: pointer; font-family: inherit; margin-bottom: 2px;
}
.qk:hover { background: #eef5f2; }
.qk.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.qk .n { margin-left: auto; font-size: 11.5px; color: #93a8b2; font-variant-numeric: tabular-nums; }
.side-tip { margin-top: 16px; font-size: 11px; color: #a8bcc5; line-height: 1.7; border-top: 1px dashed var(--line); padding-top: 10px; }
/* 快捷筛选面板：搜索 + 子账号 + 四个状态项，装进一块浅底容器 */
.side-panel {
  background: #f2f8f6; border: 1px solid #e2ede9; border-radius: 9px; padding: 8px 8px 5px;
}
.side-panel .input { background: #fff; border-color: #dbe8e4; }
.side-field { width: 100%; margin-bottom: 6px; font-size: 12.5px; padding: 6px 9px; }
select.side-field { padding-right: 22px; margin-bottom: 0; }
.side-grp { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid #e2ede9; padding-top: 5px; margin-top: 1px; }
.side-grp .qk { padding: 6px 8px; margin-bottom: 0; }
.side-grp .qk:hover { background: #e6f2ee; }
.side-grp .qk.on {
  background: #fff; color: var(--primary-dark); font-weight: 600; padding-left: 12px;
  box-shadow: inset 3px 0 0 var(--primary), 0 1px 3px rgba(20, 60, 50, .1);
}
.side-grp .qk i {
  font-style: normal; margin-left: auto; font-size: 11.5px; color: #93a8b2;
  font-variant-numeric: tabular-nums;
}
.side-grp .qk .ql { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ct-star { font-style: normal; font-size: 12px; color: #e3a91c; }
/* 底部快捷项：贴侧栏底边 */
.side-foot { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.side-foot .qk { margin-bottom: 1px; }
.camps-main { flex: 1; min-width: 0; }
/* 卡片网格：一行 5 个（窄屏自动减列），不足一行留空位 */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 13px; }
.camp-card {
  min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 13px 10px; display: flex; flex-direction: column; gap: 7px;
  transition: border-color .15s, box-shadow .15s;
}
.camp-card:hover { border-color: #cfe7df; box-shadow: 0 4px 16px rgba(17, 60, 52, .07); }
.cc-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cc-owner {
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 20px;
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-owner.sub { background: #fdeee9; color: #c2562f; }
.cc-owner.me { background: var(--primary-soft); color: var(--primary-dark); }
.st-dot {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--ok); white-space: nowrap;
  border: 0; background: #e9f7f2; font-family: inherit; cursor: pointer;
  padding: 2px 8px; margin-right: -6px; border-radius: 20px;
  transition: background .14s, box-shadow .14s;
}
.st-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.st-dot:hover { background: #d8efe6; box-shadow: 0 0 0 2px rgba(20,163,127,.08); }
.st-dot.gray { color: #7c918a; background: #eef2f1; }
.st-dot.gray:hover { background: #e4eae8; }
.st-dot.warn { color: var(--warn); background: #fdf3e2; }
.st-dot.warn:hover { background: #f9e9cd; }
.cc-title {
  font-size: 13px; font-weight: 600; line-height: 1.45; height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-prog { display: flex; align-items: center; gap: 7px; }
.cc-prog .progress { height: 4px; flex: 1; }
.cc-prog b { font-size: 11px; color: #2f6f65; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-meta {
  font-size: 11px; color: var(--muted); display: flex; align-items: baseline;
  justify-content: space-between; gap: 6px; min-width: 0;
}
.cc-meta span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-meta span:last-child { flex: 0 0 auto; white-space: nowrap; }
.cc-acts {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px dashed var(--line); padding-top: 7px; margin-top: auto; font-size: 11.5px;
}
.cc-acts a { cursor: pointer; white-space: nowrap; }
.cc-acts a.danger { color: var(--danger); }
.cc-right { display: flex; align-items: center; gap: 10px; }
/* 卡片右下角的标星：默认灰色，点亮为黄色 */
.cc-star {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 15px; line-height: 1; color: #ccd8d5; transition: color .15s, transform .12s;
}
.cc-star:hover { color: #e9c96b; transform: scale(1.12); }
.cc-star.on { color: #f0ad15; }
.cc-star:focus-visible { outline: 2px solid #bfe4d8; border-radius: 4px; }
@media (max-width: 980px) {
  .camps-shell { flex-direction: column; }
  .camps-side { width: 100%; flex: none; align-self: auto; }
  .camps-main { width: 100%; }
  .side-h:first-of-type { margin-top: 12px; }
  .side-foot { margin-top: 10px; }
  /* 搜索与账号筛选并排，状态项两列小格，避免在整行宽度下拉成超长输入框 */
  .side-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-items: start; }
  .side-panel .side-field { margin-bottom: 8px; }
  .side-grp { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .side-grp .qk.on { padding-left: 10px; }
}
@media (max-width: 640px) {
  .camps-shell { gap: 12px; }
  .side-panel { grid-template-columns: 1fr; }
  .side-field { font-size: 13px; padding: 8px 10px; }
  .camp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .camp-card { padding: 10px 11px 9px; border-radius: 9px; }
  .cc-title { font-size: 12.5px; height: 36px; }
  .cc-acts { gap: 6px; font-size: 12px; }
  .cc-owner { display: none; }
}

/* ---------- 小标题（单条说明） ---------- */
.q-sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; padding-left: 2px; line-height: 1.75; }
.q-sub:last-of-type { margin-bottom: 12px; }

/* ---------- 题目分类（大标题） ---------- */
.sec-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sec-chip { cursor: pointer; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.sec-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.sec-chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.sec-head {
  display: flex; align-items: center; gap: 9px;
  margin: 18px 0 10px; padding: 0 2px;
  font-size: 15.5px; font-weight: 700; color: var(--text); letter-spacing: .2px;
}
.sec-head:first-of-type { margin-top: 2px; }
.sec-note { margin: -4px 0 12px 13px; padding: 0 2px; font-size: 12.5px; line-height: 1.75; color: var(--muted); white-space: pre-wrap; }
.sec-bar { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #1fc39a, #0d8a6a); flex: 0 0 auto; }
@media (max-width: 640px) {
  .sec-head { font-size: 14.5px; margin: 14px 0 8px; }
  .sec-note { margin: -2px 0 10px 12px; }
}

/* ---------- 级别选择：胶囊式复选 ---------- */
.lvl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lvl-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; color: var(--text); cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s; line-height: 1;
  white-space: nowrap; flex: 0 0 auto;
}
.lvl-chip input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; margin: 0;
  border: 1.5px solid #c8d6d2; border-radius: 4px; background: #fff;
  position: relative; flex: 0 0 auto; cursor: pointer; transition: .15s;
}
.lvl-chip input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.lvl-chip input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 3.5px; top: 0.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lvl-chip.on, .lvl-chip:has(input:checked) {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600;
}
/* 同一级别的另一个叫法：小字标注归属 */
.lvl-alias {
  font-style: normal; font-size: 11px; font-weight: 400; color: #8a9c98;
  margin-left: 5px; padding-left: 6px; border-left: 1px solid #dbe5e1;
}

/* ---------- 填写页：草稿恢复提示 ---------- */
.draft-tip { font-size: 12.5px; color: var(--primary-dark); }

/* ---------- 结果报告：高层版维度表 ---------- */
.exec-table th, .exec-table td { padding: 6px 8px; }
.exec-grp, .exec-w { font-weight: 700; background: var(--primary-soft); text-align: center; }
.exec-dim { font-weight: 600; background: #f6fbf9; }
.exec-sub { font-weight: 600; }
.exec-desc { font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 开关：兼容 .field 内的 label（修复自评开关显示错乱） ---------- */
.field label.switch, label.switch {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 0; font-size: 13.5px; color: var(--text);
  cursor: pointer; user-select: none; line-height: 1.5;
}
.field label.switch i, label.switch i { flex: 0 0 auto; display: inline-block; }

/* 拖拽导入反馈：把 Excel 文件拖到「评价关系」面板上时高亮 */
#panel-body { position: relative; }
#panel-body.drop-hover { outline: 2px dashed var(--primary, #4f7cff); outline-offset: -8px; border-radius: 10px; background: rgba(79, 124, 255, 0.06); }
#panel-body.drop-hover::after {
  content: '松开鼠标即可导入该 Excel 文件';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--primary, #4f7cff);
  background: rgba(255, 255, 255, 0.55); pointer-events: none; border-radius: 10px;
}

/* ---------- 题目文字颜色选择器 ---------- */
.color-pick {
  width: 40px; height: 36px; padding: 2px 3px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.color-pick::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick::-webkit-color-swatch { border: none; border-radius: 5px; }

/* ---------- 预设色板（说明富文本 / 题目配色 / 批量配色共用） ---------- */
.cpal { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cp-sw {
  width: 17px; height: 17px; border-radius: 50%; padding: 0; flex: 0 0 auto; cursor: pointer;
  background: var(--c, #1f2937); border: 1px solid rgba(15,45,38,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); transition: transform .12s;
}
.cp-sw:hover { transform: scale(1.18); }
.cp-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--primary); }
.cpal.def .cp-sw { opacity: .5; }
.cp-more {
  width: 17px; height: 17px; border-radius: 50%; border: 1px dashed #c3d2ce; background: #fff;
  color: #8ba09b; font-size: 12px; line-height: 1; padding: 0; cursor: pointer; flex: 0 0 auto;
}
.cp-more:hover { border-color: var(--primary); color: var(--primary-dark); background: #f2faf7; }
.cp-holder { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.otools .cpal { margin: 0 5px 0 6px; }
.otools .cp-sw, .otools .cp-more { width: 15px; height: 15px; }
/* 题目弹窗里的色块按钮：点开预设弹层 */
.cp-chip {
  width: 22px; height: 22px; border-radius: 7px; padding: 0; flex: 0 0 auto; cursor: pointer;
  background: var(--c, #1f2937); border: 1px solid #dde6e3;
}
.cp-chip:hover { border-color: var(--primary); }
.cp-chip.def { border-style: dashed; border-color: #c3d2cd; opacity: .45; }   /* 未手动设置：显示默认色但压淡，避免看成复选框 */
.cpop {
  position: fixed; z-index: 400; width: 268px; padding: 10px 11px 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(17,60,52,.18);
}
.cpop-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: #6c817d; }
.cpop-h span { font-size: 11px; color: #a7b5b2; }
.cpop-sw { display: flex; flex-wrap: wrap; gap: 7px; }
.cpop-sw .cp-sw { width: 22px; height: 22px; }
.cpop-add {
  width: 100%; margin-top: 9px; padding: 5px 0; font-family: inherit; font-size: 12px;
  border: 1px dashed #d7e4e0; border-radius: 8px; background: #fbfdfc; color: #5c716c; cursor: pointer;
}
.cpop-add:hover { border-color: var(--primary); background: #f2faf7; color: var(--primary-dark); }

/* ---------- 问卷说明富文本编辑器 ---------- */
.desc-toolbar { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; flex-wrap: wrap }
.dt-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 3px 10px;
  font-size: 13px; cursor: pointer; line-height: 1.5; color: var(--text, #1f2937);
}
.dt-btn:hover { background: #f0f5f3 }
.desc-editor {
  min-height: 92px; max-height: 280px; overflow-y: auto; text-align: left;
  white-space: pre-wrap; line-height: 1.8; background: #fff;
}
.desc-editor:focus { outline: 2px solid rgba(16,163,127,.35); outline-offset: -1px }

/* 已隐藏的题目：只在问卷编辑页保留（虚框 + 浅灰底），测评人看不到 */
.q-card-hidden { background: #f7f8f7; border-style: dashed !important; }

/* ---------- 问卷编辑：题目卡片 ---------- */
.q-card {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 14px 16px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s;
}
.q-card:hover { border-color: #cfe0da; box-shadow: 0 2px 10px rgba(20, 90, 70, .05); }
.q-card-cb { margin: 5px 0 0; flex: 0 0 auto; }
.q-card-body { flex: 1 1 auto; min-width: 0; }
.q-card-title { display: flex; gap: 6px; font-weight: 600; font-size: 15px; line-height: 1.62; }
.q-card-title .q-no { color: var(--primary); font-weight: 800; flex: 0 0 auto; }
.q-card-title .q-text { min-width: 0; word-break: break-word; }
.q-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.q-card .sub-list, .q-card .q-sub { margin-top: 6px; }
.q-card-empty { margin-top: 6px; font-size: 12.5px; }
.q-card-acts { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
@media (max-width: 760px) {
  .q-card { flex-wrap: wrap; }
  .q-card-acts { width: 100%; justify-content: flex-end; order: 3; border-top: 1px dashed var(--line); padding-top: 8px; margin-left: 26px; }
}

/* ---------- 题目分配级别：卡片式列表 ---------- */
.ql-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; padding: 2px; }
.ql-empty { padding: 18px; text-align: center; font-size: 13px; }
.ql-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.ql-item-head { display: flex; align-items: flex-start; gap: 8px; }
.ql-no {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ql-title { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.6; word-break: break-word; }
.ql-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ql-chips .lvl-chip { justify-content: flex-start; white-space: nowrap; padding: 8px 12px; font-size: 12.5px; }
.ql-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }
.ql-foot b { color: var(--primary-dark); font-weight: 600; }

/* ---------- 问卷发布：表头内嵌筛选 ---------- */
.pub-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.pub-toolbar .grow { flex: 1 1 auto; }
.table-filter th { padding: 10px 12px; vertical-align: top; }
.th-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.th-select, .th-input {
  margin-top: 6px; width: 100%; min-width: 104px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 5px 8px; font-size: 12px; font-weight: 500; color: var(--text);
  font-family: inherit; line-height: 1.5;
}
.th-input::placeholder { color: #a8b3ae; font-weight: 400; }
.th-select:hover, .th-input:hover { border-color: #c6dbd3; }
.th-select:focus, .th-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 行为事例（题目下方选填文本框） */
.q-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border, #e5e7eb); }
.q-note-label { font-size: 13px; color: var(--muted, #6b7280); margin-bottom: 6px; font-weight: 600; }
/* 问卷编辑页里的只读示意框（不占位、不可输入，仅提示测评人会看到这个文本框） */
.q-note-ph { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 12px 12px; min-height: 58px; font-size: 13px; color: #9aa4b2; background: #fcfdfc; }

/* ---------- 权重设置：按大类（上级/同级/下级）填写 ---------- */
#w-fields { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.wcls {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.wcls-multi { background: var(--primary-soft); border-color: #cfe9e0; }
.wcls-head { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.wcls-name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.wcls-sub { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.wcls-input { display: flex; align-items: center; gap: 6px; flex: 0 0 116px; }
.wcls-input .input { text-align: right; padding: 7px 10px; font-size: 14px; font-weight: 600; }
.wcls-unit { color: var(--muted); font-size: 13px; }

/* ---------- 报告表格：列多时不再把中文压成竖排 ---------- */
.w-sub { font-size: 11px; line-height: 1.35; color: var(--muted); font-weight: 400; }
.wide-table { min-width: max-content; }
.wide-table th, .wide-table td { white-space: nowrap; }
.report-wide { table-layout: fixed; }
.report-wide th { white-space: normal; word-break: keep-all; line-height: 1.5; }
.report-wide th.rt-q { width: 240px; }
.report-wide td { word-break: break-word; }

/* ---------- 行为事例列（问卷里有题目开启时才出现） ---------- */
.report-table th.note-h { width: 200px; white-space: normal; word-break: keep-all; line-height: 1.4; }
.report-table td.note-cell { font-size: 12px; line-height: 1.5; color: #41524d; text-align: left; white-space: pre-wrap; word-break: break-word; vertical-align: top; }
.report-wide th.note-h { width: 200px; }
.report-wide td.note-cell { font-size: 12px; line-height: 1.5; color: #41524d; white-space: pre-wrap; }

/* ---------- 核算明细（逐份答卷核对分数） ---------- */
.au-scroll { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.au-table { margin: 0; }
.au-table th, .au-table td { vertical-align: top; }
.au-detail { font-size: 11px; line-height: 1.5; color: var(--muted); font-weight: 400; margin-top: 2px; white-space: normal; word-break: break-word; }

/* ================= 导出报表：方式选择 ================= */
.ex-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ex-opt:hover { border-color: #b9d8cf; }
.ex-opt.on { border-color: #14857a; background: #f3fbf8; }
.ex-opt-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ex-opt-h .tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #e6f5f1; color: #0f7c70; font-weight: 600; }
.ex-opt p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; }
.ex-sub { display: none; margin-top: 10px; }
.ex-opt.on .ex-sub { display: block; }

/* ================= 个人报告（PDF）版面 =================
   固定 A4 尺寸（794×1123 @96dpi），由 html2canvas 逐页截图后合成 PDF。
   所有样式独立写死，不依赖站内主题变量，保证导出与预览一致。 */
#pdf-stage { position: fixed; left: -12000px; top: 0; z-index: -1; }
.pdf-page { width: 794px; height: 1123px; background: #fff; position: relative; overflow: hidden; box-sizing: border-box;
  padding: 54px 58px 44px; color: #23323d; font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 13px; line-height: 1.8; }
.pdf-page * { box-sizing: border-box; }
.pdf-page.cover { padding: 0; }

/* 页眉 / 页脚 */
.rpt-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #123b5c; padding-bottom: 8px; }
.rpt-kicker { font-size: 10.5px; letter-spacing: .22em; color: #8b9aa6; }
.rpt-camp { font-size: 11px; color: #6b7f8c; max-width: 380px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-h2 { font-size: 22px; margin: 22px 0 4px; color: #123b5c; letter-spacing: .02em; line-height: 1.35; }
.rpt-lead { font-size: 12.5px; color: #66798a; margin: 0 0 18px; }
.rpt-foot { position: absolute; left: 58px; right: 58px; bottom: 22px; border-top: 1px solid #e3e9ee; padding-top: 7px;
  display: flex; justify-content: space-between; font-size: 10px; color: #93a3af; letter-spacing: .04em; }

/* 段落 / 小标题 */
.rpt-p { margin: 0 0 12px; font-size: 13px; line-height: 1.95; color: #33434f; text-align: justify; }
.rpt-h3 { font-size: 14px; font-weight: 700; color: #123b5c; margin: 24px 0 10px; padding-left: 10px; border-left: 4px solid #c9a15a; line-height: 1.3; }
.rpt-note { font-size: 11.5px; color: #7c8f9b; line-height: 1.7; margin: 6px 0 0; }

/* 卡片 / 数据 */
.rpt-cards { display: flex; gap: 12px; margin: 14px 0 4px; }
.rpt-card { flex: 1; border: 1px solid #e2e9ee; border-radius: 10px; padding: 12px 14px; background: #f8fafb; }
.rpt-card b { display: block; font-size: 26px; color: #123b5c; line-height: 1.25; font-weight: 700; }
.rpt-card span { font-size: 11px; color: #7d8f9c; letter-spacing: .05em; }
.rpt-card.teal b { color: #14857a; }
.rpt-card.sand b { color: #a9822f; }

/* 进度条 */
.rpt-bar { height: 8px; background: #eef2f5; border-radius: 999px; overflow: hidden; }
.rpt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #14857a, #123b5c); border-radius: 999px; }
.rpt-bar.sand i { background: linear-gradient(90deg, #c9a15a, #a9822f); }

/* 表格 */
.rpt-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 12px; }
.rpt-table th { background: #123b5c; color: #fff; font-weight: 600; padding: 8px 10px; text-align: left; font-size: 11.5px; letter-spacing: .02em; }
.rpt-table td { padding: 7px 10px; border-bottom: 1px solid #e6edf1; color: #2f404c; vertical-align: top; }
.rpt-table tr:nth-child(even) td { background: #fafcfd; }
.rpt-table td.num, .rpt-table th.num { text-align: center; }
.rpt-table td.strong { font-weight: 700; color: #123b5c; }

/* 维度条 */
.rpt-dim { margin-bottom: 14px; }
.rpt-dim-h { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.rpt-dim-h b { color: #23323d; font-weight: 600; }
.rpt-dim-h span { color: #123b5c; font-weight: 700; }

/* 行为条目 */
.rpt-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #e4ebef; }
.rpt-item:last-child { border-bottom: 0; }
.rpt-idx { flex: 0 0 30px; height: 30px; border-radius: 8px; background: #123b5c; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.rpt-item.sand .rpt-idx { background: #c9a15a; }
.rpt-item-body { flex: 1; }
.rpt-item-q { font-size: 12.5px; line-height: 1.75; color: #2b3c48; }
.rpt-item-meta { margin-top: 6px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: #7b8e9a; }
.rpt-score { font-size: 17px; font-weight: 700; color: #14857a; }
.rpt-item.sand .rpt-score { color: #a9822f; }

/* 反馈条目 */
.rpt-fb { border-left: 3px solid #d9e3e9; padding: 2px 0 2px 12px; margin: 0 0 12px; }
.rpt-fb p { margin: 0; font-size: 12.5px; line-height: 1.85; color: #33434f; }
.rpt-fb-q { font-size: 11px; color: #8b9aa6; margin-bottom: 3px; }

/* 封面 */
.rpt-cover { position: absolute; inset: 0; background: linear-gradient(160deg, #0c2b43 0%, #12405c 46%, #14625f 100%); color: #fff; }
.rpt-cover .cv-lines { position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px); }
.rpt-cover .cv-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
  right: -170px; bottom: -150px; }
.rpt-cover .cv-ring.two { width: 700px; height: 700px; right: -260px; bottom: -240px; border-color: rgba(255,255,255,.07); }
.rpt-cover .cv-inner { position: absolute; left: 76px; right: 76px; top: 108px; }
.cv-badge { display: inline-block; font-size: 10.5px; letter-spacing: .3em; padding: 6px 14px; border: 1px solid rgba(255,255,255,.42); color: #e8f1f4; }
.cv-title { font-size: 46px; line-height: 1.28; margin: 30px 0 0; font-weight: 700; letter-spacing: .04em; color: #fff; }
.cv-sub { margin-top: 16px; font-size: 14px; color: #cfe0e6; letter-spacing: .04em; }
.cv-rule { width: 96px; height: 3px; background: #c9a15a; margin: 34px 0 30px; }
.cv-name { font-size: 30px; font-weight: 700; letter-spacing: .06em; }
.cv-post { font-size: 12.5px; color: #b9cfd8; margin-top: 6px; letter-spacing: .04em; }
.rpt-cover .cv-meta { position: absolute; left: 76px; right: 76px; bottom: 108px; display: flex; gap: 40px; }
.rpt-cover .cv-meta div { border-top: 1px solid rgba(255,255,255,.22); padding-top: 10px; min-width: 120px; }
.rpt-cover .cv-meta span { display: block; font-size: 10.5px; letter-spacing: .16em; color: #9fbac6; }
.rpt-cover .cv-meta b { font-size: 15px; color: #fff; font-weight: 600; }
.rpt-cover .cv-foot { position: absolute; left: 76px; right: 76px; bottom: 42px; font-size: 11px; color: #8fabb8; letter-spacing: .1em; }

/* 综合得分页 */
.score-hero { display: flex; gap: 18px; align-items: stretch; margin: 8px 0 18px; }
.score-main { flex: 1.15; border-radius: 14px; padding: 20px 24px; color: #fff; background: linear-gradient(140deg, #123b5c, #14625f); }
.score-main span { display: block; font-size: 11px; letter-spacing: .2em; color: #bcd3dc; }
.score-main b { display: block; font-size: 56px; line-height: 1.15; font-weight: 700; letter-spacing: .02em; }
.score-main em { font-style: normal; font-size: 12.5px; color: #d8e7ec; }
.score-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.score-side .box { flex: 1; border: 1px solid #e2e9ee; border-radius: 12px; padding: 10px 14px; }
.score-side .box span { display: block; font-size: 10.5px; letter-spacing: .12em; color: #8b9aa6; }
.score-side .box b { font-size: 21px; color: #123b5c; }

/* 打印兜底：用户若用浏览器打印，也按 A4 输出 */
@media print {
  #pdf-stage { position: static; left: 0; }
  .pdf-page { page-break-after: always; box-shadow: none; }
}

/* ---------- 活动详情页头部（v20261124c） ---------- */
/* 顶栏：品牌 | ①②③④（详情页时居中显示，随顶栏吸顶） | 返回首页 + 账号 */
.topcamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  max-width: 58%;
}
.topcamp .tabs { margin-bottom: 0; box-shadow: none; background: #f2f7f5; border-color: #e6efec; padding: 2px; border-radius: 9px; }
.topcamp .tabs button { flex: none; font-size: 12.5px; padding: 5px 13px; border-radius: 7px; }
.topcamp .tabs button.active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(17,60,52,.14); }
.topcamp .tabs button.active:hover { background: #fff; }
.tright { display: flex; align-items: center; gap: 9px; }
.btn-back {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 8px; border: 0;
  background: var(--primary); color: #fff; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(20,163,127,.24); transition: all .15s;
}
.btn-back:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(20,163,127,.30); }
/* 问卷编辑封面：标题 + 说明（与下方卡片同宽，点封面弹出「问卷信息」） */
.quiz-cover { text-align: center; padding: 6px 2px 16px; cursor: pointer; border-radius: 10px; }
.quiz-cover:hover { background: rgba(20,163,127,.04); }
.quiz-cover h2 { font-size: 20px; font-weight: 700; letter-spacing: .2px; color: var(--text); margin: 0; }
.quiz-cover-desc { margin-top: 9px; font-size: 12.5px; line-height: 1.95; color: #6f827c; text-align: left; }
/* 弹窗里的说明编辑器：工具栏与编辑区一体化 */
.editor-box { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.editor-box .desc-toolbar { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #f8faf9; }
.editor-box .desc-editor { border: 0; border-radius: 0; min-height: 116px; }
/* 评价关系卡片标题行：左标题+统计，右工具按钮 */
.rel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rel-head > div:first-child { min-width: 0; }
/* 评价关系操作列：右对齐贴边 */
.th-act { text-align: right; padding-right: 18px; }
.td-act { text-align: right; white-space: nowrap; padding-right: 18px; }
.td-act .btn { vertical-align: middle; }
/* 发布面板：浅色提示条（可关闭） */
.pub-note {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.65;
  color: #6b7f79; background: #f7faf9; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; margin-bottom: 12px;
}
.pub-note b { color: var(--text); font-weight: 600; }
.pub-note-x { margin-left: auto; border: 0; background: none; color: #9fb0aa; cursor: pointer; font-size: 13px; padding: 0 2px; flex: none; font-family: inherit; }
.pub-note-x:hover { color: var(--text); }
/* 发布面板「更多操作」下拉（发布页 + 题目工具栏共用） */
.more-wrap { position: relative; }
.more-btn::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid currentColor; opacity: .7; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(17,60,52,.16); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.more-menu button { border: 0; background: none; text-align: left; font-family: inherit; font-size: 13px;
  color: var(--text); padding: 8px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.more-menu button:hover { background: var(--primary-soft); color: var(--primary-dark); }
.more-menu button.danger { color: #c0392b; }
.more-menu button.danger:hover { background: #fdeeec; color: #a93226; }
/* 题目设置选择条：默认极简，勾选后长出批量操作 */
.selbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 12px 0;
  border: 1px dashed #e3eae8; border-radius: 10px; background: #fbfdfc; flex-wrap: wrap; }
.selbar.on { border-color: #bfe4d8; background: #eef9f5; }
.selbar .grow { flex: 1; }
.selbar .btn-sm { padding: 5px 10px; }
.selhint { font-size: 12px; color: #a7b5b2; }
.selbar.on .selhint { display: none; }
.selbar-acts { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.selbar.on .selbar-acts { display: inline-flex; }
.tsep { width: 1px; height: 18px; background: #d9e5e1; margin: 0 4px; flex: 0 0 auto; }
.q-selcount { font-size: 12.5px; color: #8fa09c; }
.selbar.on .q-selcount { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #0d8a6a; font-weight: 600; }
.selbar.on .q-selcount::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%;
  background: #14a37f; color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
/* 发布表格：表头一行化 + 表头吸顶（顶栏高度 63px） */
.table-filter.onerow th { padding: 7px 10px; vertical-align: middle; white-space: nowrap; }
.th-line { display: inline-flex; align-items: center; gap: 7px; }
.th-t { font-size: 12px; font-weight: 600; color: #55655f; }
.th-mini {
  height: 26px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  padding: 0 6px; font-size: 11.5px; font-family: inherit; color: var(--text);
  line-height: 1.4; max-width: 118px;
}
.th-mini.kw { width: 110px; }
.th-mini.kw::placeholder { color: #a8b3ae; }
.th-mini:hover { border-color: #c6dbd3; }
.th-mini:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select.th-mini { padding-right: 2px; }
/* 表头筛选框改成 type=search 防密码弹层，外观保持一样 */
input.th-mini[type="search"] { -webkit-appearance: none; appearance: none; }
input.th-mini[type="search"]::-webkit-search-cancel-button,
input.th-mini[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.pub-wrap { overflow: visible; }
.pub-wrap thead th { position: sticky; top: 63px; z-index: 5; background: #fff; box-shadow: 0 1px 0 var(--line); }
@media (max-width: 1080px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topcamp { position: static; transform: none; order: 3; width: 100%; max-width: none; overflow-x: auto; }
  .tright { order: 2; margin-left: auto; }
  /* 标签折到顶栏第二行后顶栏变高，表头取消吸顶避免错位 */
  .pub-wrap thead th { position: static; box-shadow: none; }
}
@media (max-width: 860px) {
  .btn-back { display: inline-flex; align-items: center; padding: 5px 10px; font-size: 12px; }
  .pub-wrap { overflow-x: auto; }
  .rel-head { flex-wrap: wrap; }
}

/* ---------- 弹窗外壳（v20261124d：新建评议活动 / 编辑评价关系） ---------- */
.omodal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 764px; min-width: 0; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden; text-align: left;
  box-shadow: 0 18px 44px rgba(12,44,38,.22);
}
.omodal.wide { max-width: 880px; }
.o-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px 14px; border-bottom: 1px solid #eef3f1; flex: 0 0 auto; }
.o-head h3 { font-size: 16.5px; font-weight: 700; letter-spacing: .2px; }
.o-sub { font-size: 11.5px; color: #a2b1ae; margin-left: 2px; padding-top: 3px; white-space: nowrap; }
.o-x {
  margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f4f7f6;
  color: #8fa09d; font-size: 14px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.o-x:hover { background: #eaf0ee; color: var(--text); }
.o-chips { display: flex; align-items: center; gap: 6px; margin-left: 4px; flex-wrap: wrap; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; color: #5c716c;
  background: #f1f6f4; border-radius: 20px; padding: 2px 9px; white-space: nowrap;
}
.chip.sum { background: var(--primary-soft); color: var(--primary-dark); }
.chip.w { background: #f2f6f4; color: #7b8b8a; font-weight: 500; }
.chip.w b { color: var(--primary-dark); font-weight: 700; margin-left: 2px; }
.obody-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.obody-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(rgba(255,255,255,0), #fff 82%); pointer-events: none;
}
.o-body { padding: 14px 22px 12px; overflow-y: auto; flex: 1 1 auto; min-height: 0; min-width: 0; }
.o-foot {
  display: flex; align-items: center; gap: 10px; padding: 13px 22px;
  border-top: 1px solid #eef3f1; background: #fcfdfd; flex: 0 0 auto;
}
.o-foot .grow { flex: 1; }
.o-foot .esc { font-size: 11.5px; color: #a7b5b2; }
.o-btn {
  border: 1px solid #e2eae8; background: #fff; color: #5c716c; border-radius: 10px;
  padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.o-btn:hover { border-color: #cfdcd8; background: #fafcfb; }
.o-btn.main {
  background: var(--primary); border-color: var(--primary); color: #fff; padding: 9px 22px;
  box-shadow: 0 4px 12px rgba(20,163,127,.24);
}
.o-btn.main:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.o-btn.main:disabled { opacity: .55; cursor: default; box-shadow: none; }

/* 小节标题：文字 + 右侧细线 */
.sec-t { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #6c817d; letter-spacing: .6px; margin: 2px 0 11px; }
.sec-t::after { content: ""; flex: 1; height: 1px; background: #f0f4f3; }
.row2 { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 14px; }
.ofl { margin-bottom: 14px; min-width: 0; }
.ofl > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.ofl > span em { font-style: normal; color: var(--danger); margin-left: 2px; }
.ofl > span .opt { font-style: normal; color: #a7b5b2; font-size: 11.5px; }
.oin {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: #fdfefe;
  font-size: 13.5px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.oin:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,163,127,.12); background: #fff; }
.oin.big { padding: 11px 14px; font-size: 14px; font-weight: 600; letter-spacing: .15px; }
select.oin { padding-right: 30px; }

/* 说明编辑器：工具栏 + 编辑区 + 字数 */
.oeditor { border-radius: 11px; background: #fdfefe; }
.oeditor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,163,127,.10); }
.oeditor .desc-toolbar { padding: 5px 8px; gap: 2px; }
.otools .dt-btn {
  border: 0; background: none; width: 26px; height: 24px; border-radius: 6px; padding: 0;
  font-size: 12.5px; color: #63756f; line-height: 1;
}
.otools .dt-btn.wide { width: auto; padding: 0 8px; }
.otools .dt-btn:hover { background: #eaf5f1; color: var(--primary-dark); }
.dt-sep { width: 1px; height: 14px; background: #e8eeec; margin: 0 5px; flex: 0 0 auto; }
.otools .dt-color { width: 22px; height: 22px; margin: 0 2px; border: 0; background: none; padding: 0; cursor: pointer; }
.otools .dt-color::-webkit-color-swatch-wrapper { padding: 2px; }
.otools .dt-color::-webkit-color-swatch { border: 1px solid #dde6e3; border-radius: 5px; }
.otools select.dt-fontsize { border: 0; background: none; width: auto; padding: 0 2px; font-size: 12px; color: #63756f; cursor: pointer; }
.oarea { min-height: 96px; padding: 11px 14px 8px; font-size: 13px; line-height: 1.85; color: #33443f; }
.oarea:focus { outline: none; }
.desc-editor:empty::before { content: attr(placeholder); color: #a9b8b5; }
.dt-foot { display: flex; align-items: center; padding: 5px 13px 8px; border-top: 1px solid #f2f6f5; }
.dt-foot .grow { flex: 1; }
.dt-foot .cnt { font-size: 11.5px; color: #a7b5b2; }
.dt-foot .cnt.over { color: var(--danger); font-weight: 600; }

/* 模板行：下拉 + 说明一行 */
.tpl-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tpl-line select.oin { flex: 0 1 380px; }
.tpl-note { font-size: 12px; color: #93a4a1; }
.tpl-note b { color: var(--primary-dark); font-weight: 600; }

/* 提示条 */
.o-tip {
  display: flex; gap: 10px; align-items: flex-start; background: #f2faf7; border: 1px solid #d9efe8;
  border-radius: 11px; padding: 11px 14px; margin: 2px 0 12px;
}
.o-tip .ic {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.o-tip p { font-size: 12.5px; line-height: 1.75; color: #45635c; }
.o-tip b { color: var(--primary-dark); font-weight: 700; }
.o-tip .k { color: #8fa5a0; }

/* 评价关系弹窗专用 */
.subj {
  display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 16px; align-items: end;
  background: #f7faf9; border: 1px solid #eaf1ef; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.subj .ofl { margin-bottom: 0; }
.lv-addline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lv-addline .muted { font-size: 11.5px; line-height: 1.6; }
.hintline { font-size: 11.5px; line-height: 1.65; margin-top: 10px; }
.foot-err { background: #fcfdfd; margin-top: 0; min-height: 0; }
.foot-err:not(:empty) { padding: 10px 22px 0; }
.selfsw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6c817d; cursor: pointer; user-select: none; flex: 0 0 auto; }
.selfsw input { display: none; }
.selfsw i { width: 34px; height: 19px; border-radius: 20px; background: #d8e2e0; position: relative; display: inline-block; transition: background .18s; flex: 0 0 auto; }
.selfsw i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.selfsw input:checked + i { background: var(--primary); }
.selfsw input:checked + i::after { left: 17px; }

/* 题目弹窗（v20261124e：分区 + 配色胶囊 + 分值单行） */
.orow2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 14px; }
.ochips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.ochips .tag { cursor: pointer; }
.ocntr { position: relative; }
.ocntr .cnt { position: absolute; right: 11px; bottom: 10px; font-size: 11px; color: #b3c0bd; pointer-events: none; }
.oclrline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.oclrset { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.oclr {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px;
  border: 1px solid #eaf1ef; border-radius: 999px; background: #fff; cursor: pointer;
}
.oclr:hover { border-color: #d5e3df; }
.oclr input[type=color] { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.oclr input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.oclr input[type=color]::-webkit-color-swatch { border: 1px solid #dde6e3; border-radius: 6px; }
.oclr input[type=color][data-def]::-webkit-color-swatch { border-style: dashed; border-color: #c8d6d2; }
.oclr span { font-size: 12px; color: #6c817d; }
.oclrhint { font-size: 11.5px; color: #a7b5b2; }
.oswrow {
  display: flex; align-items: center; gap: 14px; background: #fafcfb;
  border: 1px solid #eef3f1; border-radius: 11px; padding: 9px 13px;
}
.oswtxt b { font-size: 13px; font-weight: 600; color: #2a3f3a; }
.oswtxt p { font-size: 11.5px; color: #93a4a1; margin-top: 1px; line-height: 1.5; }
.oswrow .selfsw { margin-left: auto; }
.oscale { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.oscale b { display: block; font-size: 11.5px; font-weight: 600; color: #9dadaa; margin-bottom: 4px; letter-spacing: .2px; }
.oscale .oin { padding: 7px 9px; font-size: 12.5px; }
/* 滑动条题型的三项设置（最小 / 最大 / 步长） */
.oslide { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.oslide b { display: block; font-size: 11.5px; font-weight: 600; color: #9dadaa; margin-bottom: 4px; letter-spacing: .2px; }
.oslide .oin, .oslide .input { padding: 7px 9px; font-size: 12.5px; }
.oslide-chk { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #7b8b8a; cursor: pointer; user-select: none; }
.oslide-chk input { width: 14px; height: 14px; accent-color: var(--primary); margin: 0; }
.oslide-hint { margin: 7px 0 0; font-size: 11.5px; color: #a7b5b2; line-height: 1.6; }
.o-body textarea.oin { resize: none; line-height: 1.7; }
#q-content { padding-right: 62px; }

/* 管理页页头（子账号 / 问卷模板 / 短信设置） */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head .pt { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.page-head .pt b { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.page-head .pt span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 720px) {
  .row2 { grid-template-columns: 1fr; }
  .selbar { gap: 8px; padding: 7px 10px; }
  .selbar .tsep { display: none; }
  .selbar.on .selhint { display: none; }
  .subj { grid-template-columns: 1fr; gap: 10px; }
  .colhead { display: none; }
  .person-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 26px; }
  .person-row .p-phone { grid-column: 1 / 3; }
  .omodal { max-height: 92vh; border-radius: 14px; }
  .o-head, .o-foot { padding-left: 14px; padding-right: 14px; }
  .o-body { padding: 12px 14px 10px; }
  .o-head .o-sub, .o-foot .esc { display: none; }
  .tpl-line select.oin { flex: 1 1 100%; }
  .lvc-head .lv-name { width: auto; min-width: 54px; flex: 1 1 auto; }
  .lvc-head .del-lv .dl-txt, .lvc-head .lv-cnt { display: none; }
  .lvc-head .del-lv { padding: 4px 6px; font-size: 13px; }
  .o-head { gap: 6px; flex-wrap: wrap; row-gap: 6px; }
  .o-head h3 { white-space: nowrap; flex: 0 0 auto; }
  .o-chips { order: 3; width: 100%; margin-left: 0; }
  .person-row .pdel { grid-row: 2; grid-column: 3; align-self: center; }
  .orow2 { grid-template-columns: 1fr; }
  .oscale { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .oslide { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .slide-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 10px; padding: 10px 0; }
  .slide-subj { grid-column: 1 / 2; }
  .slide-track { grid-column: 1 / 2; }
  .slide-val { grid-column: 2 / 3; grid-row: 1 / 3; align-self: center; }
  .slide-ticks span { font-size: 9.5px; }
  .slide-pass-tag { font-size: 9px; padding: 0 4px; }
  .oclrline { gap: 8px; }
}
