/* ==========================================================================
   新媒体工作室 · 智慧选题管理系统
   视觉层重构：深蓝渐变 / 极细描边 / 层叠柔和投影 / 克制的光感
   仅调整样式，未改动任何类名、结构与交互逻辑
   ========================================================================== */

:root {
  --brand: #2f80ed;
  --brand-2: #5aa6f7;
  --brand-dark: #1b63c9;
  --brand-deep: #0d3f8c;
  --brand-soft: #eef5ff;
  --accent: #19b8a6;
  --accent-soft: #e8f8f5;
  --ink: #111f33;
  --ink-2: #3b5273;
  --muted: #7488a4;
  --line: #e7effa;
  --line-strong: #d6e2f2;
  --bg: #f4f8fe;
  --card: #ffffff;
  --ok: #12915a;
  --warn: #c47a00;
  --danger: #d94747;
  --hair: rgba(26, 74, 145, .1);
  --r-xs: 8px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-xs: 0 1px 2px rgba(16, 42, 80, .05);
  --shadow-sm: 0 1px 2px rgba(16, 42, 80, .04), 0 8px 18px -14px rgba(23, 68, 140, .22);
  --shadow: 0 1px 1px rgba(16, 42, 80, .03), 0 6px 16px -12px rgba(23, 68, 140, .2), 0 26px 48px -34px rgba(23, 68, 140, .3);
  --shadow-lift: 0 2px 6px rgba(16, 42, 80, .05), 0 16px 32px -20px rgba(23, 68, 140, .3), 0 40px 70px -44px rgba(23, 68, 140, .38);
  --ring: 0 0 0 3px rgba(47, 128, 237, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1500px 720px at 50% -420px, #e4efff 0%, rgba(228, 239, 255, 0) 66%),
    radial-gradient(900px 520px at 98% -8%, rgba(25, 184, 166, .09), transparent 62%),
    linear-gradient(180deg, #f7fafe 0%, #f1f6fd 46%, #eef4fb 100%);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #d6e7ff; color: #0d2b52; }

/* 统一的细滚动条：表格、选择器、侧栏都靠它保持一致 */
* { scrollbar-width: thin; scrollbar-color: #c3d6ec transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent; border-radius: 999px;
  background: #c3d6ec; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #a8c2de; background-clip: padding-box; }
.picker-list::-webkit-scrollbar-thumb, .table-scroll::-webkit-scrollbar-thumb { background: #b9cce4; background-clip: padding-box; }

a { color: var(--brand); text-underline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 64px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background:
    radial-gradient(130% 220% at 4% -95%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(102deg, #0f3f8f 0%, #1d5fc4 44%, #2a7ad9 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(255, 255, 255, .14),
    0 14px 34px -22px rgba(10, 42, 96, .85);
}
/* 顶栏底部一条极细的光带，让蓝色收口更干净 */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5) 22%, rgba(255, 255, 255, .5) 78%, transparent);
  pointer-events: none;
}
.topbar .wrap {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 62px; flex-wrap: nowrap; max-width: 1200px;
  padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; min-width: 0;
  color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none;
  letter-spacing: .02em; line-height: 1.35; text-shadow: 0 1px 2px rgba(6, 28, 62, .3);
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark {
  width: 36px; height: 36px; flex: 0 0 36px; padding: 2px; border-radius: 50%;
  background: #fff; object-fit: contain;
  box-shadow: 0 4px 12px -4px rgba(9, 40, 88, .45), 0 0 0 1px rgba(255, 255, 255, .65);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 18px -6px rgba(9, 40, 88, .5), 0 0 0 1px rgba(255, 255, 255, .8); }
.nav-collapse { display: contents; }
.mobile-msg, .nav-toggle { display: none; }
.navdot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 5px; border-radius: 999px;
  background: linear-gradient(180deg, #ff6274, #f0404f); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px;
  box-shadow: 0 2px 6px -2px rgba(210, 30, 50, .6);
}
.mainnav {
  display: flex; align-items: center; gap: 2px; flex: 1 1 auto; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0;
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a, .userbar a {
  color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 13.5px;
  padding: 8px 11px; border-radius: 10px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.mainnav a:hover, .userbar a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mainnav a.on, .userbar a.on {
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px -8px rgba(6, 30, 70, .8);
  color: #fff; font-weight: 600;
}
.mainnav a:focus-visible, .userbar a:focus-visible, .brand:focus-visible { outline: 2px solid rgba(255, 255, 255, .75); outline-offset: 2px; }
.userbar { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; max-width: 100%; margin-left: auto; }
.who { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; opacity: .9; white-space: nowrap; padding: 0 4px; }
.ava {
  width: 23px; height: 23px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; line-height: 1;
}
.msg-text { display: none; }
.userbar .msg-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 34px; height: 34px; padding: 0; border-radius: 11px;
  background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.userbar .msg-link:hover { background: rgba(255, 255, 255, .22); }
.userbar .msg-link.on { background: rgba(255, 255, 255, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.userbar .msg-link .navdot { position: absolute; top: -4px; right: -4px; margin: 0; box-shadow: 0 0 0 2px #2b74dd; }
@media (min-width: 861px) and (max-width: 1099px) {
  .brand span { display: none; }
}

/* ---------- 卡片 / 标题 ---------- */
.card {
  background: linear-gradient(180deg, #fff 0%, #fdfeff 100%);
  border: 1px solid var(--hair);
  border-radius: var(--r-l);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.card > h2 {
  margin: 0 0 16px; font-size: 17.5px; font-weight: 700;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  letter-spacing: -.01em;
}
.card > h2::before {
  content: ""; width: 3px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand) 45%, var(--accent));
  box-shadow: 0 2px 6px -2px rgba(47, 128, 237, .55);
}
.page-title {
  display: flex; align-items: center; gap: 13px; flex-wrap: nowrap;
  font-size: 24px; font-weight: 700; margin: 6px 0 20px;
  letter-spacing: -.02em; line-height: 1.35; color: var(--ink);
}
/* 标题右侧一道短渐变细线：给页面的层级一个视觉落点，不占额外高度 */
.page-title::after {
  content: ""; flex: 0 1 34px; min-width: 16px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .7;
}
.muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.meta { color: var(--muted); font-size: 13px; margin: 3px 0; }
span.meta.sub { display: block; margin: 2px 0 0; font-size: 12px; }
.empty { color: var(--muted); }

.flash {
  background: linear-gradient(180deg, #f0fcf6, #eafaf2);
  color: #0b7f47; border: 1px solid #c7eeda; padding: 12px 17px;
  border-radius: 12px; margin-bottom: 18px; font-size: 14px;
  box-shadow: var(--shadow-xs), inset 0 1px 0 #fff;
}
.flash.err, .flash.bad { background: linear-gradient(180deg, #fff4f4, #ffefef); color: #bf3434; border-color: #f6d2d2; }
.flash.warn { background: linear-gradient(180deg, #fffaee, #fff7e6); color: #8f5c00; border-color: #f2ddab; }
.flash.warn a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 10px;
  background: rgba(255, 255, 255, .9); color: #4f6480; text-decoration: none; font-size: 14px;
  box-shadow: var(--shadow-xs); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tabs a:hover { border-color: #bcd8f8; color: var(--brand-dark); background: #fff; transform: translateY(-1px); }
.tabs a.active {
  background: linear-gradient(180deg, #4a93f4, #2f80ed 55%, #2472db);
  color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px -10px rgba(47, 128, 237, .7);
}
.tabs a:focus-visible { outline: 2px solid rgba(47, 128, 237, .45); outline-offset: 2px; }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 70%, #f9fcff 100%);
  border-radius: var(--r-m); padding: 16px 18px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  border: 1px solid var(--hair); color: inherit; text-decoration: none;
}
.stat b {
  display: block; font-size: 27px; line-height: 1.12; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.035em;
}
.stat span { display: inline-block; margin-top: 2px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.stat.a b { color: var(--warn); } .stat.b b { color: var(--brand); }
.stat.c b { color: #0d97a8; } .stat.d b { color: var(--ok); }
.stat.e b { color: #0e8f7c; } .stat.f b { color: var(--danger); }
.stat.g b { color: #3561b8; }
a.stat { transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
a.stat:hover {
  transform: translateY(-2px); border-color: rgba(47, 128, 237, .28);
  box-shadow: var(--shadow-lift), inset 0 1px 0 #fff;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; }
/* 筛选栏下面直接接一排统计胶囊时，胶囊的上边框会贴住搜索框的下边框，拉开一点 */
.filter-bar + .stat-grid, .filter-bar + .wb-card, .filter-bar + .wb-cards { margin-top: 16px; }
.stat-grid .stat { padding: 13px 15px; }
.stat-grid .stat b { font-size: 23px; }
.admin-tabs { margin-bottom: 10px; }
.sub-tabs { margin-bottom: 18px; }
.sub-tabs a { padding: 6px 13px; font-size: 13px; background: transparent; border-color: transparent; box-shadow: none; }
.sub-tabs a:hover { background: #fff; border-color: #bcd8f8; transform: none; }
.sub-tabs a.active { background: var(--brand-soft); color: var(--brand-dark); border-color: #c5dcf8; box-shadow: none; }

/* ---------- 翻页 ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 18px 0 2px; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg {
  min-width: 34px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; color: var(--brand-dark); font-size: 13.5px; font-weight: 600;
  text-align: center; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.pg:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; box-shadow: var(--shadow-sm); }
.pg.cur {
  background: linear-gradient(180deg, #4a93f4, #2f80ed 60%, #2472db);
  border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 6px 14px -8px rgba(47, 128, 237, .65);
}
.pg.off { color: #a9bad1; background: #f6f9fd; border-color: #e8eff8; box-shadow: none; }
.pg-side { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pg-info { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pg-size { display: flex; align-items: center; gap: 8px; margin: 0; }
.pg-size label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; color: #5f7796; }
.pg-size select { width: auto; min-width: 0; min-height: 36px; padding: 5px 32px 5px 11px; font-size: 13px; background-position: right 10px center; }
@media (max-width: 860px) {
  .pager { flex-direction: column; align-items: stretch; gap: 10px; }
  .pg-nav { justify-content: center; }
  .pg-side { justify-content: space-between; }
  .pg { min-width: 42px; min-height: 38px; padding: 8px 12px; font-size: 14px; }
}

/* ---------- 广场卡片 ---------- */
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.pz-card {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #fff 0%, #fdfeff 100%);
  border: 1px solid var(--hair); border-radius: var(--r-m);
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
  overflow: hidden;
}
/* 悬停时从卡片顶端透出一道极细的品牌色光带 */
.pz-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--brand), #6fb4ff 55%, var(--accent));
  opacity: 0; transition: opacity .25s var(--ease); pointer-events: none;
}
.pz-card:hover {
  border-color: rgba(47, 128, 237, .26);
  box-shadow: var(--shadow-lift), inset 0 1px 0 #fff;
  transform: translateY(-2px);
}
.pz-card:hover::before { opacity: .9; }
.pz-card.grab { border-color: #cfe4ff; background: linear-gradient(180deg, #fff, #fafcff); }
.pz-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.pz-title {
  flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.45;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere; letter-spacing: -.005em;
}
.pz-title:hover { color: var(--brand-dark); text-decoration: underline; }
.pz-head .badge { flex: 0 0 auto; }
.pz-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.pz-who { overflow-wrap: anywhere; }
.pz-tag, .pz-dl { padding: 2px 9px; border-radius: 999px; background: #f2f7fe; color: #5f7796; font-size: 12px; white-space: nowrap; }
.pz-tag { background: #fff4e6; color: #b45309; }
.pz-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pz-slot {
  display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 6px;
  padding: 8px 10px; border: 1px solid #e9f1fc; border-radius: 10px;
  background: linear-gradient(180deg, #f9fcff, #f5faff);
}
.pz-label { font-size: 12px; color: #5f7796; }
.pz-num { justify-self: end; font-size: 13.5px; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.pz-bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: #e3ecf8; overflow: hidden; }
.pz-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #7cbcff);
  transition: width .5s var(--ease);
}
.pz-slot.full .pz-num { color: var(--ok); }
.pz-slot.full .pz-bar i { background: linear-gradient(90deg, var(--ok), #5fd3a5); }
.pz-slot.skip { opacity: .55; }
.pz-people { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.pz-people b { font-weight: 600; color: #7b93b3; }
.pz-sep { color: #c2d2e6; }
.pz-foot {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed #e8eff9;
}
.pz-go { font-weight: 700; }
.pz-empty { text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .pz-grid { grid-template-columns: 1fr; gap: 12px; }
  .pz-card { padding: 14px 14px 12px; gap: 10px; }
  .pz-title { font-size: 16.5px; }
  .pz-slot { padding: 7px 8px; }
  .pz-foot .meta { font-size: 12px; }
  .pz-go { flex: 1 1 auto; min-height: 40px; }
}

/* ---------- 我监督的 ---------- */
.sv-week .ai-list, .sv-pts .ai-list { margin: 2px 0 0; }
/* 「全选 + 批量完成」这条工具栏紧贴下面的选题卡片，补一条下边距隔开 */
.sv-bulk { margin-bottom: 12px; }
.sv-hint { margin: 0 0 8px; }
.sv-text { margin: 4px 0 0; line-height: 1.85; color: var(--ink-2); overflow-wrap: anywhere; }
.sv-risk {
  margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid var(--warn);
  background: linear-gradient(90deg, #fffaf0, #fffdf8);
  border-radius: 0 10px 10px 0; color: #85560d; font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere;
}
.sv-risk b { margin-right: 6px; color: #74490a; }
.sv-foot, .sv-pts-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sv-foot { margin-top: 12px; padding-top: 11px; border-top: 1px dashed #e8eff9; }
.sv-pts { padding: 11px 13px; border: 1px solid #dceafb; border-radius: var(--r-s); background: linear-gradient(180deg, #f8fcff, #f5faff); }
.sv-pts-head { margin-bottom: 3px; }
.sv-pts-head > b { font-size: 13.5px; color: var(--brand-dark); }
.sv-retry { margin-left: auto; }
.sv-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.sv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 860px) {
  .sv-retry { margin-left: 0; }
  .sv-foot .hint { flex-basis: 100%; }
  .pz-foot { align-items: stretch; }
  .sv-acts { flex: 1 1 auto; justify-content: flex-end; }
  .sv-acts .btn { min-height: 38px; }
}

/* ---------- 表格 ---------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hair); border-radius: var(--r-m);
  background: #fff; box-shadow: var(--shadow-xs);
}
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
/* 列数多的登记表（选题登记、直接录入最近记录）宁可横向滚，也不要把姓名挤成两行 */
table.list.wide { min-width: 1220px; }
table.list th, table.list td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef4fc; vertical-align: middle; }
table.list th {
  background: linear-gradient(180deg, #f8fbff, #f1f7ff);
  color: #546e91; font-weight: 600; white-space: nowrap; font-size: 12.5px;
  letter-spacing: .08em; border-bottom-color: #e1ecfa;
}
table.list tbody tr:last-child td, table.list tr:last-child td { border-bottom: 0; }
/* 合计行：加粗、淡蓝底、上方一条实线，和明细行分开 */
table.list tfoot th {
  background: #f2f8ff; color: #1c4f86; font-weight: 700; font-size: 13px; letter-spacing: .02em;
  border-top: 2px solid #dbe9f8; border-bottom: 0; padding-top: 10px; padding-bottom: 10px;
}
table.list tfoot tr:hover th { background: #f2f8ff; }
table.list tbody tr { transition: background-color .16s var(--ease); }
table.list tr:hover td { background: #f8fcff; }
table.list a { text-decoration: none; font-weight: 500; }
table.list a:hover { text-decoration: underline; }
table.list td strong { font-size: 15px; }
@media (min-width: 721px) {
  /* 宽表里给标题和分配明细保底宽度，避免文字被挤成竖排；超出时由外层横向滚动 */
  table.list td[data-label="选题"] { min-width: 170px; }
  table.list td[data-label="分配明细"] { min-width: 210px; }
  /* 微博已审核表加了「操作」列后，意见列被挤成两个字一行，给个保底宽度 */
  table.list td[data-label="意见"] { min-width: 96px; }
}
/* 列多的报表（月度明细这类一行一个平台、十来列）：收紧内边距，尽量一屏放下不横滚 */
@media (min-width: 721px) {
  table.list.tight { font-size: 13px; }
  table.list.tight th, table.list.tight td { padding: 9px 9px; }
  table.list.tight th { font-size: 12px; letter-spacing: .04em; }
  table.list.tight td strong { font-size: 14px; }
  table.list.tight td[data-label="选题"] { min-width: 150px; }
  table.list.tight td[data-label="分配明细"] { min-width: 170px; }
  table.list.tight .meta { font-size: 11.5px; line-height: 1.45; }
}

/* 稿酬明细里的分配列表：姓名与金额分列，长说明可换行 */
.alloc { display: grid; gap: 5px; font-size: 13px; }
.alloc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.alloc-row b { white-space: nowrap; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 80, .045);
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.s-pending { background: #fff4e0; color: #b86b00; }
.s-reviewing { background: #eaf1ff; color: #3561b8; }
.s-approved { background: #e8f2ff; color: #1f6feb; }
.s-in_progress { background: #f2ecff; color: #7048e8; }
.s-done { background: #e7faef; color: #0f9d58; }
.s-sent { background: #e4fbf7; color: #0f8f82; }
.s-unsent { background: #fff0f6; color: #d6417a; }
.s-rejected { background: #ffeaea; color: #d93a3a; }
/* 待分工：合并出来的新选题，等提出人商量环节；已合并：源选题，只在详情页留痕 */
.s-picking { background: #eef7e6; color: #4f8a1b; }
.s-merged { background: #eef2f7; color: #6b7f97; }
/* 已停用成员行：整行淡化，徽章保持可读 */
.row-off td { opacity: .55; }
.row-off td .badge { opacity: 1; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.t-copy { background: #fff2e4; color: #c26a00; }
.t-photo { background: #e4f9ff; color: #0080a8; }
.t-design { background: #ffe9f4; color: #c23b86; }
/* 视频线的两个新工种：拍摄走青绿、剪辑走靛蓝，和上面三个同一档饱和度 */
.t-shoot { background: #e6f8ef; color: #1a8a5a; }
.t-edit { background: #eceffd; color: #4a54c8; }
/* 图文线的两个新工种：封面走杏黄、编辑走灰蓝，一眼能和推文/视频的工种区分开 */
.t-cover { background: #fff6da; color: #9a6a00; }
.t-gedit { background: #eaf0f6; color: #47657f; }
/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 9px 18px; border-radius: 11px; border: 1px solid transparent;
  background: linear-gradient(180deg, #4c94f5 0%, #2f80ed 52%, #2473dd 100%);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .2s var(--ease), color .2s var(--ease), filter .2s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 1px 2px rgba(20, 58, 120, .2),
    0 8px 18px -10px rgba(47, 128, 237, .6);
}
.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #5a9ef8 0%, #3a8bf2 52%, #2b7ce6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 2px 4px rgba(20, 58, 120, .18),
    0 14px 24px -12px rgba(47, 128, 237, .65);
  color: #fff;
}
.btn:active { transform: translateY(0); box-shadow: inset 0 2px 5px rgba(12, 40, 90, .22), 0 1px 2px rgba(20, 58, 120, .2); }
.btn:focus-visible { outline: 2px solid rgba(47, 128, 237, .5); outline-offset: 2px; }
.btn.gray { background: linear-gradient(180deg, #f4f9ff, #eaf3fd); color: #46607f; border-color: #dbe8f8; box-shadow: var(--shadow-xs); }
.btn.gray:hover { background: linear-gradient(180deg, #eef6ff, #e2eefa); color: var(--ink); border-color: #c9dcf5; transform: translateY(-1px); }
.btn.red { background: linear-gradient(180deg, #f47373, #e14b4b 55%, #d33d3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(120, 40, 40, .18), 0 8px 18px -10px rgba(225, 75, 75, .55); }
.btn.red:hover { background: linear-gradient(180deg, #f88383, #e75a5a 55%, #da4747); }
.btn.green { background: linear-gradient(180deg, #35c584, #16a34a 55%, #128c40); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 2px rgba(20, 100, 60, .18), 0 8px 18px -10px rgba(22, 163, 74, .55); }
.btn.green:hover { background: linear-gradient(180deg, #40d391, #1bb257 55%, #149146); }
.btn.sm { min-height: 34px; padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs); }
.btn.ghost:hover { background: var(--brand-soft); border-color: #b7d6fb; color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn.danger-ghost { background: #fff; color: var(--danger); border: 1px solid #f0c9c9; box-shadow: none; }
.btn.danger-ghost:hover { background: #fff6f6; border-color: #e3a8a8; color: #c23636; box-shadow: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
form.inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
form.inline select, form.inline input { width: auto; }
.nowrap { white-space: nowrap; }

/* ---------- 表单 ---------- */
form.stack label, .field { display: block; margin: 16px 0 7px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
input:is([type=text], [type=password], [type=date], [type=month], [type=number], [type=email],
  [type=url], [type=search], [type=tel], [type=time], [type=datetime-local], [type=week]), textarea, select {
  width: 100%; padding: 10px 13px; min-height: 42px;
  border: 1px solid var(--line-strong); border-radius: 11px; font-size: 14.5px; font-family: inherit;
  background-color: #fcfdff; color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(31, 84, 160, .035);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
input:is([type=text], [type=password], [type=date], [type=month], [type=number], [type=email],
  [type=url], [type=search], [type=tel], [type=time], [type=datetime-local], [type=week]):hover, textarea:hover, select:hover {
  border-color: #b9d3ef;
}
input:is([type=text], [type=password], [type=date], [type=month], [type=number], [type=email],
  [type=url], [type=search], [type=tel], [type=time], [type=datetime-local], [type=week]):focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--brand); background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .14), 0 1px 2px rgba(31, 84, 160, .04);
}
input:disabled, textarea:disabled, select:disabled { background-color: #f4f8fd; color: #8fa3bf; cursor: not-allowed; border-color: #e3ecf7; }
input::placeholder, textarea::placeholder { color: #93a8c4; opacity: 1; }
textarea { min-height: 150px; resize: vertical; line-height: 1.75; }
/* 搜索框：内嵌放大镜，和普通输入框保持同一高度与圆角 */
input[type=search] {
  padding-left: 39px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93b0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.4-3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center; background-size: 16px 16px;
}
input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93b0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93b0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
}
select.pick { min-width: 92px; }
.picks { display: inline-flex; gap: 6px; }
.picks select { width: 92px; min-width: 0; }
input.pw { width: 120px; min-height: 34px; padding: 6px 10px; font-size: 13px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-bar label { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 600; color: #5f7796; }
.filter-bar input[type=date] { width: auto; min-width: 150px; }
.filter-bar input[type=month] { width: auto; min-width: 160px; }
/* 联系方式汇总页的搜索框：桌面端要放得下整句占位提示，手机端仍跟着网格收缩 */
@media (min-width: 861px) { .filter-bar input.q-wide { width: auto; min-width: 322px; } }
.filter-bar .check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 10px; }
.filter-bar .btn { min-height: 42px; }
.member-filter { margin: 4px 0 14px; }
.member-filter input[type=search] { width: auto; min-width: 190px; }
.member-filter select { width: auto; min-width: 130px; }
.member-filter .btn { flex: 0 0 auto; }
.quick { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; margin-left: auto; }
.quick a { text-decoration: none; color: var(--brand-dark); white-space: nowrap; }
.quick a:hover { color: var(--brand); text-decoration: underline; }
.export-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 浏览量 / 量化分 ---------- */
/* 计分规则说明条：按平台一行一条，窄屏自动折成多行，不会撑破卡片 */
.score-rule {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  margin-top: 12px; padding: 11px 14px; border-radius: 12px;
  background: #f6f9fe; border: 1px solid var(--line);
}
.score-rule-title { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.score-rule-item { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.score-rule-item b { color: var(--ink); font-weight: 700; }
.score-rule-item .muted { font-size: 12px; }
@media (max-width: 640px) {
  .score-rule { flex-direction: column; gap: 6px; padding: 10px 12px; }
  .score-rule-item { font-size: 12px; }
}
.views-form { flex-wrap: nowrap; }
.views-input { width: 130px; }
.views-form .btn { flex: 0 0 auto; }
.score-total { color: var(--brand-dark); font-size: 16px; }
/* 手动加量化分：选人 + 填几分，记录列在同一个卡片里；选人用录入页同款的可搜索列表 */
/* flex 只能写在 label 上：.filter-bar label 是纵向 flex，写进 input 会把 flex-basis 变成高度 */
.sa-form .sa-user { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sa-user-label { font-size: 12.5px; font-weight: 600; color: #5f7796; display: flex; align-items: baseline; gap: 8px; }
.sa-user-label .muted { font-weight: 400; }
.sa-user .picker { padding: 8px 8px 6px; }
.sa-user .picker-list { max-height: 216px; }
.sa-form .sa-score { width: 110px; }
.sa-form .sa-reason-f { flex: 1 1 230px; min-width: 0; }
.sa-form .sa-reason { width: 100%; min-width: 0; }
.sa-form .btn { flex: 0 0 auto; }
.sa-picked {
  flex: 0 0 auto; align-self: center; font-size: 12.5px; color: var(--muted);
  background: #f3f7fd; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.sa-picked.is-on { background: var(--brand-soft); border-color: #dce8f8; color: var(--brand-dark); font-weight: 600; }
.sa-list-title { margin: 20px 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sa-plus { color: #15803d; }
.sa-minus { color: #cf3b3b; }
.sa-table .inline { margin: 0; }
@media (max-width: 860px) {
  .sa-form .sa-score, .sa-form .sa-reason { width: 100%; min-width: 0; }
  .sa-form .sa-user, .sa-form .sa-score-f, .sa-form .sa-reason-f, .sa-form .sa-picked, .sa-form .btn {
    flex: 1 1 100%; grid-column: 1 / -1; min-width: 0;
  }
}
.rules { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.rules li { margin: 4px 0; }
.rules b { color: var(--ink); }

.member-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.member-form label { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 13px; color: var(--ink-2); }
.member-form button { grid-column: span 1; }

/* ---------- 详情页 ---------- */
.topic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topic-head h2 { margin: 0; font-size: 20px; line-height: 1.45; letter-spacing: -.01em; }
.content-box {
  background: linear-gradient(180deg, #f8fbff, #f5faff);
  border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 17px 19px; white-space: pre-wrap; line-height: 1.85; margin-top: 14px; color: var(--ink-2);
}

.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 6px; }
.slot {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 17px 17px 17px 19px; background: linear-gradient(180deg, #fdfeff, #f9fcff);
  overflow: hidden; box-shadow: var(--shadow-xs), inset 0 1px 0 #fff;
}
.slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.slot.s-copy::before { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.slot.s-photo::before { background: linear-gradient(180deg, #4fd6c6, #14b8a6); }
.slot.s-design::before { background: linear-gradient(180deg, #f78cc0, #ec5fa2); }
.slot h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot .quota { font-size: 12px; font-weight: 400; color: var(--muted); }
.slot .owner { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
/* 需要人数为 0 的环节：这篇推文没有文案/摄影/美工，整块压成灰色虚线，避免看着像缺人 */
.slot.slot-off { background: #f8fafc; border-style: dashed; border-color: #dfe8f4; box-shadow: none; }
.slot.slot-off::before { background: #cdd9ea; }
.slot.slot-off h3 { color: #8d9fb6; }
.slot.slot-off .quota { color: #9ab0c9; }
.req {
  color: #a26500; background: linear-gradient(180deg, #fffcf4, #fff8e9);
  border: 1px dashed #f2d38a; border-radius: var(--r-s);
  padding: 9px 12px; font-size: 13px; margin-bottom: 12px;
}
.need-summary { display: grid; gap: 0; margin: 12px 0 6px; }
.need-summary .req { margin-bottom: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft);
  color: var(--brand-dark); border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; margin: 0 7px 7px 0;
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .08);
}
.chip .x { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; min-height: 0; }
.chip .x:hover { color: var(--danger); }

.bar { display: block; width: 110px; height: 8px; border-radius: 999px; background: #e9f1fc; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---------- 提交页 ---------- */
/* 层次靠明暗差分开：白卡(.card) → 淡蓝面板(.field-block) → 小卡(.need-col)。
   上下相邻的两个框之间一律留 16px 以上，不让两条边框贴在一起。 */
.need-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; margin-top: 16px; }
.need-col {
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px;
  background: linear-gradient(180deg, #fbfdff, #f6faff);
  box-shadow: inset 0 1px 0 #fff;
}
.need-col h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--brand-dark); }
/* 工种卡片与「我负责…」之间必须有空隙，否则两个圆角边框会贴成一条线 */
.need-grid + .checks { margin-top: 16px; }
.need-col .quota { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.need-col label { margin: 10px 0 5px; font-size: 13px; }
.need-col textarea { min-height: 84px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hint.alert {
  color: #ad332b; font-weight: 600; background: #fff4f2;
  border-left: 3px solid #e14b4b; padding: 8px 11px; border-radius: 7px; margin-top: 10px; font-size: 13px;
}
/* 创意内容标题行：说明在左、AI 润色在右，窄屏自动换行 */
.label-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 16px 0 7px; }
.label-tools label { margin: 0; }
.label-tools .btn { flex: 0 0 auto; }
.polish-note { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.polish-note .hint { flex: 1 1 260px; margin-top: 2px; }
.polish-note .hint b { color: var(--brand-dark); }
.polish-note .btn[hidden] { display: none; }
.field-block {
  margin-top: 20px; padding: 17px 19px;
  border: 1px solid #e5effb; border-radius: var(--r-m);
  background: linear-gradient(180deg, #f7fbff, #f1f8ff);
  box-shadow: inset 0 1px 0 #fff;
}
/* 面板标题前加一道与 .card > h2 同款的渐变竖条，让分块标题也有统一的视觉落点 */
.field-block > h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--brand-dark);
}
.field-block > h3::before {
  content: ""; flex: 0 0 auto; width: 3px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand) 45%, var(--accent));
  box-shadow: 0 2px 6px -2px rgba(47, 128, 237, .45);
}
.field-block .hint { margin: 0 0 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks .check {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.checks .check:hover { border-color: #bcd8f8; background: #f9fcff; color: var(--ink); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: var(--brand); cursor: pointer; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid rgba(47, 128, 237, .45); outline-offset: 2px; }
.checks .check:has(input:checked) { border-color: #b7d6fb; background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .06); }
input[type=file] {
  width: 100%; padding: 9px 12px; border: 1px dashed #c9dcf5; border-radius: 11px;
  background: #fcfdff; font-size: 14px; color: var(--ink-2);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
input[type=file]:hover { border-color: var(--brand); background: #f8fcff; }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--brand-dark); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
input[type=file]::file-selector-button:hover { background: var(--brand-soft); border-color: #b7d6fb; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb-link { display: block; width: 128px; height: 96px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: #f3f5fa; }
.thumb-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb { display: flex; flex-direction: column; gap: 6px; width: 128px; font-size: 12px; color: var(--ink-2); }
.thumb > img { width: 128px; height: 90px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); }
.thumb span { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.empty-state { padding: 28px 10px; text-align: center; color: var(--muted); font-size: 14px; }
.complete-card { border: 1px solid #cfe8dc; background: linear-gradient(135deg, #f4fcf8, #fff 60%); }
/* ---------- 按形式确认完成（一种形式做完就先点这一种） ---------- */
.sv-done-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sv-done-list li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; border: 1px solid var(--hair); border-radius: var(--r-m, 12px); background: #fff;
}
.sv-done-list li.is-done { border-color: #cfe8dc; background: #f6fcf8; }
.sv-done-list li.is-mine { border-color: #bfe0c9; background: #fcfefd; box-shadow: inset 3px 0 0 #2f9e6a; }
.sv-done-form {
  flex: 0 0 auto; padding: 2px 10px; border-radius: 7px;
  background: var(--fb, #eef4ff); color: var(--fc, #1f4f9c); font-size: 12.5px; font-weight: 700;
}
.sv-done-who { flex: 1 1 110px; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.sv-done-state { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); }
.sv-done-state.ok { color: #0f8a5f; font-weight: 600; }
.sv-done-btn { margin-left: auto; }
.sv-done-btn .btn { min-height: 34px; }
.status-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; }
.status-form .field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; color: var(--ink-2); }
.review-edit summary { cursor: pointer; color: var(--brand); font-size: 13px; white-space: nowrap; }
.review-edit form { margin-top: 10px; min-width: 250px; max-width: 330px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #f9fcff; }
.review-edit label { margin: 8px 0 4px; font-size: 12px; color: var(--ink-2); display: block; }
.review-edit textarea { min-height: 70px; }
.review-edit .btn { width: 100%; margin-bottom: 6px; }
/* ---------- 多人投票审核 ---------- */
.review-progress { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.rp-item { padding: 4px 11px; border-radius: 999px; background: #f4f9ff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.rp-why { font-size: 12.5px; color: var(--muted); }
.review-readonly { border-left: 3px solid #f2c66b; background: linear-gradient(180deg, #fffdf7, #fff); }
.review-readonly h2 { margin-bottom: 8px; }
.review-avoid { border-left: 3px solid #bcd8ff; background: linear-gradient(180deg, #f9fcff, #fff); }
.review-avoid h2 { margin-bottom: 8px; }

.plaza-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(620px 260px at 100% 0%, rgba(25, 184, 166, .11), transparent 72%),
    radial-gradient(560px 240px at 0% 0%, rgba(47, 128, 237, .1), transparent 72%),
    linear-gradient(135deg, #f3f8ff 0%, #f9fcff 52%, #f0fbf8 100%);
  border: 1px solid rgba(47, 128, 237, .16); border-radius: var(--r-l);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  padding: 18px 20px; margin-bottom: 18px;
}
.plaza-card > * { position: relative; }
.plaza-head { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.plaza-when b {
  font-size: 21px; letter-spacing: .04em; color: var(--brand-dark);
  font-variant-numeric: tabular-nums; font-weight: 700;
  background: linear-gradient(135deg, #1755bd, #2f80ed 55%, #17a99a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.plaza-when .meta { margin-left: 8px; }
.plaza-weather { margin-left: auto; text-align: right; }
.plaza-weather b { color: var(--ink); font-size: 15px; }
.plaza-weather .meta { display: block; margin-top: 2px; }
.plaza-tips { margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13px; line-height: 1.95; }
.plaza-tips li { margin: 0; }
.plaza-tips li::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--brand); vertical-align: 2px; }
.plaza-claim { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.plaza-claim b { color: var(--brand-dark); }
.plaza-notice {
  margin-top: 10px; padding: 10px 13px; background: linear-gradient(90deg, #fff9ea, #fffdf6);
  border: 1px solid #f2ddab; border-left: 3px solid var(--warn);
  border-radius: var(--r-s); color: #7a4f00; font-size: 14px; line-height: 1.8;
}
.plaza-notice b { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 12px; }
@media (max-width: 860px) {
  .plaza-weather { margin-left: 0; text-align: left; flex-basis: 100%; }
  .plaza-when b { font-size: 19px; }
}
.review-round { margin-top: 14px; }
.review-round h3 { margin: 0 0 7px; font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.review-list li {
  display: grid; grid-template-columns: 150px 54px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafdff; font-size: 13px;
}
.review-list .rv-who { font-weight: 600; }
.review-list .rv-dept { margin-left: 4px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.review-list .rv-note { overflow-wrap: anywhere; color: var(--ink-2); }
.review-list .rv-time { font-size: 11.5px; }
@media (max-width: 860px) {
  .review-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .review-list .rv-note, .review-list .rv-time { grid-column: 1 / -1; }
  .review-list .rv-time { justify-self: end; }
}
.review-admin-table td { vertical-align: top; }
.review-admin-table .tag { white-space: nowrap; }
.rv-why { font-size: 11.5px; color: var(--muted); }

/* ---------- 审核工作台：桌面左右分栏，手机底部固定操作条 ---------- */
@media (min-width: 1024px) {
  .rv-grid--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    grid-template-areas: "top side" "rest side";
    column-gap: 20px;
    align-items: start;
  }
  .rv-grid--split .rv-top { grid-area: top; }
  .rv-grid--split .rv-rest { grid-area: rest; }
  .rv-grid--split .rv-side {
    grid-area: side;
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b9cce4 transparent;
  }
}
.rv-side .card { padding: 19px 21px; margin-bottom: 14px; }
.rv-side .card > h2 { font-size: 16px; margin-bottom: 12px; }
/* ---------- 批量修改状态：桌面右侧操作卡 + 手机底部功能条 ---------- */
@media (min-width: 1024px) {
  .bs-grid.rv-grid--split { grid-template-columns: minmax(0, 1fr) 336px; }
}
.bs-ops { border-top: 3px solid var(--brand); background: linear-gradient(180deg, #fbfdff, #fff 130px); }
.bs-ops-btns { flex-direction: column; align-items: stretch; gap: 9px; margin-top: 12px; }
.bs-ops-btns .btn { width: 100%; min-height: 42px; }
.bs-count-line { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.bs-count-line b { font-size: 15px; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.bs-table .bs-title { min-width: 210px; }
@media (max-width: 1023px) {
  .bs-dock-btns { width: 100%; }
  .bs-dock-btns .btn { flex: 1 1 0; min-width: 0; }
}
.rv-vote { border-top: 3px solid var(--brand); background: linear-gradient(180deg, #fbfdff, #fff 130px); }
/* 办公室改状态卡：和审核卡同一套右侧栏样式 */
.st-card { border-top: 3px solid var(--brand); background: linear-gradient(180deg, #fbfdff, #fff 130px); }
.st-card label .muted { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.rv-tally { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: linear-gradient(180deg, #f5faff, #fff); }
.rv-tally-nums { display: flex; flex-wrap: wrap; gap: 7px; }
.rv-tally .tt { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.rv-tally .tt b { font-size: 14px; font-variant-numeric: tabular-nums; }
.rv-tally .tt.ok b { color: var(--ok); }
.rv-tally .tt.no b { color: var(--danger); }
.rv-tally-why { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.rv-wait { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.rv-need { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.rv-need b { color: var(--ink-2); font-weight: 600; }
.rv-vote label { margin: 12px 0 6px; }
.rv-vote label .muted { display: block; font-weight: 400; }
.rv-opinion { min-height: 74px; resize: vertical; }
.rv-miss { animation: rv-miss 1.3s ease; }
@keyframes rv-miss {
  0%, 100% { box-shadow: none; border-color: var(--line-strong); }
  25%, 65% { box-shadow: var(--ring); border-color: var(--brand); }
}
.rv-fold { margin-top: 12px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: #fbfdff; }
.rv-fold[open] { border-style: solid; padding-bottom: 14px; }
.rv-fold summary { padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--brand-dark); cursor: pointer; list-style: none; }
.rv-fold summary::-webkit-details-marker { display: none; }
.rv-fold summary::before { content: "+"; display: inline-block; width: 15px; font-weight: 700; }
.rv-fold[open] summary::before { content: "−"; }
.rv-fold label { margin-top: 8px; }
.rv-vote-actions { display: flex; gap: 10px; margin-top: 14px; }
.rv-vote-actions .btn { flex: 1 1 0; min-height: 44px; font-size: 15px; }
.rv-dock { display: none; }
@media (max-width: 1023px) {
  .rv-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(9px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 28px -22px rgba(31, 84, 160, .6);
    transition: transform .2s ease, opacity .2s ease;
  }
  .rv-dock.rv-dock-off { transform: translateY(115%); opacity: 0; }
  .rv-dock-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
  .rv-dock-top { display: flex; align-items: center; gap: 10px; }
  .rv-dock-sum { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
  .rv-dock-sum .ok, .rv-dock-sum .no { white-space: nowrap; }
  .rv-dock-sum b { font-size: 14px; }
  .rv-dock-sum .ok b { color: var(--ok); }
  .rv-dock-sum .no b { color: var(--danger); }
  .rv-dock-sum .why { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 底部条里的意见框：与审核卡的 #rv-note 同步，长度随内容长到 120px 为止 */
  .rv-dock-note, .rv-dock-fields input { flex: 0 0 auto; width: 100%; min-width: 0; min-height: 42px; max-height: 120px; padding: 10px 12px; font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-m); resize: none; overflow-y: auto; }
  .rv-dock-note:focus, .rv-dock-fields input:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
  .rv-dock-note::placeholder, .rv-dock-fields input::placeholder { color: #9bb0c9; }
  /* 手机底部条里的改状态控件 */
  .rv-dock-fields { display: flex; gap: 8px; align-items: stretch; }
  .rv-dock-fields select { flex: 0 0 auto; width: auto; min-width: 106px; min-height: 42px; padding: 0 8px; font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-m); }
  .rv-dock-fields input { flex: 1 1 auto; }
  .rv-dock-btns { display: flex; gap: 8px; flex: 0 0 auto; }
  .rv-dock-btns .btn { width: auto; min-width: 72px; min-height: 42px; }
  .st-dock-btns { justify-content: flex-end; }
  .st-dock-btns .btn { min-width: 104px; }
  .rv-dock-space { height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-dock, .rv-miss { transition: none; animation: none; }
}
/* ---------- 手机端抢题底部条 ---------- */
.grab-dock { display: none; }
@media (max-width: 1023px) {
  .grab-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(9px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 28px -22px rgba(31, 84, 160, .6);
  }
  .grab-dock-in { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 7px; }
  .grab-dock-tip { font-size: 12px; color: var(--muted); text-align: center; }
  /* 一篇选题勾了几种形式就有好几个「抢推文·文案」按钮，手机上排不下——
     故意让它横向滑动，别把按钮压成一堆看不清的字 */
  .grab-dock-btns { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .grab-dock-btns::-webkit-scrollbar { display: none; }
  .grab-dock-btns form { flex: 0 0 auto; display: flex; min-width: 0; }
  .grab-dock-btns .btn { flex: 0 0 auto; width: auto; min-height: 44px; padding: 8px 14px; font-size: 14.5px; white-space: nowrap; }
  .gd-num { font-weight: 600; opacity: .85; font-size: 12.5px; font-variant-numeric: tabular-nums; }
  .grab-dock-space { height: 96px; }
}
/* ---------- 手机端底部功能条容器：抢题条和办公室、审核条叠成一叠，不再互相盖住 ---------- */
.dock-stack { display: none; }
@media (max-width: 1023px) {
  .dock-stack {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(9px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 28px -22px rgba(31, 84, 160, .6);
    padding-bottom: env(safe-area-inset-bottom);
  }
  /* 贴底、背景、阴影都交给外层容器，里面每条只留自己的内边距 */
  .dock-stack .rv-dock, .dock-stack .grab-dock {
    position: static; background: none; backdrop-filter: none; border-top: none;
    box-shadow: none; padding: 8px 12px;
  }
  /* 两条叠在一起时中间画一条虚线，一眼看出是两个功能 */
  .dock-stack .grab-dock + .rv-dock, .dock-stack .rv-dock + .grab-dock { border-top: 1px dashed var(--line); }
  /* 叠放时对应的操作卡滚进屏幕就整行收起，平移动画会在这叠里留下一块空档 */
  .dock-stack .rv-dock.rv-dock-off { display: none; }
  /* 叠成两三层时手机屏本来就不高，每层再收紧一点，别把正文挤到只剩一条缝 */
  .dock-stack .grab-dock-tip { display: none; }
  .dock-stack .grab-dock-btns .btn { min-height: 40px; font-size: 14px; }
  .dock-stack .rv-dock-note, .dock-stack .rv-dock-fields input,
  .dock-stack .rv-dock-fields select { min-height: 40px; }
  .dock-stack .rv-dock-btns .btn { min-height: 40px; }
  .dock-stack .rv-dock-in, .dock-stack .grab-dock-in { gap: 6px; }
  /* 办公室那条要装状态选择、实际标题和两个按钮，放宽些；抢题条只有按钮，按原来的宽度 */
  .dock-stack .rv-dock-in { max-width: 720px; }
  .dock-stack .grab-dock-in { max-width: 640px; }
  .dock-stack-space { height: 120px; }
}
.rv-note-cell { min-width: 170px; max-width: 340px; overflow-wrap: anywhere; }
.review-detail { min-width: 200px; }
.review-detail summary { cursor: pointer; color: var(--brand); font-size: 12.5px; white-space: nowrap; }
.review-detail .rd-body { display: grid; gap: 5px; margin-top: 8px; max-width: 460px; }
.rd-round { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fafdff; font-size: 12.5px; align-items: baseline; }
.rd-row .rd-note { grid-column: 1 / -1; color: var(--ink-2); overflow-wrap: anywhere; }
.rd-row .rd-time { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.smtp-status { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.email-input { width: 190px; min-height: 34px; padding: 6px 10px; font-size: 13px; }
/* 成员管理表列多，压缩输入框与内边距，保证「状态」列完整显示 */
.members-table th, .members-table td { padding: 12px 9px; }
.members-table .email-input { width: 158px; }
.members-table input.pw { width: 100px; }
.members-table .pick { min-width: 68px; }
.members-table td:last-child { white-space: nowrap; }
.members-table td:last-child .btn { margin-left: 4px; }
/* 彻底删除成员的确认卡 */
.confirm-card { border-color: #f2cfcf; background: linear-gradient(180deg, #fffbfa, #fff8f7); }
.confirm-card h3 { margin: 0 0 8px; font-size: 17px; color: #b3382f; }
.confirm-card .impact { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.confirm-card .impact .warn { color: #b3382f; font-weight: 600; }
.confirm-card input[type=text] { max-width: 320px; }
/* 定时任务链接：只读输入框，点一下全选方便复制 */
.cron-url { margin: 12px 0; }
.cron-url input { width: 100%; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; color: var(--ink-2); background-color: #f7f9fc; }

/* ---------- 站内消息 ---------- */
.msg-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.msg-tools form.inline { margin: 0; }
.msg-stat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.msg-num { font-size: 12.5px; color: var(--ink-2); background: #f1f6fd; border: 1px solid #dbe9fb; border-radius: 999px; padding: 3px 11px; }
.msg-num b { font-size: 13.5px; color: var(--brand-dark); }
.msg-num.warn { background: #fff3f4; border-color: #ffd6da; }
.msg-num.warn b { color: #d93a3a; }
.msg-tabs { display: flex; gap: 8px; margin: 14px 0 2px; }
.msg-tabs a {
  padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  color: #4f6480; text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.msg-tabs a:hover { border-color: #bcd8f8; color: var(--brand-dark); }
.msg-tabs a.active {
  background: linear-gradient(180deg, #4a93f4, #2f80ed 58%, #2472db);
  border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 6px 14px -8px rgba(47, 128, 237, .65);
}
.msg-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.msg { border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px 17px; background: linear-gradient(180deg, #fdfeff, #fafdff); }
.msg.unread { background: linear-gradient(180deg, #f2f9ff, #f8fcff); border-color: #c3ddfa; box-shadow: 0 10px 24px -18px rgba(47, 128, 237, .5); }
.msg.unread .msg-head strong { color: var(--brand-dark); }
.msg.is-announce { background: linear-gradient(90deg, #f7fbff, #fdfeff); border-left: 3px solid var(--brand); }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-head strong { font-size: 15px; }
.msg-kind { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.k-pending { background: #fff4e0; color: #b86b00; }
.k-approved { background: #e7faef; color: #0f9d58; }
.k-rejected { background: #ffeaea; color: #d93a3a; }
.k-team { background: #e8f2ff; color: #1f6feb; }
.k-remind { background: #fff4e0; color: #b86b00; }
.k-published { background: #e4fbf7; color: #0f8f82; }
.k-supervise { background: #f2ecff; color: #7048e8; }
.k-platform { background: #ffe9d6; color: #c2570c; }
.k-announce { background: #e3edff; color: #1c53b8; }
.k-merge { background: #eef3ff; color: #155ab6; }
.msg-new { font-size: 11px; font-weight: 700; line-height: 1.7; padding: 0 8px; border-radius: 999px; background: linear-gradient(180deg, #ff6274, #f0404f); color: #fff; }
.msg-time { margin-left: auto; color: var(--muted); font-size: 12px; }
.msg-body { color: var(--ink-2); line-height: 1.8; margin: 8px 0 10px; font-size: 14px; word-break: break-word; }
.msg-body strong { color: var(--ink); font-weight: 700; }
.msg-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-actions form.inline { margin: 0; }
@media (max-width: 860px) {
  .msg-tools { justify-content: flex-start; }
  .msg-tabs a { flex: 1 1 auto; text-align: center; }
  .msg-actions .btn { width: auto; }
}

/* ---------- 登录注册 ---------- */
.auth-body {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(47, 128, 237, .18), transparent 62%),
    radial-gradient(760px 420px at 96% 0%, rgba(25, 184, 166, .14), transparent 60%),
    linear-gradient(180deg, #f8fbff, #f2f7fd);
}
.auth-card {
  max-width: 472px; margin: 44px auto; padding: 36px 38px 32px;
  border-color: rgba(47, 128, 237, .1); border-radius: var(--r-xl);
  box-shadow: 0 1px 2px rgba(22, 49, 92, .04), 0 18px 40px -30px rgba(31, 84, 160, .35), 0 50px 90px -50px rgba(31, 84, 160, .45);
}
.auth-logo {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  margin-bottom: 6px; font-size: 21px; line-height: 1.4; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; text-wrap: balance;
}
.auth-mark {
  width: 104px; height: 104px; padding: 5px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f4f9ff); border: 1px solid rgba(47, 128, 237, .18);
  object-fit: contain;
  box-shadow: 0 14px 30px -18px rgba(47, 128, 237, .45), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
/* 登录框是页面唯一的内容，输入框和按钮都放大一档，不至于看起来像个小抽屉 */
.auth-card form.stack label { margin: 18px 0 8px; font-size: 14.5px; }
.auth-card input:is([type=text], [type=password], [type=email]) { min-height: 48px; padding: 12px 15px; font-size: 15px; border-radius: 12px; }
.auth-card .actions { margin-top: 22px; }
.auth-card .actions .btn { min-height: 48px; font-size: 15.5px; border-radius: 12px; }
.auth-card > p.muted:last-child { margin: 18px 0 0; font-size: 13.5px; }
/* 登录页内容短，页脚不画分隔线，避免在空白处出现一条突兀的横线 */
.auth-body .footer { border-top: 0; margin-top: 0; }
/* 登录注册：内容区上下居中，短页面不会挤在顶部 */
.auth-body .guest-shell > .wrap { display: grid; place-items: center; }
.auth-body .auth-card { margin: 32px auto; }

.footer {
  text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .02em;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(47, 128, 237, .07);
  margin-top: 8px;
}
.footer-mark { opacity: .75; }
.footer-mark { width: 20px; height: 20px; margin-right: 6px; vertical-align: -6px; }
/* ICP 备案号：主页底部居中，编号可点击直达备案管理系统 */
.footer-icp { margin-top: 8px; line-height: 1.9; }
.footer-icp a { color: var(--muted); text-decoration: none; }
.footer-icp a:hover { text-decoration: underline; }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  main.wrap { padding-top: 16px; }
  .topbar .wrap { gap: 2px 6px; flex-wrap: wrap; }
  .brand { width: 100%; font-size: 14px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .userbar .msg-link { width: auto; height: auto; padding: 6px 10px; gap: 6px; background: transparent; box-shadow: none; }
  .msg-text { display: inline; }
  .userbar .msg-link .navdot { position: static; margin-left: 0; box-shadow: none; }
  .auth-card { margin: 20px auto; }
  .auth-mark { width: 86px; height: 86px; }
  /* 无脚本时按原样换行；启用脚本后手机顶栏保持单行，功能菜单收进面板 */
  .mainnav { width: 100%; flex-wrap: wrap; overflow-x: visible; row-gap: 1px; }
  .userbar { width: 100%; margin-left: 0; flex-wrap: wrap; row-gap: 1px; }
  .mainnav a, .userbar a { padding: 6px 10px; }
  html.js .topbar .wrap { flex-wrap: nowrap; gap: 8px; }
  html.js .brand { width: auto; min-width: 0; flex: 1 1 auto; font-size: 13.5px; }
  html.js .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.js .mobile-msg, html.js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 38px; padding: 0;
    border: 0; border-radius: 11px; background: rgba(255, 255, 255, .15);
    color: #fff; text-decoration: none; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    transition: background .18s;
  }
  html.js .mobile-msg:hover, html.js .nav-toggle:hover { background: rgba(255, 255, 255, .24); }
  html.js .mobile-msg { position: relative; }
  html.js .mobile-msg .navdot { position: absolute; top: -4px; right: -4px; margin: 0; box-shadow: 0 0 0 2px #2b74dd; }
  html.js .nav-toggle { flex-direction: column; gap: 4px; }
  html.js .nav-toggle i { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  html.js .topbar.nav-open .nav-toggle i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  html.js .topbar.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
  html.js .topbar.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  html.js .nav-collapse {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 40;
    padding: 10px 16px 14px; background: #fff; border-top: 1px solid var(--line);
    border-radius: 0 0 18px 18px; box-shadow: 0 28px 46px -20px rgba(16, 52, 110, .45);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  html.js .topbar.nav-open .nav-collapse { display: block; }
  html.js .nav-collapse .mainnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; overflow: visible; }
  html.js .nav-collapse .mainnav a,
  html.js .nav-collapse .userbar a { padding: 10px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; }
  html.js .nav-collapse .mainnav a:hover,
  html.js .nav-collapse .userbar a:hover { background: #f3f9ff; color: var(--brand-dark); }
  html.js .nav-collapse .mainnav a.on,
  html.js .nav-collapse .userbar a.on { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
  html.js .nav-collapse a:focus-visible { outline: 2px solid rgba(47, 128, 237, .45); outline-offset: 2px; }
  html.js .nav-collapse .userbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; width: 100%; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
  html.js .nav-collapse .who { order: 3; width: 100%; padding: 6px 2px 0; color: var(--muted); font-size: 12.5px; gap: 6px; }
  html.js .nav-collapse .ava { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
  html.js .nav-collapse .quit-link { margin-left: auto; }
  /* 后台与筛选标签同样换行，避免当前标签被横向滚动藏住 */
  .tabs { flex-wrap: wrap; overflow-x: visible; }
  .msg-time { margin-left: 0; width: 100%; }
  .email-input { width: 100%; min-width: 0; }
  .review-edit form { min-width: 0; max-width: none; width: 100%; }
  .status-form { display: block; }
  .status-form .field { margin-bottom: 8px; }
  .status-form .btn { width: 100%; }
  .thumbs { gap: 8px; }
  .thumb-link, .thumb { width: calc(33.333% - 6px); }
  .thumb-link { height: 84px; }
  .thumb > img { width: 100%; height: 72px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 17px; border-radius: var(--r-m); }
  .card > h2 { font-size: 16px; }
  .topic-head h2 { font-size: 18px; }
  .page-title { font-size: 20px; }
  /* 窄屏下表格改为独立卡片，去掉外层边框避免双重描边 */
  .table-scroll { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  input:is([type=text], [type=password], [type=date], [type=month], [type=number], [type=email],
    [type=url], [type=search], [type=tel], [type=time], [type=datetime-local], [type=week]), textarea, select { font-size: 16px; }
  /* 表格在窄屏改为纵向卡片：每个单元格用 data-label 显示字段名 */
  table.list, table.list tbody, table.list tr, table.list td, table.list th { display: block; width: 100%; }
  table.list.wide { min-width: 0; }
  table.list thead { display: none; }
  table.list tr { border: 1px solid var(--hair); border-radius: var(--r-m); padding: 8px 12px; margin-bottom: 10px; background: #fff; box-shadow: var(--shadow-sm); }
  table.list th { display: none; }
  table.list td { border-bottom: 0; padding: 4px 0; display: flex; gap: 10px; align-items: flex-start; }
  /* 窄屏没有横向滚动余地：长链接、长英文单词就地断开，别顶破卡片外框 */
  table.list td { overflow-wrap: anywhere; }
  table.list td[data-label="编号"] { white-space: nowrap; }
  table.list td::before { flex: 0 0 76px; color: var(--muted); font-size: 12px; padding-top: 3px; content: attr(data-label); }
  table.list td > .cell { flex: 1 1 auto; min-width: 0; }
  /* 单元格里的直接子元素（标题链接、投票明细、内嵌修改表单）都要允许收缩，否则长内容顶破卡片外框 */
  table.list td > * { min-width: 0; }
  table.list td > details, table.list td > form { flex: 1 1 auto; }
  /* 手机上没有横向余地：审核进度、时间这类 nowrap 内容改为允许折行，别溢出卡片 */
  table.list td.nowrap, table.list td .nowrap { white-space: normal; }
  /* 部门与身份两个下拉按最长选项取宽（实测 268px），窄屏放不下：改成一行一个、跟着卡片收缩 */
  table.list .picks { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
  table.list .picks select { width: 100%; min-width: 0; }
  /* 联系方式在手机上由 .ct-person 自己排（见下方），这里不再覆盖表格样式 */
  table.list td:empty::before, table.list td.no-label::before { content: ""; flex: 0; }
  table.list tr:hover td { background: transparent; }
  .rv-note-cell { min-width: 0; max-width: none; }
  .review-detail { min-width: 0; }
  .review-admin-table td[data-label="还在等"] { white-space: normal; }
  .slots { grid-template-columns: 1fr; }
  .member-form { grid-template-columns: 1fr; }
  .quick { margin-left: 0; width: 100%; min-width: 0; }
  /* 后台筛选与导出：窄屏改为两列网格，避免一屏全是按钮 */
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
  /* 网格项默认不能窄于内容，长选项、长文字会把整条筛选栏撑出卡片 */
  .filter-bar > *, .export-bar > * { min-width: 0; }
  .filter-bar .quick { grid-column: 1 / -1; }
  .filter-bar input[type=date] { width: 100%; min-width: 0; }
  .filter-bar input[type=month] { width: 100%; min-width: 0; }
  .member-filter input[type=search], .member-filter select { width: 100%; min-width: 0; }
  /* 导出条：Excel 和 CSV 各占一行，长文案（「导出 2026 年 10 月 量化分 Excel」）折行而不是撑破卡片 */
  .export-bar { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .export-bar .btn { width: 100%; white-space: normal; }
  .filter-bar .btn { width: auto; }
  .views-form { width: 100%; }
  .views-input { width: 100%; min-width: 0; }
  .views-form .btn { width: auto; flex: 0 0 auto; }
  /* 顶栏空间有限：只留头像首字，姓名与身份让给退出按钮 */
  .who { font-size: 0; gap: 0; }
  .btn { width: 100%; }
  form.inline .btn, .slot .btn, .chip .btn, table.list .btn, .ct-person .btn { width: auto; }
  .actions .btn { flex: 1 1 auto; }
  .bar { width: 70px; }
}
/* 直接录入：可搜索成员选择器 */
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.entry-picker h3 { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entry-picker h3 .quota { background: var(--brand-soft); color: var(--brand-dark); }
.picker { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 10px; box-shadow: inset 0 1px 0 #fff; }
.picker-search { width: 100%; margin-bottom: 8px; }
.picker-list { max-height: 220px; overflow: auto; display: grid; gap: 3px; padding-right: 2px; }
.picker .picker-item { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-2); cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); }
.picker .picker-item > input { align-self: center; margin: 0; }
.picker .picker-item:hover { background: #f4f9ff; color: var(--ink); }
.picker .picker-item:has(input:checked) { background: var(--brand-soft); color: var(--brand-dark); }
.picker-item .p-meta { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.picker .picker-none { margin-bottom: 6px; border-bottom: 1px dashed var(--line); border-radius: 0; color: var(--muted); }
.picker .picker-none:hover { background: transparent; color: var(--ink-2); }
.picker .picker-none:has(input:checked) { background: #eef1f6; color: var(--ink); }
.picker .picker-group { padding: 8px 2px 1px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
.picker .picker-off, .picker .picker-gone { flex-wrap: wrap; row-gap: 2px; color: var(--muted); }
.picker .picker-off:hover, .picker .picker-gone:hover { background: #f5f7fa; color: var(--ink-2); }
.picker .picker-off:has(input:checked), .picker .picker-gone:has(input:checked) { background: #eef1f6; color: var(--ink); }
.picker .p-tag { flex: none; font-size: 11px; font-weight: 600; line-height: 1.7; padding: 0 8px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.picker .picker-off:has(input:checked) .p-tag, .picker .picker-gone:has(input:checked) .p-tag { background: #dce8f8; color: var(--brand-dark); }
.picker-empty { color: var(--muted); font-size: 13px; padding: 8px; }
.picker[data-single="1"] .picker-item { border-radius: 9px; }
.entry-summary { margin-top: 12px; padding: 13px 15px; background: linear-gradient(180deg, #f7fbff, #f3f9ff); border: 1px solid #d6e7fb; border-radius: var(--r-m); font-size: 14px; line-height: 1.8; }
.entry-summary b { color: var(--brand-dark); }
.entry-topic-type { display: inline-flex; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 600; }
/* 最近直接录入：没有的环节直接写「不需要」，有人的环节用姓名卡片；卡片自动换行、最多 3 个加计数，列宽稳定不撑破操作列 */
.entry-recent .chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.entry-recent .chips .chip { margin: 0; padding: 2px 9px; font-size: 12px; font-weight: 600; background: #f1f7ff; border: 1px solid #dbe9fb; color: #2f5fa8; border-radius: 999px; white-space: nowrap; box-shadow: none; }
.entry-recent .chips .chip.more { background: #fff; border-style: dashed; border-color: var(--line-strong); color: var(--muted); }
.entry-recent .entry-none { color: var(--muted); font-size: 12px; }
.entry-recent td[data-label="操作"] { white-space: nowrap; }
@media (min-width: 861px) {
  /* 这张表有 10 列：让类型和时间可以折行，名单卡片列宽封顶，把省下的宽度还给选题，
     不必整张表横向滚动就能看全；万一还是放不下，操作列钉在右侧保证「编辑」永远点得到 */
  .entry-recent td[data-label="类型"], .entry-recent td[data-label="完成时间"] { white-space: normal; }
  /* 分两行的类型标签要保证每行都放得下，否则浏览器会在「普通推文」中间再断一刀 */
  .entry-recent td[data-label="类型"] { min-width: 88px; }
  .entry-recent .chips { max-width: 150px; }
  .entry-recent th:last-child, .entry-recent td:last-child {
    position: sticky; right: 0; z-index: 1; background: #fff;
    box-shadow: -10px 0 10px -10px rgba(16, 47, 90, .35);
  }
  .entry-recent thead th:last-child { background: #f4f9ff; }
  .entry-recent tbody tr:hover td:last-child { background: #f8fcff; }
}

/* 稿酬页：紧急推文按人头设置 */
.urgent-item { border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px 17px; margin-bottom: 14px; background: linear-gradient(180deg, #fdfeff, #fafdff); }
.urgent-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.urgent-head .tag { margin: 0 6px; }
.urgent-rows { display: grid; gap: 8px; }
.urgent-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.urgent-row:last-child { border-bottom: 0; }
.urgent-name { flex: 1 1 200px; }
.urgent-amount { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-2); }
.urgent-amount input { width: 110px; min-height: 38px; }
.urgent-form .actions { margin-top: 10px; }
.urgent-sum { margin: 8px 0 10px; font-size: 14px; color: var(--ink-2); }
.urgent-sum b { color: var(--brand-dark); }
.urgent-sum .muted { margin-left: 6px; font-weight: 400; }
.urgent-batch { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 10px; }
.batch-box { border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 15px; background: #fff; box-shadow: var(--shadow-xs); }
.batch-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.batch-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-box .hint { margin-top: 6px; }
.urgent-individual { margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 8px; }
.urgent-individual summary { cursor: pointer; color: var(--brand-dark); font-size: 13px; font-weight: 600; padding: 4px 0; }
.urgent-individual .urgent-form { margin-top: 10px; }
.urgent-news { font-size: 14px; }
.urgent-news p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .entry-grid { grid-template-columns: 1fr; }
  .urgent-row { align-items: flex-start; }
  .urgent-name { flex-basis: 100%; }
  .urgent-amount { flex: 1 1 auto; }
  .urgent-amount input { flex: 1 1 auto; width: 100%; }
}

/* ---------- 常用平台 ---------- */
.platform-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.platform-page-head .page-title { margin-bottom: 5px; }
.platform-intro { margin: 0; }
.platform-page-summary { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 2px; }
.platform-page-summary span { padding: 6px 12px; border: 1px solid #dce9f8; border-radius: 999px; background: rgba(255, 255, 255, .82); color: var(--muted); font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-xs); }
.platform-page-summary b { color: var(--brand-dark); font-size: 14px; }
.platform-page-summary .sum-off, .platform-page-summary .sum-off b { color: #6b7f97; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.platform-grid .card { margin: 0; min-width: 0; }
.platform-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 22px;
  border-color: rgba(47, 128, 237, .13);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.platform-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, #69a9f7, #77d5ca); opacity: .8;
  transition: opacity .22s var(--ease);
}
.platform-card:hover { transform: translateY(-2px); border-color: #c5dcf7; box-shadow: var(--shadow-lift), inset 0 1px 0 #fff; }
.platform-card:hover::before { opacity: 1; }
.platform-card.in-use { border-color: #b9e6ce; background: linear-gradient(180deg, #f6fdf9, #fff 44%); }
.platform-card.in-use::before { background: linear-gradient(90deg, #36bd7c, #71d6bd); opacity: 1; }
.platform-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.platform-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.platform-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px;
  overflow: hidden; border: 1px solid #dfebf9; border-radius: 17px;
  background: linear-gradient(145deg, #fff, #edf5ff);
  box-shadow: 0 8px 18px -12px rgba(31, 84, 160, .5), inset 0 1px 0 #fff;
  color: var(--brand-dark); font-size: 22px; font-weight: 700;
}
.platform-icon img { display: block; width: 100%; height: 100%; padding: 7px; object-fit: contain; }
.platform-icon-sm { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 16px; box-shadow: none; }
.platform-icon-sm img { padding: 5px; }
.platform-heading { display: flex; align-items: center; gap: 7px 10px; flex-wrap: wrap; min-width: 0; }
.platform-heading h2 { flex: 0 1 100%; margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.platform-seat { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: #f3f8ff; border: 1px solid var(--line); }
.platform-seat b { color: var(--brand-dark); font-size: 15px; }
.platform-seat.full { background: #fff3f3; border-color: #f4d1d1; color: #c23a3a; }
.platform-seat.full b { color: #d93a3a; }
.platform-seat.mine { background: #eef8ff; border-color: #cfe4fb; color: #2a6fc4; }
.platform-seat.mine b { color: #1f6feb; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 12px; }
.platform-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid transparent; border-radius: 9px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.platform-tag.tone-0 { background: #edf5ff; border-color: #d9e9fd; color: #3574c8; }
.platform-tag.tone-1 { background: #edf9f6; border-color: #d6eee7; color: #258a78; }
.platform-tag.tone-2 { background: #f4f0ff; border-color: #e5def9; color: #7558b8; }
.platform-tag.tone-3 { background: #fff5e9; border-color: #f6e5cc; color: #aa7430; }
.platform-tag.tone-muted { background: #f5f7fa; border-color: #e8edf3; color: #8a98aa; font-weight: 400; }
.platform-tags-admin { margin: 10px 0 2px; }
.platform-tags-admin .platform-tag { min-height: 23px; padding: 2px 8px; font-size: 12px; }
.platform-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; background: #f8fbff; color: var(--muted); font-size: 12.5px; }
.platform-meta b { color: var(--ink-2); font-weight: 600; }
.platform-who { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #e3edf8; border-radius: var(--r-m); background: #fcfdff; }
.platform-who.who-none { color: var(--muted); font-size: 12.5px; }
.who-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.who-title b { color: var(--brand-dark); font-size: 14px; }
.who-list { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.who-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.who-list .who-kick { margin-left: auto; align-self: center; }
.platform-who-admin { margin: 0 0 12px; border-color: #f3e2c7; background: #fffdf8; }
.who-list .who-name { font-weight: 600; color: var(--ink); }
.who-list li.who-me .who-name { color: var(--brand-dark); }
.who-list .who-dept { padding: 1px 7px; border-radius: 8px; background: #eef4fd; color: #5f7796; font-size: 11.5px; }
.who-elapsed b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.who-more { margin-top: 5px; font-size: 12px; color: var(--muted); }
.who-hint { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #e3edf8; font-size: 12px; line-height: 1.7; color: #8a5c00; }
.who-hint b { color: #966000; }
.platform-creds { border: 1px solid #cfe8dc; border-radius: var(--r-m); background: linear-gradient(180deg, #f8fdfa, #f4fcf8); padding: 6px 14px; }
.cred-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #dcefe5; }
.cred-row:last-child { border-bottom: 0; }
.cred-label { flex: 0 0 34px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cred-value { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cred-row .btn { flex: 0 0 auto; }
.copy-btn.copied { background: #e7faef; color: #0f9d58; border-color: #c9f0da; }
.platform-timer { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.platform-timer b { color: var(--brand-dark); font-variant-numeric: tabular-nums; font-size: 14px; }
.platform-use, .platform-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.platform-open { border-top: 1px dashed #e3edf8; }
.platform-use .btn, .platform-open .btn { width: auto; }
.platform-blocked { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid #f2ddab; border-radius: var(--r-m); background: linear-gradient(180deg, #fffaf0, #fff8e8); color: #8a5c00; font-size: 13px; }
.platform-blocked b { color: #966000; font-size: 14px; }
/* 停用说明：卡片底部蓝灰信息条，保持和其他状态条同一位置，一眼能看到不能领的原因 */
.platform-off { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid #d8e3f0; border-left: 3px solid #9db4cd; border-radius: var(--r-m); background: #f6f9fc; color: #5c728d; font-size: 13px; line-height: 1.7; }
.platform-off b { color: #46586e; font-size: 14px; }
.badge.s-off { background: #eef2f7; color: #6b7f97; }
.platform-seat.off { background: #f2f5f8; border-color: #dde5ee; color: #7b8ea6; }
.platform-seat.off b { color: #7b8ea6; }
.platform-card.is-off { border-style: dashed; border-color: #dbe4ee; background: linear-gradient(180deg, #fafcfe, #fff 45%); }
.platform-card.is-off::before { background: linear-gradient(90deg, #c9d6e5, #d8e2ee); opacity: .85; }
.platform-card.is-off:hover { transform: none; box-shadow: none; }
.platform-card.is-off .platform-icon { filter: grayscale(1); opacity: .72; background: #f2f5f9; }
.platform-card.is-off .platform-heading h2 { color: #63768e; }
.platform-card.is-off .platform-tag { filter: saturate(.45); opacity: .82; }
.platform-card.is-off .platform-meta { background: #f6f8fb; }
.platform-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.platform-form-grid > div { min-width: 0; }
.platform-form-grid label { margin-top: 12px; }
.platform-form .check { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.platform-form input[name=login_user], .platform-form input[name=login_pass] { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13.5px; }
.platform-icon-upload { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 16px; padding: 15px; border: 1px solid #e0ebf8; border-radius: var(--r-m); background: #f9fcff; }
.platform-icon-upload-preview { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px dashed #b9d2ef; border-radius: 14px; background: #fff; color: #7a9bc4; font-weight: 600; }
.platform-icon-upload label { margin-top: 0; }
.platform-form .platform-fetch-check { margin-top: 10px; font-size: 13px; font-weight: 400; }
.platform-admin { border: 1px solid var(--line); border-radius: var(--r-m); background: #fcfdff; padding: 14px 16px 6px; margin-top: 14px; }
.platform-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.platform-admin-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.platform-admin-title b { font-size: 15px; word-break: break-word; }
.platform-admin .actions { margin-top: 12px; }
/* 后台停用设置区：浅灰底＋虚线左边条，跟正常字段区分开，避免误填 */
.platform-off-box { margin-top: 14px; padding: 12px 14px 14px; border: 1px solid #e2eaf3; border-left: 3px solid #b6c8dc; border-radius: var(--r-m); background: #f8fafd; }
.platform-off-box .check { margin-top: 0; font-weight: 600; flex-wrap: wrap; }
.platform-off-box .check b { white-space: nowrap; }
.platform-off-box .check .muted { font-weight: 400; }
@media (max-width: 860px) { .platform-off-box .check .muted { flex: 1 0 100%; margin-left: 24px; } }
.platform-off-box label { margin-top: 10px; }
.platform-off-box input[type=text] { width: 100%; }
.platform-off-box .hint { color: #6b7f97; }
.platform-off-box .hint b { color: #46586e; }
.platform-admin.is-off { border-color: #dbe4ee; background: #f8fafc; }
.platform-admin.is-off > .platform-admin-head .platform-icon { filter: grayscale(1); opacity: .75; }

@media (max-width: 860px) {
  .platform-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .platform-grid { grid-template-columns: 1fr; gap: 14px; }
  .platform-card { padding: 18px; }
  .platform-form-grid { grid-template-columns: 1fr; }
  .platform-use, .platform-open { flex-direction: column; align-items: stretch; }
  .platform-use .btn, .platform-open .btn,
  .platform-use form, .platform-open form,
  .platform-use form .btn, .platform-open form .btn { width: 100%; }
  .cred-row { flex-wrap: wrap; gap: 6px 10px; }
  .cred-label { flex-basis: 100%; }
  .cred-row .btn { width: auto; }
  .platform-seat { align-self: flex-start; }
  .platform-admin { padding: 12px 12px 4px; }
}

@media (max-width: 480px) {
  .platform-head { flex-wrap: wrap; }
  .platform-identity { width: 100%; }
  .platform-heading h2 { font-size: 17px; }
  .platform-icon { flex-basis: 50px; width: 50px; height: 50px; border-radius: 15px; }
  .platform-page-summary { width: 100%; }
  .platform-page-summary span { flex: 1 1 auto; text-align: center; }
  .platform-icon-upload { grid-template-columns: 1fr; }
}

/* ---------- 后台公告发布 ---------- */
.announce-target { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 4px; }
.announce-depts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px solid #e0ebf8; border-radius: var(--r-m); background: #f9fcff; transition: opacity .15s ease; }
.announce-depts.disabled { opacity: .5; }
.announce-dept { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 3px 12px; border: 1px solid #d9e6f7; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.announce-dept:hover { border-color: #9cc4ee; background: #f5faff; }
.announce-dept input[type=checkbox] { width: auto; margin: 0; flex: none; }
.announce-dept .muted { font-size: 12px; }
.announce-preview { margin-top: 14px; padding: 11px 14px; border-radius: var(--r-m); background: linear-gradient(180deg, #eef6ff, #eaf3ff); color: #2a5c9c; font-size: 13.5px; }
.announce-preview b { color: #164e9c; font-size: 16px; }
.announce-item { padding: 14px 0; border-top: 1px solid #eef3f9; }
.announce-item:first-of-type { border-top: none; padding-top: 6px; }
.announce-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.announce-item-head b { font-size: 15px; }
.announce-item-meta { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.announce-item-body { margin-top: 9px; padding: 11px 14px; border-left: 3px solid #cfe1f7; border-radius: 0 var(--r-s) var(--r-s) 0; background: #f8fbff; color: var(--ink-2); line-height: 1.8; font-size: 13.5px; }
.announce-item-body strong { color: var(--ink); }
@media (max-width: 480px) {
  .announce-dept { flex: 1 1 auto; justify-content: center; }
  .announce-item-meta { line-height: 1.7; }
}

/* ---------- AI 辅助审核 ---------- */
.ai-card { border-left: 3px solid #b7d6fb; }
.ai-card h2 { margin-bottom: 10px; }
.ai-wait, .ai-fail { margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-m); font-size: 13.5px; line-height: 1.8; }
.ai-wait { background: #f5f9ff; border: 1px dashed #c3d8f0; color: #4f6480; }
.ai-fail { background: #fdf4f4; border: 1px solid #f3d7d7; color: #9a3b3b; }
.ai-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-verdict { padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.ai-verdict.ai-good { background: #e9f9ef; color: #14823f; }
.ai-verdict.ai-mid { background: #fdf5e6; color: #a5680a; }
.ai-verdict.ai-bad { background: #fdeeee; color: #b23b3b; }
.ai-score { font-size: 13px; color: var(--muted); }
.ai-score b { color: var(--brand-dark); font-size: 17px; }
.ai-time { font-size: 12px; }
.ai-row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 9px 12px; border-radius: var(--r-s); background: #f9fcff; margin-top: 6px; font-size: 13.5px; line-height: 1.8; }
.ai-row > b { color: var(--brand-dark); font-weight: 600; }
.ai-row > span, .ai-row > ul { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.ai-list { margin: 0; padding-left: 18px; }
.ai-list li { margin: 2px 0; }
.ai-raw { padding: 12px 14px; border-radius: var(--r-m); background: #f9fcff; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.ai-chip { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.ai-chip.ai-good { background: #e9f9ef; color: #14823f; }
.ai-chip.ai-mid { background: #fdf5e6; color: #a5680a; }
.ai-chip.ai-bad { background: #fdeeee; color: #b23b3b; }
.ai-chip.ai-chip-wait { background: #eef3fa; color: #5c718e; }
.ai-chip.ai-chip-fail { background: #f6eaea; color: #9a3b3b; }
.ai-tiers .check { display: flex; align-items: flex-start; gap: 8px; width: 100%; border-radius: var(--r-m); line-height: 1.6; }
.ai-tiers .check input { margin-top: 3px; }
.ai-tiers .ai-tier { flex: 1 1 auto; min-width: 0; }
.ai-tiers .muted { font-weight: 400; font-size: 12px; }
.ai-inline { display: flex; gap: 12px; margin-top: 10px; }
.ai-inline > span { flex: 1 1 0; min-width: 0; }
.ai-err-line { overflow-wrap: anywhere; }

/* ---------- 制作建议：抢题与制作阶段替代审核明细，人工意见为主、预审建议为辅 ---------- */
.ma-card { border-left-color: #7fb7f2; background: linear-gradient(180deg, #f8fcff, #fff 60%); }
.ma-card .ai-list li { margin: 4px 0; }
/* 重新生成：按钮和一句话说明并排，手机上换行不挤 */
.ma-retry { margin-top: 10px; align-items: center; }
.ma-retry .hint { margin-top: 0; }

/* ---------- 联系方式：微信号与好友二维码（详情页卡片、联系方式页、成员管理） ---------- */
.contact-card { border-left: 3px solid #7fb7f2; }
.wid { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; background: var(--brand-soft); color: var(--brand-dark); padding: 3px 8px; border-radius: 7px; overflow-wrap: anywhere; }
.ct-no { display: inline-block; font-size: 12.5px; color: #a06a1a; background: #fff7e8; border: 1px solid #f3dfae; border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.qr-link { display: inline-block; line-height: 0; border-radius: 11px; padding: 4px; background: #fff; border: 1px solid var(--line-strong); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.qr-link:hover { border-color: var(--brand); box-shadow: var(--ring); }
.qr-thumb { display: block; width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 7px; }
.qr-thumb.sm { width: 52px; height: 52px; }
.qr-miss { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; padding: 6px; text-align: center; font-size: 12px; line-height: 1.35; color: #a06a1a; background: #fffaf0; border: 1px dashed #f3dfae; border-radius: 11px; }
.tag-off { display: inline-block; font-size: 11.5px; font-weight: 600; color: #7a8ba3; background: #eef2f7; border-radius: 7px; padding: 2px 7px; }
.ct-empty { margin: 12px 0 2px; padding: 14px 16px; background: var(--brand-soft); border-radius: var(--r-m); font-size: 14px; color: var(--ink-2); }
.mc-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* 后台成员表里的「未填微信号」这类提示不许折成三行；微信号仍允许折行，长ID不会撑破手机屏 */
.mc-cell .ct-no { white-space: nowrap; }
/* 成员端「正在制作 / 已归档」两个切换页签 */
.wc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 2px; }
.wc-tab { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #f3f7fc; border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; }
.wc-tab b { color: var(--brand-dark); margin-left: 2px; }
.wc-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.wc-tab.on { background: linear-gradient(180deg, #4a93f4, #2f80ed 58%, #2472db); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgba(47, 128, 237, .6); }
.wc-tab.on b { color: #fff; }
/* ---------- 联系方式块：一块就是一篇选题，块与块之间靠边框、圆角和间距分开 ---------- */
.ct-topic { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-l); box-shadow: var(--shadow-sm), inset 0 1px 0 #fff; margin: 0 0 16px; overflow: hidden; }
/* 详情页那张卡片已经是一层容器，里面的块去掉外框，只留内容 */
.contact-card .ct-topic { border: 0; border-radius: 0; box-shadow: none; margin: 0; overflow: visible; }
.ct-topic-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 14px 17px 0; }
.ct-topic-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.ct-topic-title:hover { color: var(--brand-dark); }
.ct-topic-n { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
/* 块头的浅色带：提出人、监督人永远写在这一行，这一篇归谁一目了然 */
.ct-keys { display: flex; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; margin-top: 10px; padding: 10px 17px; background: linear-gradient(180deg, #f4f9ff, #f9fcff); border-bottom: 1px solid var(--line); }
.contact-card .ct-keys { border-radius: var(--r-m); border-top: 1px solid var(--line); }
.ct-key { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.ct-key i { font-style: normal; font-size: 12px; color: var(--muted); }
.ct-key b { font-weight: 700; color: var(--ink); }
.ct-key-sup b { color: #9a5b00; }
.ct-key-me b { color: var(--brand-dark); }
.ct-key-warn { color: #a06a1a; }
.ct-key-warn i, .ct-key-warn b { color: #a06a1a; }
.ct-hint { margin: 12px 17px 0; font-size: 13.5px; color: var(--ink-2); }
.contact-card .ct-hint { margin-top: 12px; }
.ct-people { padding: 2px 17px 13px; }
.contact-card .ct-people { padding: 4px 0 2px; }
/* 桌面：一个人一行，姓名身份与微信号挨着排，二维码钉在最右边 */
/* --qr-box 是二维码图的边长，一个断点只改这一处：外层白框比它多 4px 内边距 + 1px 描边，
   所以「未上传二维码」那个虚线框用 calc 跟着一起长，两者永远一样大 */
.ct-person { --qr-box: 76px; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 9px 0; border-top: 1px dashed var(--line); }
.ct-person:first-child { border-top: 0; }
.contact-card .ct-person { padding: 12px 0; }
.ct-p-id { flex: 0 1 auto; min-width: 0; }
.ct-p-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.ct-p-dept { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.ct-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: #eef2f7; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 1px; }
.ct-tag-prop { color: #fff; background: linear-gradient(180deg, #4a93f4, #2f80ed); }
.ct-tag-sup { color: #fff; background: linear-gradient(180deg, #eda63a, #dd8312); }
.ct-p-wid { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ct-p-qr { flex: 0 0 auto; margin-left: auto; }
/* 真实上传的多是手机竖屏长截图：按高度等比缩放，别塞进正方形里压成一条窄带还留灰边 */
.ct-person .qr-thumb { width: auto; height: var(--qr-box); max-width: calc(var(--qr-box) * 1.9); }
.ct-person .qr-miss { width: calc(var(--qr-box) + 10px); height: calc(var(--qr-box) + 10px); }
.wc-mine-row { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
/* 「我的联系方式」这一张也按高度等比显示：竖屏长截图塞进 96px 正方形会空出一大片 */
.wc-mine-row .qr-thumb { width: auto; height: 96px; max-width: 172px; }
.wc-mine-text { flex: 1 1 240px; min-width: 0; }
.wc-rules { margin: 0; padding-left: 20px; font-size: 14px; }
.wc-rules li { margin: 6px 0; }
.wc-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f8fcff; border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: 12px 14px; }
.wc-current-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.wc-nudge-bar { margin-bottom: 4px; }
.wc-remind { background: linear-gradient(90deg, #fffaf0, #fffdf7); border: 1px solid #f2ddab; color: #8f5c00; border-radius: 12px; padding: 12px 17px; margin-bottom: 18px; font-size: 14px; box-shadow: var(--shadow-xs); }
.wc-remind a { color: #8f5c00; font-weight: 700; text-decoration: underline; }
.wc-mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(13, 30, 55, .46); backdrop-filter: blur(3px); }
.wc-pop { width: 100%; max-width: 460px; padding: 26px 28px; background: #fff; border-radius: var(--r-xl); box-shadow: 0 30px 70px -22px rgba(16, 42, 80, .5); }
.wc-pop h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.01em; }
.wc-pop p { margin: 0 0 10px; font-size: 14.5px; }
.wc-pop .actions { margin-top: 16px; }

/* 窄屏与手机：一个人两行——姓名与身份一行、微信号一行，二维码固定贴在右边，不用左右滑 */
@media (max-width: 860px) {
  .ct-topic { border-radius: var(--r-m); margin-bottom: 14px; }
  .ct-topic-top, .ct-keys, .ct-hint, .ct-people { padding-left: 14px; padding-right: 14px; }
  .ct-topic-top { padding-top: 12px; }
  .ct-topic-n { margin-left: 0; }
  .ct-keys { gap: 6px 16px; }
  .ct-person { --qr-box: 84px; display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 12px; align-items: start; }
  .ct-p-id, .ct-p-wid { grid-column: 1; }
  .ct-p-qr { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-left: 0; }
  .ct-tag { margin-left: 0; margin-right: 6px; }
  .qr-miss { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .ai-row { grid-template-columns: 1fr; gap: 2px; }
  .ai-head { gap: 8px; }
  .ai-inline { flex-direction: column; gap: 0; }
  .ct-person { --qr-box: 76px; }
  .qr-thumb, .qr-miss { width: 76px; height: 76px; }
  .wc-pop { padding: 20px; }
}

[hidden] { display: none !important; }

/* ---------- 合并雷同选题：审核页入口 + 后台合并页 ---------- */
.mg-entry { border-left: 3px solid var(--brand); }
.mg-entry-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.mg-entry-txt { flex: 1 1 320px; min-width: 0; }
.mg-entry-txt h2 { margin: 0 0 4px; font-size: 16px; }
.mg-entry-txt p { margin: 0; }
.mg-entry-act { display: flex; align-items: center; gap: 10px; }
.mg-entry-act .muted b { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.mg-intro-btns { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mg-intro-btns .muted b { color: var(--brand-dark); }
.mg-done { border-left: 3px solid var(--ok); }
.mg-done p { margin: 6px 0; }

/* 选题列表与编辑区：桌面左右两栏，手机上下堆叠 */
@media (min-width: 1024px) {
  .mg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 18px; align-items: start; }
}
.mg-cols > .card { margin-bottom: 18px; }
.mg-search { margin-bottom: 4px; }
.mg-items { margin-top: 10px; }
.mg-group { margin: 14px 0 7px; font-size: 12px; font-weight: 700; color: #5f7796; letter-spacing: .04em; }
.mg-group:first-child { margin-top: 0; }
.mg-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; align-items: start;
  padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fcfdff;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease); }
.mg-item:hover { border-color: var(--line-strong); }
.mg-item.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--ring); }
.mg-item input[type=checkbox] { grid-column: 1; grid-row: 1; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--brand); cursor: pointer; }
.mg-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; }
.mg-title { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.mg-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.mg-more { grid-column: 2; margin-top: 2px; }
.mg-more summary { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-dark); cursor: pointer; }
.mg-body { max-height: 190px; overflow-y: auto; margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--line-strong);
  background: #fff; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.mg-open { display: inline-block; margin-top: 6px; font-size: 12px; }
.mg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.mg-count { font-size: 13px; color: var(--ink-2); }
.mg-count b { font-size: 16px; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .mg-bar { position: sticky; bottom: 8px; z-index: 4; padding: 10px 14px; border: 1px solid var(--line-strong);
    border-radius: var(--r-m); background: rgba(255, 255, 255, .97); box-shadow: var(--shadow); }
  .mg-bar .btn { flex: 1 1 46%; min-height: 44px; }
}

.mg-srcs { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.mg-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 11px;
  border-left: 3px solid var(--line-strong); background: #f9fcff; border-radius: 0 9px 9px 0; font-size: 13.5px; }
.mg-src b { overflow-wrap: anywhere; }
.mg-src .muted { font-size: 12px; }
.mg-form > label { display: block; margin: 13px 0 5px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.mg-form input[type=text], .mg-form textarea { width: 100%; min-width: 0; }
.mg-form textarea { min-height: 90px; }
.mg-needs { display: grid; gap: 12px; margin-top: 16px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--r-m); background: #f9fcff; }
@media (min-width: 640px) { .mg-needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mg-need { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mg-need label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: #5f7796; }
.mg-need input[type=number] { width: 100%; min-width: 0; }
.mg-req { font-weight: 400 !important; }
.mg-req textarea { min-height: 62px; font-size: 13px; font-weight: 400; }

.mg-wait { display: flex; flex-direction: column; gap: 8px; }
.mg-wait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: #fcfdff; }
.mg-wait-row > a:first-child { flex: 1 1 220px; min-width: 0; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mg-wait-row .muted { flex: 1 1 100%; font-size: 12px; }
.mg-srcrow { line-height: 1.7; }
@media (max-width: 860px) {
  .mg-entry-in { align-items: flex-start; }
  .mg-entry-act { width: 100%; }
  .mg-entry-act .btn { flex: 1 1 auto; }
  .mg-entry-act .muted { flex: 0 0 auto; white-space: nowrap; }
  .mg-wait-row .btn { margin-left: auto; }
}

/* ---------- 选题详情页的合并提示条 ---------- */
.mg-note { margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-m); border: 1px solid var(--line-strong);
  background: var(--brand-soft); font-size: 13.5px; }
.mg-note b { color: var(--brand-dark); }
.mg-note p { margin: 5px 0 0; line-height: 1.75; color: var(--ink-2); }
.mg-note .actions { margin-top: 9px; }
.mg-note--src { background: #f5f7fa; border-color: #d8e2ee; }
.mg-note--src b { color: #55677d; }
.mg-note--pick { background: #f2f9ee; border-color: #cfe4bd; }
.mg-note--pick b { color: #4f8a1b; }
.mg-note .mg-srcs { color: var(--muted); font-size: 13px; }

/* ---------- 合并页的运行环境自检 ---------- */
.mg-diag-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mg-diag-k:last-of-type { border-bottom: 0; }
.mg-diag-k > span { color: var(--muted); font-weight: 600; }
.mg-diag-k > b { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.mg-diag-k > b.meta { font-weight: 500; color: var(--ink-2); }

/* 「正在生成」那一颗：不能真 disabled，禁用按钮不提交、它带的生成动作会丢，所以只做样子 */
.mg-bar button.is-busy { opacity: .6; cursor: progress; pointer-events: none; }

/* ---------- 提出人重新勾选环节（merge_pick.php） ---------- */
.mp-topic .topic-head { margin-bottom: 6px; }
.mp-topic .topic-head h3 { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.mp-srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 2px; }
.mp-srcs-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mp-src { display: inline-block; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #f9fcff; font-size: 12.5px; color: var(--brand-dark); text-decoration: none; overflow-wrap: anywhere; }
.mp-src:hover { border-color: var(--brand); }

.mp-who { --qr-box: 112px; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 11px 0; border-top: 1px dashed var(--line); }
.mp-who:first-of-type { border-top: 0; }
.mp-who-txt { flex: 1 1 220px; min-width: 0; }
.mp-who-txt p { margin: 0 0 4px; line-height: 1.7; overflow-wrap: anywhere; }
.mp-who .qr-thumb { width: auto; height: var(--qr-box); max-width: calc(var(--qr-box) * 1.9);
  border: 1px solid var(--line); padding: 4px; }
/* 二维码的外层链接不能被 flex 拉开，否则手机上竖屏长截图会按原始尺寸撑满整屏 */
.mp-qr { flex: 0 0 auto; max-width: 100%; }

.mp-rows { display: flex; flex-direction: column; gap: 7px; }
.mp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: #fcfdff; font-size: 13.5px; }
.mp-row.on { border-color: var(--brand); background: var(--brand-soft); }
.mp-name { font-weight: 600; overflow-wrap: anywhere; }
.mp-slot-src { flex: 1 1 auto; min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.mp-state { flex: 0 0 auto; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.mp-state.yes { background: #e7faef; color: #0f9d58; }
.mp-state.no { background: #fff4e0; color: #b86b00; }
.mp-state.quit { background: #eef2f7; color: #6b7f97; }

.mp-form-title { font-size: 14px; font-weight: 600; margin: 16px 0 6px; display: flex; align-items: center; gap: 8px; }
.mp-slots { display: grid; gap: 10px; margin: 4px 0 2px; }
@media (min-width: 640px) { .mp-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mp-slot { display: flex; align-items: center; gap: 9px; padding: 11px 13px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fcfdff; cursor: pointer; }
.mp-slot:hover { border-color: var(--brand); }
.mp-slot input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
.mp-slot span { flex: 1 1 auto; font-weight: 600; }
.mp-slot em { flex: 0 0 auto; font-style: normal; font-size: 12px; color: var(--muted); }
.mp-slot.off { opacity: .55; cursor: not-allowed; }
.mp-slot.off:hover { border-color: var(--line-strong); }
/* 这个环节已经被别的提出人占了——不写橙色的话，扫一眼看不出和别人有没有冲突 */
.mp-slot.taken em { color: var(--warn); font-weight: 600; }
.mp-form select { width: 100%; min-width: 0; }

@media (max-width: 620px) {
  .mp-who { --qr-box: 92px; }
  .mp-slot { flex-wrap: wrap; }
  .mp-slot em { flex: 1 1 100%; }
  .mp-row .mp-slot-src { flex: 1 1 100%; }
}

/* ==========================================================================
   全局收尾：焦点可见性 / 动效偏好 / 细节统一
   ========================================================================== */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid rgba(47, 128, 237, .55);
  outline-offset: 2px;
}
/* 数字统一等宽，表格和统计里的数字列不会跳动 */
.stat b, .bs-count-line b, .mg-count b, .cred-value, .pz-num { font-feature-settings: "tnum" 1; }
h1, h2, h3 { color: var(--ink); }
.page-title + .stats { margin-top: 2px; }
/* 页面进入时轻微上浮，让切换有呼吸感而不喧哗 */
@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
main.wrap > * { animation: page-in .34s var(--ease) both; }
main.wrap > *:nth-child(2) { animation-delay: .03s; }
main.wrap > *:nth-child(3) { animation-delay: .06s; }
main.wrap > *:nth-child(n+4) { animation-delay: .09s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   第三轮 · 应用外壳
   登录后：左侧常驻导航（深蓝玻璃）+ 右侧内容区（白色半透明顶栏）
   访客：顶部品牌条 + 全宽内容
   命名全部为新类，不改动任何既有选择器
   ========================================================================== */
:root { --side-w: 264px; }

.shell { display: flex; min-height: 100vh; }
.main {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-width: 0; min-height: 100vh;
  margin-left: var(--side-w);
}
.main > .wrap { width: 100%; max-width: 1240px; padding-left: clamp(16px, 2.4vw, 32px); padding-right: clamp(16px, 2.4vw, 32px); flex: 1 1 auto; }
.main > .footer { margin-top: auto; }

/* ---------- 左侧导航 ---------- */
.side {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 40;
  display: flex; flex-direction: column;
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(128% 44% at 4% -6%, rgba(90, 166, 247, .34), transparent 62%),
    radial-gradient(96% 34% at 104% 102%, rgba(25, 184, 166, .16), transparent 60%),
    linear-gradient(184deg, #0e3168 0%, #103c7f 44%, #0a2756 100%);
  border-right: 1px solid rgba(8, 30, 66, .55);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
}
/* 右边缘一条极细的光带，和顶栏的高光呼应 */
.side::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0));
}
.side-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 5px 8px 20px; color: #fff; text-decoration: none; min-width: 0;
}
.side-mark {
  width: 38px; height: 38px; flex: 0 0 38px; padding: 3px; border-radius: 11px;
  background: #fff; object-fit: contain;
  box-shadow: 0 8px 18px -9px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .28);
  transition: transform .3s var(--ease);
}
.side-brand:hover .side-mark { transform: translateY(-1px) scale(1.03); }
.side-brand-txt { min-width: 0; }
.side-brand-txt b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: .02em; line-height: 1.32; }
.side-brand-txt em {
  display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; letter-spacing: .01em;
  color: rgba(255, 255, 255, .48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group {
  margin: 15px 0 5px; padding: 0 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  color: rgba(255, 255, 255, .36);
}
.side-group:first-child { margin-top: 2px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  color: rgba(255, 255, 255, .76); text-decoration: none;
  font-size: 13.5px; font-weight: 500; line-height: 1.4;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.side-link svg { flex: 0 0 auto; opacity: .7; transition: opacity .18s var(--ease); }
.side-link > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-link:hover { background: rgba(255, 255, 255, .085); color: #fff; }
.side-link:hover svg { opacity: 1; }
.side-link.on {
  background: linear-gradient(180deg, #fff, #eef5ff);
  color: var(--brand-deep); font-weight: 600;
  box-shadow: 0 10px 22px -15px rgba(0, 10, 32, .95), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.side-link.on svg { opacity: 1; color: var(--brand); }
.side-count {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: linear-gradient(180deg, #ff6274, #ef3f4e); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0;
  box-shadow: 0 4px 10px -6px rgba(230, 40, 60, .9);
}

.side-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 3px 2px 2px 6px; }
.side-ava {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32);
}
.side-user-txt { flex: 1 1 auto; min-width: 0; }
.side-user-txt b { display: block; font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-txt em { display: block; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .48); }
.side-quit {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center; color: rgba(255, 255, 255, .5);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.side-quit:hover { color: #fff; background: rgba(255, 255, 255, .13); }

.side-mask { display: none; }

/* ---------- 顶栏 ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 6px clamp(16px, 2.4vw, 32px);
  background: rgba(252, 254, 255, .84);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(26, 74, 145, .075);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 12px 30px -28px rgba(16, 42, 80, .6);
}
.app-menu {
  display: none; width: 38px; height: 38px; padding: 0; flex: 0 0 38px;
  grid-auto-flow: row; place-items: center; gap: 4px;
  border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.app-menu i { display: block; width: 17px; height: 1.8px; border-radius: 2px; background: currentColor; }
.app-menu:hover { background: rgba(47, 128, 237, .07); color: var(--brand-dark); }
.crumb { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--muted); }
.crumb span { white-space: nowrap; }
.crumb i { font-style: normal; color: #c2d1e6; }
.crumb b {
  color: var(--ink); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.app-bell {
  position: relative; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid rgba(26, 74, 145, .09); background: rgba(255, 255, 255, .72);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.app-bell:hover { color: var(--brand-dark); border-color: rgba(47, 128, 237, .3); background: #fff; box-shadow: var(--shadow-xs); }
.app-bell .navdot { position: absolute; top: -5px; right: -5px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
/* 有会议时才出现的「我的签到码」小方按钮，形状与消息通知完全一致 */
.app-qr { color: var(--brand-dark); border-color: rgba(47, 128, 237, .24); }
.app-qr:hover { color: var(--brand-dark); border-color: rgba(47, 128, 237, .45); background: #f2f8ff; }
/* 管理员的「扫码签到」也是同款小方按钮，用绿色和蓝色码按钮区分开 */
.app-scan { color: #0f6e56; border-color: rgba(29, 158, 117, .26); }
.app-scan:hover { color: #0b5a45; border-color: rgba(29, 158, 117, .5); background: #effaf5; }
.app-bell.is-current { background: #eaf2ff; border-color: rgba(47, 128, 237, .38); box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .12); }
.app-scan.is-current { background: #e6f7f0; border-color: rgba(29, 158, 117, .42); }
.app-quick {
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 15px; border-radius: 11px;
  background: linear-gradient(180deg, #3d8bf0, #1b63c9);
  color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 20px -13px rgba(27, 99, 201, .95);
  transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease);
}
.app-quick span { font-size: 15px; line-height: 1; margin-top: -1px; opacity: .85; }
.app-quick:hover {
  color: #fff; transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 14px 26px -13px rgba(27, 99, 201, 1);
}

/* ---------- 访客外壳 ---------- */
.guest-shell { display: flex; flex-direction: column; min-height: 100vh; }
.guest-shell > .wrap { flex: 1 1 auto; }
.guest-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 10px clamp(16px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(130% 220% at 4% -95%, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(102deg, #0f3f8f 0%, #1d5fc4 44%, #2a7ad9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 34px -26px rgba(10, 42, 96, .9);
}
.guest-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5) 22%, rgba(255, 255, 255, .5) 78%, transparent);
}
.guest-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: #fff; text-decoration: none; }
.guest-mark {
  width: 36px; height: 36px; flex: 0 0 36px; padding: 2px; border-radius: 50%;
  background: #fff; object-fit: contain;
  box-shadow: 0 4px 12px -4px rgba(9, 40, 88, .45), 0 0 0 1px rgba(255, 255, 255, .65);
  transition: transform .3s var(--ease);
}
.guest-brand:hover .guest-mark { transform: translateY(-1px) scale(1.03); }
.guest-brand span { min-width: 0; }
.guest-brand b { display: block; font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.32; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-brand em {
  display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guest-nav { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.guest-nav a {
  padding: 8px 13px; border-radius: 9px;
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.guest-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.guest-nav a.on {
  background: rgba(255, 255, 255, .96); color: var(--brand-deep); font-weight: 600;
  box-shadow: 0 6px 16px -11px rgba(0, 0, 0, .65);
}

/* ---------- 平板 / 手机：侧栏改为抽屉 ---------- */
@media (max-width: 1079px) {
  .side {
    width: 282px; transform: translateX(-110%);
    transition: transform .34s var(--ease);
    /* 收起时不能留投影，否则会在屏幕左缘透出一条灰边 */
    box-shadow: none;
    will-change: transform;
  }
  body.nav-open .side {
    transform: none;
    box-shadow: 24px 0 60px -34px rgba(4, 18, 42, .85);
  }
  body.nav-open { overflow: hidden; }
  .side-mask {
    display: block; position: fixed; inset: 0; z-index: 39;
    background: rgba(8, 24, 50, .46);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .main { margin-left: 0; }
  .app-menu { display: grid; }
  .appbar { min-height: 56px; }
}

@media (max-width: 720px) {
  .app-quick { padding: 0 12px; }
  .app-quick span { display: none; }
}
@media (max-width: 560px) {
  .guest-bar { padding: 9px 14px; gap: 8px; }
  .guest-brand em { display: none; }
  .guest-nav a { padding: 7px 10px; font-size: 13px; }
  /* 窄屏只留当前页名，分组名让位给标题 */
  .crumb span, .crumb i { display: none; }
  .crumb b { font-size: 16px; }
  /* 顶栏已经用当前页名做标题，正文里的大标题在手机上收起来，避免同一屏出现两次 */
  .shell-body .page-title {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
}

/* ==========================================================================
   本轮视觉打磨
   1. 卡片：白底、18px 圆角、细边框 + 一层浅投影，边界清楚，厚一点但不抢内容
   2. 纵向节奏：相邻的卡片、条带之间统一留 18–20px，两块不会糊在一起
   3. 侧栏：菜单自己滚动，账号区永远停在底部
   ========================================================================== */

/* ---------- 卡片本体 ---------- */
.card {
  background: #fff;
  border: 1px solid rgba(23, 68, 140, .105);
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(16, 42, 80, .05), 0 16px 30px -26px rgba(23, 68, 140, .38);
}
.card > h2 { font-size: 17px; margin-bottom: 14px; }
.card > h2::before { height: 16px; }
/* 卡片里再嵌一层：内层压一档底色，两层边框不会糊成一条 */
.card .card {
  background: #fbfdff;
  border-color: rgba(23, 68, 140, .085);
  box-shadow: none;
}

/* ---------- 相邻块之间的缝 ---------- */
.stats { margin-bottom: 20px; }
.pz-grid { gap: 18px; }
.msg-list { gap: 14px; }
.ct-topic { margin-bottom: 18px; }
.platform-grid { gap: 20px; }
.pager { margin-top: 20px; }

/* ---------- 统计卡：底色收干净，当前分类有一圈明确的边框 ---------- */
.stat {
  background: #fff;
  border: 1px solid rgba(23, 68, 140, .11);
  border-radius: 14px;
  padding: 15px 17px;
  box-shadow: 0 1px 2px rgba(16, 42, 80, .045), 0 10px 20px -20px rgba(23, 68, 140, .42);
}
.stat b { font-size: 26px; }
a.stat.on {
  border-color: rgba(47, 128, 237, .42);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .1), 0 10px 20px -20px rgba(23, 68, 140, .5);
}

/* ---------- 广场工具栏：我提出的 / 我参与的 ---------- */
.pz-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.pz-tools-tabs { display: flex; gap: 4px; margin-right: auto; }
.pz-tools-tabs a {
  padding: 7px 13px; border-radius: 9px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.pz-tools-tabs a:hover { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.pz-tools-tabs a.on {
  background: #fff; color: var(--brand-dark);
  border-color: rgba(47, 128, 237, .3);
  box-shadow: var(--shadow-xs);
}

/* ---------- 侧栏：菜单过长时只滚菜单 ---------- */
.side { overflow: hidden; }
.side-nav {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin-right: -6px; padding-right: 6px;
}
.side-foot { flex: 0 0 auto; }

/* ---------- 侧栏密度：菜单项多了一级，行高收一点，900px 高度下不用滚 ---------- */
.side-brand { padding-bottom: 16px; }
.side-group { margin: 12px 0 4px; }
.side-link { padding: 8px 10px; }

/* ---------- 纵向堆叠的按钮：彼此留出 14px，阴影不会把两块连成一条 ---------- */
.actions { gap: 12px; }
.bs-ops-btns { gap: 14px; }
.rv-dock-in { gap: 11px; }
.grab-dock-in { gap: 10px; }

/* ---------- 手机：统计卡收窄一档，广场工具栏里的按钮交给顶栏 ---------- */
@media (max-width: 640px) {
  .stat { padding: 12px 14px; border-radius: 12px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 12px; }
  .stats { gap: 10px; margin-bottom: 16px; }
  .pz-tools .btn { display: none; }
  .pz-tools { margin-bottom: 12px; }
}

/* 菜单比屏幕高时，底部一道渐隐提示还能往下滚 */
.side-nav.is-scroll {
  mask-image: linear-gradient(180deg, #000 calc(100% - 14px), rgba(0, 0, 0, .45));
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 14px), rgba(0, 0, 0, .45));
}
/* 侧栏再收一档，900px 高的屏幕上「管理」整组也能露出来 */
.side-link { padding: 7px 10px; font-size: 13px; }
.side-group { margin: 10px 0 3px; }
.side-brand { padding-bottom: 12px; }
/* ==========================================================================
   呈现形式 / 发布平台（v38）
   完全沿用站点既有变量与卡片语言：白→#fdfeff 渐变、--hair 描边、
   --r-m 圆角、--shadow-sm，配色取自已有的状态徽章与工种标签。
   ========================================================================== */
[hidden] { display: none !important; }

/* 蓝 = 抢题中徽章、紫 = 制作中徽章、橙 = 文案标签，都是站点原有色 */
.f-tweet   { --fc:#1f6feb; --fb:#e8f2ff; }
.f-video   { --fc:#7048e8; --fb:#f2ecff; }
.f-gallery { --fc:#c26a00; --fb:#fff2e4; }
.tag.t-tweet   { background:#e8f2ff; color:#1f6feb; }
.tag.t-video   { background:#f2ecff; color:#7048e8; }
.tag.t-gallery { background:#fff2e4; color:#c26a00; }

/* 抢题广场：形式标签沿用 .pz-tag 的胶囊；分组行沿用 .pz-slot 的蓝渐变格 */
.pz-forms { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.pz-form-tag {
  padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600;
  white-space:nowrap; background:var(--fb); color:var(--fc);
}
.pz-fslots { display:grid; gap:8px; }
.pz-frow {
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px;
  padding:8px 10px; border:1px solid #e9f1fc; border-radius:10px;
  background:linear-gradient(180deg, #f9fcff, #f5faff);
}
.pz-fname {
  padding:2px 9px; border-radius:7px; font-size:12px; font-weight:600;
  white-space:nowrap; background:var(--fb); color:var(--fc);
}
/* 工种用「名称 + 数字」而不是再套一层白框，和 .pz-label / .pz-num 一致 */
.pz-fslot {
  display:inline-flex; align-items:baseline; gap:4px; white-space:nowrap;
  font-size:12px; color:#5f7796;
}
.pz-fslot + .pz-fslot { padding-left:8px; border-left:1px dashed #dce8f8; }
.pz-fslot b {
  font-size:13.5px; font-weight:700; color:var(--brand-dark);
  font-variant-numeric:tabular-nums;
}
.pz-fslot.full b { color:var(--ok); }
.pz-fslot.skip { opacity:.55; text-decoration:line-through; }

/* 详情页按形式分组的分工卡：与 .card 同一套表面处理 */
.topic-form-tags { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.topic-form-tags .tag { padding:2px 9px; border-radius:7px; font-size:12px; font-weight:600; }
.form-slot-group {
  margin:14px 0; padding:14px 16px;
  background:linear-gradient(180deg, #fff, #fdfeff);
  border:1px solid var(--hair); border-radius:var(--r-m);
  box-shadow:var(--shadow-sm), inset 0 1px 0 #fff;
}
.form-slot-group > h3 {
  margin:0 0 10px; font-size:15px; font-weight:700; color:var(--ink);
  display:flex; align-items:center; gap:9px; letter-spacing:-.01em;
}
.form-slot-group > h3::before {
  content:""; width:3px; height:15px; border-radius:3px;
  background:linear-gradient(180deg, var(--brand-2), var(--brand) 45%, var(--accent));
}
.form-slot-group > h3 .muted { font-size:12px; font-weight:400; color:var(--muted); }
.form-slot-group .slots { margin-top:0; }

/* 提交创意页：每个形式一块淡蓝面板，面板里的工种卡改成纯白。
   三层（白卡 → 淡蓝面板 → 白小卡）靠明暗差分层，不会糊成一片；
   工种卡与下面「我负责…」之间由 .need-grid + .checks 的 16px 间隔撑开。 */
.field-block.form-need { padding:16px 18px; }
.field-block.form-need .need-col {
  border-color:var(--hair); border-radius:12px; background:#fff;
  box-shadow:0 1px 2px rgba(16, 42, 80, .05);
}
/* 「我负责 X」是可选动作，用虚线胶囊跟上面的实线白卡区分开 */
.field-block.form-need > .checks .check {
  padding:7px 13px; font-size:13px; font-weight:500;
  border-style:dashed; border-color:#c9dcf5;
  background:rgba(255, 255, 255, .72); color:var(--ink-2);
}
.field-block.form-need > .checks .check:hover { border-color:var(--brand); background:#fff; color:var(--brand-dark); }
.field-block.form-need > .checks .check:has(input:checked) {
  border-style:solid; border-color:#b7d6fb;
  background:var(--brand-soft); color:var(--brand-dark);
}

/* 发布平台：每平台一个实际标题输入框 */
.pub-titles { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px; margin-top:10px; }
.pub-title { display:flex; flex-direction:column; gap:5px; font-size:12.5px; color:var(--muted); }
.pub-title input { width:100%; }

/* v36 逐平台发送状态：一行一个平台，各自保存，互不影响 */
.pub-plat-block .hint { margin:0 0 10px; }
/* 管理卡在窄侧栏里，一行放不下 5 个控件，改成三行两列的网格 */
.pub-plat-row {
  display:grid; gap:7px 8px; margin-top:8px; padding:9px 11px;
  border:1px solid var(--hair); border-radius:10px; background:#fff;
  grid-template-columns:auto minmax(0, 1fr) auto;
  grid-template-areas:
    "name  name  name"
    "title title title"
    "sent  date  btn";
  align-items:center;
}
.pub-plat-row.on { border-color:#cfe4ff; background:linear-gradient(180deg, #fbfdff, #f7fbff); }
.pub-plat-name { grid-area:name; display:flex; white-space:nowrap; align-items:baseline; gap:6px; font-size:13px; color:var(--brand-dark); min-width:0; }
.pub-plat-name b { font-weight:700; }
.pub-plat-at { font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.pub-plat-sent { grid-area:sent; display:flex; align-items:center; gap:6px; margin:0; font-size:12.5px; color:var(--ink-2); white-space:nowrap; }
.pub-plat-row input[type=text] { grid-area:title; min-height:36px; font-size:13px; }
.pub-plat-row input[type=date] { grid-area:date; min-height:34px; font-size:12.5px; width:100%; }
.pub-plat-row .btn { grid-area:btn; justify-self:end; white-space:nowrap; }
.dock-pub-row {
  display:grid; gap:6px; margin-top:8px; padding:8px 10px;
  border:1px solid var(--hair); border-radius:10px; background:#fff;
}
.dock-pub-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:12.5px; color:var(--brand-dark); }
.dock-pub-head span { color:var(--muted); font-variant-numeric:tabular-nums; }
.dock-pub-foot { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dock-pub-foot label { display:flex; align-items:center; gap:5px; margin:0; font-size:12px; color:var(--ink-2); }
.dock-pub-foot input[type=date] { flex:1 1 110px; min-width:0; }

/* 手机底部功能条 */
.rv-dock-forms { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:7px; }
.rv-dock-forms .muted { font-size:12px; }
.rv-dock-forms .check { font-size:12px; padding:5px 11px; }
.rv-dock-pub { margin-top:7px; }
.rv-dock-pub summary { font-size:12px; color:var(--brand-dark); cursor:pointer; padding:4px 0; list-style:none; }
.rv-dock-pub summary::-webkit-details-marker { display:none; }
.rv-dock-pub summary::before { content:'\25B8  '; font-size:11px; }
.rv-dock-pub[open] summary::before { content:'\25BE  '; }
.rv-dock-pub .checks { margin:7px 0; gap:6px; }
.rv-dock-pub .pub-titles { grid-template-columns:1fr; max-height:190px; overflow:auto; }

/* 后台「发表与状态」：一行一篇选题，行尾展开逐平台明细 */
.bs-form { display:none; }

/* 批量操作条：横在列表上方，把平台多选与三个按钮并排放下 */
.bs-bar-in { display:flex; flex-wrap:wrap; gap:14px 24px; align-items:flex-start; }
.bs-bar-info { flex:1 1 260px; min-width:0; }
.bs-bar-info h3 { margin:0 0 6px; font-size:15px; font-weight:700; color:var(--brand-dark); }
.bs-bar-info h3 .muted { font-weight:400; font-size:12.5px; }
.bs-bar-info .hint { margin:0; }
.bs-bar-plat { flex:1 1 320px; min-width:0; }
.bs-bar-label { display:block; margin-bottom:7px; font-size:12.5px; color:var(--muted); }
.bs-bar-plat .checks { gap:7px; }
.bs-bar-btns {
  display:flex; flex-wrap:wrap; align-items:center; gap:9px;
  margin-top:14px; padding-top:13px; border-top:1px dashed var(--hair);
}
.bs-bar-tip { margin:0 0 0 auto; }
@media (max-width: 720px) {
  .bs-bar-tip { margin-left:0; flex-basis:100%; }
  /* 卡片模式下「实际标题」输入框要跟着卡片收缩：上面的 min-width 会把输入框顶出卡片外框 */
  .pub-table .bs-title { width:100%; min-width:0; flex:1 1 auto; }
  .pub-table td[data-label="选题与平台"], .pub-table td[data-label="实际标题"] { min-width:0; }
  /* 选题格里的平台徽章另起一行、与标题左对齐，别和标题挤在同一行 */
  .pub-table td[data-label="选题与平台"] { flex-wrap:wrap; }
  .pub-table td[data-label="选题与平台"] > a { flex:1 1 100px; min-width:0; }
  .pub-table td[data-label="选题与平台"] .pub-meta { flex:0 0 calc(100% - 86px); margin-left:86px; }
}          /* 只用来收拢表格里的勾选框与实际标题，本身不占地方 */
.bs-stats a { text-decoration:none; }
/* 类型与平台徽章收在选题格里，省掉两列宽度 */
.pub-meta { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:6px; }
.pub-meta .badge { font-size:11px; padding:2px 7px; }
.pub-meta .tag { font-size:11px; padding:2px 7px; }
.pub-toggle-cell { text-align:right; }
.pub-col-toggle { text-align:right; }
.pub-toggle { white-space:nowrap; }
@media (min-width: 721px) {
  .pub-table td[data-label="选题与平台"] { min-width:190px; }
  .pub-table td[data-label="实际标题"] { min-width:170px; }
}

/* 展开行整行铺开，不吃表格单元格的内边距 */
/* 注意：这里不能给 td 加 display:block，否则它退出表格布局，colspan 失效、整块只剩一列宽 */
table.list tr.pub-expand > td.pub-exp-cell { padding:0 0 10px; border-bottom:1px solid #eef4fc; }
table.list tr.pub-expand[hidden] { display:none; }
table.list tr.pub-expand:hover td { background:transparent; }

.pub-exp { padding:2px 2px 4px; }
.pub-exp-head { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin:2px 0 10px; font-size:13px; }
.pub-exp-head .muted { font-size:12px; }
.pub-exp-item {
  display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px;
  margin-top:8px; padding:11px 13px;
  border:1px solid var(--hair); border-radius:12px;
  background:linear-gradient(180deg, #fbfdff, #f7fbff);
}
.pub-exp-item.on { border-color:#cfe4ff; background:linear-gradient(180deg, #fbfdff, #f6faff); }
.pub-exp-name { flex:0 0 240px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:13px; color:var(--brand-dark); }
.pub-exp-name .meta { flex-basis:100%; font-size:11.5px; color:var(--muted); overflow-wrap:anywhere; }
.pub-exp-item label { flex:0 0 auto; display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--muted); }
.pub-exp-item input[type=number] { width:126px; }
.pub-exp-item input[type=date] { width:148px; }
.pub-exp-item label.pub-exp-sent {
  flex-direction:row; align-items:center; gap:7px;
  padding:8px 12px; border:1px dashed #c9dcf5; border-radius:999px;
  font-size:12.5px; color:var(--ink-2); background:rgba(255,255,255,.75); cursor:pointer;
}
.pub-exp-item label.pub-exp-sent:has(input:checked) {
  border-style:solid; border-color:#b7d6fb; background:var(--brand-soft); color:var(--brand-dark);
}
.pub-exp-act { flex:0 0 auto; margin-left:auto; display:flex; align-items:center; gap:8px; }
.pub-exp-act .meta { font-size:11px; }

@media (max-width: 640px) {
  .pub-titles { grid-template-columns:1fr; }
  .pz-frow { padding:7px 9px; }
  .form-slot-group { padding:12px; }
  .field-block { padding:15px 16px; }
  .field-block.form-need { padding:14px; }
  .field-block.form-need .need-col { padding:13px 14px; }
  .pub-plat-row input[type=date] { width:100%; }
  .pub-exp-name { flex:1 1 100%; }
  .pub-exp-item label { flex:1 1 130px; }
  .pub-exp-item input[type=number], .pub-exp-item input[type=date] { width:100%; }
  .pub-exp-item label.pub-exp-sent { flex-basis:100%; justify-content:center; }
  .pub-exp-act { flex-basis:100%; margin-left:0; justify-content:flex-end; }
  /* 展开行在窄屏是「上一张卡片的续块」，别再多切出一张卡 */
  table.list tr.pub-expand { border:0; margin:-8px 0 10px; padding:0; background:transparent; box-shadow:none; }
  table.list tr.pub-expand > td.pub-exp-cell { display:block; padding:0; border-bottom:0; }
}

/* ---------- v37：发布进度归档 / 顶部翻页 / 展开行改标题与补登平台 ---------- */
.pub-arc { margin-top:14px; padding-top:13px; border-top:1px dashed var(--hair); }
.pub-arc-label { display:block; margin-bottom:9px; font-size:13px; color:var(--ink-2); }
.pub-arc-label .muted { font-size:12px; }
.pub-arc-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.pub-arc-tab {
  display:inline-flex; align-items:center; gap:8px; padding:7px 13px;
  border:1px solid var(--line); border-radius:999px; background:#fff;
  color:var(--ink-2); font-size:13px; text-decoration:none; transition:all .18s var(--ease);
}
.pub-arc-tab b { font-size:12px; font-variant-numeric:tabular-nums; color:var(--brand-dark); }
.pub-arc-tab:hover { border-color:#b7d6fb; background:var(--brand-soft); }
.pub-arc-tab.on { border-color:var(--brand); background:var(--brand); color:#fff; font-weight:500; }
.pub-arc-tab.on b { color:#fff; }

.pub-pager-top {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  margin:12px 0 4px; padding:10px 12px;
  border:1px solid var(--hair); border-radius:12px; background:linear-gradient(180deg,#fbfdff,#f7fbff);
}
.pub-pager-top .btn.sm { min-height:38px; padding:7px 14px; }
.pub-pager-top .btn.off { opacity:.45; pointer-events:none; }
.pub-pager-info { font-size:13px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.pub-pager-info b { color:var(--brand-dark); font-size:15px; }
.pub-pager-size { display:flex; align-items:center; gap:7px; margin-left:auto; font-size:12.5px; color:var(--muted); }
.pub-pager-size select { min-width:76px; }

.pub-exp-name-top { flex:0 0 100%; display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.pub-exp-title { flex:0 0 100%; display:flex; flex-direction:column; gap:4px; font-size:11.5px; color:var(--muted); }
.pub-exp-title input { width:100%; min-width:0; font-size:13px; }
.pub-exp-name .meta { display:none; }

.pub-add-plat {
  margin-top:12px; padding:12px 14px;
  border:1px dashed #c9dcf5; border-radius:12px; background:rgba(255,255,255,.78);
}
.pub-add-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:9px; font-size:13px; color:var(--brand-dark); }
.pub-add-head .muted { font-size:12px; }
.pub-add-checks { gap:7px; margin-bottom:10px; }
.pub-add-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px; }
.pub-add-row > label { display:flex; flex-direction:column; gap:5px; font-size:12px; color:var(--muted); }
.pub-add-row input[type=text] { width:230px; max-width:100%; }
.pub-add-row input[type=date] { width:150px; }
.pub-add-row label.check { flex-direction:row; align-items:center; gap:7px; padding:8px 12px;
  border:1px dashed #c9dcf5; border-radius:999px; font-size:12.5px; color:var(--ink-2); background:rgba(255,255,255,.75); }
.pub-add-plat .hint { margin:9px 0 0; }

/* 后台「发布平台」管理页 */
.pp-rules { margin:10px 0 0; padding-left:20px; font-size:12.5px; line-height:1.75; }
.pp-add { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 14px; }
.pp-add > label { display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:var(--muted); }
.pp-add input[type=text] { width:170px; }
.pp-add input[type=number] { width:92px; }
.pp-add select { min-width:160px; }
.pp-add-form .hint { margin:10px 0 0; }
.pp-table td { vertical-align:middle; }
.pp-table .pp-input { width:170px; max-width:100%; }
.pp-table .pp-sort { width:84px; }
.pp-table code { font-size:12px; color:var(--brand-dark); background:var(--brand-soft); padding:2px 6px; border-radius:6px; }

@media (max-width: 640px) {
  /* 手机上两个大翻页按钮并排，页码与每页条数各占一行，少滚半屏 */
  .pub-pager-top { gap:8px; }
  .pub-pager-top .btn.sm { flex:1 1 0; min-width:0; text-align:center; }
  .pub-pager-info { order:3; flex:1 1 100%; text-align:center; }
  .pub-pager-size { order:4; margin-left:0; flex-basis:100%; }
  .pub-arc-tab { padding:7px 11px; font-size:12.5px; }
  .pub-add-row input[type=text] { width:100%; }
  .pub-add-row > label { flex:1 1 100%; }
  .pub-add-row label.check { flex:1 1 100%; justify-content:center; }
  .pub-exp-title input { font-size:16px; }
  .pp-add > label, .pp-add .btn { flex:1 1 100%; }
  .pp-add input[type=text], .pp-add input[type=number], .pp-add select { width:100%; }
  .pp-table .pp-input { width:100%; }
}

/* 监督任务的形式标签（v38：一篇多形式、按形式分工） */
.sv-form {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 9px; border-radius: 999px;
  background: #eaf3ff; color: #2563a8; border: 1px solid #cfe4fb;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pz-slots.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pz-head .sv-form { margin-left: auto; }

/* ==========================================================================
   v39：同一形式下几个平台同一天发出 —— 一次勾选、一个日期、一次标完
   ========================================================================== */
.pub-quick {
  margin:2px 0 12px; padding:11px 13px;
  border:1px solid #cfe4fb; border-radius:12px;
  background:linear-gradient(180deg, #f7fbff, #f2f8ff);
}
.pub-quick-head { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin-bottom:9px; font-size:13px; color:var(--brand-dark); }
.pub-quick-head .muted { font-size:12px; }
.pub-quick-row {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  padding:8px 0; border-top:1px dashed #dbe9fb;
}
.pub-quick-row:first-of-type { border-top:0; }
.pub-quick-checks { gap:6px 14px; }
.pub-quick-at { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); white-space:nowrap; }
.pub-quick-at input[type=date] { width:148px; }
.pub-quick-row .btn { margin-left:auto; }
/* 列表里的「已发 1/4」小标：全发完才变绿，避免和状态徽章混为一谈 */
.pub-sent-n {
  display:inline-block; margin-left:6px; padding:1px 7px;
  border-radius:999px; background:#fff3e2; color:#b45309;
  font-size:11.5px; font-weight:600; font-variant-numeric:tabular-nums;
}
.pub-sent-n.on { background:#e7f7ee; color:var(--ok); }

@media (max-width: 640px) {
  .pub-quick { padding:10px 11px; }
  .pub-quick-row { gap:7px; }
  .pub-quick-row .tag { flex:0 0 auto; }
  .pub-quick-checks { flex:1 1 100%; }
  .pub-quick-at { flex:1 1 100%; }
  .pub-quick-at input[type=date] { flex:1 1 auto; width:auto; }
  .pub-quick-row .btn { flex:1 1 100%; margin-left:0; }
}

/* ---------- 稿酬管理：视频 / 图文的固定稿费池 ---------- */
/* 两个池子并排，窄屏自动堆成一列；内部一律 minmax(0,1fr) 防止长选题名把卡片撑破 */
.pool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pool-box {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fbfdff;
}
.pool-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pool-head h3 { margin: 0; font-size: 15px; }
.pool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: end; }
.pool-fields label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: #5f7796; }
.pool-fields input { width: 100%; min-width: 0; }
.pool-fields .btn { width: 100%; min-height: 36px; }
.pool-fields input[type=month] { min-width: 0; padding-right: 6px; }
.pool-sum { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.pool-sum b { color: var(--ink); font-weight: 700; }
/* 「分给谁」一列：一行一个人，金额右对齐，桌面上不会挤成一片 */
.pool-alloc { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.pool-person { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.pool-person b { font-weight: 700; color: var(--ink); }
.pool-person i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pool-person em { font-style: normal; margin-left: auto; font-weight: 700; color: var(--brand-dark); }
.bonus-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
@media (max-width: 860px) {
  .pool-grid { grid-template-columns: 1fr; }
  .pool-alloc { min-width: 0; }
  .pool-person { white-space: normal; }
}

/* ---------- 选题广场：按呈现形式筛选 ---------- */
/* 一行胶囊，放不下自动换行；数字用小徽章，视觉上不会和形式名挤在一起 */
.pz-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.pz-filter-title { margin-right: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.pz-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; min-height: 32px;
  border: 1px solid var(--line-strong); background: #fff;
  color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.pz-chip:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow-xs); }
.pz-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pz-chip-n {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px;
  background: rgba(47, 128, 237, .1); color: var(--brand-dark);
  font-size: 11.5px; font-weight: 700; text-align: center; line-height: 17px;
}
.pz-chip.on .pz-chip-n { background: rgba(255, 255, 255, .28); color: #fff; }
.pz-filter-note { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .pz-filter { gap: 6px; }
  .pz-chip { padding: 5px 10px; font-size: 12.5px; }
  .pz-filter-title { flex: 1 1 100%; margin-bottom: 2px; }
}

/* ==========================================================================
   微博工作模块（v42）：词条管理 / 提交话题 / 话题审核 / 话题发布
   沿用上方的设计变量；一律用 minmax(0,1fr)，长词条名、长文案都不会把卡片撑破
   ========================================================================== */

/* ---------- 词条管理 ---------- */
.wb-terms { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
/* 7 列：批量勾选 / 词条名 / 开关 / 人数 / 进度 / 保存 / 删除。后两列写死宽度，
   表头和数据行才会严格对齐（auto 列会因内容宽度不同而整体错位） */
.wb-term-head,
.wb-term-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.6fr) 120px 136px minmax(110px, auto) 56px 56px;
  align-items: center; gap: 10px 12px;
}
.wb-term-main > .btn,
.wb-term-del .btn { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; }
.wb-term-head {
  padding: 0 13px 2px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); text-transform: none;
}
.wb-term-row {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: #fbfdff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.wb-term-row:hover { border-color: #cfe2f8; background: #fff; box-shadow: var(--shadow-xs); }
/* 表单外壳不参与布局，让 4 个格子跟表头对齐；隐藏域本身不生成盒子 */
.wb-term-main { display: contents; }
.wb-term-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wb-term-name input { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.wb-tag {
  flex: 0 0 auto; padding: 1px 7px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap;
}
.wb-tag.custom { background: #fff4e6; color: #a86413; }

/* 本周开关：勾上变成品牌色，一眼看出哪些在收 */
.wb-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.wb-switch input { margin: 0; width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.wb-switch:has(input:checked) {
  background: var(--brand-soft); border-color: #bcd8f8; color: var(--brand-dark);
}
.wb-need {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.wb-need input { width: 56px; min-width: 0; padding: 5px 6px; text-align: center; }
.wb-term-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.wb-term-stat b { font-weight: 700; color: var(--ink); }
.wb-term-stat b.ok { color: var(--ok); }
.wb-term-stat i { font-style: normal; font-size: 11.5px; }
.wb-term-del { display: flex; justify-content: flex-end; }

.wb-sub {
  margin: 18px 0 2px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.wb-newform {
  display: grid; grid-template-columns: minmax(0, 1.8fr) 140px 150px auto;
  gap: 12px; align-items: end;
  margin-top: 10px; padding: 14px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: #f9fbfe;
}
.wb-newform label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 600; color: #5f7796; }
.wb-newform input, .wb-newform select { width: 100%; min-width: 0; }
.wb-newform .btn { min-height: 38px; white-space: nowrap; }

/* 本周设置一览：部员看到的顺序预览 */
.wb-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.wb-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 12.5px; color: var(--ink-2);
}
.wb-chip b { font-weight: 700; color: var(--ink); }
.wb-chip em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.wb-chip i {
  font-style: normal; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 700;
}
.wb-chip.full { background: #f7fafd; border-style: dashed; }
.wb-chip.full b { color: var(--muted); }
.wb-chip.full i { background: #eef2f7; color: var(--muted); }
.wb-weekoff { margin-top: 12px; }

/* ---------- 提交话题：词条选择 ---------- */
.wb-term-pick {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 10px; margin-top: 10px;
}
.wb-pick {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  gap: 2px 9px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fff;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.wb-pick:hover { border-color: #bcd8f8; box-shadow: var(--shadow-xs); }
.wb-pick input[type=radio] { grid-column: 1; grid-row: 1; margin: 3px 0 0; accent-color: var(--brand); }
.wb-pick b {
  grid-column: 2; font-size: 13.5px; font-weight: 700; color: var(--ink);
  overflow-wrap: anywhere;
}
.wb-pick em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.wb-pick i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--brand-dark); }
.wb-pick i.ok { color: var(--warn); }
/* 「已收 x / y」和「还缺 n 条」排同一行，放不下再折行，卡片高度不会翻倍 */
.wb-pick-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; min-width: 0; }
.wb-pick.full { background: #f9fbfe; border-style: dashed; }
.wb-pick.full b { color: var(--ink-2); }
.wb-pick.on {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .14);
}
.wb-pick.on b { color: var(--brand-deep); }
.wb-pick.off { background: #f7f9fc; border-style: dashed; }
.wb-term-pick.small { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px; margin: 0 0 12px; }
.wb-term-pick.small .wb-pick { padding: 7px 10px; }
.wb-term-pick.small .wb-pick b { font-size: 12.5px; }

/* 本周没开收集的词条：默认折叠，点开才能选 */
.wb-off {
  margin-top: 12px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: #f9fbfe;
}
.wb-off summary {
  padding: 10px 0; cursor: pointer; list-style-position: inside;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.wb-off summary:hover { color: var(--brand-dark); }
.wb-off[open] { padding-bottom: 4px; }

/* 自定义词条一行：单选框 + 说明 + 输入框 */
.wb-custom {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center;
  gap: 9px; margin: 14px 0 0; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-s); background: #f9fbfe;
  font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.wb-custom input[type=radio] { margin: 0; accent-color: var(--brand); }
.wb-custom-name { min-width: 0; width: 100%; }

/* form.stack label 的通用规则（display:block / margin:16px 0 7px）优先级更高，
   这里显式覆盖回来，否则卡片会被压成一行流式排版 */
form.stack .wb-pick { display: grid; margin: 0; }
form.stack .wb-custom { display: grid; margin: 14px 0 0; }
form.stack .wb-delimg { display: flex; margin: 0; }
form.stack .wb-review-grid > label { margin: 0; }

/* 修改时的删图：勾选框压在缩略图下面 */
.wb-delimg span { font-size: 11.5px; color: var(--ink-2); cursor: pointer; }
.wb-delimg span input { margin: 0 3px 0 0; accent-color: var(--danger); }
.alert-txt { margin-top: 3px; font-size: 11.5px; color: var(--danger); }

/* ---------- 话题审核 ---------- */
.wb-review h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 审核卡片的删除行：和上面的审核表单隔一条虚线，免得手滑点到 */
.wb-review-del { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.wb-review-del .meta { margin: 0; font-size: 12px; }
.wb-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wb-review-grid > label { margin: 0; }
.wb-review-grid input, .wb-review-grid select { width: 100%; min-width: 0; }

/* ---------- 话题发布：卡片 ---------------------------- */
.wb-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(336px, 1fr));
  gap: 16px; align-items: stretch;
}
.wb-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 16px 16px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.wb-card:hover { box-shadow: var(--shadow); border-color: #cfe2f8; transform: translateY(-1px); }
.wb-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.wb-card-head .badge { flex: 0 1 auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wb-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; text-align: right; }
.wb-card-meta b { font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.wb-card-meta em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.wb-card-copy {
  margin: 0; max-height: 168px; overflow: auto;
  font-size: 13.5px; line-height: 1.72; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.wb-card .thumbs { margin-top: 0; }
.wb-card .thumb-link { width: 92px; height: 92px; border-radius: 10px; }
.wb-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.wb-card-foot .meta { font-size: 11.5px; color: var(--muted); min-width: 0; }
.wb-card-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wb-pub { min-height: 36px; box-shadow: 0 8px 18px -12px rgba(23, 68, 140, .5); }
/* 点过之后留在原地，淡化 + 按钮变灰，避免重复点 */
.wb-card.is-sent { opacity: .66; border-style: dashed; box-shadow: none; }
.wb-card.is-sent:hover { transform: none; }
.wb-card.is-sent .wb-pub { background: #eef2f7; color: var(--muted); box-shadow: none; cursor: default; }

/* 底部提示条：复制 + 下载 + 归档的结果都在这儿说 */
.wb-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80;
  max-width: min(580px, calc(100vw - 32px));
  padding: 11px 18px; border-radius: var(--r-m);
  background: linear-gradient(120deg, #10305e, #1b4b86); color: #fff;
  font-size: 13px; line-height: 1.6; box-shadow: var(--shadow-lift);
  transform: translateX(-50%);
  animation: wbToastIn .24s var(--ease);
}
.wb-toast b { color: #fff; }
.wb-toast.err { background: linear-gradient(120deg, #8f2424, #b93a3a); }
@keyframes wbToastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 稿酬页：微博池子横跨整行，四个字段并排 */
.pool-box.wide { grid-column: 1 / -1; }
.pool-box.wide .pool-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 860px) {
  /* 词条清单：表头收起，每行竖排成一张小卡 */
  .wb-term-head { display: none; }
  .wb-term-row { display: block; padding: 12px; }
  .wb-term-main { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; align-items: center; }
  .wb-term-main .btn { justify-self: end; }
  .wb-term-name { grid-column: 1 / -1; }
  .wb-term-stat { grid-column: 1 / -1; }
  .wb-term-del { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
  .wb-newform { grid-template-columns: 1fr 1fr; }
  .wb-newform label:first-of-type { grid-column: 1 / -1; }
  .wb-newform .btn { grid-column: 1 / -1; }
  .wb-review-grid { grid-template-columns: 1fr; }
  .wb-cards { grid-template-columns: 1fr; }
  .pool-box.wide .pool-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* 手机上两列并排、保存按钮单独占一行，比全部堆成一列短一半 */
  .wb-term-main .btn { grid-column: 1 / -1; justify-self: stretch; }
  .wb-term-pick { grid-template-columns: 1fr; }
  .wb-custom { grid-template-columns: auto minmax(0, 1fr); }
  .wb-custom > span { grid-column: 2; }
  .wb-custom-name { grid-column: 1 / -1; }
  .wb-chip { width: 100%; justify-content: space-between; }
  .wb-cards { gap: 12px; }
  .wb-card { padding: 13px; }
  .wb-card .thumb-link { width: calc(33.333% - 7px); height: 82px; }
  .wb-card-foot { gap: 8px; }
  .wb-card-acts { width: 100%; margin-left: 0; }
  .wb-card-acts .btn { flex: 1 1 auto; }
  .wb-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; transform: none; }
  @keyframes wbToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .pool-box.wide .pool-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   v45：图文的「文案」「摄影」从推文里拆成独立工种
   —— 直接录入按形式分框、分工列按形式分组、催办按形式打标、
      两张统计表按形式分组表头
   ============================================================ */

/* 直接录入：每种呈现形式一个框。框头是一条带形式色的浅色标题栏，
   一眼看出「这一段是推文的工种」「这一段是图文的工种」，不会糊成一片 */
.entry-form-group {
  margin-top: 14px; padding: 0 16px 16px;
  border: 1px solid var(--hair); border-radius: var(--r-m);
  background: var(--fsoft, #f8fbff);
  box-shadow: 0 1px 2px rgba(26, 74, 145, .05);
}
.entry-form-group[data-form-group="tweet"]   { --fb: #e8f2ff; --fc: #1f6feb; --fsoft: #f7fbff; }
.entry-form-group[data-form-group="video"]   { --fb: #e6f8ef; --fc: #0f8a5f; --fsoft: #f6fcf9; }
.entry-form-group[data-form-group="gallery"] { --fb: #fff2e4; --fc: #c26a00; --fsoft: #fffcf7; }
.entry-form-group + .entry-form-group { margin-top: 12px; }
.entry-form-group[hidden] { display: none; }
.efg-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 -16px 13px; padding: 9px 16px;
  border-bottom: 1px solid var(--hair);
  border-radius: var(--r-m) var(--r-m) 0 0;
  background: linear-gradient(90deg, var(--fb, #f4f8ff) 0%, #fff 74%);
}
.efg-head .tag { padding: 2px 10px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.efg-tip { font-size: 12px; color: var(--muted); }
.entry-form-group .entry-grid { margin-top: 0; }
.entry-form-group .entry-grid > div[hidden] { display: none; }

/* 直接录入列表的「参与分工」列：一行一种形式，形式标签沿用推文/视频/图文的配色 */
.entry-team { display: grid; gap: 5px; }
.et-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; line-height: 1.7; }
.et-form {
  flex: 0 0 auto; padding: 1px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700;
  background: var(--fb, #eef4ff); color: var(--fc, #2f5fa8);
}
.et-slots { color: var(--ink-2); }
.et-slots b { color: var(--ink); font-weight: 600; margin-right: 3px; }
.et-slots i { color: var(--line-strong); font-style: normal; margin: 0 6px; }

/* 待催办：每种形式一个小胶囊，未催的橙色、已催的绿色 */
.rem-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rem-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px;
  background: #fff6e8; color: #a26500; border: 1px solid #f2d38a;
}
.rem-chip b { font-weight: 700; }
.rem-chip.ok { background: #eefaf3; color: #0f7a52; border-color: #bfe6d3; }

/* 上限设置 / 催办天数：按形式分列，每列一个工种或一种形式 */
.need-grid.cap-grid, .need-grid.rem-form-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.need-grid.cap-grid .need-col > h3, .need-grid.rem-form-grid .need-col > h3 {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}

/* 按形式分组表头的表格：第一行是形式（合并三列、四列），第二行是工种 */
table.list thead th[colspan] {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); background: #f6faff; border-bottom: 1px solid var(--hair);
}
table.list thead tr:nth-child(2) th { font-size: 12px; font-weight: 600; color: var(--ink-2); }
table.list thead th[rowspan] { vertical-align: middle; }

/* 稿酬页里那句「总额在哪填」的说明卡，压得比正式卡片轻一点 */
.card.flat-note {
  background: linear-gradient(180deg, #f9fbff, #f4f9ff);
  border-color: #dbe9fb; box-shadow: none;
}
.card.flat-note h2 { font-size: 16px; }

@media (max-width: 720px) {
  .entry-form-group { padding: 0 13px 14px; }
  .entry-form-group + .entry-form-group { margin-top: 10px; }
  .efg-head { margin: 0 -13px 11px; padding: 8px 13px; }
  .entry-team { min-width: 0; }
  .et-row { font-size: 12.5px; }
  .need-grid.cap-grid, .need-grid.rem-form-grid { grid-template-columns: 1fr; }
  table.list thead th[colspan] { display: none; }
  /* 按形式确认完成：手机上按钮独占一行，别和形式名挤成一团。
     这两个选择器必须带 form：form.inline 是 inline-flex，权重比 .sv-done-btn 高 */
  .sv-done-list li { padding: 9px 11px; }
  .sv-done-who { flex: 1 1 auto; }
  form.sv-done-btn { display: block; margin-left: 0; width: 100%; }
  form.sv-done-btn .btn { width: 100%; }
}

/* ==========================================================================
   v47：发布平台按呈现形式分组 —— 一种形式一块，归档按形式分档
   —— 详情页管理操作、后台批量条、后台逐平台明细、手机底部条四处同口径
   ========================================================================== */

/* 详情页「发布平台与发送状态」：一种形式一个框，框头带形式色，
   和「直接录入」「按形式确认完成」保持同一套视觉，一眼看出这一段属于哪种形式 */
.pub-form-group {
  margin-top: 12px; padding: 0 13px 13px;
  border: 1px solid var(--hair); border-radius: var(--r-m);
  background: var(--fsoft, #f8fbff);
}
.pub-form-group[data-form-group="tweet"]   { --fb: #e8f2ff; --fc: #1f6feb; --fsoft: #f7fbff; }
.pub-form-group[data-form-group="video"]   { --fb: #f2ecff; --fc: #7048e8; --fsoft: #fbf8ff; }
.pub-form-group[data-form-group="gallery"] { --fb: #fff2e4; --fc: #c26a00; --fsoft: #fffcf7; }
.pub-form-group[data-form-group="legacy"]  { --fb: #eef1f6; --fc: #55637a; --fsoft: #f9fafc; }
.pub-form-group + .pub-form-group { margin-top: 10px; }
.pfg-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 -13px 10px; padding: 8px 13px;
  border-bottom: 1px solid var(--hair);
  border-radius: var(--r-m) var(--r-m) 0 0;
  background: linear-gradient(90deg, var(--fb, #f4f8ff) 0%, #fff 78%);
}
.pfg-head .tag { padding: 2px 10px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.pfg-state { font-size: 12.5px; color: var(--muted); }
.pfg-state.ok { color: var(--ok, #0f8a5f); font-weight: 600; }
/* 组里的平台行统一白底，别和形式底色叠成两层灰 */
.pub-form-group .pub-plat-row { background: #fff; }

/* 「这一形式一起发」：勾平台 + 一个日期 + 一次标完，排在组内最后一行 */
.pfg-quick {
  display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed #dfe6f2;
}
.pfg-quick-label { font-size: 12.5px; font-weight: 600; color: var(--fc, #2f5fa8); white-space: nowrap; }
.pfg-quick .checks { gap: 6px 12px; }
.pfg-quick > input[type=text] { flex: 1 1 200px; min-width: 0; min-height: 34px; font-size: 13px; }
.pfg-quick-at { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pfg-quick-at input[type=date] { width: 140px; min-height: 34px; font-size: 12.5px; }
.pfg-quick .btn { flex: 1 1 130px; white-space: nowrap; }

/* 后台批量条：平台勾选也按形式分三行，别一整排混着点 */
.bs-plat-groups { display: flex; flex-direction: column; gap: 8px; }
.bs-plat-group { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; }
.bs-plat-group > .tag {
  flex: 0 0 auto; margin-top: 3px; padding: 1px 9px;
  border-radius: 7px; font-size: 11.5px; font-weight: 700;
}
.bs-plat-group .checks { flex: 1 1 auto; gap: 7px; }

/* 后台逐平台明细：形式小标题插在每套平台前面 */
.pub-exp-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; padding: 0 2px; font-size: 12.5px; }
.pub-exp-group:first-of-type { margin-top: 4px; }
.pub-exp-group .tag { padding: 1px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.pub-exp-group .muted { font-size: 12px; }

/* 手机底部功能条里的形式小标题 */
.dock-pub-group { display: flex; align-items: center; gap: 7px; margin: 10px 0 2px; }
.dock-pub-group:first-of-type { margin-top: 6px; }
.dock-pub-group .tag { padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }

/* ==========================================================================
   v49：单独一种形式「无需发布」—— 暖色虚线表示「这块不做，但钱和分照算」
   —— 详情页形式框、手机底部条、后台展开区三处同一套语言
   ========================================================================== */
.pfg-state.nopub {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  background: #fdf1dd; border: 1px solid #f1dcb9;
  color: #9a6206; font-size: 12px; font-weight: 700;
}
.pfg-state.nopub::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #dfa03c; box-shadow: 0 0 0 2px rgba(223, 160, 60, .18);
}
/* 框头右侧那颗「这一形式无需发布 / 取消」—— 一条 inline form，别撑成一整行 */
.pfg-nopub-form { display: inline-flex; align-items: center; margin: 0; }
.pfg-nopub-form .btn { min-height: 28px; padding: 3px 10px; font-size: 12px; border-radius: 8px; }
.pfg-nopub-form .btn.gray { background: #fffaf1; border-color: #f0dcbd; color: #96610b; }
.pfg-nopub-form .btn.gray:hover { background: #fdf3e2; border-color: #e6cb9f; color: #7d4f05; }

/* 说明条：钱走哪个池、分按哪一档，写清楚，办公室不用去问人 */
.pfg-nopub-note {
  margin: 9px 0 0; padding: 7px 10px;
  border-radius: var(--r-xs);
  background: #fff9ee; border: 1px dashed #f1dcb9;
  color: #8a5710; font-size: 12px; line-height: 1.6;
  overflow-wrap: anywhere;
}
/* 塞在框头 / 形式小标题里的那种，压成一行小标签 */
.pfg-head .pfg-nopub-note,
.pub-exp-group .pfg-nopub-note,
.dock-pub-group .pfg-nopub-note {
  margin: 0; padding: 2px 8px; border-style: solid;
  background: #fdf1dd; color: #8a5710; font-size: 11.5px; line-height: 1.5;
}

/* 整块形式框：虚线边 + 暖底，和「正常要发」的实线蓝底一眼分开 */
.pub-form-group.is-nopub {
  border-style: dashed; border-color: #f0d5ac;
  background: linear-gradient(180deg, #fffaf2 0%, #fffdf9 100%);
}
.pub-form-group.is-nopub .pfg-head {
  background: linear-gradient(90deg, #fdf0da 0%, #fffdf9 78%);
  border-bottom-color: #f3e2c8;
}
.pub-form-group.is-nopub .pub-plat-row { background: #fffdf9; }

/* 后台展开区的形式小标题：标了无需发布就把整行圈起来 */
.pub-exp-group.is-nopub {
  padding: 6px 9px; border-radius: 9px;
  border: 1px dashed #f0d5ac; background: #fffaf2;
}
.pub-exp-group.is-nopub .muted { color: #96610b; }

/* 手机底部功能条：同一块形式也圈一下 */
.dock-pub-group.is-nopub {
  padding: 4px 8px; border-radius: 9px;
  border: 1px dashed #f0d5ac; background: #fffaf2;
}

@media (max-width: 720px) {
  .pub-form-group { padding: 0 11px 11px; }
  .pfg-head { margin: 0 -11px 9px; padding: 8px 11px; }
  /* 手机上「一起发」一行放不下四个控件，拆成：勾选 / 标题 / 日期 / 按钮各占一行 */
  .pfg-quick { gap: 8px; }
  .pfg-quick .checks { flex: 1 1 100%; }
  .pfg-quick > input[type=text] { flex: 1 1 100%; }
  .pfg-quick-at { flex: 1 1 100%; }
  .pfg-quick-at input[type=date] { flex: 1 1 auto; width: auto; }
  .pfg-quick .btn { flex: 1 1 100%; }
  .bs-plat-group > .tag { margin-top: 0; }
  .bs-plat-group .checks { flex-basis: 100%; }
  /* 形式框头在窄屏会换行：说明条独占一行，按钮别被挤成指甲盖 */
  .pfg-head .pfg-nopub-note { flex: 1 1 100%; }
  .pfg-nopub-form .btn { min-height: 30px; padding: 4px 12px; }
  .pub-exp-group.is-nopub .pfg-nopub-form { flex: 1 1 100%; }
  .pub-exp-group.is-nopub .pfg-nopub-form .btn { width: 100%; }
}


/* v47a 部署自检提示：只上传了部分文件时，页面顶部给一条明确的补文件说明，
   不要整页白屏。刻意用暖红，和普通提示区分开。 */
.card.deploy-warn {
  margin-bottom: 12px; border-color: #f2c9c0;
  background: linear-gradient(180deg, #fff8f6, #fffdfc);
}
.card.deploy-warn h2 { font-size: 15.5px; color: #a33b26; }
.card.deploy-warn p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.card.deploy-warn .hint { color: var(--muted); font-size: 12.5px; }

/* v48 录入页：平台名称后面跟一个「这篇在它上面算哪种形式」的小下拉。
   公众号 / 抖音 / 小红书既能发视频也能发图文，光靠平台推不出来了，得人指一下。
   下拉放在药丸外面：并进药丸里会把平台名挤成竖排。 */
.plat-row { display: inline-flex; align-items: center; gap: 6px; }
.plat-row[hidden] { display: none; }
.plat-check { white-space: nowrap; }
.plat-form-sel {
  height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); background: #fff; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.plat-form-sel:hover { border-color: #bcd8f8; background: #f9fcff; }
.plat-form-sel[hidden] { display: none; }
@media (max-width: 720px) {
  .plat-row { flex-wrap: wrap; }
  .plat-form-sel { height: 32px; }
}

/* v48：同一个平台被别的形式先登记走了。这一格不给人填，只说明为什么填不了，
   所以画成灰底虚线、控件全部退掉，读起来像一句提示而不是一个坏掉的表单。 */
.pub-plat-row.is-blocked,
.dock-pub-row.is-blocked {
  border-style: dashed;
  background: #fafbfc;
  color: var(--muted);
}
.pub-plat-row.is-blocked .pub-plat-name { color: var(--muted); }
.pub-plat-note {
  grid-area: title;
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a06a20;
  background: #fffaf0;
  border: 1px solid #f4e2c2;
  border-radius: 8px;
  padding: 7px 9px;
  white-space: normal;
}
.dock-pub-row.is-blocked .pub-plat-note { grid-area: auto; padding: 6px 8px; font-size: 12px; }
.dock-pub-row.is-blocked .dock-pub-head { color: var(--muted); }

/* v48 平台管理：能发哪几种形式改成多选复选框 */
.pp-forms { display: grid; gap: 6px; grid-column: 1 / -1; }
.pp-forms-label { font-size: 12.5px; color: var(--ink-2); }
.pp-forms-label .muted { font-weight: 400; }
.pp-forms-cell { gap: 6px 12px; }
.pp-forms-cell .check { font-size: 12.5px; white-space: nowrap; }

/* ===== v50 开放接口（后台「开放接口」页） ===== */
.api-url { font-size: 13px; word-break: break-all; }
.api-num { max-width: 140px; }
.api-new { gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.api-new input[type="text"] { flex: 1 1 260px; min-width: 180px; }
.api-empty { padding: 14px 2px 4px; }

/* Key / Secret 这类要照抄的长串：等宽、可折行、不撑破表格 */
.api-k, .api-secret code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .2px; word-break: break-all;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 2px 6px; border-radius: 6px; display: inline-block; max-width: 260px;
}
.api-secret { display: inline-block; }
.api-secret summary {
  cursor: pointer; font-size: 12.5px; color: var(--ink-2);
  list-style: none; padding: 2px 8px; border: 1px dashed var(--line);
  border-radius: 6px; background: #fff; white-space: nowrap;
}
.api-secret summary::-webkit-details-marker { display: none; }
.api-secret summary:hover { border-color: var(--brand); color: var(--brand-dark); }
.api-secret[open] summary { margin-bottom: 6px; }

.api-ops { display: flex; gap: 6px; flex-wrap: wrap; }

/* 接口一览：方法那列窄一点，地址那列允许折行 */
.api-api-table th:nth-child(1), .api-api-table td:nth-child(1) { white-space: nowrap; }
.api-api-table th:nth-child(2), .api-api-table td:nth-child(2) { width: 64px; }
.api-api-table code { font-size: 12px; word-break: break-all; }

/* 调用示例折叠块 */
.api-fold { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.api-fold > summary {
  cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600;
  color: var(--ink); list-style: none;
}
.api-fold > summary::-webkit-details-marker { display: none; }
.api-fold > summary::before {
  content: '▸'; display: inline-block; margin-right: 8px; color: var(--brand);
  transition: transform .15s ease;
}
.api-fold[open] > summary::before { transform: rotate(90deg); }
.api-fold[open] > summary { border-bottom: 1px solid var(--line); }
.api-fold-in { padding: 4px 14px 16px; }
.api-fold-in h3 { font-size: 13.5px; margin: 16px 0 8px; color: var(--ink); }
.api-fold-in h3:first-child { margin-top: 10px; }
.api-code {
  margin: 6px 0 10px; padding: 12px 14px; overflow-x: auto;
  background: #0f172a0d; border: 1px solid var(--line); border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; color: #1f2937;
  white-space: pre; tab-size: 2;
}

/* 日志：状态码 + 错误码 + 一句人话 */
.api-log-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--ink-2); margin-left: 4px;
}
.api-log-msg { display: block; font-size: 12px; margin-top: 2px; }

@media (max-width: 720px) {
  .api-k, .api-secret code { max-width: 100%; }
  .api-new input[type="text"] { flex: 1 1 100%; }
  .api-code { font-size: 12px; padding: 10px 12px; }
  .api-api-table th:nth-child(2), .api-api-table td:nth-child(2) { width: auto; }
}

/* v50 微调：表格列宽与「调用情况」两行小字 */
.api-api-table th:first-child, .api-api-table td:first-child { white-space: nowrap; min-width: 4.8em; }
.api-api-table th:nth-child(3), .api-api-table td:nth-child(3) { white-space: nowrap; }
.api-k { white-space: nowrap; font-size: 11px; letter-spacing: 0; max-width: none; }
.api-stat-last { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.api-stat-sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.api-key-table th, .api-key-table td { vertical-align: middle; }
@media (max-width: 720px) {
  .api-k { white-space: normal; }
  .api-stat-last, .api-stat-sub { white-space: normal; }
  .api-api-table th:nth-child(3), .api-api-table td:nth-child(3) { white-space: normal; }
}
.api-stat { display: block; }

/* ==========================================================================
   v51 · 会议签到
   学生端（我的签到码）与扫码端（扫码签到）都是手机优先：
   一屏之内放下会议信息、码、我是谁，手指够得着，不横向滚动。
   ========================================================================== */

/* ---------- 学生端：我的签到码 ---------- */
.mt-body .wrap { max-width: 520px; }

.mt-empty {
  text-align: center;
  padding: 38px 24px 30px;
}
.mt-empty-ico {
  width: 62px; height: 62px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 20px;
  color: var(--brand);
  background: linear-gradient(160deg, #eef5ff, #e4efff);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .12);
}
.mt-empty h2 { margin: 0 0 8px; font-size: 19px; }
.mt-empty p { margin: 0 auto 18px; max-width: 34em; }

.mt-switch {
  display: flex; gap: 6px; padding: 5px;
  margin-bottom: 14px;
  background: #eef4fc;
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mt-switch::-webkit-scrollbar { display: none; }
.mt-tab {
  flex: 0 0 auto;
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.mt-tab:hover { color: var(--brand-dark); }
.mt-tab.on {
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 42, 80, .06), 0 6px 14px -10px rgba(23, 68, 140, .5);
}

.mt-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 20px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mt-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--accent));
}
.mt-card[hidden] { display: none; }

.mt-head { text-align: center; }
.mt-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
}
.mt-head h1 {
  margin: 10px 0 6px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.01em;
  word-break: break-word;
}
.mt-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.mt-sub i { font-style: normal; opacity: .55; padding: 0 2px; }
.mt-note {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: #fbf6e9;
  color: #8a6212;
  font-size: 12.5px;
  line-height: 1.55;
}

.mt-done {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 14px auto 0;
  width: fit-content;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0e7a6d;
  font-size: 13.5px;
}
.mt-done b { font-variant-numeric: tabular-nums; }

.mt-qr-wrap { margin: 16px 0 4px; text-align: center; }
.mt-qr {
  display: inline-block;
  width: min(74vw, 296px);
  padding: 13px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(23, 68, 140, .45);
}
.mt-qr svg, .mt-qr-svg { display: block; width: 100%; height: auto; }

/* 亮度提示：放在二维码正上方，浅金色但不刺眼，和蓝色主色调分开 */
.mt-bright {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: min(74vw, 296px);
  margin: 0 auto 10px;
  padding: 8px 12px;
  border: 1px solid #f0dfb8;
  border-radius: 11px;
  background: #fff9ec;
  color: #8a6212;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}
.mt-bright svg { flex: 0 0 17px; width: 17px; height: 17px; color: #d69a25; }
.mt-bright b { color: #7a5208; }

/* 防伪识别条：斜纹在走、文字在滚、秒数在跳，截图一眼就能看出来是假的 */
.mt-guard {
  display: flex; align-items: center; gap: 8px;
  width: min(74vw, 296px);
  height: 30px;
  margin: 10px auto 0;
  padding: 0 10px;
  border: 1px solid #cfe3f8;
  border-radius: 9px;
  background: #eef6ff;
  overflow: hidden;
  position: relative;
}
.mt-guard::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(47, 128, 237, .10) 0 8px, transparent 8px 18px);
  animation: mt-guard-stripes 1.1s linear infinite;
  pointer-events: none;
}
.mt-guard-dot {
  position: relative; flex: 0 0 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #1d9e75;
  animation: mt-guard-blink 1.4s ease-in-out infinite;
}
.mt-guard-view { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.mt-guard-track {
  display: inline-block;
  white-space: nowrap;
  color: #17457f;
  font-size: 11.5px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  animation: mt-guard-slide 9s linear infinite;
}
@keyframes mt-guard-stripes { from { background-position: 0 0; } to { background-position: 41px 0; } }
@keyframes mt-guard-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes mt-guard-slide { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .mt-guard::before, .mt-guard-dot, .mt-guard-track { animation: none; }
}
.mt-tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mt-who {
  display: flex; align-items: center; gap: 11px;
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2f8ff, #eef7f6);
  border: 1px solid #e5effa;
}
.mt-ava {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.mt-who-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.mt-who-txt b { font-size: 15px; }
.mt-who-txt em {
  font-style: normal;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mt-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.mt-timer { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-hint {
  margin: 16px auto 8px;
  max-width: 30em;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}
.mt-hint b { color: var(--ink-2); }

/* ---------- 扫码端 ---------- */
.mt-scan-bar {
  display: flex; align-items: flex-end; gap: 10px;
  margin-bottom: 12px;
}
.mt-pick { flex: 1 1 auto; min-width: 0; }
.mt-pick label { display: block; font-size: 12px; color: var(--muted); }
.mt-pick select {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.mt-prog {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.mt-prog-num { display: flex; align-items: baseline; gap: 4px; }
.mt-prog-num b {
  font-size: 30px; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
  letter-spacing: -.02em;
}
.mt-prog-num span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.mt-prog-meta { flex: 1 1 auto; min-width: 0; }
.mt-prog-meta p { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.mt-prog-meta b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mt-prog-line {
  height: 8px; border-radius: 999px; background: #e9f1fb; overflow: hidden;
}
.mt-prog-line i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .35s var(--ease);
}

.mt-result {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0;
  padding: 13px 16px;
  min-height: 54px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  line-height: 1.5;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.mt-result-ico {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #eef4fc;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.mt-result.ok { background: #f0fbf6; border-color: #cdeee0; color: #0b6b47; }
.mt-result.ok .mt-result-ico { background: #d8f4e6; color: var(--ok); }
.mt-result.warn { background: #fdf8ec; border-color: #f2e3c0; color: #8a6212; }
.mt-result.warn .mt-result-ico { background: #f8eccd; color: var(--warn); }
.mt-result.bad { background: #fdf2f2; border-color: #f5d7d7; color: #a53434; }
.mt-result.bad .mt-result-ico { background: #fadede; color: var(--danger); }
/* 还没扫码时的空状态：不要留一个空圆圈占位 */
.mt-result:not(.ok):not(.warn):not(.bad) { color: var(--muted); background: #f7fafd; box-shadow: none; }
.mt-result:not(.ok):not(.warn):not(.bad) .mt-result-ico { display: none; }

.mt-cam {
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.mt-cam-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #1c3a63 0%, #0c1b2e 70%);
}
.mt-cam-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-cam-idle {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}
.mt-cam-idle[hidden] { display: none; }
.mt-cam-frame { position: absolute; inset: 14%; pointer-events: none; }
.mt-cam-frame i {
  position: absolute;
  width: 26px; height: 26px;
  border: 2.5px solid rgba(255, 255, 255, .85);
  border-radius: 4px;
}
.mt-cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.mt-cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.mt-cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.mt-cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.mt-cam-ops { display: flex; gap: 8px; margin-top: 10px; }
.mt-cam-note { margin: 8px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.mt-gun {
  display: flex; align-items: flex-end; gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.mt-gun-field { flex: 1 1 auto; min-width: 0; }
.mt-gun-field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mt-gun-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fbfdff;
  font: inherit;
  font-size: 15px;
}
.mt-gun-field input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: var(--ring); }

.mt-recent { margin-top: 12px; }

/* 扫码页设备自适应：手机一栏（摄像头优先），电脑上两栏（扫码枪优先 + 右侧实时记录） */
.mt-scan-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.mt-scan-grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .mt-scan-page .wrap { max-width: 1180px; }
  .mt-scan-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
    grid-template-areas:
      "prog recent"
      "result recent"
      "gun recent"
      "cam recent";
    column-gap: 16px;
    align-items: start;
  }
  .mt-scan-grid > .mt-prog { grid-area: prog; }
  .mt-scan-grid > .mt-result { grid-area: result; }
  .mt-scan-grid > .mt-gun { grid-area: gun; }
  .mt-scan-grid > .mt-cam { grid-area: cam; }
  .mt-scan-grid > .mt-recent { grid-area: recent; align-self: stretch; }
  .mt-scan-grid > .mt-recent .mt-recent-list { max-height: min(70vh, 620px); overflow-y: auto; }
  .mt-scan-grid .mt-cam-box { max-width: 460px; margin: 0 auto; }
  .mt-scan-grid .mt-gun-field input { font-size: 17px; padding: 14px 16px; }
  .mt-scan-grid .mt-gun > .btn { padding: 14px 22px; }
}
@media (min-width: 641px) and (max-width: 999px) {
  .mt-scan-grid .mt-cam-box { max-width: 560px; margin: 0 auto; }
}
.mt-recent h2 { margin-bottom: 10px; }
.mt-recent-list { list-style: none; margin: 0; padding: 0; }
.mt-rec {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 2px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.mt-rec:first-child { border-top: 0; }
.mt-rec b { font-weight: 600; }
.mt-rec em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mt-rec span {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5fb;
  color: var(--ink-2);
}
.mt-rec i { font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mt-rec.ok span { background: var(--accent-soft); color: #0e7a6d; }
.mt-rec.warn span { background: #fdf3dd; color: #8a6212; }
.mt-rec.bad span { background: #fdeaea; color: #a53434; }
.mt-rec.new { animation: mtIn .35s var(--ease); }
@keyframes mtIn { from { background: #eef6ff; } to { background: transparent; } }

/* ---------- 后台：会议签到 ---------- */
.mt-admin > .card + .card { margin-top: 16px; }
.mt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mt-form-row > label { display: block; }
.mt-form-row input { width: 100%; }

.mt-dept-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-dept {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.mt-dept input { position: absolute; opacity: 0; pointer-events: none; }
.mt-dept:hover { border-color: var(--brand-2); }
.mt-dept.on {
  border-color: var(--brand-2);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.mt-mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-mode {
  position: relative;
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.mt-mode input { position: absolute; opacity: 0; pointer-events: none; }
.mt-mode b { display: block; font-size: 14px; margin-bottom: 3px; }
.mt-mode em { font-style: normal; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.mt-mode:hover { border-color: var(--brand-2); }
.mt-mode.on { border-color: var(--brand-2); background: #f8fbff; box-shadow: var(--ring); }

.mt-table td { vertical-align: middle; }
.mt-table tr.on > td { background: #f6faff; }
.mt-when {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mt-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f1f5fb;
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}
.mt-chip.ok { background: var(--accent-soft); color: #0e7a6d; }
.mt-chip.warn { background: #fdf3dd; color: #8a6212; }
.mt-chip.bad { background: #fdeaea; color: #a53434; }
.mt-chip.brand { background: var(--brand-soft); color: var(--brand-dark); }

.mt-mini { height: 6px; width: 96px; border-radius: 999px; background: #e9f1fb; overflow: hidden; }
.mt-mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.mt-mini-txt { font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.mt-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-ops form { display: inline-flex; margin: 0; }
.mt-leave-form input[type="text"] {
  width: 132px;
  padding: 5px 9px;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
}

.mt-detail-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mt-detail-head h2 { margin: 0 0 4px; }
.mt-detail-head p { margin: 0; }
.mt-detail-ops { display: flex; gap: 8px; flex-wrap: wrap; }

.mt-sum {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.mt-sum-item {
  padding: 12px 10px;
  border-radius: 14px;
  background: #f7fafd;
  border: 1px solid var(--line);
  text-align: center;
}
.mt-sum-item b {
  display: block;
  font-size: 22px; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.mt-sum-item span { color: var(--muted); font-size: 12px; }
.mt-sum-item.ok { background: #f2fbf7; border-color: #d9f0e5; }
.mt-sum-item.ok b { color: var(--ok); }
.mt-sum-item.warn { background: #fdf9ef; border-color: #f3e6c9; }
.mt-sum-item.warn b { color: var(--warn); }
.mt-sum-item.bad { background: #fdf4f4; border-color: #f6dcdc; }
.mt-sum-item.bad b { color: var(--danger); }
.mt-bigbar {
  height: 10px; border-radius: 999px; background: #e9f1fb; overflow: hidden;
  margin-bottom: 18px;
}
.mt-bigbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }

.mt-pending tr > td { background: #fffdf7; }
.mt-scans { margin-top: 6px; }
.mt-scans summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
}

/* 名单筛选工具条：部门 + 搜索，客户端即时过滤 */
.mt-roster-tools {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafd;
}
.mt-roster-field { display: flex; flex-direction: column; gap: 5px; }
.mt-roster-field > span { font-size: 12px; color: var(--muted); }
.mt-roster-field select,
.mt-roster-field input {
  height: 36px; min-width: 160px;
  padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.mt-roster-field select:focus,
.mt-roster-field input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); }
.mt-roster-search { flex: 1 1 220px; }
.mt-roster-search input { width: 100%; }
.mt-roster-count { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.mt-filter-empty { margin: 8px 0 0; font-size: 13px; }
.mt-roster tr[hidden],
.mt-roster .table-wrap[hidden],
.mt-filter-empty[hidden] { display: none !important; }

/* 会议列表是后台页面，不能沿用签到码页那条 520px 的窄栏 */
.mt-list-page .wrap { max-width: 1180px; }

/* 会议列表标题行：右边放「新建会议」 */
.mt-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.mt-list-head h2 { margin-bottom: 0; }

/* 会议管理页顶部的跳转条：把「建会」和「看名单」两件事说清楚 */
.mt-admin-jump {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 11px 15px;
  border: 1px solid #d8e8fb;
  border-radius: 13px;
  background: #f2f8ff;
  color: var(--ink-2);
  font-size: 13px;
}
.mt-admin-jump b { color: var(--brand-dark); }

/* 会议签到计分设置（会议管理页顶部） */
.mt-score-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mt-score-head h2 { margin-bottom: 6px; }
.mt-score-head p { line-height: 1.7; }
.mt-score-form {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mt-score-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.mt-score-switch input { width: 17px; height: 17px; accent-color: var(--brand); }
.mt-score-pts { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.mt-score-pts input {
  width: 78px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit;
}

/* 已有会议时「修改会议」收成一行，点开才展开表单 */
.mt-editbox > summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  -webkit-tap-highlight-color: transparent;
}
.mt-editbox > summary::-webkit-details-marker { display: none; }
.mt-editbox > summary::before {
  content: "";
  flex: 0 0 7px; width: 7px; height: 7px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
  transition: transform .18s var(--ease);
}
.mt-editbox[open] > summary::before { transform: rotate(45deg); }
.mt-editbox > summary b { font-size: 16px; color: var(--ink); }
.mt-editbox > summary span { font-size: 12.5px; }

@media (max-width: 860px) {
  .mt-form-row, .mt-mode-pick { grid-template-columns: 1fr; }
  .mt-sum { grid-template-columns: repeat(3, 1fr); }
}

/* 会议列表操作列：表格卡片化（<=860）后把 5 个按钮排成 3 + 2 */
@media (max-width: 860px) {
  /* 会议列表每行的 5 个按钮：自然折行会变成「2 个一行 + 3 个一行」还左低右高。
     这里改成 6 格网格：前三个各占 2 格（一行 3 个），后两个各占 3 格（一行 2 个），
     两行都撑满宽度、上下对齐。手机版表格每格本来是「标签在左、内容在右」的 flex，
     操作格标签会吃掉 76px，导致按钮只剩很窄一条，所以这一格单独改成网格、
     标签独占一行，按钮用满整行宽度。 */
  table.list td.mt-list-ops {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px; align-items: stretch; padding-top: 10px;
}
table.list td.mt-list-ops::before {
  grid-column: 1 / -1; flex: none; padding: 0;
}
table.list td.mt-list-ops > * { grid-column: span 2; min-width: 0; }
table.list td.mt-list-ops > *:nth-child(n+4) { grid-column: span 3; }
.mt-list-ops form { display: block; margin: 0; }
/* 注意这里必须带 table.list：更早有一条 table.list .btn { width:auto } 专门把表格里的
   按钮还原成自适应宽度，优先级比 .mt-list-ops .btn 高，不加就压不过去。 */
table.list .mt-list-ops .btn {
  width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px;
  font-size: 12.5px; white-space: nowrap;
}
}

@media (max-width: 640px) {
  .mt-body .wrap { padding-left: 12px; padding-right: 12px; }
  .mt-card { padding: 18px 15px 13px; border-radius: 20px; }
  .mt-head h1 { font-size: 19px; }
  .mt-qr { width: min(76vw, 280px); padding: 11px; border-radius: 15px; }
  .mt-guard { width: min(76vw, 280px); }
  .mt-bright { width: min(76vw, 280px); padding: 7px 10px; font-size: 12px; }
  .mt-sum { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mt-sum-item { padding: 10px 6px; border-radius: 12px; }
  .mt-sum-item b { font-size: 19px; }
  .mt-detail-head { flex-direction: column; gap: 10px; }
  .mt-detail-ops { width: 100%; }
  .mt-gun { flex-wrap: wrap; }
  .mt-gun-field { flex: 1 1 100%; }
  .mt-gun > .btn { width: 100%; }
  .mt-cam-box { aspect-ratio: 1 / 1; }
  .mt-rec { grid-template-columns: 1fr auto; }
  .mt-rec i { grid-column: 1 / -1; text-align: right; }
  .mt-mini { width: 70px; }
  .mt-leave-form { flex: 1 1 100%; }
  .mt-leave-form input[type="text"] { width: auto; flex: 1 1 auto; }
  .mt-ops { gap: 8px; }
  .mt-score-head { flex-wrap: wrap; }
  .mt-score-form .btn { width: 100%; }
  .mt-roster-tools { gap: 10px; padding: 10px; }
  .mt-roster-field, .mt-roster-search { flex: 1 1 100%; }
  .mt-roster-field select, .mt-roster-field input { width: 100%; }
  .mt-roster-count { margin-left: 0; }
  /* 页脚在公司名 + 站名 + 站点首页三截时容易折得难看，手机上压缩一档 */
  .footer { font-size: 11px; line-height: 1.75; padding-left: 14px; padding-right: 14px; }
}

/* ==========================================================================
   v53：微博「先抢词条、后交稿」
   ========================================================================== */

/* ---------- 成员侧：本周词条抢词条板 ---------- */
.wb-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px; margin: 12px 0 6px;
}
.wb-slot {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.wb-slot:hover { border-color: #bcd8f8; box-shadow: var(--shadow-xs); }
.wb-slot.mine { border-color: #9cc8f5; background: #f6fbff; }
.wb-slot.full { background: #fafbfc; border-style: dashed; }
.wb-slot.full .wb-slot-head b { color: var(--muted); }
.wb-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wb-slot-head b { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.wb-slot-head .badge { flex: 0 0 auto; }
.wb-slot-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.wb-slot-meta b { color: var(--brand-dark); }
.wb-slot-meta .ok { color: var(--ok); font-weight: 700; }
.wb-slot-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.wb-slot-ops .muted { font-size: 11.5px; }
.wb-slot-ops .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 交稿时锁定的词条 */
.wb-lock-term { font-size: 14px; padding: 6px 12px; }

/* ---------- 词条管理：批量开关 ---------- */
.wb-batch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 4px 0 12px; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: #f9fbfe;
}
.wb-batch .check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.wb-term-check { display: flex; align-items: center; justify-content: center; }
.wb-term-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); cursor: pointer; }

/* ---------- 词条管理：抢词条名单 ---------- */
.wb-claimers {
  margin: -2px 0 4px; padding: 8px 12px;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m);
  background: #fcfdff;
}
.wb-claimers > summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.wb-claimers > summary:hover { color: var(--brand-dark); }
.wb-claimer-list { margin-top: 10px; font-size: 12.5px; }
.wb-claimer-list th { white-space: nowrap; }
.wb-released td { color: var(--muted); text-decoration: line-through; }
.wb-released td .btn, .wb-released td .muted { text-decoration: none; }

@media (max-width: 860px) {
  .wb-term-check { grid-column: 1 / -1; justify-content: flex-start; }
  .wb-board { grid-template-columns: 1fr; }
  .wb-claimers { border-top: 1px solid var(--line); border-radius: var(--r-m); margin-top: 8px; }
}

/* ==========================================================================
   v56：扫码枪的中文输入法提示（只在电脑端显示，手机摄像头扫码完全不动）
   浏览器没法直接改操作系统输入法，但可以在组合输入一出现时就拦下并给明确提示。
   ========================================================================== */
.mt-ime-tip, .mt-ime-alert { display: none; }
@media (min-width: 861px) {
  .mt-gun { flex-wrap: wrap; }
  .mt-ime-tip {
    display: flex; align-items: flex-start; gap: 10px;
    flex: 1 1 100%; margin: 0 0 10px; padding: 10px 12px;
    border: 1px solid #f0d9a2; border-radius: 11px; background: #fff8e9;
  }
  .mt-ime-ico {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: #f6dfaa; color: #8a5a05; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  }
  .mt-ime-tip b { display: block; font-size: 13px; color: #7c4f06; }
  .mt-ime-tip p { margin: 3px 0 0; font-size: 12px; line-height: 1.65; color: #8a6a34; }
  .mt-ime-tip code { padding: 1px 4px; border-radius: 4px; background: #fff; color: #a05c12; font-size: 11.5px; }
  .mt-ime-alert {
    display: block; flex: 1 1 100%; margin: 0 0 10px; padding: 9px 12px;
    border: 1px solid #f0c9c9; border-radius: 11px; background: #fff1f1;
    color: #a02626; font-size: 13px; font-weight: 700;
  }
  .mt-ime-alert[hidden] { display: none; }
  /* 部分 IE/旧版 Edge 支持 ime-mode，能直接把该输入框锁成英文；现代浏览器忽略此属性，
     由页面脚本监听组合输入来兜底。 */
  .mt-scan-page .mt-gun-field input { ime-mode: inactive; }
}

/* 实时刷新用到的可隐藏槽位：显式保证 hidden 生效，别被下面的 display 规则盖掉 */
.mt-done-slot[hidden], .mt-recent .empty[hidden] { display: none !important; }

/* ==========================================================================
   v57 学籍资料：悬浮提醒 + 登录弹窗（文案简短正式，不干扰原有页面）
   ========================================================================== */
.profile-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid #f0d9a2; border-radius: 999px;
  background: #fff8e9; box-shadow: var(--shadow-sm);
  font-size: 12.5px; color: #7c4f06;
}
.profile-float b { font-weight: 700; }
.profile-float a { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.profile-mask {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(18, 34, 56, .42);
  /* 不阻断页面操作：遮罩只负责视觉，交互交给弹窗本体 */
  pointer-events: none;
}
.profile-pop {
  pointer-events: auto;
  width: min(420px, 100%); padding: 22px;
  border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(21, 42, 70, .22);
}
.profile-pop h3 { margin: 0 0 10px; font-size: 17px; color: var(--ink); }
.profile-pop p { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.profile-pop .actions { display: flex; gap: 10px; }
.profile-pop .btn { flex: 1 1 0; justify-content: center; }
.profile-setup { max-width: 560px; }
@media (max-width: 860px) {
  /* 会议等页面底部有固定操作条，悬浮提醒上移避免遮挡 */
  .profile-float { right: 12px; bottom: 88px; left: 12px; justify-content: space-between; }
}

/* ==========================================================================
   v57 请假条生成：录入表单 + A4 纸张版式
   ========================================================================== */
.leave-page .wrap { max-width: 1120px; }
.leave-form-card { margin-bottom: 14px; }
.leave-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: 12px;
}
.leave-fields label { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 600; color: #5f7796; }
.leave-fields input[type="text"], .leave-fields input:not([type]) { width: 100%; }
.leave-style { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.leave-style .check { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 500; }

.leave-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.leave-tools input[type="search"] { flex: 1 1 240px; min-width: 0; }
.leave-tool-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.leave-dept-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

.leave-roster {
  max-height: 460px; overflow: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  background: #fbfdff;
}
.leave-group { margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.leave-group:first-child { margin-top: 0; }
.lv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px; cursor: pointer;
}
.lv-item:hover { background: #eef5ff; }
.lv-item input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
.lv-item span { font-weight: 600; color: var(--ink); min-width: 0; }
.lv-item em { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.leave-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.leave-actions .muted { margin: 0; flex: 1 1 100%; }

/* ---------- A4 纸张 ---------- */
.leave-print { padding: 10px 0; }
.leave-sheet {
  position: relative; overflow: hidden;
  width: 210mm; min-height: 297mm; margin: 18px auto;
  padding: 16mm 18mm 24mm;
  background: #fff; border-radius: 3px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .14);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', system-ui, sans-serif;
  color: #0f172a;
  box-sizing: border-box;
}
.leave-band {
  position: absolute; top: 0; left: 0; right: 0; height: 3mm;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
}
.leave-body { display: flex; flex-direction: column; min-height: 257mm; }

/* 中央水印：压在最上层，但不拦截操作 */
.leave-wm {
  position: absolute; left: 50%; top: 50%;
  width: 118mm; height: 118mm;
  transform: translate(-50%, -50%);
  opacity: .07; pointer-events: none; z-index: 10; object-fit: contain;
}
/* 左上角标识 */
.leave-corner {
  position: absolute; left: 18mm; top: 16mm;
  display: flex; align-items: center; gap: 2mm;
}
.leave-corner img { width: 8.5mm; height: 8.5mm; object-fit: contain; }
.leave-corner span { font-size: 10.5pt; font-weight: 700; letter-spacing: .05em; color: #1e3a8a; }

/* 抬头 */
.leave-head { text-align: center; }
.leave-org { font-size: 11pt; font-weight: 700; letter-spacing: .28em; color: #1e3a8a; }
.leave-rule {
  width: 22mm; height: 1mm; margin: 2.5mm auto;
  background: linear-gradient(90deg, #60a5fa, #1d4ed8);
}
.leave-title { font-size: 22pt; font-weight: 700; letter-spacing: .26em; color: #0b1220; }

/* 正文 */
.leave-greet { font-size: 11pt; font-weight: 700; color: #0f172a; margin: 5mm 0 0; }
.leave-para {
  font-size: 11pt; line-height: 1.9; color: #334155;
  text-align: justify; text-indent: 2em; margin: 2mm 0 0;
}

/* 名单表格 */
.leave-table-wrap {
  width: 655px; margin: 3.5mm auto 0;
  border: 1px solid #e6ecf5; border-radius: 8px; overflow: hidden;
}
.leave-table {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  font-size: 10pt; line-height: 1.5; background: #fff;
}
.leave-table th, .leave-table td {
  padding: 1.4mm 1.2mm; text-align: center;
  border: 0; border-bottom: 1px solid #f1f5fb; overflow: hidden;
}
.leave-table thead th {
  background: #eef4ff; color: #1e3a8a; font-weight: 700;
  letter-spacing: .05em; border-bottom: 1px solid #dbe6fb;
}
.leave-table tbody tr:last-child td { border-bottom: 0; }

/* 落款 */
.leave-sign {
  margin-top: auto; padding-top: 8mm;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 11pt;
}
.leave-sign-l { display: flex; align-items: flex-end; gap: 2mm; color: #0f172a; }
.leave-line { display: inline-block; width: 48mm; border-bottom: 1px solid #0f172a; height: 4mm; }
.leave-sign-r { text-align: center; }
.leave-sign-r b { display: block; font-weight: 700; color: #0b1220; }
.leave-sign-r span { display: block; margin-top: 1mm; color: #475569; }

/* 响应式：手机上看纸张缩放 */
@media (max-width: 860px) {
  .leave-fields { grid-template-columns: 1fr; }
  .leave-sheet { width: 100%; min-height: auto; margin: 14px 0; padding: 8mm 6mm; }
  .leave-table-wrap { width: 100%; }
}

/* ---------- 打印 / 导出 ---------- */
@page { size: A4; margin: 0; }
@media print {
  .side, .side-mask, .appbar, .footer, .profile-float, .profile-mask,
  .leave-form-card, .flash, .wc-remind, .wc-mask { display: none !important; }
  .main { margin: 0 !important; }
  .wrap { padding: 0 !important; max-width: none !important; }
  .leave-page .wrap { max-width: none !important; }
  .leave-print { padding: 0 !important; }
  .leave-sheet {
    width: 210mm; min-height: 297mm; margin: 0;
    border-radius: 0; box-shadow: none;
    page-break-after: always;
  }
  .leave-sheet:last-child { page-break-after: auto; }
  .leave-wm { opacity: .08; }
  body { background: #fff !important; }
}

/* 导出 PDF：截图前去掉阴影与外边距，水印透明度提到 0.08 */
body.pdf-export .leave-sheet { margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body.pdf-export .leave-wm { opacity: .08 !important; }

/* ==========================================================================
   v63 全站图片弹窗放大：缩略图 / 二维码点击弹层查看，不跳新页面
   ========================================================================== */
.lightbox-mask {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8, 15, 30, .78);
  cursor: zoom-out;
}
.lightbox-mask img {
  max-width: 94vw; max-height: 94vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   v67 修改密码：点击侧栏头像 / 姓名，弹层内修改
   ========================================================================== */
.side-user { cursor: pointer; }
.side-user:hover .side-user-txt b { text-decoration: underline; }
.pwd-mask {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(18, 34, 56, .42);
}
.pwd-mask[hidden] { display: none !important; }
.pwd-pop {
  width: min(360px, 100%); padding: 22px;
  border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(21, 42, 70, .22);
}
.pwd-pop h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.pwd-pop .actions { display: flex; gap: 10px; margin-top: 4px; }
.pwd-pop .actions .btn { flex: 1 1 0; justify-content: center; }
