/* 企业服务工作台：深色侧栏 + 冷灰底 + 白色卡片；主色靛蓝；颜色只走变量，亮色/暗色两套 */
:root {
  --bg: #f3f5f9; --panel: #fff; --sunk: #f5f7fa; --line: #e6e9ef; --line-2: #d4d9e2;
  --text: #121826; --muted: #5a6475; --faint: #98a1b0;
  --brand: #2f5bdb; --brand-2: #2449b8; --brand-weak: #eef3ff; --brand-ring: rgba(47, 91, 219, .16); --on-brand: #fff;
  --ok: #16803c; --ok-weak: #e9f7ee; --warn: #b25a07; --warn-weak: #fff5e4; --warn-line: #f0c67a;
  --err: #cf3a2f; --err-weak: #fdeeec; --seal: #c0392b;
  --side-bg: #101a30; --side-bg-2: #0c1426; --side-text: #c3ccdb; --side-muted: #6f7c93; --side-line: rgba(255, 255, 255, .07);
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --r: 7px; --r-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-up: 0 12px 28px -10px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-btn: 0 1px 2px rgba(16, 24, 40, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1117; --panel: #161b23; --sunk: #1b212b; --line: #262d39; --line-2: #354050;
    --text: #e6e9ef; --muted: #9ba4b4; --faint: #677285;
    --brand: #7b9cff; --brand-2: #9db6ff; --brand-weak: #1a2342; --brand-ring: rgba(123, 156, 255, .22); --on-brand: #0b1020;
    --ok: #5fcf8a; --ok-weak: #12261b; --warn: #f0b45a; --warn-weak: #2a2112; --warn-line: #6b5225;
    --err: #f08a80; --err-weak: #331a19; --seal: #e0685a;
    --side-bg: #0b0f16; --side-bg-2: #080b11;
    --shadow: none; --shadow-up: 0 12px 28px -10px rgba(0, 0, 0, .6); --shadow-btn: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1117; --panel: #161b23; --sunk: #1b212b; --line: #262d39; --line-2: #354050;
  --text: #e6e9ef; --muted: #9ba4b4; --faint: #677285;
  --brand: #7b9cff; --brand-2: #9db6ff; --brand-weak: #1a2342; --brand-ring: rgba(123, 156, 255, .22); --on-brand: #0b1020;
  --ok: #5fcf8a; --ok-weak: #12261b; --warn: #f0b45a; --warn-weak: #2a2112; --warn-line: #6b5225;
  --err: #f08a80; --err-weak: #331a19; --seal: #e0685a;
  --side-bg: #0b0f16; --side-bg-2: #080b11;
  --shadow: none; --shadow-up: 0 12px 28px -10px rgba(0, 0, 0, .6); --shadow-btn: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .92em; }
::selection { background: var(--brand-ring); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- 框架：深色侧栏 ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: linear-gradient(180deg, var(--side-bg), var(--side-bg-2)); color: var(--side-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 22px 20px 20px; }
.brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .6px; color: #fff; }
.brand small { display: block; color: var(--side-muted); font-size: 12px; letter-spacing: .5px; margin-top: 1px; }
.seal { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff;
  background: linear-gradient(140deg, #4b7bff, #2442b5); box-shadow: 0 6px 16px -4px rgba(59, 108, 240, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  font: 700 18px/1 "STKaiti", "KaiTi", serif; }
nav { flex: 1; overflow: auto; padding: 4px 12px 12px; }
nav a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; margin: 2px 0; border-radius: 8px; color: var(--side-text);
  position: relative; font-size: 13.5px; white-space: nowrap; transition: background .12s, color .12s; }
nav a .ic { color: var(--side-muted); transition: color .12s; }
nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
nav a:hover .ic { color: #c9d4ff; }
nav a.on { background: rgba(110, 142, 255, .16); color: #fff; font-weight: 600; }
nav a.on .ic { color: #8fa9ff; }
nav a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; background: #7b9cff;
  border-radius: 0 3px 3px 0; }
nav a.todo { color: var(--side-muted); cursor: default; }
nav a.todo:hover { background: none; color: var(--side-muted); }
nav a.todo:hover .ic { color: var(--side-muted); }
nav a em { font-style: normal; font-size: 10.5px; margin-left: auto; padding: 0 6px; line-height: 17px; border-radius: 9px;
  border: 1px solid var(--side-line); color: var(--side-muted); }
.nav-h { font-size: 11px; color: var(--side-muted); margin: 20px 12px 6px; letter-spacing: .14em; font-weight: 600; }
.side-foot { margin: 0 12px 14px; padding: 12px; font-size: 12px; color: var(--side-text); border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--side-line); display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.side-foot .ic { color: #6fd39a; width: 15px; height: 15px; }
.side-foot span { grid-column: 1 / -1; display: block; font-family: var(--mono); font-size: 10.5px; color: var(--side-muted);
  word-break: break-all; margin-top: 4px; line-height: 1.45; }
main { flex: 1; min-width: 0; padding: 30px 40px 72px; max-width: 1640px; }

/* ---------- 排版 ---------- */
h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: .4px; line-height: 1.35; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; letter-spacing: .2px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.hint { color: var(--faint); font-size: 12px; font-weight: normal; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--brand); text-decoration: none; }
.page-h { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-h .acts { margin-left: auto; display: flex; gap: 8px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin: 32px 0 12px; }
.sec-h h2 { margin: 0; font-size: 16px; }
.sec-h a { margin-left: auto; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.sec-h a .ic { width: 14px; height: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-h h2, .panel-h h3 { margin: 0; }
.panel-h h2 { font-size: 16px; }
.panel-h .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.note { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 0 0 12px; }
.note:empty { display: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { color: var(--faint); text-align: center; padding: 40px 16px; font-size: 13px; }

/* 首页统计卡片 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat > div { display: flex; flex-direction: column-reverse; min-width: 0; }
.stat b { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; font-family: "Segoe UI", system-ui, sans-serif; }
.stat span { color: var(--muted); font-size: 12.5px; }
.chip { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-weak); color: var(--brand); }
.chip .ic { width: 20px; height: 20px; }
.chip.g { background: var(--ok-weak); color: var(--ok); }
.chip.y { background: var(--warn-weak); color: var(--warn); }
.chip.v { background: #f3efff; color: #6d4bd8; }
:root[data-theme="dark"] .chip.v { background: #231c3d; color: #b39dff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.v { background: #231c3d; color: #b39dff; } }

/* 业务入口卡片 */
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.svc:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow-up); transform: translateY(-1px); }
.svc .t b { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.svc .t b .ic { margin-left: auto; color: var(--faint); width: 15px; height: 15px; transition: transform .15s, color .15s; }
a.svc:hover .t b .ic { color: var(--brand); transform: translateX(2px); }
.svc .t p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.svc.off { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-2); }
.svc.off b { color: var(--muted); }
.svc.off p { color: var(--faint); }
.svc.off .chip { background: var(--sunk); color: var(--faint); }

/* ---------- 控件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text); border-radius: 8px; box-shadow: var(--shadow-btn);
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
.btn .ic { width: 15px; height: 15px; }
.btn:hover { background: var(--sunk); border-color: #bfc6d2; color: var(--text); text-decoration: none; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand);
  box-shadow: 0 1px 2px rgba(36, 73, 184, .25), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--on-brand); }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); color: var(--err); background: var(--err-weak); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled, .btn:disabled:hover { opacity: .45; cursor: not-allowed; border-color: var(--line-2); color: var(--text); background: var(--panel); }
.btn.primary:disabled:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.lnk { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.lnk:hover { color: var(--brand); }
.lnk.danger:hover { color: var(--err); }
.lnk:disabled { opacity: .4; cursor: default; color: var(--muted); }
.lnks { display: flex; gap: 12px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--sunk); letter-spacing: .3px;
  padding-top: 10px; padding-bottom: 10px; white-space: nowrap; }
td.nw, th.nw { white-space: nowrap; }
td.num, th.num { text-align: right; }
td.dim { color: var(--muted); font-size: 13px; }
td.strong { font-weight: 600; }
tr.click { cursor: pointer; transition: background .1s; }
tr.click:hover td { background: var(--sunk); }
tr.click td:first-child { position: relative; }
tr.click:hover td:first-child::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }

/* 标签：胶囊；状态：带圆点的胶囊 */
.tag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 21px; background: var(--sunk);
  color: var(--muted); white-space: nowrap; font-weight: 500; border: 1px solid var(--line); }
.tag.ok { background: var(--ok-weak); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-weak); color: var(--warn); border-color: transparent; }
.tag.err { background: var(--err-weak); color: var(--err); border-color: transparent; }
.tag.mute { background: var(--sunk); color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 0 10px 0 8px;
  line-height: 24px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.st.ok { background: var(--ok-weak); color: var(--ok); }
.st.ok::before { background: var(--ok); }
.st.warn { background: var(--warn-weak); color: var(--warn); }
.st.warn::before { background: var(--warn); }
.st.brand { background: var(--brand-weak); color: var(--brand); }
.st.brand::before { background: var(--brand); }
.count { font-size: 12px; color: var(--muted); }
.count.full { color: var(--ok); }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
input, select, textarea { font: inherit; font-size: 13.5px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; min-width: 0; transition: border-color .12s, box-shadow .12s; }
input, select { height: 36px; }
input:hover, select:hover, textarea:hover { border-color: #bcc4d1; }
input[type=checkbox], input[type=radio] { height: auto; accent-color: var(--brand); width: 15px; height: 15px; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[readonly] { background: var(--sunk); color: var(--muted); }
input[data-path$="信用代码"], input[data-path$="身份证号"], input[data-path$="证件号"] { font-family: var(--mono); letter-spacing: .3px; }

/* ---------- 文件处理：工作区 ---------- */
.filelist { margin: 10px 0; padding: 0; list-style: none; }
.filelist li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.filelist li small { color: var(--faint); }
.kb { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 3px; flex: none;
  font: 600 10px/1 var(--mono); color: #fff; background: #8a8f98; letter-spacing: 0; }
.kb.k-pdf { background: #b5462f; } .kb.k-image { background: #2f7a6b; } .kb.k-word { background: #2d5ea8; }
.kb.k-sheet { background: #2e7a43; } .kb.k-slides { background: #c0612b; } .kb.k-text { background: #6b7079; }
.fs-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fs-bar input[type=search] { width: 200px; }
.fs-bar #views { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); overflow: hidden; flex: none; }
.seg button { border: 0; border-left: 1px solid var(--line); background: none; font: inherit; font-size: 13px; color: var(--muted);
  padding: 0 12px; height: 32px; cursor: pointer; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--text); background: var(--sunk); }
.seg button.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.seg.full { display: flex; }
.seg.full button { flex: 1; padding: 0 4px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.fcard { cursor: pointer; border-radius: var(--r); user-select: none; }
.fthumb { position: relative; aspect-ratio: 4 / 3.4; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden; }
.fthumb img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
.fthumb .ph { color: var(--faint); font-size: 12px; }
.fthumb .ph.big { font: 600 34px/1 var(--mono); color: var(--line-2); }
.fthumb > .kb { position: absolute; left: 8px; bottom: 8px; }
.fthumb .ck { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 3px;
  background: var(--panel); border: 1px solid var(--line-2); opacity: 0; }
.fthumb .ck input { margin: 0; }
.fthumb .more { position: absolute; right: 6px; top: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted);
  border-radius: 3px; font-size: 12px; line-height: 18px; padding: 0 5px; cursor: pointer; opacity: 0; }
.fthumb .wn { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: var(--panel);
  font: 600 12px/18px var(--mono); text-align: center; }
.fcard:hover .fthumb { border-color: var(--line-2); }
.fcard:hover .ck, .fcard:hover .more, .fcard.on .ck, .fgrid:has(.fcard.on) .ck { opacity: 1; }
.fcard.on .fthumb { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-weak); background: var(--brand-weak); }
.fmeta { padding: 6px 2px 0; display: flex; flex-direction: column; min-width: 0; }
.fmeta b { font-weight: normal; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta small { color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta .from { color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flist td { vertical-align: middle; padding-top: 7px; padding-bottom: 7px; }
.flist .ck { display: grid; place-items: center; }
.flist .nm { display: inline-flex; gap: 8px; align-items: center; min-width: 0; }
.flist .nm b { font-weight: normal; word-break: break-all; }
.flist tr.on td { background: var(--brand-weak); }
.selbar { position: sticky; bottom: 12px; margin-top: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); z-index: 5; }
.selbar[hidden] { display: none; }
.selbar b { font-weight: 600; font-size: 13px; margin-right: 6px; }
.selbar .lnk { font-size: 13px; }
.dropmask { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: rgba(42, 77, 122, .14);
  outline: 3px dashed var(--brand); outline-offset: -14px; font-size: 18px; color: var(--brand); font-weight: 600; pointer-events: none; }
.dropmask.on { display: grid; }
.fs-empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--panel); text-align: center; padding: 56px 20px; }
.fs-empty b { font-size: 16px; font-weight: 600; }
.fs-empty p { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.pmenu { position: fixed; z-index: 70; min-width: 150px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16); padding: 4px; }
.pmenu button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 13px; color: var(--text);
  padding: 6px 10px; border-radius: 3px; cursor: pointer; }
.pmenu button:hover { background: var(--sunk); }
.pmenu button.danger { color: var(--err); }
.pmenu button:disabled { color: var(--faint); cursor: default; background: none; }
.pmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* 弹窗内容 */
.dlg-b { padding: 16px; }
.dlg-b p:first-child { margin-top: 0; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-weak); }
.opt > input { margin-top: 4px; height: auto; accent-color: var(--brand); }
.opt span { flex: 1; display: flex; flex-direction: column; }
.opt b { font-weight: 600; font-size: 13px; }
.opt small { color: var(--muted); font-size: 12px; }
.pick { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.pick label { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.pick label:last-child { border-bottom: 0; }
.pick label:hover { background: var(--sunk); }
.pick label span { flex: 1; word-break: break-all; }
.pick small { color: var(--faint); }
.pick p { margin: 12px; }

/* ---------- 文件处理：打开的文件 ---------- */
.fv-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fv-h .back { color: var(--muted); font-size: 13px; }
.fv-h .crumb { color: var(--faint); }
.fv-h h1 { font-size: 16px; cursor: text; word-break: break-all; border-bottom: 1px dashed transparent; }
.fv-h h1:hover { border-bottom-color: var(--line-2); }
.fv-h .acts { margin-left: auto; display: flex; gap: 6px; }
.fv-note { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.fv-note.warn { color: var(--warn); }
.bench { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow); }
.tb { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--panel); z-index: 6; border-radius: var(--r) var(--r) 0 0; }
.tb .grp { display: flex; gap: 4px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--line); }
.tb .grp:last-of-type { border-right: 0; }
.tb .btn { height: 28px; padding: 0 10px; }
.btn.on { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }
.zoom { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.zoom input[type=range] { width: 100px; height: auto; padding: 0; border: 0; accent-color: var(--brand); }
.zoom select { height: 28px; }
.bench-body { display: grid; grid-template-columns: minmax(0, 1fr) 272px; min-height: calc(100vh - 170px); }
.stage { background: var(--sunk); padding: 16px; min-width: 0; position: relative; border-radius: 0 0 0 var(--r); }
.bside { border-left: 1px solid var(--line); padding: 4px 14px 14px; font-size: 13px; }
.bside section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bside section:last-child { border-bottom: 0; }
.bside h3 { font-size: 13px; margin-bottom: 6px; }
.bside .hint { line-height: 1.6; }
.bside p { margin: 0 0 6px; }
.col { display: flex; flex-direction: column; gap: 6px; }
.col .btn { justify-content: flex-start; }
.form.one { grid-template-columns: 1fr; gap: 10px; }
.outs { list-style: none; margin: 0; padding: 0; }
.outs li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.outs li:first-child { border-top: 0; }
.outs li > a:first-child { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: flex-start; color: var(--text); }
.outs li > a:first-child .kb { margin-top: 2px; }
.outs span { min-width: 0; display: flex; flex-direction: column; }
.outs b { font-weight: normal; word-break: break-all; }
.outs small { color: var(--faint); font-size: 12px; }
.outs li.new b::after { content: "新"; margin-left: 6px; font-size: 11px; color: var(--ok); }

/* PDF 页面 */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--pw, 170px), 1fr)); gap: 18px 14px; }
.pg { padding: 6px; border-radius: var(--r); border: 2px solid transparent; cursor: pointer; user-select: none; position: relative; }
.pg:hover { background: var(--panel); }
.pg.on { border-color: var(--brand); background: var(--brand-weak); }
.pg.dl::before, .pg.dr::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 3px; background: var(--brand); border-radius: 2px; }
.pg.dl::before { left: -10px; } .pg.dr::after { right: -10px; }
.pimg { aspect-ratio: 1; position: relative; }
.pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .22));
  transition: transform .15s; }
.pno { text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pno small { color: var(--faint); }
.big { display: flex; align-items: center; gap: 10px; }
.bigimg { flex: 1; height: 76vh; position: relative; background: var(--sunk); overflow: hidden; }
.bigimg img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .25)); }

/* PDF 标注（大图上画） */
.mkbar { margin-bottom: 8px; }
.mkbar [hidden] { display: none; }
.mkbar select { height: 26px; font-size: 12px; }
.mkov { position: absolute; touch-action: none; user-select: none; }
.mkov[data-tool=text] { cursor: text; }
.mkov[data-tool=rect], .mkov[data-tool=highlight] { cursor: crosshair; }
.mk { position: absolute; box-sizing: border-box; }
.mkov[data-tool=""] .mk { cursor: move; }
.mk.rect { border: 2px solid #e5484d; }
.mk.highlight { background: rgba(255, 217, 0, .35); }
.mk.text { white-space: pre-wrap; word-break: break-all; line-height: 1.3; }
.mk.draft.text { border: 1px dashed var(--brand); height: 1.3em; }
.mk.on { outline: 1px dashed var(--brand); outline-offset: 3px; }
.mk.editing { visibility: hidden; }
.mkin { position: absolute; z-index: 2; margin: 0; padding: 0; border: 1px dashed var(--brand); border-radius: 0; resize: none;
  line-height: 1.3; min-height: 2.8em; field-sizing: content; background: rgba(255, 255, 255, .92); box-shadow: none; }
.mkin:focus { box-shadow: none; }

/* 水印、页码对话框 */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
div.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
label.chk { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.wmw { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.wmp { position: relative; line-height: 0; border: 1px solid var(--line); background: #fff; }
.wmp img { display: block; width: 100%; }
.wmo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; line-height: 1.2; }
.wmg { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.wmg.tile > div { display: flex; column-gap: inherit; }
@media (max-width: 640px) { .wmw { grid-template-columns: 1fr; } .wmp { max-width: 200px; } }

/* 图片编辑 */
.istage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cv { position: relative; line-height: 0; touch-action: none;
  background: repeating-conic-gradient(var(--line) 0 25%, var(--panel) 0 50%) 0 0 / 16px 16px; }
.cv img { display: block; max-width: 100%; max-height: calc(100vh - 250px); box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.ov { position: absolute; inset: 0; }
.ov svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov .shade { fill: rgba(10, 12, 16, .5); }
.ov .edge { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ov .box { position: absolute; cursor: move; }
.ov .hd { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; border: 2px solid var(--brand);
  border-radius: 2px; cursor: pointer; touch-action: none; }
.ov .hd.big { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.ov .hd[data-h=nw], .ov .hd[data-h=se] { cursor: nwse-resize; } .ov .hd[data-h=ne], .ov .hd[data-h=sw] { cursor: nesw-resize; }
.ov .hd[data-h=n], .ov .hd[data-h=s] { cursor: ns-resize; } .ov .hd[data-h=e], .ov .hd[data-h=w] { cursor: ew-resize; }
/* 抠图修边：原图淡淡垫在下面，看得出哪里被抠掉了 */
.cv .pic { position: relative; }
.cv .ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .3; box-shadow: none; pointer-events: none; }
.cv .ghost[hidden] { display: none; }
.ov.brush { cursor: none; }
.ov .bstroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ov .bstroke.keep { stroke: rgba(46, 160, 90, .55); }
.ov .bstroke.erase { stroke: rgba(214, 60, 60, .55); }
.ov .bcur { position: absolute; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); pointer-events: none; }
.bgs button i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line); margin-right: 4px; vertical-align: -1px; }
.bgs button i.none { background: repeating-conic-gradient(var(--line) 0 25%, var(--panel) 0 50%) 0 0 / 6px 6px; }
.cutrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.cutrow input[type=color] { width: 32px; height: 28px; padding: 2px; }
.modebar { align-self: stretch; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 6px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.modebar[hidden] { display: none; }
.modebar .seg button { height: 24px; padding: 0 8px; font-size: 12px; }
.loading { position: absolute; right: 14px; top: 12px; font-size: 12px; color: var(--muted); background: var(--panel); padding: 0 8px;
  border-radius: 3px; line-height: 22px; border: 1px solid var(--line); }
.loading[hidden] { display: none; }
.sl { display: grid; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sl input { height: auto; padding: 0; border: 0; accent-color: var(--brand); }
.sl output { text-align: right; font-family: var(--mono); font-size: 11px; }
label.f output { font-family: var(--mono); }
label.f[hidden] { display: none; }
label.f input[type=range] { height: auto; padding: 0; border: 0; accent-color: var(--brand); }

/* 文档预览 */
.reader { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.reader figure { margin: 0; width: min(var(--rw, 700px), 100%); }
.reader img { width: 100%; display: block; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); min-height: 200px; }
.reader figcaption { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 4px; }
pre.txt { margin: 0; white-space: pre-wrap; word-break: break-all; font: 13px/1.7 var(--mono); background: var(--panel); padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--r); max-width: 960px; }

/* ---------- 办件 ---------- */
/* 步骤条：四个可以点的步骤，样式见文件末尾“办件：四步” */
.steps { display: flex; margin-bottom: 20px; counter-reset: s; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 24px; box-shadow: var(--shadow); }
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.group { margin-bottom: 16px; }
.group-h { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 14px; flex-wrap: wrap; }
.group-h h3 { margin: 0; font-size: 16px; }
.group-h .who { color: var(--muted); font-size: 13px; }
.group-h .count { font: 600 11.5px/21px "Segoe UI", system-ui, sans-serif; padding: 0 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.group-h .count.full { background: var(--ok-weak); color: var(--ok); }
.group-h .acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.group-h .phone { margin-left: auto; display: flex; align-items: center; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.group-h .phone span { padding: 0 8px; line-height: 28px; background: var(--sunk); border-right: 1px solid var(--line); white-space: nowrap; }
.group-h .phone input { height: 28px; width: 132px; border: 0; border-radius: 0; font-family: var(--mono); }
.group-h .phone input:focus { box-shadow: none; }
.group-h .phone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -2px 0 12px; font-size: 12px; color: var(--muted); }
.share > span { margin-right: 2px; }
.share label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; color: var(--text); padding: 0 9px 0 7px;
  line-height: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.share label:hover { border-color: var(--line-2); }
.share label:has(input:checked) { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); }
.share label.off { color: var(--faint); cursor: not-allowed; background: var(--sunk); }
.share input { width: auto; height: auto; margin: 0; }
.group.shared .group-h .who { color: var(--brand); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.slot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel);
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.slot:hover { border-color: var(--line-2); box-shadow: var(--shadow-up); }
.slot .thumb { height: 120px; flex: none; background: linear-gradient(180deg, var(--sunk), var(--bg)); display: grid; place-items: center; color: var(--muted);
  cursor: pointer; position: relative; overflow: hidden; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.slot .thumb small { color: var(--faint); font-size: 11px; }
.slot:has(.thumb.none) { border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.slot .thumb.none { background: var(--panel); border-bottom: 1px dashed var(--line); }
.slot .thumb.none:hover, .slot.over .thumb { color: var(--brand); }
.slot .thumb.none span { line-height: 1.6; }
.slot .thumb.none span::before { content: "+"; display: block; font: 300 24px/1 var(--mono); color: var(--line-2); margin-bottom: 4px; }
.slot .thumb.none:hover span::before { color: var(--brand); }
.slot .thumb.none:hover { background: var(--brand-weak); }
.slot .thumb img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }
.slot.over .thumb { outline: 2px dashed var(--brand); outline-offset: -4px; }
.slot .meta { padding: 8px 10px 6px; font-size: 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.slot .mt { display: flex; align-items: center; gap: 6px; min-width: 0; }
.slot .mt b { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .mt .tag { flex: none; line-height: 18px; font-size: 11px; }
.slot .meta > .tag { white-space: normal; line-height: 1.5; padding: 2px 6px; }
.slot .ops { padding: 6px 10px 8px; margin-top: auto; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 4px 12px; }
/* 识别出的字段：左列字段名、右列值，单行省略，悬停看全文 */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 8px; margin: 0; font-size: 12px; line-height: 19px; }
.kv dt { color: var(--faint); white-space: nowrap; }
.kv dd { margin: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .num { font-family: var(--mono); font-size: 11.5px; letter-spacing: -.1px; }
.kv dd.long { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: break-all; }
.kv dt.chk { color: var(--warn); }
.kv dd.chk { color: var(--warn); text-decoration: underline dotted var(--warn-line); text-underline-offset: 3px; }
.busy::after { content: "识别中…"; position: absolute; inset: 0; background: rgba(20, 24, 30, .55); color: #fff;
  display: grid; place-items: center; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chips .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 2px; margin: 0 0 20px; padding: 3px; flex-wrap: wrap; background: var(--sunk); border: 1px solid var(--line);
  border-radius: 9px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 0 14px; height: 30px; cursor: pointer; color: var(--muted); font: inherit;
  font-size: 13px; font-weight: 500; border-radius: 7px; display: inline-flex; gap: 6px; align-items: center; transition: background .12s, color .12s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 600; background: var(--panel); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 18px; }
.form .wide { grid-column: 1 / -1; }
.form.sep { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
label.f > :is(input, select, textarea) { width: 100%; }
.f .checks { display: flex; gap: 16px; align-items: center; height: 36px; color: var(--text); font-size: 13px; }
.f .checks label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.sub-h { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.person { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.person > .note { margin: 0; padding: 10px 14px; }
.person summary { padding: 11px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; list-style: none; font-weight: 500; }
.person summary .tag { margin-left: auto; }
.person summary:hover { background: var(--sunk); }
.person summary::-webkit-details-marker { display: none; }
.person summary::before { content: "▸"; color: var(--faint); font-size: 11px; transition: transform .15s; }
.person[open] summary::before { transform: rotate(90deg); }
.person[open] summary { border-bottom: 1px solid var(--line); }
.person .form { padding: 12px; }
.scope-text { background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-size: 13px; }
.scope-text b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.scope-text p { margin: 0; line-height: 1.7; max-height: 9em; overflow: auto; white-space: pre-wrap; }
.issues { list-style: none; padding: 0; margin: 0; max-height: 280px; overflow: auto; }
.issues li { padding: 9px 0 9px 16px; font-size: 13px; border-bottom: 1px solid var(--line); position: relative; }
.issues li:last-child { border-bottom: 0; }
.issues li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.issues li.e::before { background: var(--err); }
.issues li.n { padding-left: 0; }
.issues li.n::before { display: none; }
.issues li b { font-weight: 600; margin-right: 8px; }
.issues li.e b { color: var(--err); }
.sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; }
.gen-meta { color: var(--muted); font-size: 13px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.gen-meta a { margin-left: auto; }
.gen-t { border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.gen-t th, .gen-t td { padding-left: 14px; padding-right: 14px; }
.gen-t td { font-size: 13px; vertical-align: top; padding-top: 11px; padding-bottom: 11px; }
.gen-t th:first-child, .gen-t td:first-child { width: 44px; padding-right: 4px; color: var(--muted); font-family: var(--mono); }
.gen-t th:last-child, .gen-t td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.gen-t tr:hover td { background: var(--sunk); }
.gen-t .nm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gen-t .tag { line-height: 18px; }
.gen-t .hint { display: block; margin-top: 2px; }
.gen-t td.op { vertical-align: middle; }
.gen-t .btn .ic, .full-doc .btn .ic { width: 14px; height: 14px; }
.nm-open { border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.nm-open:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.stale-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--warn-weak); color: var(--warn); font-size: 13px; line-height: 1.6; }
.stale-note[hidden] { display: none; }
.stale-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.tag.info { background: var(--brand-weak); color: var(--brand); border-color: transparent; }
.full-doc b .tag { margin-left: 8px; vertical-align: 1px; font-weight: 500; }
.full-doc > .btn { align-self: center; }
.full-doc { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: linear-gradient(180deg, var(--brand-weak), var(--panel)); }
.full-doc > div { flex: 1; min-width: 0; }
.full-doc b { font-weight: 600; font-size: 14px; }
.full-doc p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.full-doc .chip { width: 36px; height: 36px; border-radius: 9px; background: var(--panel); box-shadow: var(--shadow); }
.full-note { margin: 8px 2px 0; }
.more { margin-top: 12px; display: grid; gap: 6px; }
.more:empty { display: none; }
pre.raw { white-space: pre-wrap; font: 12px/1.5 var(--mono); background: var(--sunk); padding: 8px 10px; border-radius: var(--r);
  max-height: 220px; overflow: auto; margin: 6px 0 0; }
details > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
ol.flow { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
ol.flow li { padding: 3px 0; }
ol.flow b { color: var(--text); font-weight: 600; }

/* 识别结果：需核对 */
.f.flag input, .f.flag select, .f.flag textarea { border-color: var(--warn-line); background: var(--warn-weak); }
.f .why { color: var(--warn); font-size: 12px; margin-left: 6px; }
.f .ok-btn { margin-left: 6px; font: inherit; font-size: 12px; padding: 0 6px; line-height: 18px; border: 1px solid var(--warn-line);
  background: var(--panel); color: var(--warn); border-radius: 3px; cursor: pointer; }
.f .ok-btn:hover { background: var(--warn-weak); }
.tabs .dot { min-width: 16px; padding: 0 4px; border-radius: 3px; background: var(--warn-weak); color: var(--warn);
  font-size: 11px; line-height: 16px; text-align: center; font-weight: 600; }
.slot .thumb .badge { position: absolute; right: 6px; bottom: 6px; background: rgba(20, 24, 30, .7); color: #fff; font-size: 11px;
  padding: 0 5px; border-radius: 3px; line-height: 18px; }
.slot .from { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 大图查看 */
.modal { position: fixed; inset: 0; background: rgba(12, 18, 32, .5); backdrop-filter: blur(3px); display: flex; align-items: center;
  justify-content: center; z-index: 50; padding: 16px; animation: fade .15s ease-out; }
.modal-box { background: var(--panel); border-radius: 14px; width: min(1120px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 24px 60px -12px rgba(10, 16, 30, .35), 0 0 0 1px rgba(16, 24, 40, .06); animation: pop .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.modal-h { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal-h h2 { margin: 0; }
.modal-h .acts { margin-left: auto; display: flex; gap: 6px; }
.viewer { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; padding: 16px; }
.viewer .pics { display: flex; flex-direction: column; gap: 12px; }
.viewer figure { margin: 0; }
.viewer img { max-width: 100%; max-height: 70vh; display: block; border: 1px solid var(--line); background: var(--sunk); }
.viewer figcaption { font-size: 12px; color: var(--faint); margin-top: 4px; }
.viewer .info table { border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.viewer .info td { font-size: 13px; padding: 8px 12px; vertical-align: top; }
.viewer .info td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
.viewer .info td:nth-child(2) { word-break: break-all; }
.viewer .info td:last-child { width: 1%; white-space: nowrap; }
.viewer .info tr.chk td { background: var(--warn-weak); }
.viewer .info .why { display: block; color: var(--warn); font-size: 12px; white-space: normal; margin-top: 2px; }
.viewer .note { margin: 10px 0; }

#toast { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
#toast { right: 24px; bottom: 24px; }
#toast div { background: #141c2e; color: #eef1f6; padding: 11px 16px 11px 38px; border-radius: 10px; max-width: 440px; font-size: 13px;
  box-shadow: 0 12px 32px -8px rgba(10, 16, 30, .45); position: relative; animation: pop .18s ease-out; }
#toast div::before { content: "✓"; position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #3fbf74;
  color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }
#toast div.err::before { content: "!"; background: #e5534b; }

@media (max-width: 1100px) {
  .case, .bench-body { grid-template-columns: 1fr; }
  .bside { border-left: 0; border-top: 1px solid var(--line); }
  .sticky { position: static; max-height: none; }
}
@media (max-width: 800px) { .viewer { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .shell { flex-direction: column; }
  .side { width: auto; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; }
  .brand { padding: 10px 12px; }
  .brand > div { display: none; }
  .seal { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
  nav { display: flex; padding: 0 8px 0 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  nav a { padding: 6px 10px; margin: 0 1px; }
  nav a .ic { display: none; }
  nav a.on::before { left: 10px; right: 10px; top: auto; bottom: -8px; width: auto; height: 2px; border-radius: 2px; }
  nav a.todo, .nav-h, .side-foot { display: none; }
  main { padding: 20px 16px 48px; }
  h1 { font-size: 19px; }
  .page-h { margin-bottom: 18px; }
  .page-h .acts { margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .chip { width: 34px; height: 34px; border-radius: 9px; }
  .chip .ic { width: 17px; height: 17px; }
  .stat b { font-size: 22px; }
  .hide-sm { display: none; }
  .panel { padding: 14px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; justify-content: center; padding: 0 6px; }
  /* 手机上卡片横排：左边缩略图，右边字段，字段值能显示全 */
  .slots { grid-template-columns: 1fr; gap: 8px; }
  .slot { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .slot .thumb { height: auto; min-height: 96px; grid-row: span 2; border-bottom: 0; border-right: 1px solid var(--line); }
  .slot .thumb.none { border-bottom: 0; border-right: 1px dashed var(--line); }
  .slot .ops { grid-column: 2; }
  .steps div { flex: 1 1 auto !important; }
  .steps div:last-child { flex: none !important; }
  .group-h .phone { margin-left: 0; width: 100%; }
  .group-h .phone input { flex: 1; width: auto; }
  .steps { padding: 12px 14px; }
  .steps div:not(.on) { font-size: 0; gap: 0; flex: 0 1 auto; }
  .steps div.on { flex: 1 0 auto; }
  .steps div::after { margin: 0 6px !important; }
  th, td { padding: 10px 12px; }
  .fs-bar input[type=search] { flex: 1; width: auto; }
  .fs-bar #views { margin-left: 0; }
  .fgrid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  .fthumb .ck, .fthumb .more { opacity: 1; }
  .tb .grp { border-right: 0; padding-right: 0; }
  .stage { padding: 10px; }
  .pgrid { --pw: 120px !important; gap: 10px 6px; }
  .big .nav { display: none; }
}

/* ---------- 第三方证明、网站填报 ---------- */
.proof { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.proof-act { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.fill-opts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 12px 0; font-size: 13px; }
.fill-opts label { display: flex; gap: 6px; align-items: center; }
.fill-st { display: flex; gap: 8px; align-items: center; margin: 0; padding: 8px 10px; border-radius: var(--r);
  background: var(--brand-weak); font-size: 13px; }
.fill-st.ok { background: var(--ok-weak); color: var(--ok); }
.spin { width: 12px; height: 12px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%;
  animation: spin 1s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fill-login { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fill-login h3 { font-size: 13px; margin: 0 0 8px; }
.fill-login h3 .hint { font-weight: normal; margin-left: 4px; }
.fill-login-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fill-login-row input { flex: 1 1 140px; min-width: 0; }
.fill-login p.hint { margin: 6px 0 0; }
.fill-rep { margin-top: 12px; display: grid; gap: 8px; }
.fill-rep h3 { font-size: 13px; margin: 0 0 2px; }
.fill-rep p { margin: 0; }
.fill-rep .chips { margin-top: 6px; }
.fill-shot { margin: 0; }
.fill-shot img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: var(--r); }
.fill-shot figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) { .fill-opts { grid-template-columns: 1fr; } .fill-opts .hint { margin: -4px 0 4px 22px; } }

/* 平面图绘制窗口 */
.plan-box { max-width: 1180px; width: calc(100vw - 32px); }
.plan-box { padding-bottom: 14px; }
.plan-box > :not(.modal-h) { margin-left: 18px; margin-right: 18px; }
.plan-canvas { display: block; width: calc(100% - 36px); height: auto; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  cursor: crosshair; touch-action: none; }
.plan-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.plan-tools .btn.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.plan-foot .note { margin: 0; }
.plan-box > .note { margin-top: 0; margin-bottom: 0; }
.plan-info { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; margin-bottom: 8px; }
.plan-info label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; font-size: 12px; color: var(--muted); }
.ask-box { width: min(440px, 100%); }
.ask-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.ask-body label { display: flex; flex-direction: column; gap: 4px; flex: 1; font-size: 12px; color: var(--muted); }
.ask-row { display: flex; gap: 12px; }
.ask-acts { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }

/* ---------- 材料查看器：预览（带水印）、修改、打印 ---------- */
body.dv-open { overflow: hidden; }
.dv { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: #e8ebf1; animation: fade .15s ease-out; }
:root[data-theme="dark"] .dv { background: #0a0d12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dv { background: #0a0d12; } }
.dv-h { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06); flex-wrap: wrap; }
.dv-t { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.dv-t .chip { width: 34px; height: 34px; border-radius: 9px; }
.dv-t .chip .ic { width: 17px; height: 17px; }
.dv-t div { min-width: 0; }
.dv-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.dv-acts { display: flex; align-items: center; gap: 8px; }
.dv-zoom { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }
.dv-zoom button { border: 0; background: none; width: 30px; height: 100%; font-size: 16px; color: var(--muted); cursor: pointer; }
.dv-zoom button:hover { color: var(--text); background: var(--sunk); }
.dv-zoom span { min-width: 44px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dv-x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.dv-x:hover { background: var(--sunk); color: var(--text); }
.dv-body { flex: 1; min-height: 0; overflow: auto; padding: 24px; outline: 0; overscroll-behavior: contain;
  scrollbar-width: auto; scrollbar-color: #9ba4b4 transparent; scrollbar-gutter: stable; }
.dv-body::-webkit-scrollbar { width: 14px; height: 14px; }
.dv-body::-webkit-scrollbar-track { background: rgba(16, 24, 40, .05); }
.dv-body::-webkit-scrollbar-thumb { background: #9ba4b4; border-radius: 7px; border: 3px solid transparent; background-clip: content-box; min-height: 48px; }
.dv-body::-webkit-scrollbar-thumb:hover { background-color: #7c8698; }
:root[data-theme="dark"] .dv-body { scrollbar-color: #4a5466 transparent; }
:root[data-theme="dark"] .dv-body::-webkit-scrollbar-thumb { background-color: #4a5466; }
.dv .btn[hidden], .dv-pn[hidden] { display: none; }
.dv-pages { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; user-select: none; -webkit-user-select: none; }
.dv-page { position: relative; margin: 0 auto; flex: none; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 20px rgba(16, 24, 40, .1); border-radius: 2px; overflow: hidden; }
.dv-page img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.dv .wm { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--wm); background-size: 42% auto; background-repeat: repeat; }
.dv-pn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 0 12px; line-height: 28px; border-radius: 999px;
  background: rgba(17, 24, 39, .78); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.dv-wait { max-width: 420px; margin: 12vh auto 0; text-align: center; color: var(--muted); font-size: 13px; }
.dv-wait b { display: block; color: var(--text); font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
.dv-wait .spin { width: 22px; height: 22px; border-width: 3px; display: inline-block; }
.dv-tip { width: var(--pw); max-width: 100%; margin: 0 auto 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.dv-sheet { position: relative; width: var(--pw); max-width: 100%; margin: 0 auto; background: #fff; color: #1a1a1a; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 20px rgba(16, 24, 40, .1);
  padding: calc(var(--k, 1) * 64px) calc(var(--k, 1) * 72px); font-family: "SimSun", "宋体", "Songti SC", serif; }
.dv-sheet .dp { position: relative; z-index: 3; font-size: calc(var(--sz, 12) * var(--k, 1) * 1px); line-height: 1.7; min-height: 1.7em;
  border-radius: 3px; outline: 0; white-space: pre-wrap; word-break: break-all; transition: background .12s; }
.dv-sheet .dp:hover { background: rgba(47, 91, 219, .06); }
.dv-sheet .dp:focus { background: rgba(47, 91, 219, .08); box-shadow: 0 0 0 1.5px rgba(47, 91, 219, .45); }
.dv-sheet .dp.chg { background: rgba(255, 190, 0, .2); }
.dv-sheet .dp.ind { text-indent: 2em; }
.dv-sheet .dp.h { font-weight: 700; }
.dv-sheet .dt { width: 100%; border-collapse: collapse; margin: 6px 0; position: relative; z-index: 3; }
.dv-sheet .dt td { border: 1px solid #555; padding: 2px 5px; vertical-align: middle; background: none; }
.dv-sheet .dt tr:hover td { background: none; }
.dp-pic { display: inline-flex; align-items: center; gap: 5px; margin: 3px 0; padding: 2px 9px; border-radius: 999px; background: #eef1f6; color: #6b7487;
  font: 12px/20px system-ui, "Microsoft YaHei", sans-serif; user-select: none; }
.dp-pic .ic { width: 12px; height: 12px; }
.dv-brk { position: relative; z-index: 3; height: 0; border-top: 1px dashed #c3c9d4; margin: 18px calc(var(--k, 1) * -72px); text-align: center; }
.dv-brk span { position: relative; top: -9px; padding: 0 8px; background: #fff; color: #9aa3b2; font: 11px/18px system-ui, sans-serif; }
.dv-print { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; }
@media print { .wm { display: none !important; } }
@media (max-width: 720px) {
  .dv-h { padding: 8px 12px; gap: 8px; }
  .dv-t { flex-basis: 100%; }
  .dv-acts { flex-wrap: wrap; gap: 6px; }
  .dv-zoom { display: none; }
  .dv-acts .btn { height: 32px; padding: 0 10px; }
  .dv-body { padding: 12px 8px; }
}

/* ---------- 首页：按业务分类的目录 ---------- */
.sec-h .hint { font-size: 12.5px; }
.svc { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.svc .t { flex: 1; min-width: 0; }
.svc .t p { margin-top: 3px; }
.svc.off b .tag { margin-left: auto; font-weight: 400; }

/* ---------- 办件：四步，一次只显示一步 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; counter-reset: none; }
.steps button { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-left: 1px solid var(--line); background: none;
  font: inherit; color: var(--muted); text-align: left; cursor: pointer; position: relative; min-width: 0; transition: background .12s; }
.steps button:first-child { border-left: 0; }
.steps button:hover { background: var(--sunk); }
.steps button i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px/1 "Segoe UI", system-ui, sans-serif;
  font-style: normal; border: 1.5px solid var(--line-2); color: var(--faint); background: var(--panel); }
.steps button span { min-width: 0; display: flex; flex-direction: column; }
.steps button b { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.steps button small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps button.done i { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
.steps button.done i::before { content: "✓"; font-size: 13px; }
.steps button.done small { color: var(--ok); }
.steps button.warn small { color: var(--warn); }
.steps button.on { background: var(--brand-weak); }
.steps button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); }
.steps button.on i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-size: 12.5px; }
.steps button.on i::before { content: none; }
.steps button.on b { color: var(--brand); }
.casev .stp { display: none; }
.casev[data-step="0"] .stp0, .casev[data-step="1"] .stp1 { display: grid; gap: 20px; align-items: start; }
.casev[data-step="0"] .stp0 { grid-template-columns: minmax(0, 1fr) 264px; }
.casev[data-step="1"] .stp1 { grid-template-columns: minmax(0, 1fr) 360px; }
.casev[data-step="2"] .stp2, .casev[data-step="3"] .stp3 { display: block; }
.step-nav { display: flex; gap: 10px; margin-top: 20px; }
.step-nav .spacer { flex: 1; }
.up-cat { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 10px; }
.up-cat:first-child { margin-top: 0; }
.up-cat h2 { margin: 0; font-size: 15px; }
/* 上传资料：单栏。每个岗位一块，块里每项资料一行——左边图，右边识别出的信息，最右是操作 */
.up-one { display: flex; flex-direction: column; gap: 12px; }
.up-one .panel { padding: 0; overflow: hidden; }
.up-one .panel + .panel { margin-top: 0; }
.up-one .group { margin: 0; }
.up-one .group-h { margin: 0; padding: 10px 18px; min-height: 48px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.up-one .group-h h3 { font-size: 14.5px; }
.up-one .share { margin: 0; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.up-one .note { margin: 0; padding: 10px 18px; }
.up-one .note + .slots { border-top: 1px solid var(--line); }
.up-one .group.shared .group-h:last-child, .up-one .group.shared .note:last-child { border-bottom: 0; }
.up-one .slots { display: block; }
.up-one .slot { display: grid; grid-template-columns: 148px minmax(0, 1fr) 176px; gap: 0 16px; align-items: center; padding: 12px 18px; border: 0;
  border-radius: 0; border-top: 1px solid var(--line); box-shadow: none; }
.up-one .slot:first-child { border-top: 0; }
.up-one .slot:hover { box-shadow: none; background: var(--sunk); }
.up-one .slot:has(.thumb.none) { border-style: solid; border-color: var(--line); }
.up-one .slot .thumb { width: 148px; height: 98px; border: 1px solid var(--line); border-radius: 8px; }
.up-one .slot .thumb.none { border: 1.5px dashed var(--line-2); }
.up-one .slot .thumb img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
.up-one .slot .meta { padding: 0; gap: 6px; }
.up-one .slot .mt b { flex: 0 1 auto; font-size: 14px; white-space: normal; }
/* 字段：标签列等宽，分两组，各行的第二组上下对齐；长的值（地址、公司名）占一整行，最多两行；点一下复制 */
.up-one .slot .kv { grid-template-columns: 5.2em minmax(0, 1fr) 5.2em minmax(0, 1fr); gap: 2px 10px; font-size: 12.5px; line-height: 22px; align-items: start; }
.up-one .slot .kv dt { overflow: hidden; text-overflow: ellipsis; }
.up-one .slot .kv dt.long { grid-column: 1; }
.up-one .slot .kv dd { display: flex; align-items: flex-start; gap: 6px; min-width: 0; overflow: visible; white-space: normal; padding-right: 6px; cursor: pointer; border-radius: 4px; }
.up-one .slot .kv dd span { min-width: 0; overflow: hidden; white-space: normal; word-break: break-all; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.up-one .slot .kv dd.long { grid-column: 2 / -1; display: flex; -webkit-line-clamp: unset; }
.up-one .slot .kv dd .ic { width: 13px; height: 13px; margin-top: 4.5px; color: var(--line-2); flex: none; transition: color .12s; }
.up-one .slot .kv dd:hover { color: var(--brand); }
.up-one .slot .kv dd:hover .ic { color: var(--brand); }
.up-one .slot .ops { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; padding: 0; margin: 0; border: 0; white-space: nowrap; }
.up-one .slot .meta > .tag, .up-one .slot .meta > .from { align-self: flex-start; }
.up-one .slot.over { background: var(--brand-weak); }
.todo-up { color: var(--faint); font-size: 12.5px; }
.up-list { list-style: none; margin: 0 0 12px; padding: 0; }
.up-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.up-list li:last-child { border-bottom: 0; }
.up-list li small { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-list li .count, .up-list li > .hint { margin-left: auto; flex: none; }
.up-list .count { font: 600 11.5px/21px "Segoe UI", system-ui, sans-serif; padding: 0 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.up-list .count.full { background: var(--ok-weak); color: var(--ok); }
.up-list .lnk { color: var(--text); font-size: 13px; white-space: nowrap; }
.up-list li small { min-width: 0; flex: 0 1 auto; }
.up-list .lnk:hover { color: var(--brand); }
.empty-step { text-align: center; padding: 36px 16px 30px; color: var(--muted); font-size: 13px; }
.empty-step b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty-step p { margin: 0 auto 14px; max-width: 520px; }
.empty-step .spin { display: inline-block; width: 20px; height: 20px; margin-bottom: 10px; }

/* 申请材料：系统上传材料、纸质材料两张清单 */
.how { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 14px; margin: 0 0 4px; border-radius: 10px; background: var(--sunk);
  font-size: 13px; color: var(--muted); }
.how b { color: var(--text); font-weight: 600; }
.how span { display: inline-flex; align-items: center; gap: 6px; }
.how i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center;
  font: 600 11px/1 "Segoe UI", system-ui, sans-serif; }
.how .hint { flex-basis: 100%; }
.mat-h { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.mat-h h3 { margin: 0; font-size: 15px; padding-left: 10px; border-left: 3px solid var(--brand); line-height: 1.2; }
.mat-h .acts { margin-left: auto; }
.gen-t { width: 100%; }
.gen-t td:nth-child(3), .gen-t th:nth-child(3) { width: 1%; white-space: nowrap; }
.gen-t td:nth-child(3) { vertical-align: middle; }
.ops-row { display: inline-flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.full-doc .ops-row { align-self: center; flex: none; }

/* ---------- 文件处理：按功能分类的工具目录 ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.tool-cat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 14px 10px; }
.tool-cat h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 14px; }
.tool-cat h3 .chip { width: 30px; height: 30px; border-radius: 8px; }
.tool-cat h3 .chip .ic { width: 15px; height: 15px; }
.tool-cat button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 7px;
  background: none; font: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.tool-cat button small { color: var(--faint); font-size: 12px; margin-left: auto; white-space: nowrap; }
.tool-cat button:hover { background: var(--brand-weak); color: var(--brand); }
.tool-cat button:disabled { color: var(--faint); cursor: default; background: none; }

/* ---------- 材料查看器：盖章 ---------- */
body.dv-open .modal { z-index: 400; }
body.dv-open #toast { z-index: 500; }
.dv #dvMode [hidden] { display: none; }
.dv-seals { position: sticky; top: -24px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: var(--pw); max-width: 100%;
  margin: -6px auto 14px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; }
.dv-seals .hint { flex-basis: 100%; }
.seal-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 4px; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: var(--panel); font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.seal-chip img { width: 30px; height: 30px; object-fit: contain; }
.seal-chip i { font-style: normal; color: var(--faint); width: 18px; height: 18px; line-height: 17px; text-align: center; border-radius: 50%; }
.seal-chip i:hover { background: var(--err-weak); color: var(--err); }
.seal-chip.on { border-color: var(--brand); background: var(--brand-weak); box-shadow: 0 0 0 3px var(--brand-ring); }
.dv-pages.stamping .dv-page { cursor: crosshair; overflow: visible; }
.dv-page .marks { position: absolute; inset: 0; z-index: 3; }
.dv-seal { position: absolute; cursor: move; touch-action: none; }
.dv-seal img { display: block; width: 100%; height: auto; pointer-events: none; }
.dv-seal:hover, .dv-seal.sel { outline: 1.5px dashed var(--brand); outline-offset: 2px; }
.dv-seal .rs { position: absolute; right: -8px; bottom: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 2px solid #fff;
  cursor: nwse-resize; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.seal-tools { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); display: flex; white-space: nowrap; background: #1f2937; border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25); overflow: hidden; }
.seal-tools button { border: 0; background: none; color: #fff; font: 12px/28px system-ui, "Microsoft YaHei", sans-serif; padding: 0 10px; cursor: pointer; }
.seal-tools button:hover { background: rgba(255, 255, 255, .14); }
.seal-tools button + button { border-left: 1px solid rgba(255, 255, 255, .16); }

@media (max-width: 1100px) {
  .casev[data-step="0"] .stp0, .casev[data-step="1"] .stp1 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps button { padding: 10px 12px; gap: 8px; }
  .steps button:nth-child(3) { border-left: 0; }
  .steps button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc { padding: 14px; }
  .up-one .slot { grid-template-columns: 104px minmax(0, 1fr); gap: 0 12px; padding: 10px 12px; align-items: start; }
  .up-one .slot .thumb { width: 104px; height: 74px; min-height: 0; grid-row: span 2; border: 1px solid var(--line); }
  .up-one .slot .thumb.none { border: 1.5px dashed var(--line-2); }
  .up-one .slot .kv { grid-template-columns: 5.2em minmax(0, 1fr); }
  .up-one .slot .kv dd.long { grid-column: 2; }
  .up-one .slot .ops { grid-column: 2; flex-direction: row; justify-content: flex-start; gap: 12px; margin-top: 6px; }
  .up-one .group-h, .up-one .share, .up-one .note { padding-left: 12px; padding-right: 12px; }
  .ops-row { justify-content: flex-start; flex-wrap: wrap; }
  .gen-t, .gen-t tbody, .gen-t tr, .gen-t td { display: block; width: auto; }
  .gen-t tr:first-child { display: none; }
  .gen-t tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  .gen-t tr:nth-child(2) { border-top: 0; }
  .gen-t td, .gen-t td:first-child, .gen-t td:last-child, .gen-t td:nth-child(3) { padding: 2px 0; width: auto; text-align: left; white-space: normal; border: 0; }
  .step-nav { flex-wrap: wrap; }
}

/* 一键复制的小按钮 */
.cp { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; padding: 0; border: 0; border-radius: 5px; background: none;
  color: var(--faint); cursor: pointer; vertical-align: -4px; }
.cp .ic { width: 13px; height: 13px; }
.cp:hover { background: var(--brand-weak); color: var(--brand); }
.up-one .slot .kv dd.num span { word-break: normal; overflow-wrap: anywhere; }  /* 日期范围优先在“-”处换行 */
@media (max-width: 720px) { .up-one .slot .kv dd span { -webkit-line-clamp: 4; } }
.nw { white-space: nowrap; }

/* ---------- 核对信息：一行一项，字段名等宽、两栏对齐，输入框旁边带复制 ---------- */
#formPanel .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
#formPanel .f { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 0 10px; align-items: center; font-size: 13px; font-weight: 400; color: var(--text); }
#formPanel .f.top, #formPanel .f.flag { align-items: start; }
#formPanel .f.top .fl, #formPanel .f.flag .fl { padding-top: 8px; }
#formPanel .fl { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#formPanel .fv { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#formPanel .inp { display: flex; align-items: center; gap: 2px; min-width: 0; }
#formPanel .inp > :is(input, select, textarea) { flex: 1; min-width: 0; width: auto; }
#formPanel .inp .cp { flex: none; margin: 0; width: 24px; height: 24px; }
#formPanel .f.top .inp { align-items: flex-start; }
#formPanel .f.top .inp .cp { margin-top: 6px; }
#formPanel .fnote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
#formPanel .fnote .why, #formPanel .fnote .ok-btn { margin-left: 0; }
#formPanel .f .checks { height: 36px; }
#formPanel .person .form { padding: 14px 16px; }
#formPanel .sub-h { margin: 20px 0 12px; padding-top: 16px; }
#formPanel .sub-h h3, #formPanel h3.sub-h { font-size: 14px; }
/* 检查结果：位置一列、说明一列，点一条跳到要处理的地方 */
#reviewPanel .issues { max-height: none; }
#reviewPanel .issues li[data-where] { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 0 8px; padding: 8px 6px 8px 16px; cursor: pointer; border-radius: 6px; }
#reviewPanel .issues li[data-where]:hover { background: var(--sunk); }
#reviewPanel .issues li b { margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#reviewPanel .issues li span { min-width: 0; }

/* 印章管理 */
.seal-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.seal-row img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.seal-row div { flex: 1; min-width: 0; }
.seal-row b { display: block; font-size: 13.5px; }
.seal-row small { color: var(--faint); font-size: 12px; }
.seal-h { margin: 16px 0 10px; }
.how .btn { margin-left: auto; }

/* 后台没重启的提示条 */
#restartBar { position: sticky; top: 0; z-index: 250; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 20px;
  background: var(--warn-weak); color: var(--warn); border-bottom: 1px solid var(--warn-line); font-size: 13px; line-height: 1.6; }
#restartBar > b { font-size: 14px; }

@media (max-width: 1100px) { #formPanel .form { grid-template-columns: 1fr; } }
@media (max-width: 720px) { #formPanel .f { grid-template-columns: 6.4em minmax(0, 1fr); } }

/* 印章处理：左边预览（透明格 / 盖在文字上 / 原图），右边调节 */
.seal-ed { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; margin: 12px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); }
.seal-ed[hidden] { display: none; }
.sed-view { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sed-bg { position: relative; display: grid; place-items: center; height: 300px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.sed-bg.grid { background: repeating-conic-gradient(#e3e6ec 0% 25%, #fff 0% 50%) 50% / 18px 18px; }
.sed-bg.paper::before { content: "兹证明本公司上述材料内容真实、合法、有效，如有虚假愿承担相应的法律责任。特此声明。兹证明本公司上述材料内容真实、合法、有效，如有虚假愿承担相应的法律责任。特此声明。兹证明本公司上述材料内容真实、合法、有效，如有虚假愿承担相应的法律责任。";
  position: absolute; inset: 14px; color: #222; font: 15px/2.1 "SimSun", "宋体", serif; overflow: hidden; }
.sed-bg canvas { position: relative; max-width: 100%; max-height: 100%; display: block; touch-action: none; }
.sed-bg.erase canvas { cursor: crosshair; }
.sed-ctl { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sed-ctl .sl { grid-template-columns: 64px 1fr 40px; font-size: 12.5px; margin-bottom: 6px; }
.ck-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; padding: 4px 0; cursor: pointer; }
.ck-row input[type=checkbox] { width: auto; height: auto; margin: 0; }
.ck-row input[type=color] { width: 30px; height: 24px; padding: 1px; border-radius: 5px; }
.ck-row small { color: var(--faint); font-size: 12px; flex-basis: 100%; margin-left: 21px; }
.sed-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sed-acts .sl { margin: 0; grid-template-columns: 32px 90px 26px; }
.sed-acts .sl[hidden] { display: none; }
.sed-acts .lnk { margin-left: auto; }
.sed-ctl .hint { margin: 8px 0 0; }
@media (max-width: 720px) { .seal-ed { grid-template-columns: 1fr; } .sed-bg { height: 240px; } }

/* ===== 图片编辑器（imgedit.js）：全站一套。上：动作；第二排：当前工具的选项；左：工具；中：图；右：调整 ===== */
.ied { display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.ied-bench { height: calc(100vh - 128px); min-height: 540px; overflow: hidden; }
.ied-top { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.ied-grp { display: flex; gap: 2px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--line); }
.ied-grp.end { border-right: 0; border-left: 1px solid var(--line); padding: 0 0 0 10px; margin: 0 0 0 4px; gap: 6px; }
.ied-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px;
  background: none; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; white-space: nowrap; }
.ied-btn .ic { width: 16px; height: 16px; color: var(--muted); }
.ied-btn:hover { background: var(--sunk); border-color: var(--line); }
.ied-btn:active { background: var(--brand-weak); }
.ied-btn:disabled { opacity: .4; cursor: default; background: none; border-color: transparent; }
.ied-dim { font-size: 12px; color: var(--faint); font-family: var(--mono); margin-right: 4px; white-space: nowrap; }
.ied-opt { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--sunk);
  flex: none; font-size: 12.5px; overflow: hidden; }
.ied-opt .seg button { height: 26px; padding: 0 10px; font-size: 12px; }
.ied-opt .btn.sm { height: 26px; }
.ied-lab { color: var(--muted); font-size: 12px; margin-left: 8px; white-space: nowrap; }
.ied-lab:first-child { margin-left: 0; }
.ied-colors { display: flex; align-items: center; gap: 7px; }
.ied-colors button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); background: var(--c); padding: 0; cursor: pointer; flex: none; }
.ied-colors button.on { box-shadow: 0 0 0 2px var(--sunk), 0 0 0 4px var(--brand); }
.ied-colors input[type=color] { width: 26px; height: 24px; padding: 1px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--panel); cursor: pointer; }
.ied-ck { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; cursor: pointer; white-space: nowrap; }
.ied-ck input { width: 14px; height: 14px; padding: 0; accent-color: var(--brand); }
.ied-range { width: 130px; height: auto; padding: 0; border: 0; accent-color: var(--brand); }
.ied-body { display: grid; grid-template-columns: 62px minmax(0, 1fr) 272px; flex: 1; min-height: 0; }
.ied-tools { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-right: 1px solid var(--line); overflow-y: auto; }
.ied-tools button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 50px; height: 48px; flex: none;
  border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; position: relative; }
.ied-tools button .ic { width: 18px; height: 18px; }
.ied-tools button:hover { background: var(--sunk); color: var(--text); }
.ied-tools button.on { background: var(--brand-weak); color: var(--brand); border-color: var(--brand); }
.ied-tools button.used::after { content: ""; position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.ied-tools hr { width: 32px; border: 0; border-top: 1px solid var(--line); margin: 4px 0; flex: none; }
.ied-stage { position: relative; background: var(--sunk); display: flex; align-items: center; justify-content: center; padding: 16px; min-width: 0; min-height: 0; overflow: hidden; }
.ied-stage .cv img { max-height: var(--ied-mh, 60vh); }
.ied-stage .cv .pic { position: relative; -webkit-user-drag: none; user-select: none; }
.ied-side { overflow-y: auto; min-height: 0; }
.ied-side h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ied-side .sl { grid-template-columns: 48px 1fr 30px; margin-bottom: 6px; }
.ied-modes button { font-size: 12px; height: 28px; white-space: nowrap; }
.ied-side .cutrow .lnk { margin-left: 4px; }
.ied-side .bgs { margin-top: 8px; }
.btn.full { width: 100%; }
/* 图上的标注 */
.ov[data-tool=rect], .ov[data-tool=ellipse], .ov[data-tool=arrow], .ov[data-tool=line], .ov[data-tool=pen], .ov[data-tool=mosaic] { cursor: crosshair; }
.ov[data-tool=text] { cursor: text; }
.ov .mk { overflow: visible; }
.ov .mos { fill: rgba(120, 130, 150, .45); stroke: #fff; stroke-width: 1; stroke-dasharray: 4 3; }
.ov .msel { position: absolute; border: 1.5px dashed var(--brand); border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.ov[data-tool=select] { cursor: default; }
.ied-txt { position: absolute; margin: 0; padding: 0 2px; border: 1px dashed var(--brand); border-radius: 2px; background: rgba(255, 255, 255, .78);
  resize: none; overflow: hidden; outline: 0; white-space: pre; min-width: 40px; box-sizing: content-box; height: auto; }
/* 弹窗里的编辑器 */
.ied-modal { padding: 16px; z-index: 60; }
.ied-box { width: min(1480px, 100%); height: calc(100vh - 32px); max-height: none; display: flex; flex-direction: column; overflow: hidden; }
.ied-box .modal-h { padding: 10px 16px; flex: none; }
.ied-box .modal-h h2 { font-size: 15px; }
.ied-host { flex: 1; min-height: 0; }
@media (max-width: 900px) {
  .ied-bench { height: auto; overflow: visible; }
  .ied-body { grid-template-columns: 54px minmax(0, 1fr); }
  .ied-stage { min-height: 46vh; }
  .ied-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .ied-top, .ied-opt { overflow-x: auto; }
  .ied-btn span { display: none; }
}

/* 悬停提示：页面上不常驻说明文字，需要解释的地方鼠标停上去才显示 */
.tip-pop { position: fixed; z-index: 9999; max-width: 340px; padding: 6px 10px; border-radius: 7px; background: #1b2232; color: #fff; font-size: 12px;
  line-height: 1.65; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45); pointer-events: none; white-space: pre-line; font-weight: normal; text-align: left; }
.tip-i { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1px solid var(--line-2);
  color: var(--faint); font-size: 10px; font-weight: 600; font-style: normal; line-height: 1; cursor: help; vertical-align: 1px; flex: none; user-select: none; }
.tip-i:hover { color: var(--brand); border-color: var(--brand); }
.viewer figcaption { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.viewer figcaption span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer .info label.chk { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; cursor: pointer; }
/* 说明文字收进悬停提示以后的收尾 */
.fill-opts { grid-template-columns: 1fr; justify-items: start; }
.mat-h .tip-i, .panel-h .tip-i, .sub-h .tip-i, .up-cat .tip-i { align-self: center; }
.mat-h .acts { display: flex; gap: 6px; }
.plan-tools .tip-i { align-self: center; }
.checks .tip-i { margin-left: 0; }
/* 图片编辑器：放大缩小。图片宽度由脚本定；放大后中间区域滚动（用 margin:auto 居中，放大后四边都滚得到） */
.ied-stage { display: flex; align-items: normal; justify-content: normal; overflow: auto; }
.ied-stage .cv { margin: auto; flex: none; }
.ied-stage .cv img { max-width: none; max-height: none; }
.ied-stage .cv .ghost { width: 100%; height: 100%; }
.ied-stage.grab .ov, .ied-stage.grab { cursor: grab; }
.ied-stage.pan .ov, .ied-stage.pan { cursor: grabbing; }
.ied-mid { position: relative; display: flex; min-width: 0; min-height: 0; }
.ied-mid .ied-stage { flex: 1; }
.ied-zoom { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; background: var(--panel); margin-right: 4px; }
.ied-zoom button { height: 100%; min-width: 28px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.ied-zoom button[data-z=fit] { min-width: 50px; font-size: 12px; font-family: var(--mono); border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--text); }
.ied-zoom button:hover { background: var(--sunk); color: var(--text); }

/* 批量上传自动分拣 */
.batch-drop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  background: var(--panel); font-size: 13.5px; transition: border-color .12s, background .12s; }
.batch-drop .ic { width: 18px; height: 18px; color: var(--brand); }
.batch-drop.over { border-color: var(--brand); background: var(--brand-weak); }
.batch-drop.busy { border-style: solid; border-color: var(--brand); }
.batch-st { color: var(--muted); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray { margin-bottom: 20px; border: 1px solid var(--warn-line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.tray-h { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--warn-weak); border-bottom: 1px solid var(--warn-line); font-size: 13.5px; }
.tray-p, .tray-i { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.tray-h + .tray-p, .tray-h + .tray-i { border-top: 0; }
.tp-who { display: flex; align-items: center; gap: 12px; flex: none; }
.tp-who > b { min-width: 4em; font-size: 14px; }
.tp-docs { display: flex; gap: 8px; }
.tp-doc { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; font-size: 11px; color: var(--muted); text-decoration: none; flex: none; }
.tp-doc img { width: 76px; height: 50px; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; background: var(--sunk); }
.tp-doc:hover { color: var(--brand); text-decoration: none; }
.tp-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; flex: 1; min-width: 0; justify-content: flex-end; }
.chk-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chk-chip input { width: 13px; height: 13px; padding: 0; accent-color: var(--brand); }
.chk-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); }
.chk-chip small { color: var(--faint); font-size: 11px; }
.ti-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ti-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-name small { color: var(--warn); font-size: 12px; }
.tray-i select { height: 28px; max-width: 240px; font-size: 12.5px; }
@media (max-width: 900px) { .tray-p, .tray-i { flex-wrap: wrap; } .tp-roles { justify-content: flex-start; } }

/* 办件文件夹 */
.fd-row { display: flex; gap: 8px; align-items: center; }
.fd-row input { flex: 1; min-width: 0; font-size: 13px; }
.fd-row .btn { flex: none; }
.ask-body label > span { display: inline-flex; align-items: center; gap: 4px; }
.fold-btn span { max-width: 15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-btn.warn { border-color: var(--warn-line); color: var(--warn); }

/* 特殊岗位（主管检验师）：一直列出来，没启用时只有一行 */
.group.off { background: transparent; border-style: dashed; }
.group.off .group-h { margin-bottom: 0; }
.group.off h3 { color: var(--muted); }
.group-h .cond-chip { margin-left: 2px; }
.cond-chip { border-style: dashed; }
