/* 文序 · 公众号图文协作工作台
 * 视觉参照 wxeditor-ui-design/01_最新版设计图：白色顶栏、深色左侧导航、灰色画布上的白纸、蓝色主操作。 */
:root {
  --blue: #2152ff; --blue-600: #1840e0; --blue-50: #eef2ff; --blue-100: #dbe3ff;
  --rail: #1f2532; --rail-text: #c9cfdb;
  --ink: #1d2433; --text: #2f3644; --muted: #6b7383; --faint: #9aa1ae;
  --line: #e4e7ee; --line-strong: #d5dae3; --bg: #f5f6f9; --canvas: #eceef3; --card: #ffffff;
  --orange: #f0a43a; --orange-text: #c76e00; --orange-50: #fff4e3; --orange-100: #fde3b8;
  --green: #17a34a; --green-text: #15803d; --green-50: #e9f7ee;
  --red: #dc2f2f; --red-50: #fdeeee; --teal-50: #e6f6f5; --teal: #0f766e;
  --radius: 8px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 55, .06);
  --shadow: 0 6px 20px rgba(20, 30, 55, .08);
  --shadow-lg: 0 18px 50px rgba(20, 30, 55, .18);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.35; }
p { margin: 0 0 8px; }
a { color: var(--blue); }
small { font-size: 12px; }
.icon { flex: none; display: block; }
.muted { color: var(--muted); }
.grow { flex: 1; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small-note { font-size: 12px; margin-top: 8px; }
.text-orange { color: var(--orange-text); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.loading { display: grid; place-items: center; height: 100vh; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- 基础控件 ---------- */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
button:hover:not(:disabled), .button:hover { border-color: #b9c1cf; background: #fafbfc; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 500; }
button.primary:hover:not(:disabled) { background: var(--blue-600); border-color: var(--blue-600); }
button.danger { background: var(--red); border-color: var(--red); color: #fff; }
button.danger-outline { border-color: #f1b8b8; color: var(--red); }
button.danger-outline:hover:not(:disabled) { background: var(--red-50); border-color: var(--red); }
button.outline-primary { border-color: var(--blue); color: var(--blue); background: #fff; font-weight: 500; }
button.outline-primary:hover:not(:disabled) { background: var(--blue-50); }
button.small { height: 30px; padding: 0 12px; font-size: 13px; }
button.block { width: 100%; }
.link-button { height: auto; padding: 0; border: 0; background: none !important; color: var(--blue); gap: 2px; }
.link-button:hover:not(:disabled) { color: var(--blue-600); text-decoration: underline; }
.text-button { height: 32px; padding: 0 8px; border: 0; background: none; color: var(--text); }
.text-button:hover:not(:disabled) { background: #f0f2f6; }
.icon-button { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); }
.icon-button:hover:not(:disabled) { background: #eef0f4; color: var(--ink); }
.icon-button.small { width: 26px; height: 26px; }
input, select, textarea { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text); font: inherit; }
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
select { padding-right: 30px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7383' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; accent-color: var(--blue); flex: none; }
input[readonly] { background: #f7f8fa; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field-label { font-size: 13px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; }
.field-label { margin: 6px 0 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.muted.over { color: var(--red); font-weight: 600; }
.toggle-line, .check-line { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.toggle-line small { margin-left: 4px; }
/* 角色多选：每个角色一格，写明能做什么。 */
.field-label small { margin-left: 6px; font-weight: 400; }
.role-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field label.role-pick { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.role-pick > span { flex: 1; min-width: 0; }
.role-pick:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.role-pick:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.role-pick input { flex: none; margin: 3px 0 0; }
.role-pick b { display: block; font-size: 14px; }
.role-pick small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.role-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 860px) { .role-picks { grid-template-columns: minmax(0, 1fr); } }
.toggle-line.stacked { flex-wrap: wrap; }
.toggle-line.stacked small { flex-basis: 100%; margin: 0 0 0 24px; line-height: 1.7; }
.form-error { padding: 10px 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--red-50); color: var(--red); }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: #f3f6fd; color: #44506a; font-size: 13px; line-height: 1.55; margin: 10px 0; }
.notice .icon { margin-top: 2px; color: var(--blue); }
.notice.warm { background: var(--orange-50); color: #8a5a12; }
.notice.warm .icon { color: var(--orange-text); }
.empty-small { padding: 18px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; font-size: 13px; background: #fbfcfd; }
.empty { padding: 56px 20px; text-align: center; }
.empty h3 { margin: 12px 0 6px; font-size: 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1; }
.chip-orange { background: var(--orange-50); color: var(--orange-text); border: 1px solid var(--orange-100); }
.chip-orange-soft { background: var(--orange-50); color: var(--orange-text); }
.chip-green { background: var(--green-50); color: var(--green-text); }
.chip-blue { background: var(--blue-50); color: var(--blue); }
.chip-gray { background: #eff1f5; color: #5c6575; }
.chip-teal { background: var(--teal-50); color: var(--teal); }
.chip-outline { background: #fff; border: 1px solid var(--line-strong); color: var(--text); }
.chip-role-admin { background: #f3e8ff; color: #7e22ce; } .chip-role-editor { background: var(--blue-50); color: var(--blue); } .chip-role-reviewer { background: var(--orange-50); color: var(--orange-text); } .chip-role-publisher { background: var(--green-50); color: var(--green-text); } .chip-role-contributor { background: var(--teal-50); color: var(--teal); }
.chip-toggle { position: relative; cursor: pointer; } .chip-toggle input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip-toggle:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 500; flex: none; }
.tag-red { background: #eef1f6; color: #4b5563; } .tag-green { background: var(--green-50); color: var(--green-text); } .tag-gray { background: #eff1f5; color: #5c6575; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--blue-50); color: var(--blue); font-size: 11px; font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #e7ecff, #cfd9ff); color: var(--blue); font-weight: 600; font-size: 14px; flex: none; }
.avatar.small { width: 26px; height: 26px; font-size: 12px; background: #eef0f4; color: #4b5563; }
.avatar.large { width: 52px; height: 52px; font-size: 20px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius); background: #eef0f4; }
.segmented button { height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.segmented button.active { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); font-weight: 500; }
.segmented.pill { background: none; padding: 0; gap: 6px; }
.segmented.pill button { border-radius: 999px; padding: 0 18px; }
.segmented.pill button.active { background: var(--blue-50); box-shadow: none; }
.segmented.full { display: grid; grid-template-columns: 1fr 1fr; background: none; padding: 0; gap: 8px; }
.segmented.full button { height: 36px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.segmented.full button.active { background: var(--blue-50); border-color: var(--blue-50); color: var(--blue); box-shadow: none; }
.segmented.icon-seg button { width: 36px; padding: 0; }
.search-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--faint); }
.search-box input { border: 0; padding: 0; min-height: 0; height: 34px; outline: none; }
.tabs-line { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-line button { height: 42px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.tabs-line button:hover:not(.active) { background: none; color: var(--ink); }
.tabs-line.big { margin-bottom: 18px; }
.tabs-line.big button { font-size: 15px; }

/* ---------- Toast 与弹窗 ---------- */
.toast { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 1000; max-width: min(560px, calc(100vw - 32px)); padding: 11px 18px; border-radius: 10px; background: #1f2532; color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; }
.toast[data-error="true"] { background: #b42323; }
.toast-action { margin-left: 14px; padding: 0; border: 0; background: none; color: #a9c4ff; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.net-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 9px 16px; border: 1px solid #f0d48a; border-radius: 10px; background: #fff6dc; color: #6f4500; box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.5; }
.net-banner[hidden] { display: none; }
.net-banner .icon { flex: none; }
dialog#modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); color: var(--text); display: none; flex-direction: column; }
dialog#modal[open] { display: flex; }
dialog#modal.wide { width: min(980px, calc(100vw - 32px)); }
dialog#modal.submit-modal { width: min(880px, calc(100vw - 32px)); }
dialog#modal::backdrop { background: rgba(17, 24, 39, .42); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 28px 12px; }
.modal-head h2 { font-size: 22px; font-weight: 700; }
.modal-head p { margin: 4px 0 0; font-size: 14px; }
.modal-body { padding: 4px 28px 20px; overflow: auto; }
.modal-body h3 { font-size: 16px; margin: 4px 0 10px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); }
.modal-footer button { min-width: 96px; height: 40px; }
.footer-note { margin-right: auto; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.footer-note .icon { color: var(--red); }

.pop-menu { position: fixed; z-index: 900; min-width: 180px; max-width: 320px; max-height: 70vh; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); }
.menu-item { display: flex; width: 100%; justify-content: flex-start; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text); }
.menu-item:hover:not(:disabled) { background: #f2f4f8; }
.menu-item.danger { background: none; border-color: transparent; color: var(--red); }
.menu-item.danger:hover:not(:disabled) { background: var(--red-50); }
/* 站内提醒 */
.bell { position: relative; width: 38px; height: 38px; color: var(--text); }
.bell .badge { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.pop-menu.notice-menu { width: 380px; max-width: calc(100vw - 16px); padding: 0; }
.notice-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.notice-list { list-style: none; margin: 0; padding: 4px; }
.notice-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; height: auto; padding: 10px; border: 0; border-radius: 8px; background: none; text-align: left; white-space: normal; justify-content: flex-start; }
.notice-item:hover:not(:disabled) { background: #f4f6fa; }
.notice-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #eff1f5; color: var(--muted); }
.notice-item.unread .notice-icon { background: var(--blue-50); color: var(--blue); }
.notice-text { display: grid; gap: 2px; min-width: 0; }
.notice-text b { font-weight: 500; color: var(--text); line-height: 1.45; }
.notice-item.unread .notice-text b { font-weight: 600; color: var(--ink); }
.notice-text small { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #4d5565; }
.notice-text small.muted { color: var(--faint); }
.notice-empty { padding: 18px 16px; margin: 0; }
.link-notice { display: flex; align-items: flex-start; gap: 8px; margin: 10px 12px 0; padding: 10px 10px 10px 12px; border-radius: var(--radius); background: var(--orange-50); color: #7a4b0a; font-size: 13px; line-height: 1.55; }
.link-notice > .icon { margin-top: 2px; color: var(--orange-text); }
.link-notice > span { flex: 1; }
.link-notice .icon-button { width: 22px; height: 22px; flex: none; }
.link-notice button.small { flex: none; }
.link-notice.danger { background: var(--red-50); color: #8a1c1c; } .link-notice.danger > .icon { color: var(--red); }
.unavailable-line { display: inline-flex; align-items: center; gap: 3px; flex-basis: 100%; font-weight: 600; }
.link-problem { max-width: 520px; margin: 60px auto; padding: 36px; text-align: center; }
.link-problem h2 { margin: 14px 0 8px; }
.link-problem .form-actions { justify-content: center; }
.share-body textarea { resize: none; background: #f7f8fa; line-height: 1.6; }
.menu-item.outline-sub { padding-left: 26px; color: var(--muted); }
.menu-title { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.menu-empty { padding: 8px 10px; margin: 0; color: var(--muted); font-size: 13px; }
.menu-user { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu-user b, .menu-user small { display: block; }
.menu-user small { color: var(--muted); }
.swatch-row { display: flex; gap: 6px; padding: 4px 8px 8px; }
.swatch { width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.swatch.active, .swatch:hover { box-shadow: 0 0 0 2px var(--blue) !important; }

/* ---------- 品牌与通用框架 ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); }
.logo b { font-size: 22px; color: var(--ink); letter-spacing: 1px; }
.logo-button { height: 40px; padding: 0 4px; border: 0; background: none !important; }
.crumb { display: inline-flex; align-items: center; gap: 2px; min-width: 0; color: var(--muted); font-size: 15px; }
.crumb b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.crumb-sep { margin: 0 6px; color: var(--faint); }
.avatar-button { height: 40px; padding: 0 6px; border: 0; background: none; gap: 8px; }
.avatar-name { font-weight: 500; color: var(--ink); }

.rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: var(--rail); overflow-y: auto; }
.rail-item { flex-direction: column; gap: 4px; width: 68px; height: 66px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--rail-text); font-size: 13px; }
.rail-item:hover:not(:disabled) { background: rgba(255, 255, 255, .08); color: #fff; }
.rail-item.active, .rail-item.active:hover { background: #e9eefc; color: var(--blue); font-weight: 500; }
.rail-item:disabled { opacity: .35; }
.rail-spacer { flex: 1; }

/* ---------- 工作区布局（设计稿 01–04） ---------- */
.ws { display: grid; height: 100vh; overflow: hidden; background: var(--canvas); grid-template-rows: 58px 50px minmax(0, 1fr) 40px; }
.ws.tab-edit { grid-template-columns: 84px 336px minmax(0, 1fr) 78px; grid-template-areas: "top top top top" "rail sub sub sub" "rail side center right" "rail side status right"; }
.ws.tab-review { grid-template-columns: 84px minmax(0, 1fr) 440px; grid-template-areas: "top top top" "rail sub sub" "rail center panel" "rail status panel"; }
.ws.tab-handoff { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: 58px 50px minmax(0, 1fr); grid-template-areas: "top top" "rail sub" "rail main"; }
.ws.tab-edit.focus { grid-template-columns: 0 0 minmax(0, 1fr) 0; }
.ws.tab-review.focus { grid-template-columns: 0 minmax(0, 1fr) 440px; }
.ws.tab-handoff.focus { grid-template-columns: 0 minmax(0, 1fr); }
.ws.focus .rail, .ws.focus .side-panel, .ws.focus .rail-right { visibility: hidden; padding: 0; overflow: hidden; }
.ws.tab-review.panel-collapsed { grid-template-columns: 84px minmax(0, 1fr) 0; }
.ws.panel-collapsed .review-panel { visibility: hidden; }
#act-panel { display: none; }
.ws.panel-collapsed #act-panel { display: inline-flex; color: var(--blue); }

.ws-top, .app-top { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 22px; background: #fff; border-bottom: 1px solid var(--line); z-index: 3; }
.ws-top-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 0; }
.ws-top-left .crumb { padding-left: 16px; border-left: 1px solid var(--line); }
.ws-top-center { flex: none; display: flex; justify-content: center; }
.ws-top-right { display: flex; align-items: center; gap: 10px; flex: 1 1 0; justify-content: flex-end; min-width: 0; }
.ws-top-right > button:not(.avatar-button):not(.link-button):not(.bell) { height: 38px; min-width: 84px; }
.save-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.save-status .ok { color: var(--green); display: inline-flex; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; white-space: nowrap; }
.lock-note.warn { color: var(--orange-text); }
.ws-sub { grid-area: sub; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); z-index: 2; }
.ws-sub-left { display: flex; }
.ws-sub-right { display: flex; justify-content: flex-end; }
.ws-tabs { display: flex; gap: 8px; height: 100%; }
.ws-tabs button { height: 100%; padding: 0 22px; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 15px; border-bottom: 3px solid transparent; }
.ws-tabs button.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--blue); }
.ws-tabs button:hover:not(.active) { color: var(--ink); background: none; }
.banner { display: flex; align-items: center; gap: 8px; margin: 10px 20px 0; padding: 9px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.banner.warn { background: var(--orange-50); border-color: var(--orange-100); color: #8a5a12; }

/* 左侧样式面板 */
.side-panel { grid-area: side; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 0; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.panel-head h2 { font-size: 18px; }
.scope-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border-radius: var(--radius); background: #f3f5f9; font-size: 13px; color: var(--muted); }
.scope-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--blue-50); color: var(--blue); font-size: 13px; font-weight: 500; }
.scope-row .scope-chip { background: #fff; box-shadow: var(--shadow-sm); }
.group-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.group-tabs button { flex: 1; height: 36px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.group-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.swatch-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.swatch-line span { margin-right: 6px; }
.style-list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.style-card-wrap { display: flex; flex-direction: column; gap: 4px; }
.style-card { position: relative; display: block; width: 100%; height: auto; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; overflow: hidden; }
.style-card:hover:not(:disabled) { border-color: #b9c6ef; background: #fff; box-shadow: var(--shadow-sm); }
.style-card.selected { border: 1.5px solid var(--blue); box-shadow: 0 0 0 3px rgba(33, 82, 255, .08); }
.style-card:disabled { opacity: 1; cursor: default; }
.style-preview { pointer-events: none; zoom: .82; font-size: 16px; line-height: 1.75; color: #333; }
.style-preview > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.style-name { font-size: 13px; color: var(--muted); padding-left: 2px; }
.check-badge { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; }
.theme-sample { display: flex; gap: 10px; align-items: flex-start; }
.theme-sample .dots { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.theme-sample .dots i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .06); }
.theme-sample .style-preview { flex: 1; }
.panel-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin: auto -20px 0; padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); font-size: 13px; }
.panel-foot .text-button { padding: 0 4px; font-size: 13px; }
.panel-foot .toggle-line { font-size: 13px; color: var(--muted); }
.foot-sep { width: 1px; height: 18px; background: var(--line); }
.section-title { font-size: 14px; margin: 6px 0 0; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.image-list { display: flex; flex-direction: column; gap: 6px; }
.image-row { justify-content: flex-start; gap: 10px; height: auto; padding: 8px; text-align: left; }
.image-row img { width: 54px; height: 40px; object-fit: cover; border-radius: 4px; background: #eef0f4; }
.image-row span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.image-row small { overflow: hidden; text-overflow: ellipsis; }
.ai-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.ai-card h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.ai-card h3 .icon { color: var(--blue); }
.ai-card p { margin: 0; font-size: 13px; }
.comment-link { justify-content: space-between; height: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; text-align: left; white-space: normal; }

/* 中间画布 */
.ws-center { grid-area: center; position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.surface-switch { display: flex; justify-content: center; padding: 12px 0 0; }
.toolbar-row { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 20px 6px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 2px; height: 46px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.toolbar[data-disabled="true"] { opacity: .6; }
.tb { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: none; color: #3b4352; gap: 0; }
.tb:hover:not(:disabled) { background: #f0f2f6; }
.tb .icon + .icon { margin-left: -2px; }
.tb-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--line); }
.tb-select { width: auto; min-height: 0; height: 34px; padding: 0 26px 0 10px; border: 0; background-color: transparent; background-position: right 6px center; font-size: 14px; }
.tb-select:hover:not(:disabled) { background-color: #f0f2f6; }
.tb-select.narrow { width: 62px; }
.tb-color { width: auto; padding: 0 4px; position: relative; }
.tb-color .a-glyph { font-weight: 600; font-size: 16px; }
.tb-color i { position: absolute; left: 7px; bottom: 6px; width: 13px; height: 3px; border-radius: 1px; }
.menu-host { display: inline-flex; }
.device-group { display: flex; gap: 10px; align-items: center; }
.device-group .segmented { background: #fff; box-shadow: var(--shadow); padding: 4px; }
.device-group .segmented button.active { background: var(--blue-50); box-shadow: none; }
.device-group .tb-select { background-color: #fff; box-shadow: var(--shadow); height: 42px; border-radius: 8px; padding-left: 14px; }
.canvas-scroll { flex: 1; overflow: auto; padding: 14px 24px 40px; min-height: 0; scroll-behavior: smooth; }
.paper-wrap { position: relative; width: max-content; max-width: 100%; margin: 0 auto; }
.paper { position: relative; max-width: 100%; margin: 0 auto; padding: 26px 26px 48px; background: #fff; box-shadow: 0 2px 12px rgba(20, 30, 55, .07); border-radius: 2px; min-height: 600px; }
.block-handle { position: absolute; left: 1px; width: 22px; height: 26px; padding: 0; border: 1px solid var(--blue-100); border-radius: 5px; background: #fff; color: var(--blue); z-index: 2; }
.para-pop { position: absolute; left: calc(100% + 26px); width: 268px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); z-index: 4; }
.para-pop::before { content: ""; position: absolute; left: -27px; top: 40px; width: 26px; border-top: 1.5px solid var(--blue); }
.para-pop::after { content: ""; position: absolute; left: -31px; top: 36px; width: 7px; height: 7px; border: 1.5px solid var(--blue); border-radius: 50%; background: #fff; }
.pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pop-head b { font-size: 16px; color: var(--ink); }
.pop-grid { display: grid; grid-template-columns: 80px 1fr; gap: 10px 8px; align-items: center; margin: 14px 0; font-size: 14px; }
.pop-grid select { min-height: 34px; height: 34px; padding-top: 0; padding-bottom: 0; }
.align-group { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.align-group button { height: 32px; padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--muted); }
.align-group button + button { border-left: 1px solid var(--line); }
.align-group button.active { background: var(--blue-50); color: var(--blue); }
.pop-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.pop-foot .primary { height: 34px; }

/* 正文（与微信复制一致的变量） */
.rich { position: relative; font-size: var(--fs, 16px); line-height: var(--lh, 1.75); color: #333; outline: none; word-break: break-word; overflow-wrap: anywhere; letter-spacing: .3px; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; min-height: 300px; }
.rich > * { margin-top: 0; }
.rich p, .rich ul, .rich ol, .rich blockquote, .rich table, .rich section { margin: 0 0 var(--ps, 16px); }
.rich h1, .rich h2, .rich h3, .rich h4 { color: var(--accent, #1f2d4f); margin: 24px 0 12px; line-height: 1.5; }
.rich h1 { font-size: 1.6em; } .rich h2 { font-size: 1.25em; } .rich h3 { font-size: 1.1em; } .rich h4 { font-size: 1em; }
.rich blockquote { padding: 10px 16px; border-left: 3px solid var(--accent2, #e3a35b); background: var(--soft, #f7efe4); }
.rich img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.rich a { color: #576b95; text-decoration: none; }
.rich ul, .rich ol { padding-left: 1.5em; }
.rich table { width: 100%; border-collapse: collapse; }
.rich td, .rich th { border: 1px solid #ddd; padding: 6px 8px; }
.rich hr { border: 0; border-top: 1px solid #ddd; margin: 24px 0; }
.rich .is-current { outline: 1.5px solid var(--blue); outline-offset: 5px; border-radius: 3px; background-color: rgba(33, 82, 255, .035); }
.rich .flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 60% { outline: 2px solid var(--orange); outline-offset: 4px; background-color: var(--orange-50); } 100% { outline: 2px solid transparent; } }
.rich[contenteditable="true"] img { cursor: default; }
::highlight(wx-comment) { background-color: #fde9bf; }
::highlight(wx-comment-active) { background-color: #fbd27e; }
#marks { position: absolute; inset: 0; pointer-events: none; }
.mark-badge { position: absolute; display: grid; place-items: center; width: 20px; height: 18px; padding: 0; border: 0; border-radius: 5px 5px 5px 0; background: #f0a43a; color: #fff; font-size: 11px; font-weight: 700; pointer-events: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.mark-badge.done { background: #b7bfcc; }
.mark-badge.active { background: #e3870e; transform: scale(1.12); }
.img-outline { position: absolute; border: 2px solid var(--orange); border-radius: 3px; pointer-events: none; }
.img-outline.active { box-shadow: 0 0 0 3px rgba(240, 164, 58, .3); }
.connector { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; overflow: visible; }
.sel-bubble { position: fixed; z-index: 800; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 13px; }
.sel-bubble:hover:not(:disabled) { background: #000; border: 0; }

/* 封面与摘要 */
.cover-form, .card-preview { max-width: 760px; margin: 0 auto 16px; padding: 22px 24px; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crop-area { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; margin: 4px 0 12px; }
.focus-picker { position: relative; cursor: crosshair; border-radius: 6px; overflow: hidden; background: #f0f2f6; }
.focus-picker img { display: block; width: 100%; }
.focus-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(33, 82, 255, .35); pointer-events: none; }
.crops { display: grid; gap: 12px; align-content: start; }
.crops figure, .hf-covers figure { margin: 0; }
.crop { display: block; overflow: hidden; border-radius: 6px; background: #eef0f4; }
.crop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crop.wide { aspect-ratio: 2.35 / 1; }
.crop.square { aspect-ratio: 1; width: 110px; }
.crops figcaption, .hf-covers figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.confirm-line { padding: 10px 12px; border-radius: var(--radius); background: #f5f7fb; }
.card-preview h3 { font-size: 16px; margin-bottom: 4px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick-grid button { height: auto; padding: 4px; }
.pick-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* 微信消息卡片 */
.message-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.wx-feed, .wx-share { border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.wx-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
.wx-head small { margin-left: auto; color: var(--faint); }
.wx-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1f2d4f; color: #fff; font-size: 12px; flex: none; }
.wx-card-main { position: relative; }
.wx-card-main img, .wx-noimg { display: block; width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; background: #e5e7eb; }
.wx-noimg { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.wx-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: 15px; font-weight: 600; }
.wx-share { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fafafa; }
.wx-share b { font-size: 15px; color: #111; }
.wx-share-body { display: flex; gap: 10px; }
.wx-share-body p { flex: 1; margin: 0; font-size: 13px; color: #888; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wx-share-body img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; }
.wx-share small { color: #aaa; border-top: 1px solid #eee; padding-top: 6px; }

/* 右侧工具栏与状态栏 */
.rail-right { grid-area: right; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; }
.rail-tool { position: relative; flex-direction: column; gap: 4px; width: 64px; height: 66px; padding: 0; border: 0; border-radius: 10px; background: none; color: #4b5363; font-size: 13px; }
.rail-tool:hover:not(:disabled) { background: #f3f5f9; }
.rail-tool.active { background: var(--blue-50); color: var(--blue); }
.dot-count { position: absolute; top: 6px; right: 12px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.ws-status { grid-area: status; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: #f8f9fb; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); }
.status-right { display: flex; align-items: center; gap: 18px; }
.zoom { display: inline-flex; align-items: center; gap: 6px; }
.zoom b { min-width: 44px; text-align: center; font-weight: 500; }
.ws-status .link-button { gap: 6px; }

/* ---------- 审校改稿（设计稿 02） ---------- */
.review-panel { grid-area: panel; display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--line); }
.rp-tabs { display: flex; align-items: center; gap: 26px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.rp-tabs button[data-rtab] { height: 52px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 15px; border-bottom: 3px solid transparent; }
.rp-tabs button.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--blue); }
.rp-body { flex: 1; overflow-y: auto; padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.rp-filters { display: flex; gap: 10px; align-items: center; }
.rp-filters select { width: auto; min-width: 104px; height: 36px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.rp-filters-more { margin-top: 8px; }
.rp-filters-more select { flex: 1; min-width: 0; }
.rp-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.rp-subrow { display: flex; align-items: baseline; gap: 10px; }
.rp-subrow .rp-subtitle { flex: 1; min-width: 0; }
.rp-subrow .link-button { flex: none; font-size: 13px; }
/* 面板有 14px 上内边距、列表项间距 12px：吸顶时上移 2px，再用 12px 的白色投影盖住上方滚过去的内容，不遮住上一行。 */
.batch-bar { position: sticky; top: -2px; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--blue-100); border-radius: 10px; background: var(--blue-50); box-shadow: 0 -12px 0 #fff; }
.batch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.batch-row b { color: var(--ink); }
.batch-row select { width: auto; min-width: 104px; height: 34px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.batch-row .ai-trigger { align-self: center; background: #fff; }
.batch-bar .small-note { margin: 0; }
.batch-pick { flex: none; width: 16px; height: 16px; margin: 0; cursor: pointer; }
.batch-ai { padding: 4px 14px 14px; border: 1.5px solid var(--blue); border-radius: 10px; background: #fff; }
.batch-ai .ai-box { border-top: 0; }
.comment-card { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.comment-card:hover { border-color: #cfd6e4; }
.comment-card.active { border-left: 3px solid var(--orange); box-shadow: var(--shadow); padding-left: 14px; }
.comment-card.is-fixed, .comment-card.is-wontfix { background: #fbfcfd; }
.comment-card.is-fixed .cc-text, .comment-card.is-wontfix .cc-text { color: var(--muted); }
.comment-card.note { cursor: default; }
.cc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-head b { color: var(--ink); white-space: nowrap; }
.cc-head .num { display: grid; place-items: center; width: 20px; height: 18px; border-radius: 5px 5px 5px 0; background: var(--orange); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; flex: none; }
.cc-quote { padding: 7px 12px; border-radius: 6px; background: var(--orange-50); color: var(--ink); font-size: 14px; }
.cc-quote.doc { background: #f1f4f9; color: var(--muted); }
.cc-quote.img { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.cc-quote.img img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; }
.qmark { color: var(--orange-text); font-weight: 700; margin: 0 2px; }
.cc-text { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.65; }
.relocate { display: flex; gap: 6px; align-items: flex-start; padding: 6px 10px; border-radius: 6px; background: #fff7ed; color: #9a5a08; font-size: 12px; }
.replies { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 8px; background: #f7f8fb; }
.reply { font-size: 13px; }
.reply b { margin-right: 6px; }
.reply p { margin: 2px 0; }
.cc-actions { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.cc-actions select { width: auto; min-width: 96px; height: 34px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.ai-trigger { align-self: flex-start; height: 30px; padding: 0 10px; border-color: var(--blue-100); color: var(--blue); background: var(--blue-50); font-size: 13px; }
.ai-box { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ai-head { display: flex; align-items: center; gap: 8px; }
.ai-head .icon { color: var(--blue); }
.ai-head b { font-size: 15px; color: var(--ink); }
.ai-scope { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-left: 26px; }
.ai-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.ai-row + .ai-row { border-top: 1px dashed var(--line); }
.ai-line { display: flex; gap: 10px; align-items: flex-start; }
.ai-line p { margin: 0; flex: 1; font-size: 14px; line-height: 1.7; }
.ai-line del { background: #fde2e2; color: #b42323; text-decoration: none; border-radius: 2px; }
.ai-line ins { background: #d9f2df; color: #146c34; text-decoration: none; border-radius: 2px; }
.ai-edit { flex: 1; padding: 6px 8px; border: 1px solid var(--blue); border-radius: 6px; outline: none; font-size: 14px; line-height: 1.7; }
.pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--blue); }
.ai-buttons { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.ai-buttons button { height: 38px; }
.composer { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1.5px solid var(--blue); border-radius: 10px; background: #fff; }
.composer textarea { min-height: 84px; }
.composer-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.composer-foot select { width: auto; height: 36px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.reply-box { display: flex; align-items: center; gap: 6px; margin: 10px 16px 14px; padding: 4px 6px 4px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
.reply-box input { border: 0; padding: 0; min-height: 40px; outline: none; }
.decision-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #f8faff; }
.decision-bar span { flex: 1; font-weight: 500; color: var(--ink); }
.decision-bar.waiting span { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--muted); }
.decision-bar.waiting .icon { color: var(--green); flex: none; }
.handled { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 8px; background: #f7f8fb; font-size: 13px; }
.handled b { margin-right: 4px; }
.change { padding: 12px 0; border-bottom: 1px solid var(--line); }
.change-label { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.change p { margin: 0; }
.diff-pair { display: flex; flex-direction: column; gap: 6px; }
.diff-line { display: flex; gap: 10px; align-items: flex-start; }
.diff-line p { flex: 1; font-size: 14px; line-height: 1.7; }
.diff-line del { background: #fde2e2; color: #b42323; text-decoration: line-through; text-decoration-color: rgba(180, 35, 35, .45); }
.diff-line ins { background: #d9f2df; color: #146c34; text-decoration: none; }
::highlight(wx-find) { background-color: #ffe9a3; color: inherit; }
::highlight(wx-find-current) { background-color: #ff9f1a; color: #1d2433; }
.find-bar { position: fixed; z-index: 900; display: grid; gap: 8px; width: 440px; max-width: calc(100vw - 24px); padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.find-row { display: flex; align-items: center; gap: 6px; }
.find-row input { flex: 1; min-width: 0; height: 34px; min-height: 0; }
.find-row button { flex: none; height: 34px; }
.find-row .icon-button { width: 30px; }
.find-count { flex: none; min-width: 54px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.find-count.none { color: #b42323; }
.find-case { width: 34px; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.find-case[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }
.menu-key { margin-left: auto; padding-left: 16px; font-size: 12px; color: var(--faint); }
.key-changes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #8a5a12; }
.key-changes .icon { flex: none; color: var(--orange-text); }
.key-title { font-weight: 600; }
.key-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--orange-50); border: 1px solid var(--orange-100); color: #6f4500; overflow-wrap: anywhere; }
.key-chip b { font-weight: 600; color: var(--orange-text); }
.key-summary { margin: 0 0 10px; }
.sbs { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; line-height: 1.7; }
.sbs-head, .sbs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sbs-head > div { padding: 8px 14px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 13px; }
.sbs-row > div { padding: 8px 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.sbs-head > div + div, .sbs-row > div + div { border-left: 1px solid var(--line); }
.sbs-row.same { color: var(--muted); }
.sbs-row.changed > div { background: #fffcf2; color: var(--text); }
.sbs-row[data-tag^="h"] { font-weight: 600; }
.sbs-row del { background: #fde2e2; color: #b42323; text-decoration: line-through; text-decoration-color: rgba(180, 35, 35, .45); }
.sbs-row ins { background: #d9f2df; color: #146c34; text-decoration: none; }
.sbs-label { display: block; font-size: 12px; font-weight: 600; color: var(--faint); }
.sbs-note { display: block; font-size: 12px; color: var(--orange-text); }
.sbs-none { color: var(--faint); font-weight: 400; }
.sbs.only-changes .sbs-row.same { display: none; }
.sbs-toggle { margin-bottom: 12px; }
.v-compare { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.v-compare label { flex: none; font-size: 13px; color: var(--muted); }
.v-compare select { width: auto; min-width: 0; max-width: 260px; height: 34px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.v-compare .segmented { flex: none; }
@media (max-width: 860px) { .desktop-only { display: none !important; } .v-compare { flex-wrap: wrap; } }
.round-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.round-note { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: #f5f7fb; font-size: 13px; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { position: relative; display: flex; gap: 10px; padding: 0 0 14px; }
.steps li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; border-left: 1.5px solid var(--line-strong); }
.steps li:last-child::before { display: none; }
.steps b { font-size: 14px; }
.steps small { display: block; }
.joint-chip { height: 18px; margin-left: 6px; padding: 0 6px; font-size: 11px; vertical-align: 1px; }
.cosign-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.cosign-note .icon { color: var(--green); }
.step-dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; color: #fff; flex: none; margin-top: 2px; }
.steps .approve .step-dot { background: var(--green); border-color: var(--green); }
.steps .return .step-dot { background: var(--red); border-color: var(--red); }
.steps .current .step-dot { border: 5px solid var(--blue); }
.reason { margin: 4px 0 0; padding: 6px 10px; border-radius: 6px; background: var(--orange-50); color: #8a5a12; font-size: 13px; }
.scope-preview { max-height: 280px; overflow: auto; padding: 12px; border-radius: 8px; background: #f7f8fb; font-size: 13px; }

/* ---------- 送审弹窗（设计稿 03） ---------- */
.check-summary { display: flex; align-items: center; gap: 22px; padding: 12px 22px; border-radius: 10px; background: #fdf6ec; margin-bottom: 18px; font-size: 15px; flex-wrap: wrap; }
.check-summary.has-block { background: var(--red-50); }
.check-summary > span { display: inline-flex; align-items: center; gap: 8px; }
.check-summary > i { width: 1px; height: 18px; background: #e5d6bf; }
.lv-pass, .lv-pass .check-icon { color: var(--green); }
.lv-warn, .lv-warn .check-icon { color: var(--orange-text); }
.lv-block, .lv-block .check-icon { color: var(--red); }
.muted-ok { color: var(--text); }
.muted-ok .icon { color: var(--muted); }
.lv-pass-text { display: flex; align-items: center; gap: 6px; color: var(--green-text); }
.submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 20px; }
.submit-main h3, .submit-side h3 { font-size: 17px; margin-bottom: 12px; }
.submit-side { padding-left: 20px; border-left: 1px solid var(--line); }
.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.check-row > div { flex: 1; min-width: 0; }
.check-row b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.check-row small { display: block; color: var(--muted); font-size: 13px; }
.check-row.lv-warn { background: #fff8ee; border-color: #f8e2bf; }
.check-row.lv-block { background: #fff4f4; border-color: #f6caca; }
.check-row .link-button { font-size: 14px; }
.check-list.compact .check-row { padding: 8px 12px; }
.hit-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.hit-list .muted { font-size: 12px; }
.hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; width: 100%; height: auto; min-height: 0; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; background: rgba(255, 255, 255, .7); text-align: left; white-space: normal; font-size: 13px; color: var(--text); }
.hit:hover { border-color: var(--line-strong); background: #fff; }
.hit mark { background: #ffe8b3; color: var(--ink); padding: 0 1px; border-radius: 2px; }
.hit-field { flex: none; font-size: 12px; color: var(--muted); }
.hit-text { flex: 1; min-width: 0; }
.hit small { flex: 1 1 100%; color: var(--orange-text); font-size: 12px; }
.flow-steps { list-style: none; margin: 0; padding: 0 0 0 6px; }
.flow-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.flow-steps li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 2px; border-left: 1.5px solid var(--line-strong); }
.flow-steps li:last-child::before { display: none; }
.flow-steps i { width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1.5px solid #a9b1bf; background: #fff; flex: none; }
.flow-steps li.current i { border: 5px solid var(--blue); }
.flow-steps b { display: block; color: var(--ink); font-size: 14px; }
.flow-steps small { color: var(--muted); font-size: 13px; }
.flow-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.flow-note.danger { align-items: flex-start; color: var(--red); line-height: 1.6; }
.flow-note.danger .icon { flex: none; margin-top: 4px; }
.version-card { padding: 14px 16px 0; border: 1px solid var(--line); border-radius: 10px; background: #f9fafc; overflow: hidden; }
.version-card small { color: var(--ink); font-size: 14px; font-weight: 600; }
.version-card > b { display: block; font-size: 30px; color: var(--ink); line-height: 1.3; margin-top: 2px; }
.version-card p { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 -16px; padding: 8px 16px; border-top: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--muted); }
.legend span { color: var(--line-strong); }
#submit-note { min-height: 90px; }

/* 停留超时提醒 */
.inline-field { display: flex; align-items: center; gap: 12px; margin: 0; }
.inline-field label { margin: 0; }
.inline-field select { width: auto; min-width: 140px; }

/* 微信内一键登录 */
.wechat-login { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--radius); background: #07c160; color: #fff; font-weight: 600; text-decoration: none; }
.wechat-login:hover { background: #06ad56; color: #fff; }
.wechat-login small { padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-weight: 400; font-size: 12px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 13px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#wxlogin-card .help-tips { margin-top: 12px; }

/* 短信提醒 */
.sms-recent { margin-top: 12px; }
.sms-recent td { vertical-align: middle; }

/* 送审时临时更换审核人 */
.swap-row { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.swap-select { width: 100%; height: 32px; font-size: 13px; padding-top: 0; padding-bottom: 0; }

/* 单位样式管理 */
.unit-themes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.unit-theme { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.unit-theme.off, .unit-block.off { background: #fafbfc; }
.unit-theme.off .style-preview, .unit-block.off .style-preview { opacity: .45; }
.unit-theme-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.unit-theme-head .dots { display: inline-flex; gap: 3px; }
.unit-theme-head .dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.unit-theme .style-preview { flex: 1; overflow: hidden; }
.unit-theme-actions { display: flex; align-items: center; gap: 10px; }
.unit-theme-actions .link-button { margin-left: auto; }
.unit-group { font-size: 14px; margin: 16px 0 8px; color: var(--ink); }
.unit-blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.unit-block { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.field-row.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.color-input { display: flex; align-items: center; gap: 6px; }
.color-input input[type="color"] { flex: none; width: 38px; height: 38px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; }
.color-input input[type="text"] { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.theme-preview { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.theme-preview .style-preview { zoom: 1; }
@media (max-width: 640px) { .field-row.three { grid-template-columns: 1fr; } }

/* 微信显示异常的问题回报 */
.issue-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.issue-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.issue-head .count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange-50); color: var(--orange-text); font-size: 12px; line-height: 20px; text-align: center; }
.issue-head button { display: inline-flex; align-items: center; gap: 5px; }
.issue-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.issue-row { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.issue-row.open { border-color: var(--orange-100); background: #fffaf2; }
.issue-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.issue-top .link-button { margin-left: auto; font-size: 13px; }
.issue-quote { margin: 0; padding-left: 8px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-note { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.issue-shot img { display: block; max-width: 100%; max-height: 180px; border: 1px solid var(--line); border-radius: 8px; }
.issue-done { display: flex; gap: 6px; margin: 0; font-size: 13px; color: var(--green-text); }
.issue-done .icon { flex: none; margin-top: 3px; }
.issue-row button.small { align-self: flex-start; }
#issue-preview img { display: block; max-width: 100%; max-height: 220px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
#issue-note { min-height: 88px; }
.issue-flash { outline: 3px solid var(--orange); outline-offset: 4px; transition: outline-color .3s; }
.issue-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.issue-thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.issue-table td { vertical-align: top; }

/* 新手引导 */
.guide-pop { position: fixed; z-index: 850; width: min(320px, calc(100vw - 24px)); padding: 14px 16px 12px; border-radius: 12px; background: #1f2532; color: #fff; box-shadow: 0 12px 32px rgba(17, 24, 39, .28); }
.guide-pop b { display: block; font-size: 15px; margin-bottom: 4px; }
.guide-pop p { margin: 0; font-size: 13px; line-height: 1.7; color: #d7dbe5; }
.guide-arrow { position: absolute; top: -6px; width: 12px; height: 12px; margin-left: -6px; background: #1f2532; transform: rotate(45deg); }
.guide-pop.above .guide-arrow { top: auto; bottom: -6px; }
.guide-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 10px; }
.guide-actions .link-button { color: #aab2c2; font-size: 13px; }
.guide-actions .link-button:hover { color: #fff; }
.guide-actions .primary { min-width: 72px; }
.guide-target { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(33, 82, 255, .55) !important; animation: guide-pulse 1.6s ease-in-out infinite; }
@keyframes guide-pulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(33, 82, 255, .22); } }
@media (prefers-reduced-motion: reduce) { .guide-target { animation: none; } }

/* 预览、版本、导入、帮助、记录 */
.preview-layout { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { width: 375px; max-width: 100%; height: min(680px, 62vh); border: 10px solid #1f2532; border-radius: 36px; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.phone-bar { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 12px; color: #111; border-bottom: 1px solid #f0f0f0; }
.phone-screen { flex: 1; overflow-y: auto; }
dialog#modal.preview-modal { width: min(760px, calc(100vw - 32px)); }
.preview-main { display: flex; align-items: flex-start; justify-content: center; gap: 24px; max-width: 100%; }
.preview-qr { width: 216px; flex: none; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.preview-qr > b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.preview-qr .small-note { margin: 0; line-height: 1.6; }
.preview-qr button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; display: flex; justify-content: center; }
.qr-box svg { display: block; width: 100%; height: auto; max-width: 176px; }
.qr-warn { display: flex; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #8a5a00; font-size: 12px; line-height: 1.6; }
.qr-warn .icon { flex: none; margin-top: 3px; }
/* 深色模式预览 */
.preview-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.dark-switch button:disabled { opacity: .45; cursor: default; }
.wx-dark { background: #191919; }
.wx-dark .wx-article h1 { color: #d2d2d2; }
.wx-dark .wx-meta { color: #7f7f7f; }
.wx-dark .wx-meta b, .wx-dark .wx-body a { color: #7d90a9; }
.phone.phone-dark { background: #191919; }
.phone-dark .phone-bar { color: #d2d2d2; border-bottom-color: #2a2a2a; }
.dark-report { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 620px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; font-size: 13px; line-height: 1.6; }
.dark-report[hidden] { display: none; }
.dark-report > b { display: flex; align-items: center; gap: 6px; }
.dark-report .dark-ok { color: var(--green-text); }
.dark-report .dark-warn { color: var(--orange-text); }
.dark-report ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dark-report li { display: flex; flex-direction: column; align-items: flex-start; }
.dark-report .link-button { text-align: left; }
.dark-flash { outline: 2px solid #ffb020; outline-offset: 2px; }
.pv-page.pv-dark .pv-main { background: #191919; }
.pv-switch { flex-wrap: wrap; gap: 10px; }
.pv-page > .dark-report { width: auto; margin: 10px 14px 0; }

/* 手机上打开的预览页 */
.pv-page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.pv-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.pv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-title b { font-size: 15px; color: var(--ink); }
.pv-title small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-switch { display: flex; justify-content: center; padding: 10px 0 0; }
.pv-main { flex: 1; }
.pv-main .wx-cards { min-height: 60vh; }
.pv-note { padding: 0 16px 24px; }
.wx-article { padding: 18px 16px 30px; }
.wx-article h1 { font-size: 22px; line-height: 1.4; margin-bottom: 10px; color: #111; }
.wx-meta { display: flex; gap: 8px; font-size: 14px; color: #888; margin-bottom: 18px; }
.wx-meta b { color: #576b95; font-weight: 400; }
.wx-body img { max-width: 100%; }
.wx-cards { padding: 16px; background: #ededed; min-height: 100%; }
.wx-cards .message-cards { grid-template-columns: 1fr; }
.versions { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; min-height: 420px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.v-list { border-right: 1px solid var(--line); background: #fafbfc; overflow-y: auto; max-height: 62vh; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.v-row { justify-content: flex-start; align-items: flex-start; gap: 10px; height: auto; padding: 10px; border: 0; border-radius: 8px; background: none; text-align: left; white-space: normal; }
.v-row:hover:not(:disabled) { background: #f0f2f6; }
.v-row.active { background: var(--blue-50); }
.v-label { min-width: 40px; height: 24px; display: inline-grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 13px; padding: 0 6px; }
.v-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v-info small { color: var(--muted); }
.v-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.v-toggle { justify-content: flex-start; height: 34px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.v-detail { padding: 16px 20px; overflow-y: auto; max-height: 62vh; }
.v-detail-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.v-detail-head h3 { font-size: 16px; margin: 0 0 2px; }
.v-changes .change:last-child { border-bottom: 0; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.help-flow { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.help-flow span { display: block; color: var(--muted); font-size: 13px; }
.help-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: 13px; }
.help-keys dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.help-keys dd { margin: 0; color: var(--muted); }
.help-tips { margin: 6px 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.import-drop { display: block; margin-bottom: 14px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: #fafbfd; transition: border-color .15s, background .15s; }
.import-drop.over, .import-drop:hover { border-color: var(--blue); background: var(--blue-50); }
.drop-label, label.import-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px; text-align: center; cursor: pointer; color: var(--muted); }
.drop-label .icon, label.import-drop .icon { color: var(--blue); }
.drop-label b, label.import-drop b { color: var(--ink); font-size: 15px; }
label.import-drop.small { padding: 18px; margin: 0; }
.import-summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #f5f7fb; margin-bottom: 10px; font-size: 13px; }
.import-preview { max-height: 240px; overflow: auto; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; zoom: .85; --fs: 16px; --lh: 1.75; --ps: 12px; min-height: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; border-left: 1.5px solid var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > i { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #c3cad6; flex: none; }
.timeline .tl-review > i { background: var(--blue); }
.timeline .tl-comment > i { background: var(--orange); }
.timeline .tl-ai > i { background: #8b5cf6; }
.timeline .tl-publication > i { background: var(--green); }
.timeline b { color: var(--ink); }
.timeline small { display: block; color: var(--muted); }
.timeline p { margin: 4px 0 0; padding: 6px 10px; border-radius: 6px; background: #f6f7fa; font-size: 13px; }
.layout-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layout-compare > div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.layout-compare p { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.template-option { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.template-option:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.template-option input { margin-top: 3px; }
.template-option b { display: block; color: var(--ink); }
.template-option small { color: var(--muted); }
.template-option span { min-width: 0; }
#new-unit-templates .field-label { margin-top: 12px; }
.radio-card { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.radio-card input { margin-top: 3px; }
.radio-card b { display: block; color: var(--ink); font-weight: 600; }
.radio-card small { color: var(--muted); }
.tpl-structure { margin: 10px 0 0; font-size: 13px; line-height: 1.7; }
.template-table td small { display: block; }

/* ---------- 定稿交接（设计稿 04） ---------- */
.handoff-root { grid-area: main; display: flex; flex-direction: column; min-height: 0; }
.round-strip { display: flex; align-items: center; gap: 24px; height: 50px; padding: 0 30px 0 36px; background: #fff; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.rs-title { color: var(--text); white-space: nowrap; }
.round-strip ol { display: flex; list-style: none; margin: 0 auto 0 30px; padding: 0; gap: 0; }
.round-strip li { display: flex; align-items: center; gap: 6px; padding: 0 28px; white-space: nowrap; color: var(--muted); }
.round-strip li + li { border-left: 1px solid var(--line); }
.round-strip li b { color: var(--ink); font-weight: 500; }
.round-strip li span { color: var(--text); }
.round-strip li.done .icon { color: var(--green); }
.round-strip li.returned .icon { color: var(--red); }
.round-strip li.current .icon { color: var(--blue); }
.rs-version { font-weight: 600; color: var(--ink); white-space: nowrap; }
.handoff-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 510px; min-height: 0; }
.handoff-center { display: flex; flex-direction: column; min-height: 0; background: var(--canvas); }
.handoff-switch { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 20px 0; position: relative; }
.handoff-switch .segmented { background: #fff; border-radius: 8px; box-shadow: var(--shadow-sm); padding: 3px; }
.handoff-switch .segmented button { border-radius: 6px; }
.snapshot-pill { position: absolute; right: max(20px, calc(50% - 260px)); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; background: #fff; box-shadow: var(--shadow-sm); font-size: 14px; color: var(--text); }
.handoff-scroll { padding-top: 14px; }
.cards-preview { max-width: 640px; margin: 0 auto; padding: 18px; }
.handoff-status { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 24px; background: #f8f9fb; border-top: 1px solid var(--line); font-size: 13px; flex: none; }
.preview-select { display: inline-flex; align-items: center; gap: 4px; }
.preview-select select { width: auto; min-height: 0; height: 30px; border: 0; background-color: transparent; padding: 0 26px 0 4px; }
.handoff-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; }
.hp-card { padding: 20px 22px; box-shadow: none; }
.hp-card h2 { font-size: 20px; }
.hp-card > .muted { margin: 2px 0 6px; font-size: 13px; }
.bar-title { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; font-size: 16px; }
.bar-title::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--blue); }
.hf-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.hf-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; padding: 6px 14px 6px 0; border-top: 1px solid var(--line); }
.hf-row:first-child { border-top: 0; }
.hf-label { align-self: stretch; display: flex; align-items: center; padding-left: 14px; background: #f7f8fa; font-weight: 600; color: var(--ink); }
.cover-row .hf-label { align-items: flex-start; padding-top: 10px; }
.hf-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hf-row .link-button { gap: 4px; font-size: 14px; }
.hf-covers { display: flex; gap: 16px; min-width: 0; padding: 6px 0; align-items: flex-end; }
.hf-covers figure:first-child { flex: 0 1 150px; min-width: 0; }
.hf-covers figure:last-child { flex: none; }
.hf-covers .crop.wide { width: 100%; }
.hf-covers .crop.square { width: 64px; }
.check-boxes { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.check-line input { width: 18px; height: 18px; }
.check-line input:disabled + span { color: var(--text); }
.hp-note { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.handoff-done { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 8px; background: var(--green-50); color: var(--green-text); font-weight: 500; }
#h-handoff { height: 44px; font-size: 16px; }
#h-copy-body { height: 40px; font-size: 15px; margin-bottom: 4px; }
.publish-card { padding: 0; }
.publish-head { display: flex; width: 100%; justify-content: flex-start; gap: 18px; height: 58px; padding: 0 22px; border: 0; background: none; border-radius: 12px; }
.publish-head b { font-size: 17px; color: var(--ink); }
.publish-head .icon { margin-left: auto; transition: transform .2s; }
.publish-card.open .publish-head .icon { transform: rotate(180deg); }
.publish-body { display: none; padding: 0 22px 18px; }
.publish-card.open .publish-body { display: block; }
.publish-body form { display: flex; flex-direction: column; gap: 10px; }
.publish-body .field { margin: 0; }
.publish-body a { word-break: break-all; }
.proof-bar { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; color: var(--muted); }
.proof-bar b { color: var(--ink); font-size: 16px; }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: min(56vh, 520px); overflow-y: auto; }
.proof-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.proof-item.accept { border-color: #b9dfc5; background: #f4fbf6; }
.proof-item.ignore { background: #f7f8fa; }
.proof-item.ignore .proof-main { opacity: .55; }
.proof-main { display: grid; gap: 4px; min-width: 0; }
.proof-line { display: flex; gap: 8px; margin: 0; line-height: 1.8; overflow-wrap: anywhere; color: #4d5565; }
.proof-line > span:last-child { min-width: 0; }
.proof-line del { background: #fde2e2; color: #b42323; text-decoration: line-through; text-decoration-color: rgba(180, 35, 35, .45); border-radius: 2px; padding: 0 1px; }
.proof-line ins { background: #d9f2df; color: #146c34; text-decoration: none; border-radius: 2px; padding: 0 1px; margin-left: 2px; font-weight: 500; }
.proof-main small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.proof-actions { display: flex; gap: 8px; }
.proof-actions button { height: 32px; min-width: 64px; padding: 0 12px; font-size: 13px; gap: 4px; }
.proof-actions button.chosen { background: #eceef2; border-color: var(--line-strong); color: var(--muted); }
.proof-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 0 10px; text-align: center; color: var(--green-text); }
.proof-empty h3 { margin: 6px 0 0; color: var(--ink); }
.proof-empty p { margin: 0; }
.verify-box { margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--line); }
.verify-box .small-note { margin: 0 0 10px; }
.verify-result { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--green-50); color: var(--green-text); }
.verify-result .icon { flex: none; margin-top: 1px; }
.verify-result > div { display: grid; gap: 2px; min-width: 0; }
.verify-result b { font-weight: 600; }
.verify-result small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.verify-result .verify-note { color: var(--text); }
.verify-result.warn { background: var(--orange-50); color: var(--orange-text); }
.verify-result.bad { background: var(--red-50); color: var(--red); }
.verify-result.large { padding: 14px 16px; margin: 4px 0 14px; }
.verify-result.large b { font-size: 17px; }
.verify-result.large small { font-size: 13px; }
.verify-actions { display: flex; gap: 18px; margin: 10px 0 2px; }
.verify-actions .link-button { font-size: 14px; gap: 4px; }
.verify-paste { margin-top: 10px; font-size: 13px; }
.verify-paste summary { cursor: pointer; color: var(--muted); }
.verify-paste form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.verify-paste textarea, .verify-note-form textarea { width: 100%; resize: vertical; }
.vf-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vf-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line); }
.vf-row:first-child { border-top: 0; }
.vf-row.diff { background: #fffaf0; }
.vf-label { color: var(--muted); font-size: 13px; line-height: 1.7; }
.vf-values { display: grid; gap: 2px; min-width: 0; }
.vf-values p { margin: 0; overflow-wrap: anywhere; line-height: 1.7; }
.vf-values p small, .vh-line small { display: inline-block; width: 34px; flex: none; color: var(--faint); font-size: 12px; }
.vf-values > small { font-size: 12px; }
.vh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vh-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.vh-kind { align-self: start; font-size: 12px; font-weight: 600; color: var(--orange-text); line-height: 1.9; }
.vh-line { display: flex; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.vh-line span { min-width: 0; color: #4d5565; }
.vh-line del { background: #fde2e2; color: #b42323; text-decoration: line-through; text-decoration-color: rgba(180, 35, 35, .45); border-radius: 2px; padding: 0 1px; }
.vh-line ins { background: #d9f2df; color: #146c34; text-decoration: none; border-radius: 2px; padding: 0 1px; }
.vh-none { color: var(--faint); font-style: normal; }
.para-break { font-style: normal; opacity: .6; margin: 0 2px; }
.verify-same { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--green-text); }
.verify-extra { padding: 8px 14px; margin-bottom: 8px; border-left: 3px solid var(--line-strong); background: #f7f8fa; border-radius: 0 8px 8px 0; }
.verify-extra small { color: var(--faint); font-size: 12px; }
.verify-extra p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: #4d5565; }
.verify-note-form { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.verify-note-form label { font-weight: 600; color: var(--ink); }
.vn-foot { display: flex; align-items: center; gap: 12px; }
.vn-foot span { flex: 1; font-size: 12px; line-height: 1.5; }
.vn-foot button { flex: none; }
.verify-note-read { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.verify-note-read b { margin-right: 10px; color: var(--ink); }
.modal-body h3 small { font-weight: 400; font-size: 13px; }
.reopen-line { margin: auto 0 0; padding: 8px 0 2px; text-align: center; font-size: 13px; color: var(--muted); }
.reopen-line .link-button { font-size: 13px; font-weight: 600; }
.reopen-line .sep { margin: 0 12px; color: var(--line-strong); }
.handoff-empty { max-width: 520px; margin: 60px auto; padding: 36px; text-align: center; }
.handoff-empty h2 { margin: 14px 0 8px; }
.copy-holder { position: fixed; left: -9999px; top: 0; }

/* ---------- 列表页与设置页 ---------- */
.shell { display: grid; height: 100vh; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: 58px minmax(0, 1fr); grid-template-areas: "top top" "rail page"; }
.page { grid-area: page; overflow-y: auto; }
.home, .settings { max-width: 1180px; margin: 0 auto; padding: 28px 32px 48px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-head h1 { font-size: 24px; margin-bottom: 4px; }
.home-head p { margin: 0; }
.home-head .primary { height: 40px; }
.todo-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.todo-card { justify-content: flex-start; align-items: flex-start; gap: 14px; height: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; white-space: normal; }
.todo-card > span:last-child { display: flex; flex-direction: column; }
.todo-card b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.todo-card span span { font-weight: 600; color: var(--ink); }
.todo-card small { color: var(--muted); }
.todo-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f1f4fa; color: #4b5563; flex: none; }
.todo-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 82, 255, .08); }
.todo-card.hot .todo-icon { background: var(--blue); color: #fff; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.list-tools { display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.list-tools .tabs-line { border-bottom: 0; flex: 1; }
.list-tools .search-box { width: 240px; height: 36px; }
.list-filters { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-filters select { width: auto; max-width: 180px; height: 36px; min-height: 0; padding: 0 28px 0 10px; font-size: 14px; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.article-row:first-child { border-top: 0; }
.article-row.is-mine { background: linear-gradient(90deg, rgba(33, 82, 255, .04), transparent 40%); box-shadow: inset 3px 0 0 var(--blue); }
.row-main { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; height: auto; padding: 0; border: 0; background: none !important; text-align: left; white-space: normal; }
.row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-title b { font-size: 15px; color: var(--ink); }
.row-main:hover .row-title b { color: var(--blue); }
.row-meta { font-size: 12px; color: var(--muted); }
.progress-line { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text); flex-wrap: wrap; }
.return-line { color: #8a5a12; }
.return-line .icon { color: var(--orange-text); }
.row-next { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.row-next button { min-width: 84px; }
.settings-card { padding: 20px 22px; margin-bottom: 16px; }
.settings-card.narrow { max-width: 640px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { font-size: 17px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius); background: #f7f8fb; }
.filter-bar .field { margin: 0; min-width: 130px; }
.filter-bar .field.grow { flex: 1 1 180px; }
.filter-bar input, .filter-bar select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.filter-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; min-height: 34px; }
.filter-actions .toggle-line { font-size: 13px; color: var(--muted); }
.nowrap { white-space: nowrap; }
small.block, .audit-note { display: block; }
.audit-title { font-weight: 500; color: var(--ink); }
.audit-table td { vertical-align: top; }
.more-line { display: flex; justify-content: center; padding: 12px 0 2px; font-size: 13px; }
.empty-line { padding: 18px 0; text-align: center; }
.usage-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; margin-bottom: 18px; }
#ai-usage h3 { font-size: 14px; margin: 0 0 6px; color: var(--ink); }
#ai-usage .card-head .segmented button { padding: 0 12px; }
@media (max-width: 860px) { .usage-split { grid-template-columns: minmax(0, 1fr); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metric-tile > span { font-size: 13px; color: var(--muted); }
.metric-tile b { font-size: 24px; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-tile small { font-size: 12px; }
.metric-table td { font-variant-numeric: tabular-nums; }
.settings-card.narrow-wide { max-width: 860px; }
.word-tools { display: flex; align-items: center; gap: 16px; margin: 4px 0 8px; border-bottom: 1px solid var(--line); }
.word-tools .tabs-line { border-bottom: 0; flex: 1; }
.word-tools .search-box { width: 200px; height: 34px; }
.word-tools .search-box input { height: 30px; background: transparent; }
.word-table td:last-child { white-space: nowrap; text-align: right; }
.chip-red { background: var(--red-50); color: var(--red); }
.seg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg-option { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 400 !important; }
.seg-option:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.seg-option input { margin-top: 3px; }
.seg-option b, .seg-option small { display: block; }
.label-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 14px; }
.label-row { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.label-row .chip { flex: none; min-width: 72px; justify-content: center; }
.label-row input { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.part-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 16px; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-cell b, .member-cell small { display: block; }
.member-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.member-row b, .member-row small { display: block; }
.member-row > div { flex: 1; }
.channel-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.channel-name { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.flow-inline { display: flex; flex: 1; list-style: none; margin: 0; padding: 0; gap: 8px; flex-wrap: wrap; }
.flow-inline li { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 8px; background: #f5f7fb; font-size: 13px; position: relative; }
.flow-inline li + li { margin-left: 14px; }
.flow-inline li + li::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.flow-inline li span { color: var(--muted); font-size: 12px; }
.flow-inline li.contrib { background: var(--teal-50); }
.flow-inline li b em { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--blue-50); color: var(--blue); font-size: 11px; font-style: normal; font-weight: 500; }
.wechat-link { display: inline-flex; align-items: center; gap: 6px; }
.wecom-recent { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; }
.wecom-recent li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.wecom-recent-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wecom-recent-head small { margin-left: auto; }
.wecom-recent pre { margin: 6px 0 0; font: inherit; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.wecom-recent .form-error { display: block; margin-top: 4px; }
.wx-sync { margin-top: 10px; }
.wx-sync .small-note { margin: 6px 0 0; }
.wx-sync .notice { margin: 8px 0 0; }
.wx-sync-state { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.wx-sync-state .icon { flex: none; margin-top: 2px; }
.wx-sync-state.ok { color: var(--green-text); }
.wx-sync-state.stale { color: var(--orange-text); }
.wx-result-title { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; font-size: 14px; }
.wx-result-title small { font-weight: 400; font-size: 12px; }
.wx-checks { margin-bottom: 10px; }
.wx-checks .check-row { align-items: flex-start; }
.wx-checks .check-row small { line-height: 1.6; }
.wx-ip { display: block; margin-top: 2px; color: var(--text); }
.wx-ip code { padding: 1px 6px; border-radius: 4px; background: #fff; border: 1px solid var(--line-strong); font-size: 13px; user-select: all; }
.step-edit { display: grid; grid-template-columns: 26px 110px minmax(0, 1fr) 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.step-block { margin-bottom: 4px; }
#ch-add { margin-bottom: 12px; }
.step-hint { margin: -2px 0 10px; font-size: 13px; }
.step-edit.cosign { margin-top: -2px; }
.cosign-label { justify-self: end; color: var(--muted); font-size: 12px; }
.cosign-add { display: inline-flex; align-items: center; margin: -2px 0 10px 152px; font-size: 13px; }
.step-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: 12px; font-weight: 700; }

/* ---------- 登录 ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); min-height: 100vh; }
.login-story { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px clamp(32px, 7vw, 110px); background: radial-gradient(circle at 15% 15%, #2a3550, #1b2130 60%); color: #d5dbe7; }
.login-brand .logo b { color: #fff; }
.login-brand .logo { color: #7ea2ff; }
.login-story h1 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; font-family: "Songti SC", "Noto Serif SC", serif; }
.login-story p { max-width: 520px; font-size: 16px; line-height: 1.8; color: #b9c2d3; }
.login-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 10px; color: #e2e7f0; }
.login-points .icon { color: #f0a43a; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.login-form { width: min(400px, 100%); }
.login-form h2 { font-size: 26px; margin-bottom: 6px; }
.login-form > .muted { margin-bottom: 22px; }
.login-form .primary { height: 44px; font-size: 16px; margin-top: 6px; }
.demo-accounts { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-accounts p { font-size: 13px; font-weight: 500; color: var(--ink); }
.demo-accounts > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.demo-accounts button { flex-direction: column; gap: 0; height: auto; padding: 8px 10px; align-items: flex-start; }
.demo-accounts button small { color: var(--muted); }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: var(--radius); background: #f1f3f7; }
.login-tabs button { height: 36px; border: 0; background: none; color: var(--muted); }
.login-tabs button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.login-tabs button:hover:not(.active) { background: none; color: var(--ink); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: .12em; }
.code-row input::placeholder { letter-spacing: 0; }
.code-button { flex: none; min-width: 112px; height: auto; color: var(--blue); }
.code-hint { display: flex; align-items: flex-start; gap: 6px; min-height: 0; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.code-hint:empty { display: none; }
.code-hint .icon { margin-top: 3px; color: var(--blue); }
.code-hint b { color: var(--ink); letter-spacing: .08em; }
.invite-role { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: -8px 0 16px; border-radius: var(--radius); background: #f7f8fa; font-size: 13px; }
.button.block { width: 100%; margin-top: 8px; text-decoration: none; }
.card-actions { display: flex; gap: 8px; }
.invite-code { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--ink); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .link-button + .link-button { margin-left: 14px; }
.link-button.danger-link { color: var(--red); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; }
.invite-result textarea { resize: none; background: #f7f8fa; line-height: 1.6; }

/* ---------- 响应式：平板与手机（审核人常在手机上审稿） ---------- */
@media (max-width: 1360px) {
  .ws.tab-edit { grid-template-columns: 76px 300px minmax(0, 1fr) 70px; }
  .ws.tab-review { grid-template-columns: 76px minmax(0, 1fr) 400px; }
  .rail-item { width: 62px; }
  .rail-tool { width: 58px; }
  .para-pop { left: auto; right: -12px; top: 0; }
  .para-pop::before, .para-pop::after { display: none; }
  .handoff-body { grid-template-columns: minmax(0, 1fr) 440px; }
  .round-strip li { padding: 0 16px; }
}
@media (max-width: 1100px) {
  .ws-top-center { display: none; }
  .crumb b { max-width: 160px; }
  .lock-note { display: none; }
  .ws.tab-edit { grid-template-columns: 72px 270px minmax(0, 1fr) 0; }
  .rail-right { display: none; }
  .ws.tab-review { grid-template-columns: 72px minmax(0, 1fr) 360px; }
  .handoff-body { grid-template-columns: minmax(0, 1fr) 380px; }
  .todo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-grid { grid-template-columns: 1fr; }
  .submit-side { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .ws { display: flex; flex-direction: column; height: auto; min-height: 100vh; overflow: visible; }
  .ws .rail, .ws .rail-right, .ws .block-handle, .ws .connector { display: none !important; }
  .ws-top { position: sticky; top: 0; flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .ws-top-left { flex: 1 1 100%; gap: 8px; }
  .ws-top-left .logo b { display: none; }
  .ws-top-left .crumb { padding-left: 8px; font-size: 14px; }
  .ws-top-left .crumb > :not(b):not(.crumb-sep) { display: none; }
  .ws-top-left .chip-outline { display: none; }
  .ws-top-right { flex: 1 1 100%; justify-content: flex-start; overflow-x: auto; }
  .ws-top-right > button:not(.avatar-button):not(.link-button):not(.bell) { min-width: 0; height: 36px; padding: 0 12px; }
  .avatar-name { display: none; }
  .ws-sub { display: flex; height: 46px; padding: 0 8px; overflow-x: auto; }
  .ws-sub-left, .ws-sub-right { display: none; }
  .ws-tabs { width: 100%; justify-content: space-around; }
  .ws-tabs button { padding: 0 8px; font-size: 14px; }
  .ws-center { min-height: 72vh; }
  .canvas-scroll { padding: 8px 8px 24px; }
  .paper { padding: 18px 14px 28px; width: 100% !important; }
  .paper-wrap { width: 100%; max-width: 560px; zoom: 1 !important; }
  .toolbar-row { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 8px; }
  .device-group { display: none; }
  .para-pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; }
  .side-panel { order: 5; border-right: 0; border-top: 1px solid var(--line); max-height: none; }
  .ws-status { order: 4; height: 40px; }
  .ws-status .zoom { display: none; }
  .review-panel { order: 5; border-left: 0; border-top: 1px solid var(--line); min-height: 60vh; }
  .rp-body { overflow: visible; }
  .batch-bar { position: static; box-shadow: none; }
  .decision-bar { position: sticky; bottom: 0; }
  /* 轮到自己时，“退回 / 通过”一直贴在屏幕底部，不用先翻到文末；稿子短的时候稿纸也不再留一大块空白。 */
  .decision-bar:not(.waiting) { position: fixed; left: 0; right: 0; z-index: 20; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 14px rgba(20, 30, 55, .08); }
  .review-panel.has-decision { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  #rp-collapse { display: none; }
  .ws.panel-collapsed .review-panel { visibility: visible; }
  .ws.tab-review .ws-center, .ws.tab-review .paper { min-height: 0; }
  .toast { bottom: 78px; }
  .handoff-root { order: 3; }
  .round-strip { padding: 0 12px; }
  .handoff-body { display: flex; flex-direction: column; }
  .handoff-center { min-height: 70vh; }
  .snapshot-pill { position: static; }
  .handoff-switch { flex-wrap: wrap; }
  .handoff-panel { border-left: 0; padding: 12px; }
  .handoff-status { display: none; }
  .reopen-line .sep { display: block; height: 2px; margin: 0; font-size: 0; }
  /* 轮到自己审核时，底部固定着“退回 / 通过”，顶栏不再重复放一份。 */
  .ws.tab-review #act-approve, .ws.tab-review #act-return { display: none; }
  /* 文字按钮和小图标按钮：不改版面，只把可点的范围放大。 */
  .link-button, .icon-button.small, .link-notice .icon-button { position: relative; }
  .link-button::after, .icon-button.small::after, .link-notice .icon-button::after { content: ""; position: absolute; inset: -7px -5px; }
  .toggle-line, .check-line { min-height: 36px; }
  .table.usage-table { display: block; overflow-x: auto; white-space: nowrap; }
  .table.usage-table thead { display: table-header-group; }
  .table.usage-table tr { display: table-row; padding: 0; border: 0; }
  .table.usage-table th, .table.usage-table td { display: table-cell; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top" "page"; }
  .shell .rail { display: none; }
  .app-top { padding: 0 12px; }
  .app-top .crumb { display: none; }
  .home, .settings { padding: 18px 14px 40px; }
  .home-head { flex-direction: column; align-items: stretch; }
  .todo-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .todo-card { padding: 12px; gap: 10px; }
  .todo-card small { display: none; }
  .list-tools { flex-direction: column; align-items: stretch; padding: 0 12px 10px; gap: 8px; }
  .list-tools .search-box { width: 100%; }
  .list-filters { flex-wrap: wrap; }
  .list-filters select { flex: 1; max-width: none; }
  .article-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 12px; }
  .row-next { flex-direction: row; justify-content: space-between; align-items: center; }
  .login { grid-template-columns: 1fr; }
  .login-story { padding: 36px 24px; gap: 14px; }
  .login-points { display: none; }
  .field-row, .crop-area, .help-grid, .layout-compare, .template-grid { grid-template-columns: 1fr; }
  .versions { grid-template-columns: 1fr; }
  .v-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-head, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer button { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
  .modal-footer .grow { display: none; }
  .channel-row { gap: 10px 18px; }
  .channel-row .channel-name, .channel-row .flow-inline { flex: 1 1 100%; }
  .footer-note { flex: 1 1 100%; }
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; }
  .filter-bar .field { min-width: 0; }
  .filter-bar .field.grow, .filter-actions { grid-column: 1 / -1; }
  .filter-bar input[type="date"] { min-width: 0; }
  .filter-actions { justify-content: space-between; margin-left: 0; flex-wrap: wrap; }
  .table.audit-table tr, .table.metric-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .table.audit-table td, .table.metric-table td { padding: 0; }
  .table.audit-table td:nth-child(1) { font-size: 12px; }
  .table.audit-table td:nth-child(3) { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); }
  .table.audit-table td:nth-child(2), .table.audit-table td:nth-child(4) { grid-column: 1 / -1; }
  .table.metric-table tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .table.metric-table td:first-child, .table.metric-table td:nth-child(2) { grid-column: 1 / -1; }
  .table.metric-table td.nowrap { white-space: normal; }
  .table.metric-table td[data-label] { font-size: 13px; }
  .table.metric-table td[data-label]::before { content: attr(data-label) "："; color: var(--muted); }
  .label-map, .seg-row { grid-template-columns: 1fr; }
  .table.word-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
  .table.word-table td { padding: 0; }
  .table.word-table td:nth-child(5) { grid-column: 3; grid-row: 1; }
  .table.word-table td:nth-child(3), .table.word-table td:nth-child(4) { grid-column: 2 / -1; font-size: 13px; }
  .table.word-table td:nth-child(3)::before { content: "→ "; color: var(--faint); }
  .table.word-table td:nth-child(4):empty, .table.word-table td.no-sug { display: none; }
  .word-tools { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 8px; }
  .word-tools .search-box { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-tile { padding: 10px 12px; }
  .metric-tile b { font-size: 20px; }
  .settings .tabs-line.big { gap: 16px; }
  .table thead { display: none; }
  .table td { display: block; border: 0; padding: 4px 0; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .step-edit { grid-template-columns: 26px 1fr 32px; }
  .step-edit select { grid-column: 2; }
  .step-edit.cosign { grid-template-columns: 26px 36px 1fr 32px; }
  .step-edit.cosign select { grid-column: auto; }
  .cosign-add { margin-left: 34px; }
}
@media print {
  .ws-top, .ws-sub, .rail, .rail-right, .side-panel, .review-panel, .ws-status { display: none !important; }
}
.decision-bar { display: none; }
@media (max-width: 860px) {
  .decision-bar { display: flex; }
  .cosign-note { display: none; }
  .ws-top-left .crumb > span:not(.crumb-sep) { display: none; }
  .ws-top-left .crumb .crumb-sep { display: none; }
  .review-panel { min-height: 0; }
  .proof-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .proof-actions button { flex: 1; }
  .vf-row { grid-template-columns: 40px minmax(0, 1fr); }
  .vf-row .chip { grid-column: 2; justify-self: start; }
  .vh-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .vn-foot { flex-direction: column; align-items: stretch; }
}
.rich > :first-child { margin-top: 0; }

/* 仿制排版（功能设计 M9.5） */
.ai-card .ai-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.imitate-source { display: grid; gap: 12px; }
.imitate-paste { min-height: 120px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; outline: none; overflow: hidden; }
.imitate-paste:focus { border-color: var(--blue); background: #fff; }
.imitate-paste .icon { color: var(--green); }
.imitate-pick { display: grid; gap: 10px; }
.imitate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.imitate-grid h4 { font-size: 14px; margin-bottom: 6px; }
.imitate-grid h4 small { font-weight: 400; font-size: 12px; }
.imitate-ref, .imitate-mine, .imitate-phone { min-height: 0; max-height: 52vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 15px; }
.ref-block, .mine-block { position: relative; border-radius: 4px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.imitate-grid.region .ref-block:not(.no-card), .mine-block { cursor: pointer; }
.imitate-grid.region .ref-block:not(.no-card):hover, .mine-block:hover { outline-color: var(--blue-100); }
.ref-block.picked, .mine-block.picked { outline-color: var(--blue); background: rgba(33, 82, 255, .04); }
.ref-block.no-card { opacity: .55; }
.ref-role { position: absolute; top: -2px; right: -4px; z-index: 1; opacity: 0; transition: opacity .15s; pointer-events: none; }
.ref-role .chip { font-size: 11px; padding: 0 6px; }
.ref-block:hover .ref-role, .ref-block.picked .ref-role { opacity: 1; }
.ref-img { display: block; padding: 18px 0; margin: 6px 0; background: #f0f1f4; color: var(--faint); font-size: 12px; text-align: center; border-radius: 4px; }
.imitate-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 44vh; overflow: auto; }
.imitate-cards li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.imitate-cards small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imitate-card-style { font-size: 13px; color: var(--text); }
.imitate-selection { margin: 0; font-size: 13px; }
.imitate-result { display: grid; gap: 10px; }
.imitate-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.imitate-compare > div { display: grid; gap: 6px; align-content: start; justify-items: start; }
.imitate-compare .imitate-phone { width: 100%; max-width: 414px; justify-self: center; }
@media (max-width: 860px) { .imitate-grid, .imitate-compare { grid-template-columns: minmax(0, 1fr); } .imitate-ref, .imitate-mine, .imitate-phone { max-height: 40vh; } }
.imitate-phone { position: relative; }
.cmp-block { border-radius: 4px; }
.imitate-compare > div:last-child .cmp-block.changed { box-shadow: -6px 0 0 -3px var(--green); background: rgba(23, 163, 74, .04); }
