/* 审鉴 · 审计智能作业平台
 * 设计语言：浅色审计底稿 / 宋体标题 / 账簿线 / 印章红
 * 纯静态、无外部依赖
 */
:root {
  --paper: #f2ede2;
  --paper-2: #f8f3e9;
  --paper-3: #ece4d5;
  --card: #fffdf8;
  --ink: #202831;
  --ink-2: #46505b;
  --muted: #81796b;
  --faint: #a49b8b;
  --line: #d9d0bf;
  --line-2: #e8e1d3;
  --navy: #1c3b55;
  --navy-2: #2a5372;
  --red: #a4382a;
  --red-2: #bd4a37;
  --gold: #a8863f;
  --green: #3f6a50;
  --amber: #a97224;
  --blue: #345d7e;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "Consolas", monospace;
  --mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
  --shadow: 0 10px 26px rgba(47, 36, 20, .055);
  --shadow-sm: 0 2px 7px rgba(47, 36, 20, .05);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-width: 1180px;
  color: var(--ink);
  background:
    radial-gradient(1100px 580px at 76% -12%, rgba(255, 255, 255, .72), transparent 62%),
    radial-gradient(920px 520px at 4% 104%, rgba(164, 56, 42, .045), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    repeating-linear-gradient(0deg, rgba(96, 78, 48, .028) 0, rgba(96, 78, 48, .028) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, .16) 1px, transparent 1px, transparent 6px);
}
::selection { background: rgba(164, 56, 42, .18); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red); }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfc5b4; border: 2px solid var(--paper); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #b9ad99; }

.app { min-height: 100vh; padding-left: 236px; position: relative; z-index: 1; }
.main { min-height: 100vh; display: flex; flex-direction: column; }
.stage { padding: 14px 24px 34px; flex: 1; }

/* ============ 左侧账簿书脊 ============ */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 24px 0 16px;
  color: #e9e2d4;
  background:
    radial-gradient(380px 240px at 20% 0%, rgba(84, 122, 148, .22), transparent 70%),
    linear-gradient(180deg, #1a2d3e 0%, #142431 58%, #101d28 100%);
  border-right: 1px solid #0d1a24;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05), 8px 0 28px rgba(22, 31, 39, .13);
}
.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0, rgba(255, 255, 255, .045) 1px, transparent 1px, transparent 5px);
}
.rail > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 20px 0 22px; }
.brand-seal {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  position: relative;
  background: linear-gradient(145deg, #b44632, #8f2b20);
  color: #fff6e7;
  border: 1px solid rgba(255, 236, 205, .55);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25), inset 0 0 0 3px rgba(255, 244, 224, .11);
  transform: rotate(-2deg);
}
.brand-seal::before, .brand-seal::after {
  content: ""; position: absolute; left: 5px; right: 5px; height: 1px; background: rgba(255, 244, 224, .38);
}
.brand-seal::before { top: 5px; } .brand-seal::after { bottom: 5px; }
.brand-seal span { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1; text-indent: 1px; }
.brand-txt { min-width: 0; }
.brand-cn { font-family: var(--serif); font-size: 26px; line-height: 1.05; letter-spacing: 6px; color: #f4edde; }
.brand-en { margin-top: 4px; font-family: var(--num); font-size: 7.5px; letter-spacing: 1.7px; color: rgba(226, 216, 196, .52); white-space: nowrap; }
.rail-org { margin: 19px 22px 0; padding-top: 13px; border-top: 1px solid rgba(226, 216, 196, .13); }
.rail-org span { display: block; font-size: 10px; letter-spacing: 1.2px; color: rgba(232, 223, 204, .45); }
.rail-org b { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: rgba(244, 237, 222, .78); }

.nav { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.nav-btn {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 15px 8px 20px;
  color: rgba(231, 223, 207, .66);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  transition: color .18s, background .18s, border-color .18s;
}
.nav-btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.35;
  stroke-linecap: round; stroke-linejoin: round; opacity: .9;
}
.nav-btn span { min-width: 0; }
.nav-btn b { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .8px; }
.nav-btn small { display: block; margin-top: 1px; font-family: var(--num); font-size: 7.5px; letter-spacing: 1.2px; color: rgba(231, 223, 207, .34); }
.nav-btn i { font-family: var(--num); font-style: normal; font-size: 9px; color: rgba(231, 223, 207, .3); text-align: right; }
.nav-btn em {
  position: absolute; right: 10px; top: 7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  font-family: var(--num); font-style: normal; font-size: 8.5px;
  color: #f6e9d5; background: rgba(190, 73, 55, .72);
  border-radius: 8px;
}
.nav-btn:hover { color: #f4edde; background: rgba(255, 255, 255, .045); }
.nav-btn.active {
  color: #1d2a35;
  background: linear-gradient(90deg, var(--paper) 0%, #f6f0e4 100%);
  border-left-color: var(--red);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
}
.nav-btn.active small { color: #938873; }
.nav-btn.active i { color: #8d8270; }
.nav-btn.active em { background: var(--red); color: #fff8ec; }

.rail-foot { margin-top: auto; padding: 16px 20px 0; border-top: 1px solid rgba(226, 216, 196, .12); }
.rail-stat { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px; font-size: 9.5px; }
.rail-stat span { color: rgba(231, 223, 207, .4); letter-spacing: .6px; }
.rail-stat b { font-family: var(--num); font-size: 10px; font-weight: 500; color: rgba(240, 231, 214, .75); }
.rail-ai {
  width: 100%; margin-top: 12px; padding: 9px 10px;
  display: flex; align-items: center; gap: 9px;
  color: #f1e8d7;
  background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid rgba(230, 216, 190, .2);
  text-align: left;
  transition: .18s;
}
.rail-ai:hover { border-color: rgba(230, 216, 190, .42); background: rgba(255, 255, 255, .1); }
.rail-ai > span { font-size: 19px; color: #d9b574; }
.rail-ai b { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .5px; }
.rail-ai small { display: block; margin-top: 1px; font-size: 8px; color: rgba(231, 223, 207, .42); }
.rail-sign { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rail-sign span { font-family: var(--num); font-size: 7.5px; color: rgba(231, 223, 207, .34); letter-spacing: .5px; }
.rail-sign i { font-style: normal; font-size: 7px; color: rgba(231, 223, 207, .26); letter-spacing: .4px; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 35;
  height: 60px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px;
  background: rgba(249, 245, 236, .93);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 14px rgba(48, 38, 24, .035);
  backdrop-filter: blur(12px);
}
.topbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 156px, var(--navy) 156px 100%);
}
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.crumb i { font-style: normal; color: #bdb2a0; }
.crumb b { color: var(--ink); font-weight: 500; letter-spacing: .4px; }
.top-meta { display: flex; align-items: center; gap: 8px; margin-left: 2px; white-space: nowrap; }
.top-doc { font-family: var(--num); font-size: 9.5px; letter-spacing: .5px; color: var(--navy); padding: 3px 7px; border: 1px solid #c9d3d9; background: #f1f5f5; }
.top-period { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); }
.top-period i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63, 106, 80, .12); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.log-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: var(--muted); background: transparent; border: 1px solid transparent; font-size: 9.5px; }
.log-btn:hover { border-color: var(--line); background: var(--card); color: var(--ink); }
.log-btn b { font-family: var(--num); font-size: 9px; color: var(--red); background: #f3e4dd; padding: 1px 4px; border-radius: 7px; }
.role-pick { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--faint); letter-spacing: .4px; }
.role-pick select {
  appearance: none;
  padding: 5px 21px 5px 7px;
  font-size: 10px; color: var(--ink);
  background: #fbf8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='m0 0 4 5 4-5z' fill='%238d8270'/%3E%3C/svg%3E") no-repeat right 7px center;
  border: 1px solid var(--line); outline: none; border-radius: 0;
}
.role-pick select:focus { border-color: var(--navy); }
.who { display: flex; align-items: center; gap: 7px; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #f7efe1; font-family: var(--serif); font-size: 12px; }
.who b { display: block; font-size: 10px; font-weight: 500; line-height: 1.2; }
.who small { display: block; font-size: 8px; color: var(--faint); line-height: 1.4; }
.clock { font-family: var(--num); font-size: 10px; letter-spacing: .8px; color: var(--ink-2); min-width: 66px; text-align: right; }

/* ============ 页面通用 ============ */
.view { animation: rise .34s cubic-bezier(.2, .7, .25, 1) both; }
body.static .view, body.static .paper-card, body.static .kpi { animation: none !important; }
body.static .ai-fab, body.static .toast { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.view-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 2px 0 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.view-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 74px; height: 2px; background: var(--red);
}
.vh-left { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-family: var(--num); font-size: 8.5px; letter-spacing: 2px; color: var(--red); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 17px; height: 1px; background: var(--red); }
.view-head h1 { margin-top: 4px; font-family: var(--serif); font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: .5px; color: #1d2731; }
.view-head h1 span { color: var(--red); }
.view-head p { margin-top: 4px; max-width: 800px; font-size: 11px; color: var(--muted); line-height: 1.65; }
.vh-right { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 14px; padding-bottom: 2px; }
.head-note { text-align: right; font-size: 9px; color: var(--faint); line-height: 1.7; }
.head-note b { display: block; font-family: var(--num); font-size: 10px; font-weight: 500; color: var(--ink-2); letter-spacing: .6px; }
.head-stamp {
  width: 64px; height: 64px; display: grid; place-items: center;
  border: 2px solid rgba(164, 56, 42, .6); outline: 1px solid rgba(164, 56, 42, .25); outline-offset: 3px;
  color: rgba(164, 56, 42, .82); font-family: var(--serif); font-size: 11px; line-height: 1.15; text-align: center;
  transform: rotate(-7deg); letter-spacing: 1px;
}
.head-stamp small { display: block; font-family: var(--num); font-size: 6.5px; letter-spacing: .5px; }

.kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi {
  position: relative; min-width: 0; padding: 10px 13px 9px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: rise .4s both;
}
.kpi::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3px; height: 18px; background: var(--navy); }
.kpi.red::before { background: var(--red); }
.kpi.gold::before { background: var(--gold); }
.kpi.green::before { background: var(--green); }
.kpi-label { display: block; font-size: 8.5px; letter-spacing: 1px; color: var(--faint); white-space: nowrap; }
.kpi-val { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; white-space: nowrap; }
.kpi-val b { font-family: var(--num); font-size: 23px; line-height: 1.15; font-weight: 600; color: #1c2a36; letter-spacing: -.2px; }
.kpi-val em { font-style: normal; font-size: 9px; color: var(--muted); }
.kpi-sub { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 3px; font-size: 8px; color: var(--faint); white-space: nowrap; }
.kpi-bar { margin-top: 5px; height: 2px; background: #e9e1d3; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--navy); }
.kpi.red .kpi-bar i { background: var(--red); }
.kpi.gold .kpi-bar i { background: var(--gold); }
.kpi.green .kpi-bar i { background: var(--green); }

.paper-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-family: var(--serif); font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.card-head h3 small { margin-left: 6px; font-family: var(--num); font-size: 7.5px; font-weight: 400; letter-spacing: 1.2px; color: var(--faint); }
.card-head p { margin-top: 2px; font-size: 8.5px; color: var(--faint); }
.card-tools { display: flex; align-items: center; gap: 6px; }
.legend { display: flex; align-items: center; gap: 10px; font-size: 8px; color: var(--muted); }
.legend i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; }
.legend .lg-high { background: var(--red); }
.legend .lg-mid { background: var(--gold); }
.legend .lg-low { background: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 7px 14px;
  font-size: 10.5px; letter-spacing: .5px;
  color: #faf4e7; background: var(--navy);
  border: 1px solid var(--navy);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover:not(:disabled) { background: var(--navy-2); border-color: var(--navy-2); box-shadow: 0 5px 12px rgba(28, 59, 85, .16); transform: translateY(-1px); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover:not(:disabled) { background: var(--red-2); border-color: var(--red-2); box-shadow: 0 5px 12px rgba(164, 56, 42, .2); }
.btn.ghost { color: var(--ink-2); background: transparent; border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { color: var(--ink); background: #f5efe3; border-color: #c5b9a5; box-shadow: none; }
.btn.small { min-height: 28px; padding: 5px 10px; font-size: 9.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.2); }
.btn .kbd { font-family: var(--num); font-size: 8px; opacity: .6; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 18px; line-height: 1; }
.icon-btn:hover { color: var(--ink); background: #f4eee2; }
.btn-mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 23px; padding: 2px 8px;
  font-size: 8.5px; letter-spacing: .3px;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
}
.btn-mini:hover { color: var(--ink); border-color: #bfb39f; background: #f7f2e8; }
.btn-mini.on { color: #f9f3e6; background: var(--navy); border-color: var(--navy); }
.btn-mini.danger { color: var(--red); border-color: #d8b6ab; }

select.select, input.text, textarea.text {
  width: 100%; padding: 7px 9px;
  font-size: 10.5px; color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  outline: none; border-radius: 0;
}
select.select { appearance: none; padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='m0 0 4 5 4-5z' fill='%238d8270'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
select.select:focus, input.text:focus, textarea.text:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28, 59, 85, .07); }
textarea.text { resize: vertical; line-height: 1.7; }
label.field { display: block; }
label.field > span { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 9px; color: var(--muted); letter-spacing: .4px; }
label.field > span em { font-style: normal; font-size: 8px; color: var(--faint); }
input[type="range"] {
  appearance: none; width: 100%; height: 4px; margin: 8px 0 5px;
  background: linear-gradient(90deg, var(--navy) 0 var(--fill, 50%), #e4dbcb var(--fill, 50%) 100%);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: #fffdf8; border: 2px solid var(--navy);
  box-shadow: 0 1px 5px rgba(28, 59, 85, .22);
}
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fffdf8; border: 2px solid var(--navy); }
input[type="range"].red { background: linear-gradient(90deg, var(--red) 0 var(--fill, 50%), #e4dbcb var(--fill, 50%) 100%); }
input[type="range"].red::-webkit-slider-thumb { border-color: var(--red); }
.range-ticks { display: flex; justify-content: space-between; font-family: var(--num); font-size: 7.5px; color: var(--faint); }
.hint { margin-top: 4px; font-size: 8.5px; line-height: 1.55; color: var(--faint); }
.mono { font-family: var(--num); }

/* ============ 审计计划 ============ */
.plan-grid { display: grid; grid-template-columns: 296px minmax(0, 1fr) 320px; gap: 14px; margin-bottom: 14px; }
.plan-controls { padding: 14px 15px 12px; display: flex; flex-direction: column; gap: 13px; }
.control-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 7px; border-bottom: 1px solid var(--line-2); }
.control-title b { font-family: var(--serif); font-size: 12.5px; letter-spacing: .4px; }
.control-title span { font-family: var(--num); font-size: 7px; letter-spacing: 1px; color: var(--faint); }
.slider-block { position: relative; }
.slider-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.slider-top label { font-size: 9.5px; color: var(--ink-2); }
.slider-top output { font-family: var(--num); font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1; }
.slider-top output small { font-family: var(--sans); font-size: 8px; font-weight: 400; color: var(--faint); margin-left: 2px; }
.slider-top output.red { color: var(--red); }
.slider-meta { display: flex; justify-content: space-between; font-size: 8px; color: var(--faint); }
.formula-box { padding: 8px 9px; background: #f4eee1; border-left: 2px solid var(--gold); }
.formula-row { display: flex; gap: 6px; font-size: 8px; line-height: 1.7; }
.formula-row + .formula-row { margin-top: 4px; padding-top: 4px; border-top: 1px dashed #ddd3c1; }
.formula-row span { flex: 0 0 34px; color: var(--muted); }
.formula-row code { font-family: var(--mono); font-size: 7.8px; color: var(--ink-2); word-break: break-all; }
.control-actions { margin-top: auto; display: flex; gap: 6px; }
.control-actions .btn { flex: 1; }
.plan-footnote { padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 7.8px; color: var(--faint); line-height: 1.6; }

.risk-card { padding: 12px 15px 10px; display: flex; flex-direction: column; min-height: 348px; }
.risk-card .card-head { padding-bottom: 6px; }
.risk-svg { width: 100%; height: auto; flex: 1; min-height: 0; }
.risk-svg .grid-line { stroke: #e5ddcd; stroke-width: 1; }
.risk-svg .axis-line { stroke: #bfb4a1; stroke-width: 1; }
.risk-svg .thresh { stroke: #a4382a; stroke-width: 1; stroke-dasharray: 4 4; opacity: .5; }
.risk-svg .quad-label { font-family: var(--sans); font-size: 8px; fill: #a49a88; letter-spacing: .8px; }
.risk-svg .axis-label { font-family: var(--sans); font-size: 8px; fill: #8d8372; letter-spacing: .6px; }
.risk-svg .tick-label { font-family: var(--num); font-size: 7px; fill: #aaa08f; }
.risk-svg .bubble { cursor: pointer; }
.risk-svg .bubble circle { stroke: #fffdf8; stroke-width: 2.2; transition: .16s; }
.risk-svg .bubble:hover circle, .risk-svg .bubble.active circle { stroke: #202831; stroke-width: 2.4; }
.risk-svg .bubble-label { font-family: var(--sans); font-size: 8.5px; font-weight: 600; fill: #3a3932; paint-order: stroke; stroke: #fffdf8; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.risk-svg .bubble-val { font-family: var(--num); font-size: 7px; fill: #7e7565; paint-order: stroke; stroke: #fffdf8; stroke-width: 2.5px; pointer-events: none; }
.unit-focus { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 170px minmax(0, 1fr) 152px; gap: 12px; align-items: center; }
.unit-focus-name { display: flex; align-items: center; gap: 7px; }
.unit-focus-name b { font-family: var(--serif); font-size: 12.5px; }
.unit-focus-name span { font-size: 8px; padding: 1px 5px; border: 1px solid #d9b9af; color: var(--red); }
.unit-focus-sub { margin-top: 1px; font-size: 8px; color: var(--faint); }
.factor-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.factor { min-width: 0; }
.factor span { display: block; font-size: 7px; color: var(--faint); white-space: nowrap; }
.factor i { display: block; height: 3px; margin-top: 2px; background: #e8dfd0; }
.factor i b { display: block; height: 100%; background: var(--navy); }
.factor em { display: block; margin-top: 1px; font-family: var(--num); font-style: normal; font-size: 7px; color: var(--muted); }
.unit-focus-right { display: flex; gap: 14px; }
.unit-focus-right div { min-width: 0; }
.unit-focus-right span { display: block; font-size: 7.5px; color: var(--faint); white-space: nowrap; }
.unit-focus-right b { display: block; margin-top: 1px; font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.plan-side { padding: 13px 15px; display: flex; flex-direction: column; }
.plan-side .card-head { margin-bottom: 8px; }
.coverage-row { display: flex; align-items: center; gap: 14px; }
.coverage-ring {
  --p: 62;
  width: 104px; height: 104px; flex: 0 0 104px; border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), #e8dfd0 0);
  display: grid; place-items: center; position: relative;
}
.coverage-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.coverage-ring div { position: relative; text-align: center; }
.coverage-ring b { display: block; font-family: var(--num); font-size: 21px; line-height: 1; color: var(--ink); }
.coverage-ring span { display: block; margin-top: 3px; font-size: 7.5px; color: var(--faint); letter-spacing: .5px; }
.coverage-facts { min-width: 0; flex: 1; }
.cov-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.cov-fact:last-child { border-bottom: 0; }
.cov-fact span { font-size: 8.5px; color: var(--muted); white-space: nowrap; }
.cov-fact b { font-family: var(--num); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cov-fact b small { font-family: var(--sans); font-size: 7.5px; font-weight: 400; color: var(--faint); }
.ai-mini { margin-top: 9px; padding: 9px 10px; background: linear-gradient(135deg, #f6efe1, #fbf7ee); border: 1px solid #e3d7c3; position: relative; }
.ai-mini::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 2px; background: var(--red); }
.ai-mini-head { display: flex; align-items: center; gap: 5px; }
.ai-mini-head .ai-orb, .ai-card-head .ai-orb {
  width: auto; height: auto; display: inline;
  background: none; box-shadow: none;
  font-size: 13px; color: var(--red);
}
.ai-mini-head b { font-family: var(--serif); font-size: 10.5px; }
.ai-mini-head i { margin-left: auto; font-family: var(--num); font-style: normal; font-size: 6.8px; color: var(--faint); letter-spacing: .4px; }
.ai-mini p { margin-top: 5px; font-size: 8.5px; line-height: 1.7; color: var(--ink-2); }
.ai-mini ul { margin: 4px 0 0; padding: 0; list-style: none; }
.ai-mini li { position: relative; padding-left: 9px; font-size: 8px; line-height: 1.65; color: var(--muted); }
.ai-mini li::before { content: "·"; position: absolute; left: 1px; color: var(--red); font-weight: 700; }
.ai-mini .trace { margin-top: 5px; padding-top: 4px; border-top: 1px dashed #ddd0ba; font-family: var(--mono); font-size: 6.8px; line-height: 1.55; color: #9a8e78; }

.plan-table-card { padding: 9px 15px 8px; }
.plan-table-card .card-head { margin-bottom: 3px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th {
  padding: 6px 7px; text-align: left;
  font-size: 7.5px; font-weight: 500; letter-spacing: .7px; color: var(--faint); text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: #faf6ed;
}
.data-table td { padding: 4px 7px; border-bottom: 1px solid var(--line-2); font-size: 9.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .13s; }
.data-table tbody tr:hover { background: #faf5e9; }
.data-table tbody tr.picked { background: #f7f1e4; }
.data-table tbody tr.picked td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.data-table .num { font-family: var(--num); text-align: right; white-space: nowrap; }
.data-table .c { text-align: center; }
.rank { font-family: var(--num); font-size: 8px; color: var(--faint); }
.p-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { margin-top: 1px; font-size: 7.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-cell { display: flex; align-items: center; gap: 6px; }
.risk-cell b { font-family: var(--num); font-size: 10px; font-weight: 600; }
.risk-cell i { flex: 0 0 42px; height: 3px; background: #e9e0d1; }
.risk-cell i em { display: block; height: 100%; background: var(--red); }
.risk-cell.mid i em { background: var(--gold); }
.risk-cell.low i em { background: var(--green); }
.risk-cell small { font-size: 7px; color: var(--faint); }

/* ============ 非现场分析 ============ */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 10px;
  background: rgba(255, 253, 248, .72); border: 1px solid var(--line);
}
.filter-group { display: flex; align-items: center; gap: 4px; }
.filter-label { margin-right: 3px; font-size: 7.5px; letter-spacing: .6px; color: var(--faint); }
.chip {
  padding: 3px 7px; font-size: 8.5px; color: var(--muted);
  background: transparent; border: 1px solid transparent;
  transition: .13s;
}
.chip:hover { color: var(--ink); background: #f5efe2; }
.chip.active { color: #faf4e7; background: var(--navy); border-color: var(--navy); }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { padding: 4px 8px; font-size: 8.5px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--navy); color: #faf4e7; }
.filter-spacer { flex: 1; }
.filter-count { font-family: var(--num); font-size: 8px; color: var(--faint); }
.filter-count b { color: var(--red); font-size: 11px; }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 14px; align-items: start; }
.issue-table-card { padding: 11px 13px 9px; }
.issue-table-card .card-head { margin-bottom: 3px; }
.issue-table tbody tr { cursor: pointer; }
.issue-table td { padding: 5px 6px; }
.issue-table .col-code { width: 84px; }
.issue-table .col-unit { width: 62px; }
.issue-table .col-rule { width: 46px; }
.issue-table .col-amt { width: 86px; }
.issue-table .col-risk { width: 44px; }
.issue-table .col-status { width: 52px; }
.issue-title { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-vendor { margin-top: 1px; font-size: 7.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-cell { font-family: var(--num); font-size: 8px; color: var(--ink-2); letter-spacing: -.1px; }
.rule-tag { display: inline-block; padding: 1px 4px; font-family: var(--num); font-size: 7.5px; color: var(--navy); background: #eef3f5; border: 1px solid #d6e0e5; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; font-size: 7.5px; line-height: 1.5; white-space: nowrap; border: 1px solid; }
.tag i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tag.high { color: var(--red); border-color: #dbb8ae; background: #fbefe9; }
.tag.mid { color: var(--amber); border-color: #dfc9a3; background: #fbf4e5; }
.tag.low { color: var(--green); border-color: #bfd1c2; background: #eff5ef; }
.tag.pending { color: #7b7263; border-color: #d9d0bf; background: #f8f4ea; }
.tag.confirmed { color: var(--red); border-color: #dbb8ae; background: #fbefe9; }
.tag.excluded { color: var(--green); border-color: #bfd1c2; background: #eff5ef; }
.tag.review { color: var(--blue); border-color: #bccdda; background: #eef4f8; }
.tag.closed { color: var(--green); border-color: #bfd1c2; background: #eff5ef; }
.tag.rectifying { color: var(--amber); border-color: #dfc9a3; background: #fbf4e5; }
.tag.overdue { color: #fff8ec; border-color: var(--red); background: var(--red); }
.rule-strip { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px 14px; }
.rule-dist { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 5px; font-size: 7.5px; color: var(--muted); }
.rule-dist b { font-family: var(--num); font-size: 7.5px; color: var(--navy); }
.rule-dist i { display: block; height: 3px; background: #ece4d6; }
.rule-dist i em { display: block; height: 100%; background: var(--navy-2); }
.rule-dist span { font-family: var(--num); font-size: 7.5px; color: var(--faint); text-align: right; }

.issue-side { padding: 0; position: sticky; top: 72px; max-height: calc(100vh - 82px); overflow: auto; }
.side-tabs { display: flex; border-bottom: 1px solid var(--line); background: #faf6ed; }
.side-tabs button { flex: 1; padding: 8px 4px; font-size: 9px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; }
.side-tabs button.active { color: var(--ink); border-bottom-color: var(--red); background: var(--card); font-weight: 500; }
.side-body { padding: 12px 13px 13px; }
.side-issue-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.side-issue-head h3 { font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.side-issue-code { margin-top: 2px; font-family: var(--num); font-size: 8px; color: var(--faint); letter-spacing: .4px; }
.side-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 9px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.side-meta div { padding: 5px 0; }
.side-meta span { display: block; font-size: 7.5px; color: var(--faint); }
.side-meta b { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 500; }
.side-meta b.num { font-family: var(--num); font-size: 12px; }
.ai-card { margin-top: 10px; border: 1px solid #e1d4be; background: linear-gradient(145deg, #f8f1e3, #fcf8ef); position: relative; }
.ai-card-head { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-bottom: 1px solid #e7dbc7; }
.ai-card-head .ai-orb { font-size: 13px; color: var(--red); }
.ai-card-head b { font-family: var(--serif); font-size: 10.5px; }
.ai-card-head i { margin-left: auto; font-family: var(--num); font-style: normal; font-size: 6.5px; color: var(--faint); }
.ai-card-body { padding: 8px 9px 9px; }
.ai-reco { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-reco-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; }
.ai-reco-label.confirm { color: var(--red); }
.ai-reco-label.exclude { color: var(--green); }
.ai-reco-label.review { color: var(--amber); }
.ai-conf { display: flex; align-items: center; gap: 4px; font-family: var(--num); font-size: 8px; color: var(--muted); }
.ai-conf i { display: block; width: 40px; height: 3px; background: #e1d7c6; }
.ai-conf i em { display: block; height: 100%; background: var(--red); }
.ai-summary { margin-top: 6px; font-size: 8.8px; line-height: 1.7; color: var(--ink-2); }
.ai-points { margin: 6px 0 0; padding: 0; list-style: none; }
.ai-points li { position: relative; padding-left: 9px; font-size: 8.2px; line-height: 1.65; color: var(--muted); }
.ai-points li::before { content: "—"; position: absolute; left: 0; top: -1px; color: var(--red); font-size: 7px; }
.ai-counter { margin-top: 6px; padding: 5px 6px; font-size: 7.8px; line-height: 1.55; color: #8b6c4b; background: rgba(255, 255, 255, .55); border-left: 2px solid #d3b98a; }
.ai-counter b { color: #7b5a37; font-weight: 600; }
.trace-box { margin-top: 9px; padding: 7px 8px; background: #f4eee2; border: 1px dashed #d9cbb4; }
.trace-box h4 { font-family: var(--num); font-size: 7px; letter-spacing: 1px; color: #9b8e77; text-transform: uppercase; }
.trace-line { display: flex; gap: 5px; margin-top: 3px; font-size: 7.6px; line-height: 1.55; }
.trace-line b { flex: 0 0 28px; color: var(--muted); font-weight: 500; }
.trace-line span { color: var(--ink-2); font-family: var(--mono); font-size: 7.4px; word-break: break-all; }
.evidence-mini { margin-top: 9px; }
.evidence-mini h4 { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); }
.evidence-mini h4 em { font-style: normal; font-family: var(--num); font-size: 7.5px; color: var(--faint); }
.evidence-mini ul { margin: 4px 0 0; padding: 0; list-style: none; }
.evidence-mini li { display: flex; gap: 5px; padding: 3px 0; border-bottom: 1px dotted var(--line-2); font-size: 7.8px; color: var(--ink-2); }
.evidence-mini li span { color: var(--green); }
.evidence-mini li em { margin-left: auto; font-style: normal; font-size: 7px; color: var(--faint); }
.side-actions { margin-top: 10px; display: flex; gap: 6px; }
.side-actions .btn { flex: 1; }
.side-empty { padding: 30px 10px; text-align: center; color: var(--faint); font-size: 9px; }

/* 抽样 */
.sample-head { padding: 2px 0 8px; border-bottom: 1px solid var(--line-2); }
.sample-head h3 { font-family: var(--serif); font-size: 14px; }
.sample-head p { margin-top: 2px; font-size: 8px; color: var(--faint); }
.sample-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sample-result { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 9px; background: var(--line-2); border: 1px solid var(--line-2); }
.sample-cell { padding: 7px 8px; background: var(--card); }
.sample-cell span { display: block; font-size: 7.5px; color: var(--faint); }
.sample-cell b { display: block; margin-top: 1px; font-family: var(--num); font-size: 16px; font-weight: 600; color: var(--ink); }
.sample-cell b small { font-family: var(--sans); font-size: 7.5px; font-weight: 400; color: var(--muted); }
.sample-cell.hl b { color: var(--red); }
.sample-formula { margin-top: 7px; padding: 6px 7px; background: #f4eee2; font-family: var(--mono); font-size: 7.2px; line-height: 1.65; color: var(--muted); }
.sample-formula b { color: var(--ink-2); }
.sample-list { margin-top: 8px; }
.sample-list h4 { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); }
.sample-list h4 em { font-style: normal; font-family: var(--num); font-size: 7px; color: var(--faint); }
.sample-list table { width: 100%; border-collapse: collapse; margin-top: 3px; }
.sample-list th { font-size: 6.8px; font-weight: 500; color: var(--faint); text-align: left; border-bottom: 1px solid var(--line); padding: 3px 2px; }
.sample-list td { font-size: 7.3px; padding: 3px 2px; border-bottom: 1px dotted var(--line-2); }
.sample-list td.num { font-family: var(--num); text-align: right; }
.sample-actions { display: flex; gap: 6px; margin-top: 7px; }
.sample-note { margin-top: 6px; font-size: 7.5px; line-height: 1.6; color: var(--faint); }
.sample-note b { color: var(--ink-2); }

/* ============ 底稿核查 ============ */
.paper-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 7px 10px; background: rgba(255, 253, 248, .75); border: 1px solid var(--line); }
.paper-toolbar .pt-title { display: flex; align-items: baseline; gap: 7px; }
.paper-toolbar .pt-title b { font-family: var(--serif); font-size: 12px; }
.paper-toolbar .pt-title span { font-family: var(--num); font-size: 7.5px; color: var(--faint); }
.nav-issue { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-issue button { width: 22px; height: 22px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.nav-issue button:hover { background: #f4eee2; color: var(--ink); }
.lock-note { margin-left: auto; display: flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 8px; color: var(--amber); background: #fbf3e4; border: 1px solid #e5d2ae; }
.lock-note.ok { color: var(--green); background: #eff5ef; border-color: #c6d8c9; }

.paper-grid { display: grid; grid-template-columns: 244px minmax(0, 1fr) 344px; gap: 14px; align-items: start; }
.issue-list-mini { padding: 9px 8px; position: sticky; top: 72px; max-height: calc(100vh - 82px); overflow: auto; }
.issue-list-mini .ilm-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 6px; border-bottom: 1px solid var(--line-2); }
.issue-list-mini .ilm-head b { font-family: var(--serif); font-size: 11px; }
.issue-list-mini .ilm-head span { font-family: var(--num); font-size: 7px; color: var(--faint); }
.ilm-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 6px; align-items: center; width: 100%; padding: 5px 4px; background: transparent; border: 0; border-bottom: 1px dotted var(--line-2); text-align: left; }
.ilm-row:hover { background: #f7f2e7; }
.ilm-row.active { background: #f4ecdc; box-shadow: inset 2px 0 0 var(--red); }
.ilm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.ilm-dot.high { background: var(--red); }
.ilm-dot.done { background: var(--green); }
.ilm-dot.excluded { background: #8b9b8e; }
.ilm-main { min-width: 0; }
.ilm-main b { display: block; font-size: 8.2px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilm-main span { display: block; font-family: var(--num); font-size: 6.8px; color: var(--faint); }
.ilm-amt { font-family: var(--num); font-size: 7.5px; color: var(--muted); white-space: nowrap; }

.workpaper {
  position: relative;
  padding: 25px 34px 26px 40px;
  background: #fffdf7;
  border: 1px solid #d5cab7;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .8) inset, 0 12px 30px rgba(60, 45, 24, .07);
  min-height: 760px;
  overflow: hidden;
}
.workpaper::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 1px; background: rgba(164, 56, 42, .22); }
.workpaper::after { content: ""; position: absolute; right: 13px; top: 0; bottom: 0; width: 1px; background: rgba(164, 56, 42, .1); }
.wp-topline { display: flex; justify-content: space-between; align-items: center; font-family: var(--num); font-size: 7.5px; letter-spacing: 1.2px; color: #a29580; }
.wp-topline b { color: var(--red); font-weight: 500; letter-spacing: 1px; }
.wp-title { margin-top: 9px; text-align: center; }
.wp-title h1 { font-family: var(--serif); font-size: 24px; letter-spacing: 7px; font-weight: 700; color: #20252b; text-indent: 7px; }
.wp-title h2 { margin-top: 3px; font-family: var(--serif); font-size: 13px; font-weight: 400; letter-spacing: 3px; color: #6f6657; text-indent: 3px; }
.wp-rule { height: 3px; margin: 11px 0 0; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); opacity: .72; }
.wp-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 10px; border: 1px solid var(--line); }
.wp-meta div { padding: 5px 7px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.wp-meta div:nth-child(4n) { border-right: 0; }
.wp-meta div:nth-last-child(-n+4) { border-bottom: 0; }
.wp-meta span { display: block; font-size: 7px; color: var(--faint); }
.wp-meta b { display: block; margin-top: 1px; font-size: 8.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-sec { margin-top: 13px; }
.wp-sec-title { display: flex; align-items: baseline; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.wp-sec-title b { font-family: var(--serif); font-size: 11.5px; letter-spacing: 1px; }
.wp-sec-title i { font-family: var(--num); font-style: normal; font-size: 6.5px; color: var(--faint); letter-spacing: 1px; }
.wp-sec-title span { margin-left: auto; font-family: var(--num); font-size: 7px; color: var(--faint); }
.wp-text { margin-top: 5px; font-size: 9.5px; line-height: 1.85; color: #333a40; text-align: justify; }
.wp-text b { color: var(--red); font-weight: 600; }
.wp-facts { width: 100%; border-collapse: collapse; margin-top: 5px; }
.wp-facts th { width: 23%; padding: 4px 6px; font-size: 8px; font-weight: 500; color: var(--muted); text-align: left; background: #f8f3e8; border: 1px solid var(--line-2); }
.wp-facts td { padding: 4px 6px; font-size: 8.5px; border: 1px solid var(--line-2); color: #2f373e; }
.wp-calc { margin-top: 5px; padding: 7px 9px; background: #f6f0e4; border: 1px dashed #d8cbb6; }
.wp-calc-label { font-family: var(--num); font-size: 6.5px; letter-spacing: 1px; color: #9d907a; }
.wp-calc p { margin-top: 2px; font-family: var(--mono); font-size: 8px; line-height: 1.7; color: #3b434a; word-break: break-all; }
.wp-calc p b { color: var(--red); }
.wp-stamp {
  position: absolute; right: 34px; top: 84px; width: 88px; height: 88px;
  display: grid; place-items: center; text-align: center;
  border: 2px solid rgba(164, 56, 42, .62); outline: 1px solid rgba(164, 56, 42, .25); outline-offset: 4px;
  color: rgba(164, 56, 42, .8); font-family: var(--serif); font-size: 16px; letter-spacing: 3px;
  transform: rotate(-11deg); opacity: .88; pointer-events: none; z-index: 2; text-indent: 3px;
}
.wp-stamp small { display: block; font-family: var(--num); font-size: 5.8px; letter-spacing: .6px; text-indent: 0; }
.wp-stamp.excluded { border-color: rgba(63, 106, 80, .65); outline-color: rgba(63, 106, 80, .25); color: rgba(63, 106, 80, .82); }
.wp-stamp.pending { border-color: rgba(169, 114, 36, .55); outline-color: rgba(169, 114, 36, .2); color: rgba(169, 114, 36, .72); }
.decision-form { margin-top: 5px; padding: 9px 10px; background: #fbf7ee; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.form-actions { display: flex; gap: 7px; margin-top: 8px; align-items: center; }
.form-actions .btn { min-width: 98px; }
.form-msg { margin-left: auto; font-size: 8px; color: var(--red); }
.decision-done { margin-top: 5px; padding: 9px 10px; background: #f6f1e6; border: 1px solid var(--line); }
.decision-done .dd-head { display: flex; align-items: center; gap: 7px; }
.decision-done .dd-head b { font-family: var(--serif); font-size: 11px; }
.decision-done .dd-head span { font-family: var(--num); font-size: 7px; color: var(--faint); margin-left: auto; }
.decision-done p { margin-top: 4px; font-size: 9px; line-height: 1.7; color: var(--ink-2); }
.decision-done .dd-meta { margin-top: 4px; display: flex; gap: 14px; font-size: 7.5px; color: var(--faint); }
.wp-sign { margin-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 8px; border-top: 1px solid var(--line-2); }
.wp-sign div { font-size: 8px; color: var(--muted); }
.wp-sign div b { font-family: var(--serif); font-size: 13px; color: var(--ink); font-weight: 400; letter-spacing: 1px; margin-left: 5px; }
.wp-note { margin-top: 7px; font-size: 7px; color: var(--faint); line-height: 1.6; }

.evidence-side { padding: 11px 12px; position: sticky; top: 72px; max-height: calc(100vh - 82px); overflow: auto; }
.evidence-side .card-head { margin-bottom: 7px; }
.ev-head { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: #f3eddf; border-left: 2px solid var(--red); }
.ev-head b { font-family: var(--serif); font-size: 10.5px; }
.ev-head span { margin-left: auto; font-family: var(--num); font-size: 7px; color: var(--faint); }
.ev-list { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.ev-item { display: grid; grid-template-columns: 14px 1fr; gap: 6px; padding: 6px 7px; border: 1px solid var(--line-2); background: #fffdf8; transition: .13s; }
.ev-item:hover { border-color: #cbbda7; background: #fcf8ef; }
.ev-item.checked { border-color: #b9cbbd; background: #f3f8f3; }
.ev-check { display: flex; align-items: flex-start; padding-top: 1px; }
.ev-check input { appearance: none; width: 12px; height: 12px; margin: 0; border: 1px solid #bcb19d; background: #fffdf8; cursor: pointer; position: relative; }
.ev-check input:checked { background: var(--green); border-color: var(--green); }
.ev-check input:checked::after { content: "✓"; position: absolute; inset: -3px 0 0 1px; color: #fff; font-size: 10px; line-height: 1; }
.ev-check input:disabled { opacity: .75; cursor: default; }
.ev-body { min-width: 0; }
.ev-body b { display: block; font-size: 8.3px; font-weight: 500; color: var(--ink); }
.ev-body span { display: block; margin-top: 1px; font-size: 7.2px; line-height: 1.5; color: var(--muted); }
.ev-body em { display: block; margin-top: 2px; font-style: normal; font-family: var(--num); font-size: 6.7px; color: #a19784; }
.ev-hint { margin-top: 5px; font-size: 7.5px; color: var(--faint); line-height: 1.55; }
.ev-hint b { color: var(--red); }
.audit-trail { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line-2); }
.audit-trail h4 { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); }
.audit-trail h4 em { font-style: normal; font-family: var(--num); font-size: 7px; color: var(--faint); }
.trail-list { margin-top: 5px; position: relative; padding-left: 9px; }
.trail-list::before { content: ""; position: absolute; left: 2px; top: 3px; bottom: 3px; width: 1px; background: var(--line); }
.trail-item { position: relative; padding: 3px 0 5px; }
.trail-item::before { content: ""; position: absolute; left: -9px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.trail-item b { display: block; font-size: 7.8px; font-weight: 500; color: var(--ink-2); }
.trail-item span { display: block; font-size: 7.2px; line-height: 1.5; color: var(--muted); }
.trail-item em { display: block; margin-top: 1px; font-style: normal; font-family: var(--num); font-size: 6.5px; color: var(--faint); }
.trail-empty { padding: 8px 0; font-size: 7.5px; color: var(--faint); }

/* ============ 报告签发 ============ */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 14px; align-items: start; }
.report-paper {
  position: relative;
  min-height: 880px;
  padding: 34px 48px 40px;
  background: #fffdf7;
  border: 1px solid #d6cbb7;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .85) inset, 0 12px 30px rgba(60, 45, 24, .07);
  font-family: var(--serif);
  color: #24211b;
  overflow: hidden;
}
.report-paper::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(164, 56, 42, .12); pointer-events: none; }
.report-watermark {
  position: absolute; right: 90px; top: 310px; z-index: 0;
  font-family: var(--serif); font-size: 76px; letter-spacing: 18px; color: rgba(164, 56, 42, .045);
  transform: rotate(-24deg); pointer-events: none; white-space: nowrap;
}
.gov-head { position: relative; z-index: 1; text-align: center; }
.gov-head .org { font-family: var(--serif); font-size: 23px; letter-spacing: 4px; color: var(--red); font-weight: 700; text-indent: 4px; }
.gov-head .docno { margin-top: 9px; font-family: var(--num); font-size: 8.5px; letter-spacing: 1px; color: #6b6355; }
.gov-head .redline { height: 2px; margin-top: 8px; background: var(--red); opacity: .8; }
.gov-head .redline::after { content: ""; display: block; height: 1px; margin-top: 2px; background: var(--red); opacity: .55; }
.report-title { position: relative; z-index: 1; margin-top: 21px; text-align: center; }
.report-title h1 { font-family: var(--serif); font-size: 22px; line-height: 1.55; letter-spacing: 2px; font-weight: 700; }
.report-title p { margin-top: 5px; font-family: var(--num); font-size: 7.5px; letter-spacing: 1px; color: #8d8372; }
.report-body { position: relative; z-index: 1; margin-top: 18px; font-size: 12px; line-height: 2.05; text-align: justify; }
.report-body .addressee { font-size: 12.5px; }
.report-body p { text-indent: 2em; margin-top: 3px; }
.report-body h4 { margin-top: 13px; font-family: var(--serif); font-size: 13.5px; font-weight: 700; letter-spacing: 1px; }
.report-body h4 span { color: var(--red); }
.finding-item { margin-top: 5px; padding-left: 1.5em; text-indent: -1.5em; }
.finding-item b { font-weight: 700; }
.report-body .no-indent { text-indent: 0; }
.report-sign { position: relative; z-index: 1; margin-top: 22px; text-align: right; font-size: 12px; line-height: 2; }
.report-sign b { font-weight: 400; letter-spacing: 2px; }
.report-stamp {
  position: absolute; right: 66px; top: 150px; z-index: 2;
  width: 96px; height: 96px; display: grid; place-items: center; text-align: center;
  border: 2px solid rgba(164, 56, 42, .58); outline: 1px solid rgba(164, 56, 42, .22); outline-offset: 4px;
  color: rgba(164, 56, 42, .76); font-family: var(--serif); font-size: 15px; letter-spacing: 3px;
  transform: rotate(-13deg); opacity: .82; pointer-events: none; text-indent: 3px;
}
.report-stamp small { display: block; font-family: var(--num); font-size: 5.8px; letter-spacing: .5px; text-indent: 0; }
.report-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 72px; }
.status-card { padding: 12px 13px; }
.status-card .card-head { margin-bottom: 8px; }
.steps { display: flex; flex-direction: column; gap: 0; position: relative; margin-bottom: 8px; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 12px; width: 1px; background: var(--line); }
.step { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 3px 0 6px; }
.step i { width: 15px; height: 15px; flex: 0 0 15px; display: grid; place-items: center; font-family: var(--num); font-style: normal; font-size: 6.5px; color: var(--faint); background: var(--card); border: 1px solid var(--line); border-radius: 50%; z-index: 1; }
.step.done i { background: var(--navy); border-color: var(--navy); color: #fff8ec; }
.step.active i { background: var(--red); border-color: var(--red); color: #fff8ec; box-shadow: 0 0 0 3px rgba(164, 56, 42, .12); }
.step b { display: block; font-size: 9px; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.step span { display: block; font-size: 7.2px; color: var(--faint); }
.step.done b { color: var(--ink); }
.checklist { margin: 5px 0 8px; padding: 6px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.check-item { display: flex; align-items: flex-start; gap: 6px; padding: 2px 0; font-size: 8px; color: var(--muted); }
.check-item i { width: 12px; height: 12px; flex: 0 0 12px; display: grid; place-items: center; font-style: normal; font-size: 8px; border: 1px solid var(--line); color: var(--faint); margin-top: 1px; }
.check-item.pass i { background: var(--green); border-color: var(--green); color: #fff; }
.check-item.fail i { background: var(--red); border-color: var(--red); color: #fff; }
.check-item.pass { color: var(--ink-2); }
.action-stack { display: flex; flex-direction: column; gap: 6px; }
.action-stack .btn { width: 100%; }
.role-hint { margin-top: 6px; padding: 5px 7px; font-size: 7.5px; line-height: 1.55; color: #8b6c4b; background: #fbf3e4; border-left: 2px solid #d3b98a; }
.role-hint b { color: #7b5a37; }
.summary-card { padding: 12px 13px; }
.summary-card .card-head { margin-bottom: 7px; }
.dist-row { display: grid; grid-template-columns: 66px 1fr 58px; gap: 6px; align-items: center; padding: 3px 0; font-size: 7.8px; }
.dist-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.dist-row i { height: 5px; background: #ece4d6; }
.dist-row i b { display: block; height: 100%; background: var(--navy-2); }
.dist-row em { font-style: normal; font-family: var(--num); font-size: 7.5px; text-align: right; color: var(--ink-2); }
.dist-note { margin-top: 6px; font-size: 7.5px; color: var(--faint); }
.trail-card { padding: 12px 13px; }
.trail-card .card-head { margin-bottom: 6px; }
.trail-card .trail-list { max-height: 190px; overflow: auto; }

/* ============ 整改销号 ============ */
.rectify-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.rectify-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.kanban-col { background: rgba(255, 253, 248, .38); border: 1px solid var(--line); padding: 7px; min-height: 330px; }
.kb-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 7px; border-bottom: 1px solid var(--line-2); }
.kb-head b { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 500; color: var(--ink-2); }
.kb-head b i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.kb-head b i.wait { background: #938873; }
.kb-head b i.doing { background: var(--amber); }
.kb-head b i.review { background: var(--blue); }
.kb-head b i.closed { background: var(--green); }
.kb-head span { font-family: var(--num); font-size: 8px; color: var(--faint); background: #f1eadc; padding: 0 4px; }
.task-card {
  position: relative;
  margin-top: 7px; padding: 8px 8px 7px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid #938873;
  cursor: pointer; transition: .14s;
}
.task-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(47, 36, 20, .07); border-color: #c5b8a3; }
.task-card.doing { border-left-color: var(--amber); }
.task-card.review { border-left-color: var(--blue); }
.task-card.closed { border-left-color: var(--green); opacity: .77; }
.task-card.overdue { border-left-color: var(--red); background: #fdf6ee; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.task-unit { font-size: 7px; color: var(--faint); letter-spacing: .3px; }
.task-title { margin-top: 3px; font-size: 8.6px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.task-meta { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; font-size: 7px; color: var(--faint); }
.task-meta b { font-family: var(--num); font-weight: 500; color: var(--ink-2); }
.task-due { margin-top: 3px; font-family: var(--num); font-size: 6.8px; color: var(--faint); }
.task-due.red { color: var(--red); }
.task-progress { height: 2px; margin-top: 5px; background: #ece4d6; }
.task-progress i { display: block; height: 100%; background: var(--blue); }
.task-card.doing .task-progress i { background: var(--amber); }
.task-card.closed .task-progress i { background: var(--green); }
.task-ledger { padding: 9px 12px 7px; }
.task-ledger .card-head { margin-bottom: 3px; }
.ledger-table tbody tr { cursor: pointer; }
.ledger-table td { padding: 5px 6px; }
.ledger-foot { padding-top: 5px; border-top: 1px solid var(--line-2); font-size: 7.5px; color: var(--faint); }
.rectify-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 72px; }
.side-card { padding: 11px 12px; }
.side-card .card-head { margin-bottom: 7px; }
.rect-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.rect-stat { padding: 7px 8px; background: var(--card); }
.rect-stat span { display: block; font-size: 7px; color: var(--faint); }
.rect-stat b { display: block; margin-top: 1px; font-family: var(--num); font-size: 16px; color: var(--ink); }
.rect-stat b small { font-family: var(--sans); font-size: 7px; color: var(--muted); }
.mechanism { margin: 0; padding: 0; list-style: none; }
.mechanism li { position: relative; padding: 4px 0 4px 10px; font-size: 7.8px; line-height: 1.55; color: var(--muted); border-bottom: 1px dotted var(--line-2); }
.mechanism li::before { content: "✓"; position: absolute; left: 0; top: 4px; font-size: 7px; color: var(--green); }
.mechanism li b { color: var(--ink-2); font-weight: 500; }

/* ============ 抽屉 / 弹层 ============ */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(22, 30, 38, .32); opacity: 0; visibility: hidden; transition: .22s; backdrop-filter: blur(1.5px); }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: 512px; max-width: 92vw;
  background: var(--paper-2);
  border-left: 1px solid #c9bda9;
  box-shadow: -18px 0 50px rgba(24, 31, 38, .18);
  transform: translateX(102%);
  transition: transform .25s cubic-bezier(.2, .75, .25, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 17px 18px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.drawer-head::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--red); }
.drawer-head .dh-eyebrow { font-family: var(--num); font-size: 7px; letter-spacing: 1.4px; color: var(--red); }
.drawer-head h2 { margin-top: 3px; font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.drawer-head p { margin-top: 3px; font-size: 8.5px; color: var(--muted); }
.drawer-close { position: absolute; right: 14px; top: 14px; }
.drawer-body { padding: 14px 18px 22px; overflow: auto; flex: 1; }
.drawer-section { margin-bottom: 14px; }
.drawer-section h4 { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 11px; }
.drawer-section h4 span { font-family: var(--num); font-size: 7px; color: var(--faint); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.kv { padding: 6px 8px; background: var(--card); }
.kv span { display: block; font-size: 7.5px; color: var(--faint); }
.kv b { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 500; }
.kv b.num { font-family: var(--num); font-size: 12px; }
.drawer-note { padding: 8px 9px; font-size: 8.5px; line-height: 1.7; color: var(--ink-2); background: #f4eee2; border-left: 2px solid var(--gold); }
.drawer-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer-actions .btn { width: 100%; }
.drawer .trail-list { max-height: 260px; overflow: auto; }
.log-item { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--line-2); }
.log-item time { font-family: var(--num); font-size: 7px; color: var(--faint); }
.log-item b { display: block; font-size: 8.8px; font-weight: 500; }
.log-item b em { font-style: normal; font-size: 7px; color: var(--faint); margin-left: 4px; }
.log-item span { display: block; margin-top: 1px; font-size: 7.8px; line-height: 1.55; color: var(--muted); }

/* ============ AI 助手 ============ */
.ai-fab {
  position: fixed; right: 22px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  color: #f7efdf; background: var(--navy);
  border: 1px solid #0f2739;
  box-shadow: 0 8px 22px rgba(20, 35, 48, .25);
  transition: .18s;
}
.ai-fab:hover { background: var(--navy-2); transform: translateY(-1px); }
.ai-fab > span { font-size: 15px; color: #ddbd7d; }
.ai-fab b { font-size: 10px; font-weight: 500; letter-spacing: .5px; }
.ai-fab i { font-style: normal; font-size: 7px; color: rgba(247, 239, 223, .55); padding-left: 6px; border-left: 1px solid rgba(247, 239, 223, .2); }
.ai-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: 438px; max-width: 94vw;
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border-left: 1px solid #c9bda9;
  box-shadow: -18px 0 50px rgba(24, 31, 38, .2);
  transform: translateX(102%);
  transition: transform .25s cubic-bezier(.2, .75, .25, 1);
}
.ai-panel.open { transform: none; }
.ai-head { padding: 15px 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.ai-title { display: flex; align-items: center; gap: 9px; }
.ai-orb { width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; color: #fff5e2; background: var(--red); box-shadow: inset 0 0 0 3px rgba(255, 244, 224, .14); }
.ai-title b { display: block; font-family: var(--serif); font-size: 14px; }
.ai-title small { display: block; font-family: var(--num); font-size: 6.8px; letter-spacing: 1px; color: var(--faint); }
.ai-scope { margin: 10px 14px 0; padding: 7px 9px; background: #f4eee2; border-left: 2px solid var(--gold); }
.ai-scope span { display: block; font-size: 6.8px; letter-spacing: .8px; color: var(--faint); }
.ai-scope b { display: block; margin-top: 1px; font-size: 8.6px; font-weight: 500; color: var(--ink-2); }
.ai-scope em { display: block; margin-top: 1px; font-style: normal; font-size: 7px; color: var(--faint); }
.ai-thread { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 92%; }
.msg.ai { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg .bubble { padding: 8px 10px; font-size: 9px; line-height: 1.75; border: 1px solid var(--line); background: var(--card); }
.msg.user .bubble { color: #f7efe1; background: var(--navy); border-color: var(--navy); }
.msg .meta { margin-top: 3px; font-family: var(--num); font-size: 6.5px; color: var(--faint); }
.msg.user .meta { text-align: right; }
.msg .bubble b { color: var(--red); font-weight: 600; }
.msg.user .bubble b { color: #f2d59a; }
.msg .bubble ul { margin: 3px 0 0; padding: 0 0 0 11px; }
.msg .bubble li { margin-top: 2px; }
.msg-refs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.msg-refs span { padding: 1px 5px; font-family: var(--num); font-size: 6.5px; color: var(--navy); background: #eef3f5; border: 1px solid #d6e0e5; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 14px; border-top: 1px solid var(--line-2); }
.ai-chips button { padding: 3px 7px; font-size: 8px; color: var(--muted); background: transparent; border: 1px solid var(--line); }
.ai-chips button:hover { color: var(--ink); border-color: #bdb19e; background: var(--card); }
.ai-input { display: flex; margin: 0 14px; border: 1px solid var(--line); background: var(--card); }
.ai-input input { flex: 1; min-width: 0; padding: 8px 9px; font-size: 9px; background: transparent; border: 0; outline: none; }
.ai-input button { width: 36px; border: 0; background: var(--navy); color: #f7efe1; font-size: 13px; }
.ai-disclaimer { padding: 6px 14px 12px; font-size: 6.8px; line-height: 1.5; color: var(--faint); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  display: flex; align-items: center; gap: 8px;
  max-width: 560px; padding: 9px 14px;
  color: #f8f0e1; background: #23303a;
  border-left: 3px solid var(--red);
  box-shadow: 0 12px 28px rgba(20, 27, 33, .28);
  transform: translate(-50%, 14px); opacity: 0; visibility: hidden;
  transition: .22s; font-size: 10px; line-height: 1.5;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 3px rgba(189, 74, 55, .2); }

/* ============ 响应式 ============ */
@media (max-width: 1540px) {
  .app { padding-left: 218px; }
  .rail { width: 218px; }
  .stage { padding: 16px 18px 32px; }
  .topbar { padding: 0 18px; }
  .plan-grid { grid-template-columns: 278px minmax(0, 1fr) 300px; gap: 11px; }
  .analysis-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 11px; }
  .paper-grid { grid-template-columns: 226px minmax(0, 1fr) 326px; gap: 11px; }
  .report-grid { grid-template-columns: minmax(0, 1fr) 372px; gap: 11px; }
  .rectify-grid { grid-template-columns: minmax(0, 1fr) 282px; gap: 11px; }
  .view-head h1 { font-size: 25px; }
  .coverage-ring { width: 94px; height: 94px; flex-basis: 94px; }
}
@media (max-width: 1320px) {
  .kpi-val b { font-size: 20px; }
  .plan-grid { grid-template-columns: 260px minmax(0, 1fr) 280px; }
  .paper-grid { grid-template-columns: 208px minmax(0, 1fr) 306px; }
  .workpaper { padding: 22px 26px 24px 34px; }
  .analysis-grid { grid-template-columns: minmax(0, 1fr) 350px; }
}
