/* ===== （甲）视觉令牌：取值参照审批中心视觉令牌，本文件零引用审批中心仓 ===== */
:root {
  --bg: #f7f8fa; --bg-panel: #ffffff; --bg-card: #ffffff; --bg-hover: #f2f3f5;
  --line: #e5e6eb; --line-soft: #f0f1f3; --line-strong: #c9cdd4;
  --t1: #1d2129; --t2: #4e5969; --t3: #86909c;
  --blue: #3370ff; --blue-hover: #2b5fd9; --blue-50: #e8f0ff;
  --green-50: #e8f7ee; --green-deepest: #0f6b3a; --orange-50: #fff3e0; --orange-deep: #b25e00; --red-50: #fdecec; --red-deep: #b42318;
  --fz-xs: 12px; --fz-sm: 13px; --fz-base: 14px; --fz-md: 15px; --fz-lg: 18px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(29, 33, 41, .06);
}

/* ===== （乙）壳样式：顶栏、双栏、列表卡壳、详情卡壳、页签、按钮、提示、移动端路由 ===== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--t1); font: var(--fz-base)/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.wb-topbar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; background: var(--bg-panel); border-bottom: 1px solid var(--line); }
.wb-topbar-title { font-weight: 650; font-size: var(--fz-md); }
.wb-topbar-user { display: flex; align-items: center; gap: 10px; color: var(--t2); font-size: var(--fz-sm); }
.wb-link-btn { background: none; border: none; color: var(--blue); cursor: pointer; font-size: var(--fz-sm); }
.mobile-topbar { display: none; }
.mobile-logout { display: none; }
.wb-main { display: grid; grid-template-columns: 360px 1fr; height: calc(100% - 48px); }
.list-pane { border-right: 1px solid var(--line); background: var(--bg-panel); display: flex; flex-direction: column; min-height: 0; }
.list-header { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 4px; }
.list-title { font-size: var(--fz-md); font-weight: 650; }
.list-count { color: var(--t3); font-size: var(--fz-sm); }
.list-header-side { display: flex; align-items: baseline; gap: 10px; }
.list-header-side .wb-link-btn:disabled { color: var(--t3); cursor: default; }
/* 按事宜类型分页签：一排横排，窄屏不换行、可横向滑动（滚动条藏起，手指滑动即可） */
.wb-type-tabs { display: flex; flex-wrap: nowrap; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wb-type-tabs::-webkit-scrollbar { display: none; }
.wb-type-tabs[hidden] { display: none; }
.wb-type-tab { flex: 0 0 auto; white-space: nowrap; padding: 8px 10px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--t2); cursor: pointer; font: inherit; font-size: var(--fz-sm); }
.wb-type-tab:hover { color: var(--t1); }
.wb-type-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.wb-type-tab .tnum { color: var(--t3); margin-left: 2px; }
.wb-type-tab.active .tnum { color: var(--blue); }
/* 来源行、缓存行与列表头同缩进；选择器比（丙）段的 .dd-source-line 更具体，不受其 padding 影响 */
.list-pane > .dd-source-line { padding: 2px 16px 10px; }
/* 规则变动提示：说明在前、「收起」紧随其后（小号按钮，窄屏换行） */
.wb-rules-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wb-rules-notice .btn { padding: 2px 10px; font-size: var(--fz-sm); }
.list-content { overflow-y: auto; padding: 4px 12px 16px; }
.loading { color: var(--t3); text-align: center; padding: 24px 0; }
.approval-card { position: relative; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-card); cursor: pointer; box-shadow: var(--sh-1); }
.approval-card:hover { border-color: var(--line-strong); }
.approval-card.active { border-color: var(--blue); background: var(--blue-50); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-title { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.card-tag { flex-shrink: 0; padding: 1px 8px; border-radius: var(--r-pill); font-size: var(--fz-xs); font-weight: 600; white-space: nowrap; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--t3); font-size: var(--fz-sm); }
.card-applicant { display: flex; align-items: center; gap: 6px; }
.applicant-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue-hover); font-size: var(--fz-xs); display: inline-flex; align-items: center; justify-content: center; }
.detail-pane { display: flex; flex-direction: column; min-height: 0; }
.detail-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--t3); gap: 8px; }
.detail-empty-icon { font-size: 36px; }
.detail-content { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.detail-head { padding: 16px 20px 6px; }
.detail-title { font-size: var(--fz-lg); font-weight: 650; }
.detail-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.tab-item { padding: 10px 12px; cursor: pointer; color: var(--t2); border-bottom: 2px solid transparent; }
.tab-item.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.detail-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.detail-section { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.section-title { padding: 12px 18px; font-weight: 650; border-bottom: 1px solid var(--line-soft); }
.field-group { padding: 6px 18px; }
.detail-field { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.detail-field:last-child { border-bottom: none; }
.field-label { flex: 0 0 96px; color: var(--t3); }
.field-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.detail-footer { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-panel); }
.btn { padding: 7px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg-panel); color: var(--t1); cursor: pointer; font-size: var(--fz-base); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-default { background: var(--bg-panel); }
.ai-btn { padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--blue); background: var(--bg-panel); color: var(--blue); cursor: pointer; font-size: var(--fz-sm); }
.ai-btn:disabled { opacity: .6; cursor: default; }
.dd-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--fz-base); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--blue); border-radius: 50%; animation: wb-spin .8s linear infinite; vertical-align: -2px; }
@keyframes wb-spin { to { transform: rotate(360deg); } }
.toast-container { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 6px 20px rgba(29, 33, 41, .12); transition: opacity .3s; }
.toast.hiding { opacity: 0; }
.toast.success .toast-icon { color: var(--green-deepest); } .toast.error .toast-icon { color: var(--red-deep); } .toast.warning .toast-icon { color: var(--orange-deep); } .toast.info .toast-icon { color: var(--blue); }
.toast-close { border: none; background: none; cursor: pointer; color: var(--t3); }
@media (max-width: 900px), (max-height: 500px) and (max-width: 1024px) {
  .wb-topbar { display: none; }
  .mobile-topbar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; background: var(--bg-panel); border-bottom: 1px solid var(--line); }
  .mobile-back { border: none; background: none; font-size: 22px; padding: 0 6px; visibility: hidden; }
  body.mobile-route-detail .mobile-back { visibility: visible; }
  .mobile-logout { display: inline-block; margin-left: auto; }
  .mobile-sub { color: var(--t3); font-size: var(--fz-xs); }
  .wb-main { grid-template-columns: 1fr; }
  .list-pane { border-right: none; }
  body.mobile-route-list .detail-pane { display: none; }
  body.mobile-route-detail .list-pane { display: none; }
  .field-label { flex-basis: 76px; }
}

/* ===== （丙）决策工作台样式（wb- 前缀）：以下自原型 NEW_CSS 移植，选择器与取值零改动 ===== */
    /* ===== 决策工作台（wb- 前缀）。视觉全部沿用审批中心自身令牌：暖白底、蓝主色、
       卡片壳 .detail-section、字段行 .detail-field、页签 .tab-item、底栏 .detail-footer。
       语义色只出现在两处：AI 推荐四态胶囊（绿/琥珀/红/灰）与「我的判断」选中态（蓝）。
       其余状态、标签、计数一律灰阶。 ===== */
    .dd-source-line { font-size: var(--fz-sm); color: var(--t3); padding: 2px 0 10px; line-height: 1.5; }
    .wb-cache-line { margin-top: 2px; }
    .wb-cache-stale { color: var(--orange-deep); }

    /* ---- 头部：标题即单据摘要，下方一行元信息 ---- */
    .wb-title { display: flex; align-items: flex-start; gap: 10px; }
    .wb-title-type { flex-shrink: 0; margin-top: 3px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--bg-hover); color: var(--t2); font-size: var(--fz-xs); font-weight: 600; white-space: nowrap; letter-spacing: .2px; }
    .wb-title-text { font-size: var(--fz-lg); font-weight: 650; line-height: 1.45; color: var(--t1); }
    .wb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: -6px 0 12px; font-size: var(--fz-sm); color: var(--t3); }
    .wb-meta[hidden] { display: none; }
    .wb-meta-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
    .wb-link { color: var(--blue); text-decoration: none; font-weight: 500; cursor: pointer; }
    .wb-link:hover { text-decoration: underline; }
    .wb-st-0 { background: var(--bg-hover); color: var(--t3); }
    .wb-st-1 { background: var(--line-soft); color: var(--t2); }
    .wb-st-2 { background: var(--line-strong); color: var(--t1); }
    .wb-st-3 { background: var(--t1); color: #fff; }

    /* ---- 列表行：进度小字 ---- */
    .wb-row-extra { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
    .wb-chip { display: inline-flex; padding: 1px 7px; border-radius: var(--r-sm); background: var(--bg-hover); color: var(--t2); font-size: var(--fz-xs); font-weight: 600; }

    /* ---- 概览行 ---- */
    .wb-overview { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin: 0 2px 14px; font-size: var(--fz-base); color: var(--t2); }
    .wb-overview b { color: var(--t1); font-weight: 650; }
    .wb-overview .wb-sep { margin: 0 10px; color: var(--line-strong); }
    .wb-overview-note { flex-basis: 100%; margin-top: 2px; font-size: var(--fz-sm); color: var(--t3); }

    /* ---- 未分析空态 ---- */
    .wb-empty { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 32px 24px 28px; text-align: center; }
    .wb-empty-title { font-size: var(--fz-md); font-weight: 650; color: var(--t1); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .wb-empty-desc { font-size: var(--fz-base); color: var(--t2); line-height: 1.65; max-width: 460px; margin: 0 auto 18px; }
    .wb-empty .dd-input { max-width: 420px; margin: 0 auto 14px; display: block; }
    .wb-empty-sub { margin-top: 12px; font-size: var(--fz-sm); color: var(--t3); }
    .wb-last-fail { font-size: var(--fz-sm); color: var(--t3); }
    .wb-meta .wb-last-fail { flex-basis: 100%; }
    .wb-empty .wb-last-fail { margin: 0 0 14px; }

    /* ---- 决策项卡：复用 .detail-section 卡壳 ---- */
    .wb-item { margin-bottom: 14px; }
    .wb-item-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); background: #fffdf9; }
    .wb-item-no { flex-shrink: 0; margin-top: 2px; padding: 1px 7px; border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue-hover); font-size: var(--fz-xs); font-weight: 700; white-space: nowrap; }
    .wb-item-q { flex: 1; min-width: 0; font-size: var(--fz-md); font-weight: 650; color: var(--t1); line-height: 1.45; overflow-wrap: anywhere; }
    .wb-item-head .wb-verdict { margin-top: 2px; }
    .wb-item-body { padding: 2px 18px 14px; }
    .wb-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fz-base); line-height: 1.55; }
    .wb-row:last-child { border-bottom: none; }
    .wb-row-k { flex: 0 0 76px; color: var(--t3); padding-top: 1px; }
    .wb-row-v { flex: 1; min-width: 0; color: var(--t1); overflow-wrap: anywhere; }
    .wb-row-v.muted { color: var(--t3); }
    .wb-inline-toggle { background: none; border: none; padding: 0; margin-left: 8px; color: var(--blue); font-size: var(--fz-sm); cursor: pointer; }
    .wb-inline-toggle:hover { text-decoration: underline; }

    /* ---- AI 推荐块 ---- */
    .wb-ai { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-soft); }
    .wb-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fz-sm); color: var(--t2); font-weight: 600; }
    .wb-ai-meta { margin-left: auto; font-size: var(--fz-xs); color: var(--t3); font-weight: 500; }
    .wb-ol { margin: 0; padding-left: 18px; color: var(--t1); font-size: var(--fz-base); line-height: 1.65; }
    .wb-ol li { margin-bottom: 4px; }
    .wb-ol li:last-child { margin-bottom: 0; }
    .wb-ai-sub { margin: 10px 0 4px; font-size: var(--fz-sm); color: var(--t2); font-weight: 600; }
    .wb-verdict { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--r-pill); font-size: var(--fz-xs); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
    .wb-v-pass { background: var(--green-50); color: var(--green-deepest); }
    .wb-v-cond { background: var(--orange-50); color: var(--orange-deep); }
    .wb-v-reject { background: var(--red-50); color: var(--red-deep); }
    .wb-v-na { background: var(--bg-hover); color: var(--t3); }

    /* ---- 卡内折叠：各方意见 / 背景 / 备选 / 依据 / 缺的信息 / 追问 ---- */
    .wb-more { margin-top: 10px; border-top: 1px dashed var(--line-strong); }
    .wb-more > summary { list-style: none; cursor: pointer; padding: 9px 0 3px; font-size: var(--fz-sm); color: var(--blue); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .wb-more > summary::-webkit-details-marker { display: none; }
    .wb-more > summary::after { content: '展开'; margin-left: auto; white-space: nowrap; }
    .wb-more[open] > summary::after { content: '收起'; }
    .wb-more-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
    .wb-more-chips span { padding: 0 6px; border-radius: var(--r-sm); background: var(--bg-hover); font-size: var(--fz-xs); font-weight: 600; color: var(--t2); line-height: 18px; }
    .wb-more-body { padding-bottom: 2px; }
    /* 他人意见一行：彩色票数（同意绿、不同意红、有条件橙、追问与未表态灰）＋共 N 人 */
    .wb-vote { display: inline-flex; align-items: baseline; gap: 3px; margin-right: 8px; padding: 0 7px; border-radius: var(--r-sm); font-size: var(--fz-sm); font-weight: 600; line-height: 20px; }
    .wb-vote-agree { background: var(--green-50); color: var(--green-deepest); }
    .wb-vote-disagree { background: var(--red-50); color: var(--red-deep); }
    .wb-vote-cond { background: var(--orange-50); color: var(--orange-deep); }
    .wb-vote-mute { background: var(--bg-hover); color: var(--t2); }
    .wb-vote-total { color: var(--t2); font-size: var(--fz-sm); }
    .wb-vote-total b { color: var(--t1); }
    /* 各方意见表：姓名、态度、意见原文、出处；窄屏每行改成上下排列 */
    .wb-op-table { width: 100%; border-collapse: collapse; font-size: var(--fz-base); line-height: 1.55; }
    .wb-op-table th { padding: 6px 8px; text-align: left; font-size: var(--fz-xs); font-weight: 600; color: var(--t3); border-bottom: 1px solid var(--line); white-space: nowrap; }
    .wb-op-table td { padding: 8px; vertical-align: top; border-bottom: 1px dashed var(--line-soft); overflow-wrap: anywhere; }
    .wb-op-table tbody tr:last-child td { border-bottom: none; }
    .wb-op-table .wb-op-who { font-weight: 600; color: var(--t1); white-space: nowrap; }
    .wb-op-table .wb-op-item { color: var(--t3); white-space: nowrap; }
    .wb-op-table .wb-op-quote { color: var(--t2); min-width: 160px; }
    .wb-op-table .wb-op-where { color: var(--t3); font-size: var(--fz-xs); white-space: nowrap; }
    .wb-stance { display: inline-flex; padding: 0 7px; border-radius: var(--r-sm); font-size: var(--fz-xs); font-weight: 600; line-height: 18px; white-space: nowrap; }
    .wb-stance-agree { background: var(--green-50); color: var(--green-deepest); }
    .wb-stance-disagree { background: var(--red-50); color: var(--red-deep); }
    .wb-stance-cond { background: var(--orange-50); color: var(--orange-deep); }
    .wb-stance-mute { background: var(--bg-hover); color: var(--t2); }
    /* 背景卡：决策项页签第一块 */
    .wb-bg { margin-bottom: 14px; }
    .wb-bg-body { padding: 12px 18px 14px; font-size: var(--fz-base); line-height: 1.7; color: var(--t1); overflow-wrap: anywhere; }
    .wb-bg-old { color: var(--t3); }
    .wb-basis { margin: 0; padding: 0; list-style: none; }
    .wb-basis li { padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-size: var(--fz-base); line-height: 1.55; color: var(--t1); }
    .wb-basis li:last-child { border-bottom: none; }
    .wb-basis .type { display: inline-block; padding: 0 6px; margin-right: 6px; border-radius: var(--r-sm); background: var(--bg-hover); color: var(--t2); font-size: var(--fz-xs); font-weight: 600; line-height: 18px; }
    .wb-basis .ref { color: var(--t3); font-size: var(--fz-xs); margin-right: 6px; }
    .wb-ul { margin: 0; padding-left: 18px; color: var(--t1); font-size: var(--fz-base); line-height: 1.6; }
    .wb-ul li { margin-bottom: 3px; }

    /* ---- 我的判断（选中态用蓝：这是「我」的颜色，与 AI 语义色区分） ---- */
    .wb-judge { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
    .wb-judge-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fz-sm); color: var(--t3); }
    .wb-judge-head b { color: var(--t1); font-weight: 650; font-size: var(--fz-base); }
    .wb-seg { display: flex; flex-wrap: wrap; gap: 6px; }
    .wb-seg button { padding: 5px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--bg-panel); color: var(--t2); font-size: var(--fz-base); cursor: pointer; min-height: 30px; transition: border-color .12s, color .12s, background .12s; }
    .wb-seg button:hover { border-color: var(--blue); color: var(--blue); }
    .wb-seg button[aria-checked="true"] { background: var(--blue-50); border-color: var(--blue); color: var(--blue-hover); font-weight: 650; }
    .wb-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    .wb-seg button:disabled { cursor: default; opacity: .55; }
    .wb-seg button:disabled:hover { border-color: var(--line-strong); color: var(--t2); }
    .wb-seg button[aria-checked="true"]:disabled { opacity: 1; }
    .wb-judge .dd-input[readonly] { background: var(--bg); color: var(--t2); }
    .wb-judge .dd-input { margin: 10px 0 0; max-width: none; }

    /* ---- 依据与上下文 / 原文页签 ---- */
    .wb-count { margin-left: 5px; color: var(--t3); font-weight: 500; font-size: var(--fz-sm); }
    .wb-hint { font-size: var(--fz-sm); color: var(--t3); font-style: italic; }
    .wb-missing { color: var(--t3); font-style: italic; }
    .wb-doc-h { font-size: var(--fz-base); font-weight: 650; color: var(--t1); margin: 12px 0 4px; }
    .wb-doc-h:first-child { margin-top: 0; }
    .wb-doc-p { font-size: var(--fz-base); color: var(--t1); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; }
    .wb-section-note { padding: 10px 18px 12px; font-size: var(--fz-sm); color: var(--t3); }
    .wb-field-list { margin: 0; padding-left: 18px; line-height: 1.6; }
    .wb-field-list li { margin-bottom: 3px; }

    /* ---- 底栏：复用 .detail-footer 外壳 ---- */
    .detail-footer.wb-foot { justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 8px; }
    .wb-foot-left { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: var(--fz-sm); color: var(--t3); }
    .wb-steps { display: flex; align-items: center; gap: 2px; }
    .wb-steps span { padding: 2px 7px; border-radius: var(--r-sm); white-space: nowrap; color: var(--t3); }
    .wb-steps span.done { color: var(--t2); }
    .wb-steps span.cur { background: var(--blue-50); color: var(--blue-hover); font-weight: 700; }
    .wb-steps i { font-style: normal; color: var(--line-strong); padding: 0 2px; }
    .wb-foot-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
    .wb-foot-hint { font-size: var(--fz-sm); color: var(--t3); }

    /* ---- 弹层：意见文本 / 登记 ---- */
    .wb-modal-mask { position: fixed; inset: 0; z-index: 1500; background: rgba(35, 43, 58, .38); display: flex; align-items: center; justify-content: center; padding: 20px; }
    .wb-modal { width: min(640px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--bg-panel); border-radius: var(--r-xl); box-shadow: 0 20px 60px rgba(35, 43, 58, .22); overflow: hidden; }
    .wb-modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-soft); }
    .wb-modal-title { font-size: var(--fz-lg); font-weight: 650; color: var(--t1); }
    .wb-modal-sub { font-size: var(--fz-sm); color: var(--t3); margin-top: 2px; }
    .wb-modal-x { margin-left: auto; border: none; background: none; font-size: 20px; line-height: 1; color: var(--t3); cursor: pointer; padding: 4px 6px; border-radius: var(--r-sm); }
    .wb-modal-x:hover { background: var(--bg-hover); color: var(--t1); }
    .wb-modal-body { padding: 16px 20px; overflow-y: auto; min-height: 0; }
    .wb-modal-body .field-group { padding: 0; }
    .wb-modal-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
    .wb-modal-foot .wb-foot-hint { margin-right: auto; }
    .wb-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: var(--fz-base); line-height: 1.75; color: var(--t1); background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px 16px; margin: 0; }

    @media (max-width: 900px), (max-height: 500px) and (max-width: 1024px) {
      .wb-meta-right { margin-left: 0; flex-basis: 100%; }
      .wb-row { flex-direction: column; gap: 2px; }
      .wb-row-k { flex-basis: auto; }
      .wb-op-table, .wb-op-table tbody, .wb-op-table tr, .wb-op-table td { display: block; width: 100%; }
      .wb-op-table thead { display: none; }
      .wb-op-table tr { padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
      .wb-op-table tbody tr:last-child { border-bottom: none; }
      .wb-op-table td { padding: 2px 0; border-bottom: none; }
      .wb-op-table td::before { content: attr(data-label) '：'; color: var(--t3); font-size: var(--fz-xs); font-weight: 400; }
      .wb-op-table .wb-op-quote { min-width: 0; }
      .wb-item-head, .wb-item-body { padding-left: 14px; padding-right: 14px; }
      .detail-footer.wb-foot { display: flex; }
      .wb-steps { display: none; }
      .wb-foot-right { flex: 1; justify-content: flex-end; }
      .wb-foot-right .btn { width: auto; min-width: 0; }
      .wb-modal-mask { padding: 0; align-items: flex-end; }
      .wb-modal { width: 100%; max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
    }

/* 全分支评审 1：列表常驻错误、理由未保存、意见文本弹层的提示与错误、无链接时禁用的「打开飞书文档」 */
.wb-list-error { margin: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg); display: flex; align-items: center; gap: 12px; }
.wb-list-error-text { flex: 1; color: var(--red-deep); line-height: 1.6; }
.wb-note-unsaved { margin-left: 8px; color: var(--orange-deep); font-size: var(--fz-sm); }
.wb-opinion-notice { margin-bottom: 10px; padding: 8px 12px; border-radius: var(--r-md); background: var(--orange-50); color: var(--orange-deep); line-height: 1.6; }
.wb-opinion-error { margin-bottom: 10px; padding: 8px 12px; border-radius: var(--r-md); background: var(--red-50); color: var(--red-deep); line-height: 1.6; }
.wb-link-disabled, .wb-link-disabled:hover { background: none; border: none; padding: 0; color: var(--t3); cursor: not-allowed; text-decoration: none; font: inherit; }
/* 全分支评审 2：判断保存中、题干已变待确认、底栏里的「已变化」提示 */
.wb-saving { margin-left: 8px; color: var(--t2); font-size: var(--fz-sm); }
.wb-seg button.wb-saving { opacity: .7; }
.wb-stale { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 12px; border-radius: var(--r-md); background: var(--orange-50); color: var(--orange-deep); line-height: 1.6; }
.wb-stale > span { flex: 1; }
.wb-stale-slot[hidden] { display: none; }
.wb-foot-hint.wb-opinion-notice { margin: 0 8px 0 0; padding: 4px 8px; }
/* 首轮验收反馈：整类送分析按钮（页签面板里、第一张卡之上）、列表行的队列标签、自动分析一行、确认框说明 */
.wb-batch { margin: 4px 0 10px; }
.wb-batch-btn { width: 100%; padding: 8px 12px; font-size: var(--fz-sm); color: var(--blue); border-color: var(--blue); background: var(--bg-panel); }
.wb-batch-btn:disabled { color: var(--t3); border-color: var(--line-strong); }
.wb-auto-line { margin-top: 2px; }
.card-tag.wb-task-queued { background: var(--blue-50); color: var(--blue-hover); }
.card-tag.wb-task-running { background: var(--blue-50); color: var(--blue-hover); }
.card-tag.wb-task-failed { background: var(--red-50); color: var(--red-deep); cursor: help; }
.wb-batch-line { margin: 0 0 8px; line-height: 1.7; color: var(--t1); }
.wb-batch-line:last-child { margin-bottom: 0; color: var(--t3); font-size: var(--fz-sm); }
