
/* ====== Phase 3: 设计系统变量 ====== */
:root {
  --primary: #3b6df0; --primary-hover: #2b5cdc;
  --accent: #6366f1; --accent-hover: #4f46e5; --accent-light: #eef2ff;
  --sidebar-bg: #1a2235; --sidebar-hover: #253040; --sidebar-active: #2d3a50;
  --card-bg: #ffffff; --card-radius: 8px; --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
  --text-primary: #1e293b; --text-secondary: #64748b; --text-muted: #94a3b8;
  --border-color: #e2e8f0; --bg-page: #f0f2f5; --bg-hover: #f8fafc;
  --danger: #dc2626; --warning: #ca8a04; --success: #16a34a;
  --toolbar-bg: #1a3355; --toolbar-text: #93c5fd;
}

/* 风险修订只呈现真实差异，不再用泛化状态卡片占据方案首屏。 */
.wf-risk-revision-review{margin:0 0 12px;border:1px solid #f1c779;border-radius:14px;background:#fffdf8;overflow:hidden}
.wf-risk-revision-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid #f7dfae}
.wf-risk-revision-head span{display:block;color:#b45309;font-size:12px;font-weight:800}
.wf-risk-revision-head h3{margin:2px 0 0;color:#1f2937;font-size:17px}
.wf-risk-revision-head p{margin:3px 0 0;color:#64748b;font-size:13px}
.wf-risk-revision-head>strong{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#fff1cf;color:#9a4c08;font-size:12px}
.wf-risk-revision-list{padding:0 14px}
.wf-risk-revision-item{border-bottom:1px solid #f3e5c8}
.wf-risk-revision-item:last-child{border-bottom:0}
.wf-risk-revision-item>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 2px;cursor:pointer;list-style:none}
.wf-risk-revision-item>summary::-webkit-details-marker{display:none}
.wf-risk-revision-item>summary strong,.wf-risk-revision-item>summary small{display:block}
.wf-risk-revision-item>summary strong{color:#172033;font-size:14px}
.wf-risk-revision-item>summary small{margin-top:2px;color:#64748b;font-size:12px}
.wf-risk-revision-item>summary>span{color:#b45309;font-size:12px;font-weight:750}
.wf-risk-revision-item>summary>b{color:#2563eb;font-size:12px}
.wf-risk-revision-diff{display:grid;gap:1px;margin:0 0 10px;border:1px solid #e5e7eb;border-radius:10px;background:#e5e7eb;overflow:hidden}
.wf-risk-revision-diff>div:not(.wf-risk-revision-no-diff){display:grid;grid-template-columns:120px minmax(0,1fr) minmax(0,1fr);gap:12px;padding:9px 11px;background:#fff}
.wf-risk-revision-diff strong{font-size:12px;color:#475569}
.wf-risk-revision-diff span{font-size:12px;line-height:1.55;color:#334155}
.wf-risk-revision-diff em{display:inline-block;margin-right:7px;padding:1px 5px;border-radius:5px;background:#eef2f7;color:#64748b;font-size:10px;font-style:normal}
.wf-risk-revision-diff span:last-child em{background:#e7f4ff;color:#1d4ed8}
.wf-risk-revision-no-diff{padding:10px 12px;background:#fff;color:#64748b;font-size:12px}
.wf-risk-revision-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 12px}
.wf-risk-revision-actions span{color:#64748b;font-size:12px}
.wf-risk-revision-resolution{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.wf-risk-sync-form{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(280px,1.3fr) auto;align-items:end;gap:10px;width:100%;padding:10px;border:1px solid #ead9b7;border-radius:10px;background:#fff}
.wf-risk-sync-form label{display:grid;gap:5px;min-width:0}
.wf-risk-sync-form label>span{color:#475569;font-size:11px;font-weight:750}
.wf-risk-sync-form select,.wf-risk-sync-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font:inherit}
.wf-risk-sync-form select{min-height:38px;padding:0 10px}
.wf-risk-sync-form textarea{min-height:58px;padding:9px 10px;line-height:1.45;resize:vertical}
.wf-risk-sync-form>[data-wf-risk-sync-feedback]{grid-column:1/-1;color:#b42318;font-size:12px}
.wf-program-priority-reason{grid-column:1/-1}
.wf-program-priority-reason textarea{min-height:58px}
.wf-plan-actual{padding:12px}
.wf-plan-actual-summary{display:flex;gap:0;margin-bottom:10px;border:1px solid #dbe4ee;border-radius:10px;overflow:hidden;background:#fff}
.wf-plan-actual-summary span{min-width:120px;padding:8px 12px;border-right:1px solid #e5eaf0;color:#64748b;font-size:12px}
.wf-plan-actual-summary span:last-child{border-right:0}
.wf-plan-actual-summary strong{display:inline-block;margin-right:5px;color:#172033;font-size:16px}
.wf-plan-actual-summary .is-warn strong{color:#b45309}
.wf-plan-actual-table{border:1px solid #dbe4ee;border-radius:10px;overflow:hidden;background:#fff}
.wf-plan-actual-row{display:grid;grid-template-columns:1.35fr .85fr 1.1fr .8fr 1.2fr;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf1f5}
.wf-plan-actual-row:last-child{border-bottom:0}
.wf-plan-actual-row.is-head{padding-top:8px;padding-bottom:8px;background:#f7f9fc;color:#64748b;font-size:12px;font-weight:750}
.wf-plan-actual-row strong,.wf-plan-actual-row small{display:block}
.wf-plan-actual-row strong{color:#273449;font-size:12px;line-height:1.5}
.wf-plan-actual-row small{margin-top:2px;color:#7b8798;font-size:11px;line-height:1.45}
.wf-plan-actual-row.has-variance{background:#fffdf7}
.wf-plan-actual-row.has-variance>span:last-child strong{color:#a6530a}
.wf-plan-actual-row .is-aligned{color:#15803d}
.wf-plan-actual-empty,.wf-plan-actual-unplanned{padding:14px;color:#64748b;font-size:12px}
.wf-plan-actual-unplanned{margin-top:8px;border-radius:8px;background:#fff7e6;color:#9a4c08}
@media(max-width:900px){
  .wf-risk-revision-head,.wf-risk-revision-actions{align-items:flex-start;flex-direction:column}
  .wf-risk-revision-resolution{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .wf-risk-sync-form{grid-template-columns:1fr}
  .wf-risk-sync-form>[data-wf-risk-sync-feedback]{grid-column:auto}
  .wf-risk-revision-diff>div:not(.wf-risk-revision-no-diff){grid-template-columns:1fr}
  .wf-plan-actual-summary{overflow:auto}
  .wf-plan-actual-row{grid-template-columns:1fr}
  .wf-plan-actual-row.is-head{display:none}
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #1e293b; line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
.app-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; align-items: start; }
.sidebar { background: var(--sidebar-bg); color: #cbd5e1; display: flex; flex-direction: column; padding: 0; position: fixed; top: 0; left: 0; width: 220px; height: 100vh; overflow-y: auto; z-index: 100; }
.sidebar-brand { padding: 20px 16px 12px; border-bottom: 1px solid #2d3a50; }
.sidebar-brand h1 { font-size: 1rem; font-weight: 600; color: #ffffff; letter-spacing: 0.03em; }
.sidebar-brand p { font-size: 0.65rem; color: #8899aa; margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item { display: flex; align-items: center; gap: 12px; width: calc(100% - 16px); padding: 11px 20px; cursor: pointer; color: #8899aa; font-size: 0.83rem; font-weight: 500; transition: background 0.15s, color 0.15s; border: 0; border-left: 3px solid transparent; margin: 2px 8px; border-radius: 4px; position: relative; background: transparent; text-align: left; font-family: inherit; }
.nav-item:hover { background: #253040; color: #dde; }
.nav-item.active { background: var(--sidebar-active); color: #fff; border-left-color: var(--primary); }
.nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-group-label { padding: 10px 20px 4px; font-size: 0.62rem; font-weight: 700; color: #4a5a6a; letter-spacing: 0.5px; text-transform: uppercase; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid #1e293b; }
.sf-version { font-size: 0.68rem; color: #5a6a7e; text-align: center; margin-bottom: 10px; letter-spacing: 0.02em; }
.sf-actions { display: flex; flex-direction: column; gap: 6px; }
.sf-btn { display: block; width: 100%; padding: 7px 10px; font-size: 0.72rem; color: #8899aa; background: transparent; border: 1px solid rgba(148,163,184,0.12); border-radius: 6px; cursor: pointer; text-align: left; transition: all 0.2s; }
.sf-btn:hover { color: #c8d6e5; background: rgba(148,163,184,0.08); border-color: rgba(148,163,184,0.22); }
.main-content { padding:20px 32px; grid-column:2; width:100%; max-width:none; margin-left:auto; margin-right:auto; }
.view-panel { display: none; }
.view-panel.active { display: block; animation: viewFadeIn 0.2s ease-out; }
@keyframes viewFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.form-card { background: var(--card-bg); border-radius: var(--card-radius); padding: 32px; box-shadow: var(--card-shadow); }
.form-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; color: #0f172a; }
.form-card .form-desc { font-size: 0.82rem; color: #64748b; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: #334155; }
.form-group select, .form-group input, .form-group textarea { padding: 8px 10px; border: 1px solid #dde; border-radius: 4px; font-size: 0.85rem; font-family: inherit; color: #334; background: #fafbfc; transition: border-color 0.15s; }
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.form-group textarea { resize: vertical; min-height: 60px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0; }
.checkbox-item { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: #475569; cursor: pointer; }
.checkbox-item input[type="checkbox"] { accent-color: #3b82f6; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid transparent; border-radius: 4px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #2b5cdc; }
.btn-secondary { background: #fff; color: #475569; border-color: #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.result-header { display: flex; align-items: flex-start; gap: 16px; background: #fff; border-radius: var(--card-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--card-shadow); }
.overall-badge { display: flex; align-items: center; justify-content: center; min-width: 72px; height: 72px; border-radius: 6px; color: #fff; font-size: 1.5rem; font-weight: 700; }
.result-meta h2 { font-size: 1.15rem; font-weight: 600; }
.result-meta p { font-size: 0.82rem; color: #475569; margin-top: 2px; }
.result-meta strong { color: #0f172a; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--card-radius); padding: 18px; text-align: center; box-shadow: var(--card-shadow); }
.stat-card .stat-num { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card.critical .stat-num { color: #dc2626; }
.stat-card.high .stat-num { color: #ea580c; }
.stat-card.medium .stat-num { color: #ca8a04; }
.stat-card.low .stat-num { color: #16a34a; }
.stat-card .stat-label { display: block; font-size: 0.75rem; color: #64748b; margin-top: 4px; }
.section { background: var(--card-bg); border-radius: var(--card-radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--card-shadow); }
.section h3 { font-size: 0.95rem; font-weight: 600; color: #0f172a; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.top-risks { display: flex; flex-direction: column; gap: 8px; }
.top-risk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 4px; font-size: 0.85rem; }
.top-risk-item .risk-cat { flex: 1; font-weight: 500; }
.top-risk-item .risk-level { font-weight: 600; font-size: 0.78rem; }
.top-risk-item .risk-score { color: #64748b; font-variant-numeric: tabular-nums; }
.risk-check-list { display: flex; flex-direction: column; gap: 6px; }
.risk-item { border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.risk-item.critical { border-left: 4px solid #dc2626; border: 1px solid #fecaca; }
.risk-item.high { border-left: 4px solid #ea580c; border: 1px solid #ffedd5; }
.risk-item.medium { border-left: 4px solid #ca8a04; border: 1px solid #fef9c3; }
.risk-item.low { border-left: 4px solid #16a34a; border: 1px solid #dcfce7; }
.risk-item-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; background: var(--bg-hover); transition: background 0.1s; }
.risk-item-header:hover { background: #f0f2f5; }
.risk-priority { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; color: #fff; font-size: 0.7rem; font-weight: 600; min-width: 32px; justify-content: center; }
.risk-name { flex: 1; font-size: 0.85rem; font-weight: 500; }
.risk-score-val { font-size: 0.82rem; color: #64748b; font-variant-numeric: tabular-nums; }
.expand-icon { font-size: 0.7rem; color: #94a3b8; transition: transform 0.2s; }
.risk-item.expanded .expand-icon { transform: rotate(90deg); }
.risk-item-body { display: none; padding: 0 14px 14px; background: #fff; border-top: 1px solid #f1f5f9; }
.risk-item.expanded .risk-item-body { display: block; }
.risk-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.detail-cell { padding: 8px; background: #f8fafc; border-radius: 3px; }
.detail-label { display: block; font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; }
.detail-value { display: block; font-size: 0.9rem; font-weight: 600; color: #1e293b; margin-top: 2px; }
.incident-refs { margin-top: 10px; padding: 8px 10px; background: #fefce8; border-radius: 3px; font-size: 0.78rem; color: #92400e; }
.incident-refs ul { margin: 4px 0 0 16px; }
.incident-refs li { margin-bottom: 2px; }
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-item { border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.rec-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.rec-cat { font-size: 0.85rem; font-weight: 600; }
.rec-body { padding: 12px 14px; }
.rec-title { font-size: 0.88rem; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.rec-detail { font-size: 0.8rem; color: #475569; line-height: 1.6; }
.risk-matrix-container { overflow-x: auto; }
.risk-matrix { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.risk-matrix th { padding: 8px; background: #f0f2f5; color: #475569; font-weight: 600; font-size: 0.7rem; text-align: center; border: 1px solid #e2e8f0; }
.risk-matrix .matrix-label { background: #f0f2f5; font-weight: 600; color: #475569; text-align: center; font-size: 0.7rem; padding: 8px; border: 1px solid #e2e8f0; }
.matrix-cell { text-align: center; padding: 10px; border: 1px solid #e2e8f0; color: #94a3b8; min-width: 50px; }
.matrix-filled { color: #fff; font-weight: 700; }
.matrix-critical { background: #dc2626; }
.matrix-high { background: #ea580c; }
.matrix-medium { background: #ca8a04; }
.matrix-low { background: #16a34a; }
/* history-item styles — moved to .hist-* at end of file */
.empty-state { padding: 28px; text-align: center; color: #94a3b8; font-size: 0.85rem; }
.plugin-panel { margin-top: 16px; padding: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--card-radius); }
.plugin-panel h4 { font-size: 0.8rem; color: #166534; margin-bottom: 8px; }
.export-bar { display: flex; gap: 10px; margin-bottom: 16px; }
@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; display: flex !important; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
  .sidebar-overlay.active { display: block; }
  .main-content { margin-left: 0; padding: 16px; padding-top: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .risk-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .result-header { flex-direction: column; }
  .mobile-header { display: flex; }
  .project-toolbar { padding-top: 52px; }
}
/* Mobile header — hidden on desktop */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 48px; background: var(--sidebar-bg); color: #fff;
  align-items: center; padding: 0 12px; gap: 12px;
  z-index: 98; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.mobile-hamburger {
  background: none; border: none; color: #fff; font-size: 1.4rem;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
.mobile-title { font-size: 0.9rem; font-weight: 600; }

/* ---- File Upload ---- */
.file-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-hover);
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}
.file-upload-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.file-upload-inner p { font-size: 0.82rem; color: #64748b; margin: 4px 0; }
.file-upload-hint { font-size: 0.7rem !important; color: #94a3b8 !important; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 4px; font-size: 0.75rem; color: #1e40af;
}
.file-chip-remove { 
  border: none; background: none; cursor: pointer; color: #94a3b8; 
  font-weight: 700; font-size: 0.8rem; padding: 0 2px;
}
.file-chip-remove:hover { color: #dc2626; }

/* ---- COSO Bars ---- */
.coso-bars { display: flex; flex-direction: column; gap: 8px; }
.coso-bar-row { display: flex; align-items: center; gap: 10px; }
.coso-bar-label { min-width: 110px; font-size: 0.8rem; font-weight: 600; }
.coso-bar-level { display: inline-flex; padding: 1px 6px; border-radius: 3px; color: #fff; font-size: 0.65rem; font-weight: 600; min-width: 24px; justify-content: center; }
.coso-bar-track { flex: 1; height: 14px; background: #f0f2f5; border-radius: 7px; overflow: hidden; }
.coso-bar-fill { height: 100%; border-radius: 7px; transition: width 0.4s; }
.coso-bar-score { min-width: 36px; text-align: right; font-size: 0.8rem; font-weight: 600; color: #475569; }

/* ---- Material List ---- */
.material-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 8px 0 16px; }
.material-list li { font-size: 0.8rem; color: #334155; padding: 4px 0; border-bottom: 1px solid #f1f5f9; }
.material-list li::before { content: "📎 "; font-size: 0.7rem; }
.material-list.standards li::before { content: "⚖ "; }
.section-subtitle { font-size: 0.78rem; font-weight: 600; color: #64748b; margin: 10px 0 6px; }

/* ---- Evaluation Plan ---- */
.eval-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eval-col { background: #f8fafc; border-radius: 4px; padding: 12px; }
.eval-col-title { font-size: 0.8rem; font-weight: 600; color: #334155; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; }
.eval-group { margin-bottom: 10px; }
.eval-priority { display: inline-flex; padding: 1px 6px; border-radius: 3px; color: #fff; font-size: 0.6rem; font-weight: 600; margin-right: 6px; }
.eval-component { font-size: 0.82rem; font-weight: 600; color: #1e293b; }
.eval-ic-name { font-size: 0.82rem; font-weight: 600; color: #1e293b; }
.eval-ic-standards { font-size: 0.65rem; color: var(--accent); margin-left: 8px; }
.eval-items { margin: 4px 0 0 8px; }
.eval-items li { font-size: 0.75rem; color: #475569; margin-bottom: 2px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .eval-two-col { grid-template-columns: 1fr; }
  .material-list { grid-template-columns: 1fr; }
  .coso-bar-label { min-width: 80px; font-size: 0.7rem; }
}
/* ---- Q&A Chat ---- */
.qa-chat-container { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--card-radius); display: flex; flex-direction: column; height: 420px; overflow: hidden; }
.qa-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.qa-message { max-width: 85%; }
.qa-user { align-self: flex-end; }
.qa-system { align-self: flex-start; }
.qa-msg-content { padding: 10px 14px; border-radius: 8px; font-size: 0.83rem; line-height: 1.55; }
.qa-user .qa-msg-content { background: #1d4ed8; color: #fff; }
.qa-system .qa-msg-content { background: #f0f2f5; color: #1e293b; }
.qa-system.qa-loading .qa-msg-content { color: #94a3b8; font-style: italic; }
.qa-citations { font-size: 0.68rem; color: #64748b; }

/* 结构化答案样式 */
.qa-answer-html .qa-answer-section { margin-bottom: 12px; }
.qa-answer-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.qa-answer-icon { font-size: 1.1rem; }
.qa-severity-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.qa-answer-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.qa-meta-tag { font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #4338ca; font-weight: 600; }

.qa-answer-block { margin-bottom: 10px; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; }
.qa-block-header { padding: 8px 12px; background: #f1f5f9; font-size: 0.78rem; font-weight: 700; color: #334155; border-bottom: 1px solid #e2e8f0; }
.qa-block-body { padding: 10px 12px; font-size: 0.82rem; line-height: 1.65; color: #334155; }

.qa-procedure-list { margin: 0; padding-left: 20px; }
.qa-procedure-item { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #f1f5f9; }
.qa-procedure-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.qa-procedure-action { font-size: 0.82rem; color: #1e293b; line-height: 1.6; }
.qa-procedure-evidence { font-size: 0.72rem; color: #64748b; margin-top: 3px; padding-left: 12px; }

.qa-standard-tag, .qa-assertion-tag { display: inline-block; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; margin: 2px 4px 2px 0; font-weight: 600; }
.qa-standard-tag { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.qa-assertion-tag { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }

.qa-related-block .qa-block-header { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.qa-related-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.8rem; }
.qa-related-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.qa-related-text { flex: 1; color: #1e293b; }
.qa-related-sev { font-size: 0.68rem; font-weight: 700; }

.qa-match-hint { padding: 6px 12px; font-size: 0.72rem; color: #16a34a; background: #f0fdf4; border-top: 1px solid #bbf7d0; }

.qa-citations-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 12px; background: #f8fafc; border-top: 1px solid #e2e8f0; border-radius: 0 0 8px 8px; }
.qa-citations-label { font-size: 0.7rem; font-weight: 700; color: #64748b; }
.qa-citation-chip { font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.qa-input-area { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; background: #fafbfc; }
.qa-input-area input { flex: 1; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 0.85rem; font-family: inherit; }
.qa-input-area input:focus { outline: none; border-color: #3b82f6; }
.qa-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.qa-hint-label { font-size: 0.75rem; color: #94a3b8; margin-right: 4px; }
.qa-source-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.qa-source-filter-label { font-size: 0.72rem; font-weight: 700; color: #64748b; margin-right: 2px; }
.qa-source-toggle { border: 1px solid #cbd5e1; background: #fff; color: #64748b; border-radius: 999px; padding: 4px 10px; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: all 0.15s ease; }
.qa-source-toggle:hover { border-color: #3b82f6; color: #1d4ed8; }
.qa-source-toggle.active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; box-shadow: 0 6px 14px rgba(29,78,216,0.18); }
.qa-context-chip { margin-left: auto; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #dbeafe; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 4px 10px; font-size: 0.68rem; font-weight: 700; }

/* ===== 知识库问答页 UI 重构 ===== */
#view-qa.qa-redesigned {
  max-width: 1320px;
  margin: 0 auto;
}

.qa-page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 0 0 18px;
  padding: 30px 34px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 54%, #f8fafc 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.qa-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 72%, transparent);
  opacity: 0.55;
}

.qa-hero-copy,
.qa-hero-metrics {
  position: relative;
  z-index: 1;
}

.qa-hero-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.qa-hero-copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.qa-hero-copy p {
  max-width: 780px;
  margin: 14px 0 0;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
}

.qa-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
}

.qa-hero-metrics div {
  min-width: 104px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 219, 254, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
}

.qa-hero-metrics strong,
.qa-hero-metrics span {
  display: block;
}

.qa-hero-metrics strong {
  color: #1e3a8a;
  font-size: 1.05rem;
  font-weight: 900;
}

.qa-hero-metrics span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.qa-workbench {
  display: grid;
  gap: 16px;
}

#view-qa.qa-redesigned .prompt-panel {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

#view-qa.qa-redesigned .prompt-header {
  min-height: 52px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-bottom: 1px solid #e2e8f0;
}

#view-qa.qa-redesigned .prompt-panel-title {
  color: #0f172a;
  font-weight: 900;
}

#view-qa.qa-redesigned .prompt-toggle {
  color: #2563eb;
  font-weight: 800;
}

#view-qa.qa-redesigned .prompt-body {
  padding: 14px 16px 16px;
}

#view-qa.qa-redesigned .prompt-categories {
  gap: 8px;
}

#view-qa.qa-redesigned .prompt-cat,
#view-qa.qa-redesigned .qa-hint-btn {
  border-radius: 999px;
  border-color: #dbeafe;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

#view-qa.qa-redesigned .prompt-cat.active,
#view-qa.qa-redesigned .prompt-cat:hover,
#view-qa.qa-redesigned .qa-hint-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

#view-qa.qa-redesigned .qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

#view-qa.qa-redesigned .qa-chat-col,
#view-qa.qa-redesigned .qa-kb-col {
  min-width: 0;
}

#view-qa.qa-redesigned .qa-chat-container {
  height: 520px !important;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

#view-qa.qa-redesigned .qa-mode-bar {
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

#view-qa.qa-redesigned .qa-source-filter {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-color: #dbeafe;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

#view-qa.qa-redesigned .qa-messages {
  padding: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.62), transparent 28%),
    #fbfdff;
}

#view-qa.qa-redesigned .qa-msg-content {
  border-radius: 16px;
  line-height: 1.7;
}

#view-qa.qa-redesigned .qa-system .qa-msg-content {
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

#view-qa.qa-redesigned .qa-user .qa-msg-content {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

#view-qa.qa-redesigned .qa-input-area {
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid #dbeafe;
}

#view-qa.qa-redesigned .qa-input-area input {
  min-height: 44px;
  border-radius: 999px;
  border-color: #cbd5e1;
  background: #f8fafc;
  padding: 10px 16px;
}

#view-qa.qa-redesigned .qa-input-area input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

#view-qa.qa-redesigned #qa-send {
  min-width: 92px;
  border-radius: 999px;
  font-weight: 900;
}

#view-qa.qa-redesigned .qa-hints {
  margin-top: 12px !important;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

#view-qa.qa-redesigned .qa-kb-card {
  position: sticky;
  top: 112px;
  padding: 18px !important;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

#view-qa.qa-redesigned .qa-kb-card h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

#view-qa.qa-redesigned .kb-upload-zone {
  min-height: 118px;
  margin-bottom: 12px;
  border: 1.5px dashed #93c5fd;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.10), transparent 52%),
    #f8fbff;
  color: #1d4ed8;
  font-weight: 900;
}

#view-qa.qa-redesigned .kb-upload-zone:hover,
#view-qa.qa-redesigned .kb-upload-zone.dragover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

#view-qa.qa-redesigned .kb-doc-list {
  max-height: 280px;
  gap: 8px;
}

#view-qa.qa-redesigned .kb-doc-item {
  padding: 10px 12px;
  border-color: #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
}

#view-qa.qa-redesigned .kb-doc-item:hover {
  background: #eff6ff;
}

#view-qa.qa-redesigned .kb-doc-remove {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

#view-qa.qa-redesigned .kb-doc-remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

@media (max-width: 1100px) {
  .qa-page-hero,
  #view-qa.qa-redesigned .qa-layout {
    grid-template-columns: 1fr;
  }
  .qa-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #view-qa.qa-redesigned .qa-kb-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .qa-page-hero {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .qa-hero-metrics {
    grid-template-columns: 1fr;
  }
  #view-qa.qa-redesigned .qa-chat-container {
    height: 460px !important;
  }
  .qa-context-chip {
    margin-left: 0;
    max-width: 100%;
  }
}

/* ---- Detailed Risks ---- */
.detailed-risks { display: flex; flex-direction: column; gap: 8px; }
.dr-item { border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.dr-item.critical { border-left: 4px solid #dc2626; }
.dr-item.high { border-left: 4px solid #ea580c; }
.dr-item.medium { border-left: 4px solid #ca8a04; }
.dr-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; background: #fafbfc; transition: background 0.1s; }
.dr-header:hover { background: #f0f2f5; }
.dr-severity { display: inline-flex; padding: 2px 6px; border-radius: 3px; color: #fff; font-size: 0.65rem; font-weight: 600; min-width: 28px; justify-content: center; }
.dr-sev-critical { background: #dc2626; }
.dr-sev-high { background: #ea580c; }
.dr-sev-medium { background: #ca8a04; }
.dr-type { font-size: 0.72rem; color: var(--accent); font-weight: 600; white-space: nowrap; background: #eef2ff; padding: 1px 6px; border-radius: 3px; }
.dr-event { flex: 1; font-size: 0.85rem; font-weight: 500; }
.dr-body { display: none; padding: 0 14px 14px; background: #fff; border-top: 1px solid #f1f5f9; }
.dr-item.expanded .dr-body { display: block; }
.dr-item.expanded .expand-icon { transform: rotate(90deg); }
.dr-desc { font-size: 0.8rem; color: #475569; line-height: 1.6; margin: 10px 0; }
.dr-procedures { margin: 8px 0; }
.dr-procedures ol { margin: 4px 0 0 20px; }
.dr-procedures li { font-size: 0.82rem; color: #334155; margin-bottom: 8px; line-height: 1.5; }
.dr-subtitle { font-size: 0.75rem; font-weight: 600; color: #64748b; }
.dr-evidence { font-size: 0.72rem; color: #94a3b8; }
.dr-standards { font-size: 0.75rem; color: var(--accent); margin-top: 6px; }
.dr-assertions { font-size: 0.75rem; color: #059669; margin-top: 2px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .qa-chat-container { height: 350px; }
  .dr-header { flex-wrap: wrap; }
}
/* ---- KB Panel ---- */
.qa-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.qa-kb-col { min-width: 260px; }
.kb-upload-zone {
  border: 1px dashed #cbd5e1; border-radius: 4px; padding: 12px;
  text-align: center; cursor: pointer; font-size: 0.73rem; color: #64748b;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 8px;
}
.kb-upload-zone:hover, .kb-upload-zone.dragover { border-color: #3b82f6; background: #eff6ff; }
.kb-doc-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.kb-empty { padding: 10px 12px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; font-size: 0.72rem; color: #94a3b8; line-height: 1.5; }
.kb-doc-summary { font-size: 0.7rem; color: #64748b; padding: 2px 2px 0; }
.kb-doc-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.72rem; }
.kb-doc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.kb-doc-name { flex: 1; font-weight: 700; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-doc-meta { font-size: 0.65rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-doc-size { font-size: 0.65rem; color: #94a3b8; }
.kb-doc-remove { border: none; background: none; cursor: pointer; color: #94a3b8; font-weight: 700; font-size: 0.75rem; padding: 0 2px; }
.kb-doc-remove:hover { color: #dc2626; }
@media (max-width: 768px) { .qa-layout { grid-template-columns: 1fr; } }

/* ===== Prompt Panel ===== */
.prompt-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--card-radius); margin-bottom: 14px; overflow: hidden; }
.prompt-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; cursor: pointer; }
.prompt-panel-title { font-size: 0.82rem; font-weight: 600; color: #334155; }
.prompt-toggle { font-size: 0.7rem; color: var(--accent); cursor: pointer; user-select: none; }
.prompt-toggle:hover { text-decoration: underline; }
.prompt-body { padding: 10px 14px; }
.prompt-body.collapsed { display: none; }
.prompt-categories { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.prompt-cat {
  padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 4px;
  background: #fff; color: #475569; font-size: 0.72rem; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.prompt-cat:hover { border-color: var(--accent); color: var(--accent); background: #eef2ff; }
.prompt-cat.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.prompt-templates { display: flex; flex-direction: column; gap: 6px; }
.prompt-tpl {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px;
  font-size: 0.78rem; cursor: pointer; transition: all 0.15s;
}
.prompt-tpl:hover { background: #eef2ff; border-color: var(--accent); }
.prompt-tpl-icon { font-size: 0.9rem; }
.prompt-tpl-text { flex: 1; color: #334155; }
.prompt-tpl-tag { font-size: 0.65rem; color: var(--accent); background: #eef2ff; padding: 1px 6px; border-radius: 3px; }
.prompt-tpl.industry-aware .prompt-tpl-tag { background: #fef3c7; color: #92400e; }
.prompt-builder { margin-top: 10px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; }
.prompt-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.prompt-field { display: flex; flex-direction: column; gap: 2px; }
.prompt-field label { font-size: 0.68rem; color: #64748b; font-weight: 600; }
.prompt-field input, .prompt-field select {
  padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 3px;
  font-size: 0.78rem; font-family: inherit; min-width: 120px;
}
.prompt-field input:focus, .prompt-field select:focus { outline: none; border-color: var(--accent); }
.prompt-preview {
  padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 3px;
  font-size: 0.8rem; color: #334155; margin-bottom: 8px; min-height: 28px;
}
.prompt-preview .placeholder { color: var(--accent); font-weight: 600; }
.prompt-saved-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.prompt-saved-item {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 3px;
  font-size: 0.7rem; cursor: pointer; transition: all 0.1s;
}
.prompt-saved-item:hover { background: #dcfce7; }
.prompt-saved-remove { color: #94a3b8; font-weight: 700; cursor: pointer; margin-left: 2px; }
.prompt-saved-remove:hover { color: #dc2626; }
@media (max-width: 768px) {
  .prompt-categories { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .prompt-fields { flex-direction: column; }
  .prompt-field input { min-width: auto; width: 100%; }
}

/* ===== Walkthrough (穿行测试) ===== */
/* ===== Walkthrough 穿行测试 v2 ===== */
/* 工具栏 */
.wt-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; flex-wrap:wrap; }
.wt-toolbar-left { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wt-toolbar-right { display:flex; align-items:center; gap:8px; }
.wt-type-selector { display:flex; gap:4px; flex-wrap:wrap; }
.wt-type-btn { display:flex; align-items:center; gap:4px; padding:5px 10px; border:2px solid #e2e8f0; border-radius:6px; background:#fff; cursor:pointer; font-size:0.73rem; color:#475569; transition:all .15s; }
.wt-type-btn:hover { border-color:#a5b4fc; background:#f5f3ff; }
.wt-type-btn.active { border-color:#6366f1; background:#eef2ff; color:#6366f1; font-weight:600; }
.wt-type-icon { font-size:0.9rem; }
.wt-type-name { white-space:nowrap; }
.wt-test-select { padding:5px 10px; border:1px solid #dde; border-radius:4px; font-size:0.75rem; min-width:200px; }
/* 视图标签 */
.wt-view-tabs { display:flex; gap:4px; border-bottom:2px solid #e2e8f0; margin-bottom:12px; }
.wt-view-tab { padding:8px 16px; border:none; background:none; cursor:pointer; font-size:0.82rem; color:#64748b; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .15s; }
.wt-view-tab:hover { color:#4338ca; }
.wt-view-tab.active { color:#4338ca; border-bottom-color:#6366f1; font-weight:600; }
/* 分栏布局 */
.wt-main { min-height:400px; }
.wt-split { display:grid; grid-template-columns:240px 1fr; gap:0; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; background:#fff; min-height:500px; }
/* 左侧导航 */
.wt-nav { background:#f8fafc; border-right:1px solid #e2e8f0; overflow-y:auto; max-height:calc(100vh - 260px); }
.wt-nav-header { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid #e2e8f0; background:#fff; }
.wt-nav-title { font-size:0.82rem; font-weight:700; color:#1e293b; }
.wt-nav-count { font-size:0.65rem; color:#94a3b8; }
.wt-nav-list { padding:4px 0; }
.wt-nav-cycle { margin:2px 0; }
.wt-nav-cycle-header { display:flex; align-items:center; gap:6px; padding:8px 12px; cursor:pointer; font-size:0.78rem; transition:background .1s; }
.wt-nav-cycle-header:hover { background:#eef2ff; }
.wt-nav-expand { font-size:0.6rem; color:#94a3b8; transition:transform .2s; margin-left:auto; }
.wt-nav-cycle.expanded .wt-nav-expand { transform:rotate(90deg); }
.wt-nav-cycle-icon { font-size:0.85rem; }
.wt-nav-cycle-name { flex:1; font-weight:600; color:#334155; }
.wt-nav-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.wt-nav-dot.acceptable { background:#16a34a; }
.wt-nav-dot.needs-review { background:#ca8a04; }
.wt-nav-dot.inadequate { background:#dc2626; }
.wt-nav-dot.untested { background:#cbd5e1; }
.wt-nav-activities { padding:2px 0 4px 12px; }
.wt-nav-act { display:flex; align-items:center; gap:6px; padding:5px 10px; cursor:pointer; font-size:0.73rem; color:#475569; border-radius:4px; margin:1px 4px; transition:background .1s; }
.wt-nav-act:hover { background:#eef2ff; }
.wt-nav-act.active { background:#e0e7ff; color:#4338ca; font-weight:600; }
.wt-nav-act-name { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-nav-act-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.wt-nav-act-dot.acceptable { background:#16a34a; }
.wt-nav-act-dot.needs-review { background:#ca8a04; }
.wt-nav-act-dot.inadequate { background:#dc2626; }
.wt-nav-act-dot.untested { background:#cbd5e1; }
/* 进度条 */
.wt-progress-bar { height:4px; background:#e2e8f0; }
.wt-progress-fill { height:100%; background:linear-gradient(90deg,#6366f1,#818cf8); transition:width .3s; }
.wt-progress-text { display:flex; gap:12px; padding:6px 12px; font-size:0.65rem; color:#64748b; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.wt-progress-pct { margin-left:auto; font-weight:700; color:#4338ca; }
/* 右侧工作区 */
.wt-workspace { padding:16px; overflow-y:auto; max-height:calc(100vh - 260px); }
.wt-ws-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.wt-ws-breadcrumb { font-size:0.78rem; color:#64748b; }
.wt-risk-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.wt-risk-tag { font-size:0.65rem; color:#92400e; background:#fef3c7; padding:2px 8px; border-radius:3px; position:relative; }
.wt-risk-del { background:none; border:none; cursor:pointer; color:#92400e; font-size:0.6rem; margin-left:4px; padding:0; }
/* 步骤卡片 */
.wt-steps-list { display:flex; flex-direction:column; gap:8px; }
.wt-step-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; overflow:hidden; transition:border-color .15s; }
.wt-step-card.current { border-color:#6366f1; box-shadow:0 0 0 1px #6366f1; }
.wt-step-head { display:flex; align-items:center; gap:8px; padding:10px 12px; cursor:pointer; transition:background .1s; }
.wt-step-head:hover { background:#eef2ff; }
.wt-step-num { width:22px; height:22px; display:flex; align-items:center; justify-content:center; background:#6366f1; color:#fff; border-radius:50%; font-size:0.65rem; font-weight:700; flex-shrink:0; }
.wt-step-label { flex:1; font-size:0.82rem; color:#1e293b; }
.wt-step-controls { display:flex; align-items:center; gap:6px; }
.wt-ctrl-tag { font-size:0.58rem; padding:1px 5px; border-radius:3px; font-weight:500; }
.wt-ctrl-tag.type { background:#dbeafe; color:#1e40af; }
.wt-ctrl-tag.freq { background:#f0fdf4; color:#166534; }
.wt-result-sel { padding:3px 6px; border:1px solid #cbd5e1; border-radius:4px; font-size:0.72rem; font-family:inherit; cursor:pointer; }
.wt-step-del-btn { background:none; border:none; cursor:pointer; color:#94a3b8; font-size:0.9rem; padding:2px 4px; border-radius:3px; }
.wt-step-del-btn:hover { color:#dc2626; background:#fef2f2; }
/* 步骤详情 */
.wt-step-detail { padding:12px; border-top:1px solid #e2e8f0; background:#fff; }
.wt-detail-section { margin-bottom:12px; }
.wt-detail-label { display:block; font-size:0.72rem; font-weight:600; color:#64748b; margin-bottom:4px; }
.wt-notes-input,.wt-finding-input { width:100%; padding:8px; border:1px solid #e2e8f0; border-radius:4px; font-size:0.78rem; font-family:inherit; resize:vertical; min-height:60px; box-sizing:border-box; }
.wt-notes-input:focus,.wt-finding-input:focus { outline:none; border-color:#6366f1; box-shadow:0 0 0 2px rgba(99,102,241,.15); }
.wt-finding-section { background:#fef2f2; border:1px solid #fecaca; border-radius:6px; padding:10px; }
.wt-finding-section .wt-finding-input { background:#fff; }
.wt-finding-actions { margin-top:6px; }
.wt-detail-meta { display:flex; gap:16px; font-size:0.65rem; color:#94a3b8; padding-top:8px; border-top:1px solid #f1f5f9; }
/* 交易追踪表 */
.wt-tx-table { width:100%; border-collapse:collapse; font-size:0.72rem; margin-bottom:6px; }
.wt-tx-table th { background:#f1f5f9; padding:4px 6px; text-align:left; font-weight:600; color:#475569; border:1px solid #e2e8f0; }
.wt-tx-table td { padding:2px; border:1px solid #e2e8f0; }
.wt-tx-input { width:100%; padding:3px 6px; border:1px solid transparent; border-radius:3px; font-size:0.72rem; box-sizing:border-box; }
.wt-tx-input:focus { border-color:#6366f1; outline:none; }
.wt-tx-del-btn { background:none; border:none; cursor:pointer; color:#94a3b8; font-size:0.8rem; }
.wt-tx-del-btn:hover { color:#dc2626; }
/* 证据列表 */
.wt-evidence-list { margin-bottom:6px; }
.wt-evidence-item { display:flex; align-items:center; gap:6px; padding:4px 8px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:4px; margin-bottom:4px; font-size:0.72rem; }
.wt-evidence-icon { font-size:0.85rem; }
.wt-evidence-name { flex:1; color:#334155; }
.wt-evidence-time { color:#94a3b8; font-size:0.6rem; }
.wt-evidence-del-btn { background:none; border:none; cursor:pointer; color:#94a3b8; font-size:0.8rem; }
.wt-evidence-del-btn:hover { color:#dc2626; }
/* 空状态 */
.wt-empty { text-align:center; padding:60px 20px; color:#94a3b8; }
.wt-empty-icon { font-size:3rem; margin-bottom:12px; }
.wt-empty-hint { font-size:0.75rem; color:#94a3b8; margin-top:4px; }
/* 摘要视图 */
.wt-summary-view { }
.wt-summary-title { font-size:0.95rem; font-weight:700; color:#1e293b; margin-bottom:12px; }
.wt-meta-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; margin-bottom:16px; }
.wt-meta-item { background:#f8fafc; padding:10px; border-radius:6px; border:1px solid #e2e8f0; }
.wt-meta-item label { display:block; font-size:0.65rem; color:#94a3b8; font-weight:600; margin-bottom:2px; }
.wt-meta-item span,.wt-meta-item input { font-size:0.82rem; color:#1e293b; font-weight:500; }
.wt-meta-input { border:1px solid #e2e8f0; padding:4px 8px; border-radius:4px; font-size:0.82rem; width:100%; box-sizing:border-box; }
/* 循环卡片 */
.wt-cycle-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; margin-bottom:16px; }
.wt-cycle-card { background:#fff; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; }
.wt-cycle-card.acceptable { border-top:3px solid #16a34a; }
.wt-cycle-card.needs-review { border-top:3px solid #ca8a04; }
.wt-cycle-card.inadequate { border-top:3px solid #dc2626; }
.wt-cycle-card.untested { border-top:3px solid #cbd5e1; }
.wt-cycle-card-header { display:flex; align-items:center; gap:8px; padding:10px 12px; }
.wt-cycle-card-icon { font-size:1.1rem; }
.wt-cycle-card-name { flex:1; font-weight:600; font-size:0.82rem; }
.wt-cycle-card-badge { padding:2px 8px; border-radius:3px; font-size:0.6rem; font-weight:600; color:#fff; }
.wt-cycle-card-badge.acceptable { background:#16a34a; }
.wt-cycle-card-badge.needs-review { background:#ca8a04; }
.wt-cycle-card-badge.inadequate { background:#dc2626; }
.wt-cycle-card-badge.untested { background:#94a3b8; }
.wt-cycle-card-stats { display:flex; gap:12px; padding:0 12px 8px; font-size:0.7rem; color:#64748b; }
.wt-cycle-card-acts { border-top:1px solid #f1f5f9; padding:6px 0; }
.wt-cycle-card-act { display:flex; align-items:center; gap:6px; padding:4px 12px; font-size:0.72rem; cursor:pointer; color:#475569; }
.wt-cycle-card-act:hover { background:#f8fafc; }
/* 缺陷汇总 */
.wt-findings-summary { background:#fef2f2; border:1px solid #fecaca; border-radius:8px; padding:14px; margin-top:16px; }
.wt-findings-summary h4 { font-size:0.85rem; color:#991b1b; margin-bottom:8px; }
.wt-finding-item { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid #fecaca; font-size:0.75rem; }
.wt-finding-item:last-child { border-bottom:none; }
.wt-finding-cycle { font-weight:600; color:#991b1b; }
.wt-finding-act { color:#7f1d1d; }
.wt-finding-step { color:#94a3b8; font-size:0.65rem; }
.wt-finding-text { flex:1; color:#475569; }
/* 流程概览 */
.wt-overview { }
.wt-overview-flow { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; }
.wt-overview-cycle { flex:1; min-width:160px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; }
.wt-overview-cycle-header { padding:10px; font-weight:600; font-size:0.8rem; text-align:center; }
.wt-overview-cycle-header.acceptable { background:#f0fdf4; color:#166534; }
.wt-overview-cycle-header.needs-review { background:#fefce8; color:#854d0e; }
.wt-overview-cycle-header.inadequate { background:#fef2f2; color:#991b1b; }
.wt-overview-cycle-header.untested { background:#f8fafc; color:#64748b; }
.wt-overview-acts { padding:6px; }
.wt-overview-act { display:flex; align-items:center; gap:6px; padding:6px 8px; font-size:0.72rem; border-radius:4px; margin-bottom:4px; cursor:pointer; }
.wt-overview-act.acceptable { background:#f0fdf4; }
.wt-overview-act.needs-review { background:#fefce8; }
.wt-overview-act.inadequate { background:#fef2f2; }
.wt-overview-act.untested { background:#f8fafc; }
.wt-overview-arrow { display:flex; align-items:center; font-size:1.2rem; color:#94a3b8; padding:0 4px; }
/* 流程编辑 */
.wt-edit-view { }
.wt-edit-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.wt-edit-header h3 { font-size:0.95rem; font-weight:700; }
.wt-edit-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.wt-edit-save-state { display:inline-flex; align-items:center; min-height:30px; padding:5px 10px; border:1px solid #bbf7d0; border-radius:999px; background:#f0fdf4; color:#15803d; font-size:0.72rem; font-weight:800; transition:transform .16s ease, box-shadow .16s ease; }
.wt-edit-save-state::before { content:"✓"; margin-right:5px; font-weight:900; }
.wt-edit-save-state.saved { transform:translateY(-1px); box-shadow:0 8px 18px rgba(21,128,61,.14); }
.wt-edit-cycles { display:flex; flex-direction:column; gap:12px; }
.wt-edit-cycle { background:#fff; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; }
.wt-edit-cycle-header { display:flex; align-items:center; gap:8px; padding:10px 12px; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.wt-edit-cycle-icon { font-size:1.1rem; }
.wt-edit-cycle-name { flex:1; font-weight:600; font-size:0.85rem; border:1px solid transparent; padding:3px 6px; border-radius:4px; background:transparent; }
.wt-edit-cycle-name:focus { border-color:#6366f1; background:#fff; outline:none; }
.wt-edit-risks { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:6px 12px; background:#fffbeb; border-bottom:1px solid #fef3c7; font-size:0.7rem; }
.wt-edit-risks-label { color:#92400e; font-weight:600; }
.wt-risk-add-input { border:1px dashed #d97706; padding:2px 6px; border-radius:3px; font-size:0.65rem; width:100px; }
.wt-edit-activity { border-bottom:1px solid #f1f5f9; padding:8px 12px; }
.wt-edit-activity:last-child { border-bottom:none; }
.wt-edit-act-header { display:flex; align-items:center; gap:6px; margin-bottom:6px; }
.wt-edit-act-name { flex:1; font-weight:500; font-size:0.8rem; border:1px solid transparent; padding:3px 6px; border-radius:4px; background:transparent; }
.wt-edit-act-name:focus { border-color:#6366f1; background:#fff; outline:none; }
.wt-edit-steps { display:flex; flex-direction:column; gap:4px; padding-left:8px; }
.wt-edit-step { display:flex; align-items:center; gap:6px; }
.wt-edit-step-num { width:18px; height:18px; display:flex; align-items:center; justify-content:center; background:#e0e7ff; color:#4338ca; border-radius:50%; font-size:0.6rem; font-weight:700; flex-shrink:0; }
.wt-edit-step-label { flex:1; padding:4px 6px; border:1px solid transparent; border-radius:3px; font-size:0.75rem; background:transparent; }
.wt-edit-step-label:focus { border-color:#6366f1; background:#fff; outline:none; }
.wt-edit-ctrl-type,.wt-edit-ctrl-freq { padding:3px 4px; border:1px solid #e2e8f0; border-radius:3px; font-size:0.65rem; }
.wt-del-step-btn { background:none; border:none; cursor:pointer; color:#94a3b8; font-size:0.8rem; padding:2px; }
.wt-del-step-btn:hover { color:#dc2626; }
@media (max-width:768px) { .wt-split { grid-template-columns:1fr; } .wt-nav { max-height:200px; } .wt-cycle-cards { grid-template-columns:1fr; } }

/* ===== Findings (审计发现) ===== */
.ff-form { background:#fff; border:1px solid #e2e8f0; border-radius:var(--card-radius); padding:16px; margin-bottom:16px; }
.ff-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ff-item { display:flex; flex-direction:column; gap:3px; }
.ff-item.full { grid-column:1/-1; }
.ff-item label { font-size:0.72rem; font-weight:600; color:#64748b; }
.ff-item input,.ff-item select,.ff-item textarea { padding:6px 8px; border:1px solid #cbd5e1; border-radius:3px; font-size:0.8rem; font-family:inherit; }
.ff-item textarea { min-height:50px; resize:vertical; }
.finding-card { background:var(--card-bg); border-radius:var(--card-radius); padding:14px; margin-bottom:10px; box-shadow:var(--card-shadow); }
.finding-card.critical { border-left:4px solid #dc2626; }
.finding-card.high { border-left:4px solid #ea580c; }
.finding-card.medium { border-left:4px solid #ca8a04; }
.finding-card.low { border-left:4px solid #16a34a; }
.finding-header { display:flex; align-items:center; gap:8px; }
.finding-title { flex:1; font-weight:600; font-size:0.85rem; }
.finding-severity { padding:2px 6px; border-radius:3px; color:#fff; font-size:0.6rem; font-weight:600; }
.finding-status { padding:2px 6px; border-radius:3px; font-size:0.6rem; font-weight:600; }
.finding-status.open { background:#fef3c7; color:#92400e; }
.finding-status.in-progress { background:#dbeafe; color:#1e40af; }
.finding-status.resolved { background:#f0fdf4; color:#166534; }
.finding-body { margin-top:8px; font-size:0.78rem; color:#475569; }
.finding-body p { margin-bottom:4px; }

/* ===== Report (审计报告) ===== */
.rp-generate { background:#fff; border:1px solid #e2e8f0; border-radius:var(--card-radius); padding:20px; margin-bottom:16px; text-align:center; }
.rp-output { background:#fff; border:1px solid #e2e8f0; border-radius:var(--card-radius); padding:20px; font-family:'Courier New',monospace; font-size:0.82rem; white-space:pre-wrap; line-height:1.6; overflow-x:auto; max-height:70vh; overflow-y:auto; }
@media (max-width:768px) { .ff-grid { grid-template-columns:1fr; } }
/* ===== Project Toolbar ===== */
.project-toolbar { background:#243352; color:#cbd5e1; padding:4px 32px; box-shadow:0 1px 3px rgba(0,0,0,0.08); grid-column:2; align-self:start; max-width:1400px; margin-left:auto; margin-right:auto; width:100%; box-sizing:border-box; }
.project-bar-inner { display:flex; align-items:center; gap:10px; padding:2px 0; font-size:0.78rem; }
.project-label { font-weight:600; white-space:nowrap; color:#93c5fd; font-size:0.75rem; }
.project-toolbar select { padding:2px 8px; border:1px solid rgba(255,255,255,0.15); border-radius:3px; font-size:0.75rem; background:#fff; color:#1e293b; }
.project-toolbar .btn { padding:2px 8px; font-size:0.7rem; }
.project-toolbar .btn-primary { background:#4a85f6; }
.project-toolbar .btn-danger { background:#e05555; color:#fff; }
#project-entity-name { font-size:0.75rem; color:#94a3b8; }
@media (max-width:768px) { .project-toolbar { margin-left:0; padding:4px 12px; width:100%; box-sizing:border-box; grid-column:1/-1; } .project-bar-inner { flex-wrap:wrap; } .sidebar + .project-toolbar { grid-column: 1/-1; } }

/* ===== User Info Bar ===== */
.user-info-bar { position:fixed; top:16px; right:24px; z-index:100; display:flex; align-items:center; gap:14px; background:rgba(255,255,255,0.95); backdrop-filter:blur(16px); border:1px solid rgba(226,232,240,0.8); border-radius:12px; padding:10px 18px; box-shadow:0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04); transition:all 0.2s ease; }
.user-info-bar:hover { box-shadow:0 8px 24px rgba(15,23,42,0.1), 0 2px 6px rgba(15,23,42,0.06); transform:translateY(-1px); }
.user-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); display:flex; align-items:center; justify-content:center; color:#fff; font-size:0.85rem; font-weight:700; letter-spacing:0.02em; flex-shrink:0; }
.user-info-content { display:flex; flex-direction:column; gap:2px; }
.user-info-name { font-size:0.84rem; color:#1e293b; font-weight:600; line-height:1.3; }
.user-info-role { font-size:0.7rem; color:#64748b; font-weight:500; }
.user-logout-btn { padding:6px 14px; font-size:0.74rem; border-radius:8px; border:1px solid #e2e8f0; background:#fff; color:#64748b; cursor:pointer; transition:all 0.2s; font-weight:500; }
.user-logout-btn:hover { background:#fef2f2; color:#dc2626; border-color:#fecaca; }
.guest-badge { padding:4px 10px; font-size:0.68rem; font-weight:600; border-radius:6px; background:linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color:#fff; letter-spacing:0.05em; margin-right:8px; }
.work-badge { padding:4px 10px; font-size:0.68rem; font-weight:600; border-radius:6px; background:linear-gradient(135deg, #34d399 0%, #10b981 100%); color:#fff; letter-spacing:0.05em; margin-right:8px; }
html[data-theme="dark"] .user-info-bar { background:rgba(23,34,53,0.95); border-color:rgba(49,65,88,0.8); }
html[data-theme="dark"] .user-info-name { color:#f1f5f9; }
html[data-theme="dark"] .user-info-role { color:#9fb0c7; }
html[data-theme="dark"] .user-logout-btn { background:#1b2940; color:#d8e1ee; border-color:#314158; }
html[data-theme="dark"] .user-logout-btn:hover { background:#7f1d1d; color:#fff; border-color:#991b1b; }
@media (max-width:768px) { .user-info-bar { top:10px; right:12px; padding:8px 14px; gap:10px; } .user-avatar { width:32px; height:32px; font-size:0.75rem; } .user-info-name { font-size:0.76rem; } .user-info-role { font-size:0.66rem; } }

/* ===== Welcome Modal ===== */
.welcome-modal-overlay { position:fixed; inset:0; z-index:9998; background:rgba(15,23,42,0.6); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; animation:welcomeFadeIn 0.3s ease; }
.welcome-modal-overlay.welcome-modal-closing { animation:welcomeFadeOut 0.25s ease forwards; }
.welcome-modal { background:#fff; border-radius:20px; padding:40px 48px; max-width:480px; width:90%; text-align:center; box-shadow:0 25px 60px rgba(15,23,42,0.25); animation:welcomeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); position:relative; overflow:hidden; }
.welcome-modal::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%); }
.welcome-modal-wide { max-width:560px; padding:0 0 28px; text-align:left; }
.welcome-modal-topbar { display:flex; justify-content:space-between; align-items:center; padding:14px 28px; border-bottom:1px solid #f1f5f9; }
.welcome-modal-date { font-size:0.82rem; color:#94a3b8; }
.welcome-modal-close { background:none; border:none; font-size:1.3rem; color:#94a3b8; cursor:pointer; padding:4px 8px; border-radius:6px; transition:all 0.15s; line-height:1; }
.welcome-modal-close:hover { background:#f1f5f9; color:#475569; }
.welcome-modal-greeting { display:flex; align-items:center; gap:18px; padding:24px 28px 16px; }
.welcome-modal-icon { width:52px; height:52px; min-width:52px; border-radius:50%; background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); display:flex; align-items:center; justify-content:center; font-size:1.5rem; box-shadow:0 8px 20px rgba(102,126,234,0.25); }
.welcome-modal-greeting h2 { margin:0 0 4px; font-size:1.25rem; font-weight:700; color:#0f172a; letter-spacing:-0.02em; }
.welcome-modal-sub { margin:0; font-size:0.82rem; color:#94a3b8; }
.welcome-stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:0 28px 16px; }
.welcome-stat-card { background:#f8fafc; border-radius:12px; padding:14px 10px; text-align:center; border:1px solid #f1f5f9; transition:all 0.15s; }
.welcome-stat-card:hover { border-color:#e2e8f0; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.welcome-stat-num { font-size:1.4rem; font-weight:700; color:#0f172a; line-height:1.2; }
.welcome-stat-label { font-size:0.72rem; color:#94a3b8; margin-top:4px; }
.welcome-stat-warn { background:#fef2f2; border-color:#fecaca; }
.welcome-stat-warn .welcome-stat-num { color:#dc2626; }
.welcome-alert-box { margin:0 28px 16px; border-radius:10px; background:#f8fafc; border:1px solid #f1f5f9; overflow:hidden; }
.welcome-alert-item { padding:10px 16px; font-size:0.82rem; border-bottom:1px solid #f1f5f9; }
.welcome-alert-item:last-child { border-bottom:none; }
.welcome-alert-danger { color:#dc2626; background:#fef2f2; }
.welcome-alert-info { color:#2563eb; background:#eff6ff; }
.welcome-actions { display:flex; gap:10px; padding:0 28px 16px; flex-wrap:wrap; }
.welcome-modal-btn { padding:10px 20px; border:none; border-radius:10px; font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.welcome-modal-btn-primary { background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:#fff; box-shadow:0 4px 12px rgba(102,126,234,0.3); flex:1; }
.welcome-modal-btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(102,126,234,0.4); }
.welcome-modal-btn-secondary { background:#f1f5f9; color:#475569; flex:1; }
.welcome-modal-btn-secondary:hover { background:#e2e8f0; }
.welcome-modal-btn-ghost { background:transparent; color:#64748b; border:1px solid #e2e8f0; margin-left:auto; }
.welcome-modal-btn-ghost:hover { background:#f8fafc; color:#0f172a; }
.welcome-first-time { margin:0 28px 14px; padding:12px 16px; background:#eff6ff; border-radius:10px; font-size:0.8rem; color:#2563eb; line-height:1.5; }
.welcome-audit-flow{display:grid;grid-template-columns:auto repeat(6,minmax(66px,1fr));gap:8px;align-items:center;color:#1d4ed8}
.welcome-audit-flow strong{font-size:.78rem;color:#1e40af;white-space:nowrap}
.welcome-audit-flow span{display:flex;align-items:center;justify-content:center;min-height:34px;padding:6px 8px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;font-size:.72rem;font-weight:800;text-align:center}
.welcome-audit-flow i{display:none}
.welcome-audit-flow small{grid-column:1/-1;color:#64748b;font-size:.72rem;line-height:1.5}
.welcome-no-show { display:block; padding:0 28px; font-size:0.78rem; color:#94a3b8; cursor:pointer; user-select:none; }
.welcome-no-show input { margin-right:6px; vertical-align:middle; }
@keyframes welcomeFadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes welcomeSlideUp { from { opacity:0; transform:translateY(20px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes welcomeFadeOut { from { opacity:1; } to { opacity:0; } }
html[data-theme="dark"] .welcome-modal { background:#172235; }
html[data-theme="dark"] .welcome-modal h2 { color:#f1f5f9; }
html[data-theme="dark"] .welcome-modal p { color:#9fb0c7; }
html[data-theme="dark"] .welcome-modal-topbar { border-color:#1e293b; }
html[data-theme="dark"] .welcome-modal-date { color:#64748b; }
html[data-theme="dark"] .welcome-stat-card { background:#1e293b; border-color:#334155; }
html[data-theme="dark"] .welcome-stat-num { color:#f1f5f9; }
html[data-theme="dark"] .welcome-stat-warn { background:#451a1a; border-color:#7f1d1d; }
html[data-theme="dark"] .welcome-alert-box { background:#1e293b; border-color:#334155; }
html[data-theme="dark"] .welcome-alert-danger { background:#451a1a; }
html[data-theme="dark"] .welcome-alert-info { background:#172554; }
html[data-theme="dark"] .welcome-modal-btn-secondary { background:#1e293b; color:#94a3b8; }
html[data-theme="dark"] .welcome-modal-btn-ghost { border-color:#334155; color:#94a3b8; }
html[data-theme="dark"] .welcome-first-time { background:#172554; }
html[data-theme="dark"] .welcome-audit-flow strong{color:#bfdbfe}
html[data-theme="dark"] .welcome-audit-flow span{background:#1e293b;border-color:#334155;color:#dbeafe}
html[data-theme="dark"] .welcome-audit-flow small{color:#9fb0c7}
html[data-theme="dark"] .welcome-no-show { color:#64748b; }

/* ===== 合同审核 ===== */
.cr-upload { margin-bottom:16px; }
.cr-upload-zone { border:2px dashed var(--border-color); border-radius:var(--card-radius); padding:20px; text-align:center; cursor:pointer; transition:all 0.15s; background:var(--bg-hover); }
.cr-upload-zone:hover,.cr-upload-zone.dragover { border-color:var(--accent); background:#eff6ff; }
.cr-upload-icon { font-size:2rem; display:block; margin-bottom:6px; }
.cr-upload-zone p { font-size:0.85rem; color:#64748b; margin:4px 0; }
.cr-upload-hint { font-size:0.72rem!important; color:#94a3b8!important; }
.cr-summary { background:#fff; border:1px solid #e2e8f0; border-radius:var(--card-radius); padding:16px; margin-bottom:16px; }
.cr-summary h3 { font-size:0.95rem; font-weight:600; margin-bottom:4px; }
.cr-summary p { font-size:0.82rem; color:#475569; }
.cr-risks { display:flex; flex-direction:column; gap:12px; }
.cr-risk-item { background:#fff; border:1px solid #e2e8f0; border-radius:var(--card-radius); padding:16px; }
.cr-risk-item.critical { border-left:4px solid #dc2626; }
.cr-risk-item.high { border-left:4px solid #ea580c; }
.cr-risk-item.medium { border-left:4px solid #ca8a04; }
.cr-risk-item.low { border-left:4px solid #16a34a; }
.cr-risk-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.cr-risk-severity { padding:2px 8px; border-radius:3px; color:#fff; font-size:0.65rem; font-weight:600; }
.cr-risk-category { flex:1; font-size:0.88rem; font-weight:600; color:#1e293b; }
.cr-risk-score { font-size:0.72rem; color:#94a3b8; }
.cr-convert-btn { padding:3px 10px!important; font-size:0.7rem!important; }
.cr-risk-desc { font-size:0.8rem; color:#475569; margin-bottom:6px; line-height:1.5; }
.cr-risk-rec { font-size:0.78rem; color:#059669; margin-bottom:6px; }
.cr-risk-excerpt { font-size:0.75rem; color:var(--accent); background:#eff6ff; padding:8px 10px; border-radius:3px; margin:6px 0; max-height:80px; overflow-y:auto; }
.cr-risk-excerpt strong { color:#4338ca; }
.cr-risk-kw { font-size:0.7rem; color:#94a3b8; margin-top:4px; }
@media (max-width:768px) { .cr-risk-header { flex-wrap:wrap; } }

/* ===== 合同审核清单 ===== */
.cr-check-item { background:#fff; border:1px solid #e2e8f0; border-radius:var(--card-radius); margin-bottom:8px; overflow:hidden; }
.cr-check-item.detected.critical { border-left:4px solid #dc2626; }
.cr-check-item.detected.high { border-left:4px solid #ea580c; }
.cr-check-item.detected.medium { border-left:4px solid #ca8a04; }
.cr-check-item.clean { border-left:4px solid #16a34a; }
.cr-check-header { display:flex; align-items:center; gap:8px; padding:10px 14px; background:var(--bg-hover); border-bottom:1px solid var(--border-color); }
.cr-check-item.clean .cr-check-header { background:#f0fdf4; }
.cr-check-item.detected .cr-check-header { background:#fef2f2; }
.cr-check-icon { font-size:1rem; min-width:20px; text-align:center; }
.cr-check-cat { flex:1; font-size:0.82rem; font-weight:600; color:#1e293b; }
.cr-check-sev { padding:2px 8px; border-radius:3px; color:#fff; font-size:0.65rem; font-weight:600; }
.cr-check-status { padding:2px 8px; border-radius:3px; font-size:0.65rem; font-weight:600; }
.cr-check-status.detected { background:#fef2f2; color:#dc2626; }
.cr-check-status.clean { background:#f0fdf4; color:#16a34a; }
.cr-check-score { font-size:0.7rem; color:#94a3b8; }
.cr-check-body { padding:12px 14px; }
.cr-ai-review{margin-top:18px;border:1px solid #cbdcf5;border-radius:14px;background:#fff;overflow:hidden;box-shadow:var(--card-shadow)}
.cr-ai-review>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#eff6ff;border-bottom:1px solid #dbeafe;color:#173b6c}
.cr-ai-review>header strong{font-size:.94rem}.cr-ai-review>header span{padding:4px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#476582;font-size:.7rem}
.cr-ai-review-body{padding:18px;color:#334155;font-size:.84rem;line-height:1.75}
.cr-ai-review-body h4{margin:17px 0 7px;color:#172033;font-size:.91rem}.cr-ai-review-body h4:first-child{margin-top:0}
.cr-ai-review-body p{margin:6px 0}.cr-ai-review-body ul,.cr-ai-review-body ol{margin:7px 0 7px 22px;padding:0}.cr-ai-review-body li{margin:5px 0}
@media (max-width:768px) { .cr-check-header { flex-wrap:wrap; } }
.wt-type-label { cursor:pointer; padding:6px 12px; border:2px solid #e2e8f0; border-radius:4px; font-size:0.75rem; transition:all 0.15s; display:inline-flex; align-items:center; gap:4px; background:#fff; color:#475569; }
.wt-type-label:hover { border-color:var(--accent); }
.wt-type-label .wt-type-icon { font-size:0.9rem; }

/* ==== 商务风增强 ==== */
/* 全局字体优化 */
body { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
/* 卡片间隔优化 */
.section + .section { margin-top: 0; }
/* 表格对齐 */
.finding-header { align-items: center; }
/* 按钮微调 */
.btn { border-radius: 4px; font-weight: 500; }
.btn-sm { padding: 4px 10px; font-size: 0.75rem; }
/* 下拉菜单优化 */
.form-group select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23999'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; padding-right:28px; }
/* 结果头部优化 */
.result-header { align-items: center; }
.overall-badge { min-width: 80px; height: 80px; font-size: 1.6rem; border-radius: 8px; }
/* 摘要区优化 */
.wt-summary-stats div:first-child span:first-child { color: #16a34a; }
/* 标签样式 */
.risk-priority, .dr-severity, .cr-risk-severity, .cr-check-sev { font-weight: 500; letter-spacing: 0.02em; }
/* 分割线 */
.section h3 { padding-bottom: 12px; border-bottom: 2px solid var(--border-color); color: var(--text-primary); letter-spacing: 0.01em; }
/* 侧边栏品牌区 */
.sidebar-brand { padding: 22px 20px 14px; }
/* 知识库面板 */
.qa-chat-container { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
/* 提示词面板 */
.prompt-panel { border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
/* 提示词分类按钮 */
.prompt-cat { border-radius: 4px; font-weight: 500; }
.prompt-cat.active { background: #3b6df0; }
/* 穿行测试周期 */
.wt-cycle { border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
/* 合同检查项 */
.cr-check-item { box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
/* 非首页模块标题区 */
.view-panel > h2 { font-size:1.05rem; font-weight:600; color:#1e293b; margin-bottom:2px; }
.view-panel > p { font-size:0.8rem; color:#64748b; margin-bottom:14px; }
/* 非首页模块卡片容器 */
.view-card { background:#fff; border-radius:var(--card-radius); padding:18px; box-shadow:var(--card-shadow); max-width:1200px; }
.view-card h2 { font-size:1.05rem; font-weight:600; margin-bottom:2px; color:#1e293b; }
.view-card .view-desc { font-size:0.8rem; color:#64748b; margin-bottom:14px; }

/* ===== 审计底稿 Workpaper ===== */
.wp-evidence { margin-top:6px; border-top:1px dashed #e2e8f0; padding-top:4px; }
.wp-toggle { cursor:pointer; font-size:0.72rem; color:var(--accent); padding:2px 4px; user-select:none; }
.wp-toggle:hover { text-decoration:underline; }
.wp-status { color:#94a3b8; font-size:0.65rem; }
.wp-panel { margin-top:6px; padding:8px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:4px; }
.wp-label { display:block; font-size:0.68rem; font-weight:600; color:#64748b; margin-bottom:2px; }
.wp-note { width:100%; min-height:40px; padding:4px 6px; border:1px solid #dde; border-radius:3px; font-size:0.75rem; font-family:inherit; resize:vertical; }
.wp-note:focus { outline:none; border-color:var(--accent); }
.wp-file-row { display:flex; align-items:center; gap:6px; margin-top:6px; flex-wrap:wrap; }
.wp-file-row input[type="file"] { font-size:0.7rem; flex:1; min-width:120px; }
.wp-file-info { font-size:0.7rem; color:#475569; background:#eff6ff; padding:2px 6px; border-radius:3px; }
.wp-actions { display:flex; gap:6px; margin-top:6px; }
.wp-dl-btn, .wp-del-btn { padding:2px 6px!important; font-size:0.68rem!important; }

/* ===== 整改闭环 Finding Track ===== */
.ft-track { margin-top:8px; padding-top:6px; border-top:1px dashed #e2e8f0; }
.ft-meta-row { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin-bottom:4px; }
.ft-label { font-size:0.68rem; font-weight:600; color:#64748b; white-space:nowrap; }
.ft-assignee { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.75rem; width:120px; }
.ft-assignee:focus { outline:none; border-color:var(--accent); }
.ft-due { font-size:0.72rem; color:#475569; }
.ft-due.overdue { color:#dc2626; font-weight:600; }
.ft-timeline-details, .ft-followup-details { margin-top:4px; font-size:0.72rem; }
.ft-tl-toggle, .ft-fu-toggle { cursor:pointer; color:var(--accent); font-size:0.72rem; user-select:none; padding:2px 0; }
.ft-tl-toggle:hover, .ft-fu-toggle:hover { text-decoration:underline; }
.ft-timeline { margin:4px 0; padding-left:12px; border-left:2px solid #e2e8f0; }
.ft-tl-item { margin-bottom:4px; }
.ft-tl-date { font-size:0.65rem; color:#94a3b8; margin-right:6px; font-variant-numeric:tabular-nums; }
.ft-tl-note { font-size:0.72rem; color:#475569; }
.ft-tl-by { font-size:0.65rem; color:var(--accent); margin-left:4px; }
.ft-followups { margin:4px 0; padding-left:12px; border-left:2px solid #e2e8f0; }
.ft-fu-item { margin-bottom:4px; }
.ft-fu-date { font-size:0.65rem; color:#94a3b8; margin-right:6px; }
.ft-fu-result { font-size:0.72rem; font-weight:600; }
.ft-fu-note { font-size:0.72rem; color:#475569; margin:2px 0 0; }
.ft-fu-form { display:flex; gap:4px; margin-top:6px; align-items:center; }
.ft-fu-form select { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; }
.ft-fu-form input { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; }
.ft-fu-form .ft-fu-add { padding:3px 8px!important; font-size:0.7rem!important; }

/* FindingTrack v2: 到期日预警 */
.ft-due-input { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; width:130px; }
.ft-due-input:focus { outline:none; border-color:var(--accent); }
.ft-due-input.ft-due-danger { border-color:#dc2626; background:#fef2f2; color:#dc2626; font-weight:600; }
.ft-due-input.ft-due-warning { border-color:#ea580c; background:#fff7ed; color:#ea580c; font-weight:600; }
.ft-due-input.ft-due-caution { border-color:#ca8a04; background:#fffbeb; }

/* FindingTrack v2: 区块折叠 */
.ft-section-toggle { cursor:pointer; color:var(--accent); font-size:0.72rem; user-select:none; padding:2px 0; }
.ft-section-toggle:hover { text-decoration:underline; }

/* FindingTrack v2: 管理层回应 */
.ft-mgmt-response { margin-top:6px; padding:6px 8px; background:#f8fafc; border-radius:4px; border:1px solid #e2e8f0; }
.ft-mgmt-text { font-size:0.75rem; color:#1e293b; margin:4px 0; white-space:pre-wrap; }
.ft-mgmt-info { font-size:0.65rem; color:#94a3b8; margin-top:2px; }
.ft-mgmt-form { display:flex; gap:4px; margin-top:4px; align-items:flex-start; flex-wrap:wrap; }
.ft-mgmt-form input { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; }
.ft-mgmt-form textarea { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; flex:1; min-width:120px; resize:vertical; }
.ft-mgmt-form .ft-mgmt-submit { padding:3px 8px!important; font-size:0.7rem!important; white-space:nowrap; }

/* FindingTrack v2: 整改验证 */
.ft-verification { margin-top:6px; padding:6px 8px; background:#f0fdf4; border-radius:4px; border:1px solid #bbf7d0; }
.ft-verify-info { font-size:0.72rem; color:#475569; }
.ft-verify-info p { margin:2px 0; }
.ft-verify-form { display:flex; gap:4px; margin-top:4px; align-items:center; flex-wrap:wrap; }
.ft-verify-form input { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; }
.ft-verify-form select { padding:3px 6px; border:1px solid #dde; border-radius:3px; font-size:0.72rem; }
.ft-verify-form .ft-verify-submit { padding:3px 8px!important; font-size:0.7rem!important; white-space:nowrap; }

/* FindingTrack v2: 证据附件 */
.ft-attachments { margin-top:6px; padding:6px 8px; background:#fefce8; border-radius:4px; border:1px solid #fde68a; }
.ft-att-list { margin:4px 0; }
.ft-att-item { display:flex; align-items:center; gap:6px; padding:2px 0; font-size:0.72rem; }
.ft-att-name { color:#1e293b; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; }
.ft-att-size { color:#94a3b8; font-size:0.65rem; }
.ft-att-upload { display:flex; align-items:center; gap:6px; margin-top:4px; }
.ft-att-upload-label { cursor:pointer; color:var(--accent); font-size:0.72rem; font-weight:600; }
.ft-att-upload-label:hover { text-decoration:underline; }
.ft-att-hint { font-size:0.62rem; color:#94a3b8; }

/* FindingTrack v2: 整改统计面板 */
.ft-stats-panel { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.ft-stat-card { flex:1; min-width:80px; padding:12px 10px; background:var(--card-bg); border-radius:var(--card-radius); box-shadow:var(--card-shadow); text-align:center; }
.ft-stat-num { font-size:1.3rem; font-weight:700; color:#1e293b; }
.ft-stat-label { font-size:0.68rem; color:#64748b; margin-top:2px; }
.ft-stat-card.ft-stat-open .ft-stat-num { color:#dc2626; }
.ft-stat-card.ft-stat-progress .ft-stat-num { color:#3b82f6; }
.ft-stat-card.ft-stat-resolved .ft-stat-num { color:#16a34a; }
.ft-stat-card.ft-stat-overdue .ft-stat-num { color:#64748b; }
.ft-stat-card.ft-stat-alert .ft-stat-num { color:#dc2626; animation:ftPulse 1.5s infinite; }
.ft-stat-card.ft-stat-rate .ft-stat-num { color:var(--accent); }
@keyframes ftPulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ===== 审计计划 Audit Plan ===== */
body[data-active-view="auditplan"] .main-content { max-width:none; }
#view-auditplan { max-width:none; }
#view-auditplan > h2 {
  margin:0 0 6px;
  color:#0f172a;
  font-size:32px !important;
  line-height:1.2 !important;
  font-weight:950;
}
#view-auditplan > p {
  margin:0 0 18px !important;
  max-width:860px;
  color:#52637a !important;
  font-size:16px !important;
  line-height:1.65;
}
.ap-container { width:100%; max-width:none; }
.ap-container > .view-card { width:100%; max-width:none; }
.ap-toolbar { display:flex; gap:8px; margin-bottom:12px; align-items:center; }
.ap-landing { display:grid; gap:18px; }
.ap-landing-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  min-height:172px;
  padding:30px 34px;
  border:1px solid #d9e6f4;
  border-radius:24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(20,184,166,.2), transparent 30%),
    linear-gradient(135deg,#ffffff 0%,#f3f8ff 58%,#eefdf8 100%);
  box-shadow:0 18px 42px rgba(15,23,42,.07);
}
.ap-landing-hero span,.ap-plan-list-head span,.ap-plan-command-head span {
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:950;
  letter-spacing:.08em;
}
.ap-landing-hero h2 {
  margin:8px 0 8px;
  color:#0f172a;
  font-size:36px;
  line-height:1.16;
}
.ap-landing-hero p {
  max-width:860px;
  margin:0;
  color:#52637a;
  font-size:16px;
  line-height:1.75;
}
.ap-landing-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.ap-landing-actions .btn { min-height:44px; padding-inline:18px; font-size:15px; font-weight:900; }
.ap-landing-more{position:relative}
.ap-landing-more>summary{display:flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #d9e3ef;border-radius:10px;background:#fff;color:#52667e;font-size:14px;font-weight:850;cursor:pointer;list-style:none}
.ap-landing-more>summary::-webkit-details-marker{display:none}
.ap-landing-more>div{position:absolute;z-index:20;top:50px;right:0;display:grid;min-width:220px;gap:7px;padding:10px;border:1px solid #d9e3ef;border-radius:12px;background:#fff;box-shadow:0 16px 34px rgba(15,23,42,.14)}
.ap-landing-more>div .btn{justify-content:flex-start;width:100%;min-height:38px}
.ap-landing-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.ap-landing-metric {
  position:relative;
  overflow:hidden;
  min-height:106px;
  padding:17px 18px;
  border:1px solid #dfe7f1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.055);
}
.ap-landing-metric::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#2563eb; }
.ap-landing-metric.is-indigo::before{background:#4f46e5}.ap-landing-metric.is-green::before{background:#16a34a}.ap-landing-metric.is-teal::before{background:#0f766e}
.ap-landing-metric span { color:#475569; font-size:14px; font-weight:850; }
.ap-landing-metric strong { display:block; margin-top:9px; color:#0f172a; font-size:32px; line-height:1; }
.ap-landing-metric small { display:block; margin-top:8px; color:#64748b; font-size:13px; line-height:1.4; }
.ap-landing-method {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:#f8fbff;
  color:#334155;
}
.ap-landing-method strong { flex:0 0 auto; color:#1d4ed8; font-size:14px; }
.ap-landing-method span { color:#52637a; font-size:14px; line-height:1.55; }
.ap-landing-workbench {
  display:grid;
  grid-template-columns:minmax(360px,.82fr) minmax(0,1.18fr);
  gap:18px;
  align-items:start;
}
.ap-landing-workbench.is-empty { grid-template-columns:minmax(0,1fr) minmax(320px,430px); }
.ap-plan-list-panel,.ap-plan-command-panel,.ap-landing-empty {
  min-width:0;
  border:1px solid #dbe5f1;
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 36px rgba(15,23,42,.06);
}
.ap-plan-list-panel { overflow:hidden; }
.ap-plan-list-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px 14px;
  border-bottom:1px solid #e6edf5;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
.ap-plan-list-head strong { display:block; margin-top:5px; color:#0f172a; font-size:18px; line-height:1.3; }
.ap-plan-list-head b {
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:13px;
}
.ap-plan-list { display:grid; gap:10px; max-height:680px; overflow:auto; padding:12px; }
.ap-plan-list-item {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 14px;
  padding:13px;
  border:1px solid #e2e8f0;
  border-left:5px solid #94a3b8;
  border-radius:15px;
  background:#fff;
}
.ap-plan-list-item:hover { border-color:#93c5fd; box-shadow:0 10px 22px rgba(37,99,235,.08); }
.ap-plan-list-item.is-selected { border-color:#2563eb; border-left-color:#2563eb; background:#f8fbff; }
.ap-plan-list-item.is-active { border-left-color:#16a34a; }
.ap-plan-list-item.is-approved { border-left-color:#2563eb; }
.ap-plan-list-item.is-change { border-left-color:#d97706; }
.ap-plan-list-item.is-closed { border-left-color:#0f766e; }
.ap-plan-row-main {
  display:grid;
  gap:4px;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.ap-plan-row-main span { color:#2563eb; font-size:12px; font-weight:950; }
.ap-plan-row-main strong { overflow:hidden; color:#0f172a; font-size:17px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.ap-plan-row-main small,.ap-plan-row-state small { overflow:hidden; color:#64748b; font-size:13px; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.ap-plan-row-state { display:grid; justify-items:end; gap:6px; min-width:160px; }
.ap-plan-row-actions {
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:8px;
  border-top:1px solid #edf2f7;
}
.ap-plan-command-panel { display:grid; gap:16px; padding:22px; }
.ap-plan-command-panel.is-empty { align-content:center; min-height:300px; }
.ap-plan-command-panel.is-active { border-color:#bbf7d0; background:linear-gradient(135deg,#fff,#f6fffb); }
.ap-plan-command-panel.is-change { border-color:#fed7aa; background:linear-gradient(135deg,#fff,#fffaf2); }
.ap-plan-command-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.ap-plan-command-head h3 { margin:6px 0 5px; color:#0f172a; font-size:26px; line-height:1.25; }
.ap-plan-command-head p,.ap-plan-command-panel>p { margin:0; color:#52637a; font-size:15px; line-height:1.6; }
.ap-plan-command-head b {
  display:grid;
  place-items:center;
  min-width:70px;
  height:44px;
  padding:0 12px;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  font-size:17px;
}
.ap-plan-command-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.ap-plan-command-metrics div {
  padding:13px 12px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
}
.ap-plan-command-metrics strong { display:block; color:#0f172a; font-size:26px; line-height:1; }
.ap-plan-command-metrics span { display:block; margin-top:6px; color:#64748b; font-size:13px; font-weight:850; }
.ap-plan-command-steps {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:8px;
  border:1px solid #dbe5f1;
  border-radius:16px;
  background:#f8fafc;
}
.ap-plan-command-steps span {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:9px 10px;
  border-radius:12px;
  color:#64748b;
  font-size:14px;
  font-weight:850;
}
.ap-plan-command-steps b {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:999px;
  background:#e2e8f0;
  color:#475569;
  font-size:12px;
}
.ap-plan-command-steps .is-done { background:#ecfdf5; color:#047857; }
.ap-plan-command-steps .is-done b { background:#16a34a; color:#fff; }
.ap-plan-command-steps .is-current { background:#eff6ff; color:#1d4ed8; }
.ap-plan-command-steps .is-current b { background:#2563eb; color:#fff; }
.ap-plan-command-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.ap-plan-command-actions .btn { min-height:40px; padding-inline:16px; font-weight:900; }
.ap-status-badge.approved { background:#dbeafe; color:#1d4ed8; }
.ap-status-badge.change { background:#ffedd5; color:#c2410c; }
@media (max-width:1180px) {
  .ap-landing-workbench,
  .ap-landing-workbench.is-empty { grid-template-columns:1fr; }
  .ap-plan-list { max-height:none; }
}
@media (max-width:760px) {
  #view-auditplan > h2 { font-size:28px !important; }
  .ap-landing-hero { grid-template-columns:1fr; min-height:0; padding:22px; }
  .ap-landing-actions { justify-content:flex-start; }
  .ap-landing-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ap-landing-method { align-items:flex-start; flex-direction:column; }
  .ap-plan-list-item { grid-template-columns:1fr; }
  .ap-plan-row-state { justify-items:start; min-width:0; }
  .ap-plan-row-actions,
  .ap-plan-command-actions { justify-content:flex-start; }
  .ap-plan-command-head { flex-direction:column; }
  .ap-plan-command-metrics,
  .ap-plan-command-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px) {
  .ap-landing-metrics,
  .ap-plan-command-metrics,
  .ap-plan-command-steps { grid-template-columns:1fr; }
}
.ap-year-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid #dbe5f1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
}
.ap-year-context,.ap-year-context label,.ap-landing-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.ap-year-context label { color:#475569; font-size:14px; font-weight:850; }
.ap-year-context select {
  min-width:128px;
  min-height:40px;
  padding:7px 34px 7px 12px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  font-size:15px;
  font-weight:900;
}
.ap-year-context > span {
  padding:7px 10px;
  border-radius:9px;
  background:#f1f5f9;
  color:#334155;
  font-size:14px;
  font-weight:800;
}
.ap-execution-ledger {
  overflow:hidden;
  border:1px solid #dbe5f1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.055);
}
.ap-ledger-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  padding:19px 20px 15px;
  border-bottom:1px solid #e6edf5;
}
.ap-ledger-head span { color:#2563eb; font-size:13px; font-weight:950; }
.ap-ledger-head h3 { margin:4px 0 3px; color:#0f172a; font-size:22px; }
.ap-ledger-head p { margin:0; color:#64748b; font-size:14px; }
.ap-ledger-filters { display:flex; flex-wrap:wrap; gap:7px; }
.ap-ledger-filters button {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 11px;
  border:1px solid #d7e0eb;
  border-radius:10px;
  background:#fff;
  color:#475569;
  font-size:14px;
  font-weight:850;
  cursor:pointer;
}
.ap-ledger-filters button b {
  min-width:22px;
  padding:2px 6px;
  border-radius:999px;
  background:#eef2f7;
  color:#334155;
  font-size:12px;
}
.ap-ledger-filters button.is-active { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; }
.ap-ledger-filters button.is-active b { background:#2563eb; color:#fff; }
.ap-ledger-table-wrap { width:100%; overflow:auto; }
.ap-ledger-table { width:100%; min-width:1080px; border-collapse:collapse; }
.ap-ledger-table th {
  padding:11px 14px;
  border-bottom:1px solid #dfe7f1;
  background:#f8fafc;
  color:#52637a;
  font-size:13px;
  font-weight:900;
  text-align:left;
  white-space:nowrap;
}
.ap-ledger-table td {
  padding:13px 14px;
  border-bottom:1px solid #edf2f7;
  color:#334155;
  font-size:14px;
  vertical-align:middle;
}
.ap-ledger-table tbody tr:last-child td { border-bottom:0; }
.ap-ledger-table tbody tr:hover { background:#f8fbff; }
.ap-ledger-table td strong { display:block; color:#0f172a; font-size:15px; line-height:1.35; }
.ap-ledger-table td small { display:block; margin-top:4px; color:#64748b; font-size:12px; line-height:1.4; }
.ap-ledger-state {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.ap-ledger-row.is-in-progress .ap-ledger-state { background:#dbeafe; color:#1d4ed8; }
.ap-ledger-row.is-completed .ap-ledger-state { background:#dcfce7; color:#15803d; }
.ap-ledger-progress {
  width:150px;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e8eef5;
}
.ap-ledger-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2563eb,#0f9f8f); }
.ap-ledger-actions { width:112px; text-align:right; white-space:nowrap; }
.ap-ledger-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  min-height:220px;
  padding:30px;
  color:#64748b;
  text-align:center;
}
.ap-ledger-empty strong { color:#0f172a; font-size:18px; }
.ap-ledger-empty .btn { margin-top:5px; }
@media (max-width:900px) {
  .ap-year-toolbar,.ap-ledger-head { align-items:flex-start; flex-direction:column; }
  .ap-landing-actions { justify-content:flex-start; }
  .ap-ledger-filters { width:100%; }
}
@media (max-width:600px) {
  .ap-year-toolbar { padding:14px; }
  .ap-landing-actions .btn { flex:1 1 auto; }
  .ap-ledger-filters button { flex:1 1 calc(50% - 7px); justify-content:center; }
}
.ap-plan-sel { padding:6px 10px; border:1px solid #dde; border-radius:4px; font-size:0.8rem; min-width:200px; }
.ap-stats { display:flex; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.ap-stat { padding:8px 14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; text-align:center; min-width:70px; }
.ap-stat.ok { background:#f0fdf4; border-color:#bbf7d0; }
.ap-stat.warn { background:#fffbeb; border-color:#fde68a; }
.ap-stat-num { display:block; font-size:1.1rem; font-weight:700; color:#1e293b; }
.ap-stat-lbl { font-size:0.65rem; color:#64748b; }
.ap-progress-bar { height:6px; background:#e2e8f0; border-radius:3px; margin-bottom:14px; overflow:hidden; }
.ap-progress-fill { height:100%; background:linear-gradient(90deg,var(--accent),#8b5cf6); border-radius:3px; transition:width 0.3s; }
.ap-add-form { margin-bottom:14px; padding:10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; }
.ap-form-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:8px; margin-bottom:8px; }
.ap-form-item { display:flex; flex-direction:column; }
.ap-form-item.full { grid-column:1/-1; }
.ap-form-item label { font-size:0.68rem; font-weight:600; color:#64748b; margin-bottom:2px; }
.ap-form-item input, .ap-form-item select { padding:5px 8px; border:1px solid #dde; border-radius:3px; font-size:0.78rem; }
.ap-form-item input:focus, .ap-form-item select:focus { outline:none; border-color:var(--accent); }
.ap-table { width:100%; border-collapse:collapse; font-size:0.75rem; }
.ap-table th { text-align:left; padding:6px 8px; background:#f8fafc; border:1px solid #e2e8f0; font-weight:600; color:#64748b; }
.ap-table td { padding:4px 6px; border:1px solid #f1f5f9; }
.ap-inp { padding:3px 6px; border:1px solid #e2e8f0; border-radius:3px; font-size:0.72rem; }
.ap-inp:focus { outline:none; border-color:var(--accent); }
.ap-prog-val { font-size:0.65rem; color:#64748b; margin-left:4px; }
@media (max-width:768px) { .hm-grid { grid-template-columns:1fr 1fr; } .ap-form-grid { grid-template-columns:1fr; } .ap-stats { flex-direction:column; } }

/* 年度计划卡片网格 */
.ap-annual-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px; margin-top:12px; }
.ap-annual-card { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:16px; transition:box-shadow 0.15s,border-color 0.15s; }
.ap-annual-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.06); border-color:#c7d2fe; }
.ap-annual-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:8px; }
.ap-annual-title { font-size:0.95rem; font-weight:650; color:#1e293b; margin:0; }
.ap-annual-meta { font-size:0.75rem; color:#64748b; display:flex; gap:12px; margin-bottom:8px; }
.ap-annual-stats { display:flex; gap:10px; margin-bottom:10px; }
.ap-annual-stat { font-size:0.75rem; color:#64748b; }
.ap-annual-stat strong { color:#1e293b; }
.ap-annual-stat.ok strong { color:#22c55e; }
.ap-annual-stat.warn strong { color:#f59e0b; }
.ap-annual-actions { display:flex; gap:6px; }

/* 状态/类型标签 */
.ap-status-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:0.68rem; font-weight:600; }
.ap-status-badge.draft { background:#f1f5f9; color:#64748b; }
.ap-status-badge.active { background:#dcfce7; color:#166534; }
.ap-status-badge.closed { background:#fee2e2; color:#991b1b; }
.ap-type-badge { display:inline-block; padding:1px 6px; border-radius:3px; font-size:0.68rem; font-weight:550; background:#eef2ff; color:#4338ca; }

/* 详情页头部 */
.ap-detail-header { display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.ap-detail-info { flex:1; min-width:200px; }
.ap-detail-info h2 { margin:0 0 4px; font-size:1.05rem; font-weight:650; color:#1e293b; }
.ap-detail-meta { font-size:0.75rem; color:#64748b; display:flex; gap:12px; flex-wrap:wrap; }
.ap-detail-actions { display:flex; gap:6px; flex-shrink:0; }

/* 添加项目区 */
.ap-add-section { margin-bottom:14px; }
.ap-add-btns { display:flex; gap:8px; margin-bottom:8px; }
.ap-add-form-detail { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:14px; }
.ap-item-form-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px; }
.ap-item-form-grid .ap-form-item.full { grid-column:1/-1; }

/* 助审标签输入 */
.ap-tag-input-wrap { display:flex; flex-wrap:wrap; gap:4px; align-items:center; padding:4px 6px; border:1px solid #dde; border-radius:6px; background:#fff; min-height:32px; }
.ap-tag { display:inline-flex; align-items:center; gap:2px; padding:2px 8px; background:#eef2ff; color:#4338ca; border-radius:4px; font-size:0.72rem; font-weight:550; }
.ap-tag-del { cursor:pointer; font-size:0.8rem; margin-left:2px; opacity:0.6; }
.ap-tag-del:hover { opacity:1; }
.ap-tag-input { border:none; outline:none; font-size:0.78rem; flex:1; min-width:80px; padding:2px 4px; background:transparent; }

/* 审计项目表格 */
.ap-items-section { margin-top:14px; }
.ap-section-title { font-size:0.88rem; font-weight:600; color:#1e293b; margin-bottom:8px; padding-bottom:4px; border-bottom:2px solid var(--accent); }
.ap-table-wrap { overflow-x:auto; }
.ap-item-table { width:100%; border-collapse:collapse; font-size:0.75rem; }
.ap-item-table th { text-align:left; padding:7px 8px; background:#f8fafc; border:1px solid #e2e8f0; font-weight:600; color:#64748b; white-space:nowrap; }
.ap-item-table td { padding:5px 6px; border:1px solid #f1f5f9; vertical-align:middle; }
.ap-item-table tr:hover { background:#fafafe; }
.ap-td-name { font-weight:550; color:#1e293b; min-width:120px; }
.ap-td-assistants { display:flex; flex-wrap:wrap; gap:3px; align-items:center; min-width:80px; }
.ap-role-tag { display:inline-block; padding:1px 6px; background:#f0fdf4; color:#166534; border-radius:3px; font-size:0.68rem; font-weight:550; }
.ap-edit-assistants-btn { background:none; border:none; cursor:pointer; font-size:0.72rem; color:#94a3b8; padding:0 2px; }
.ap-edit-assistants-btn:hover { color:var(--accent); }
.ap-td-dates { white-space:nowrap; }
.ap-empty-inline { font-size:0.8rem; color:#94a3b8; padding:16px 0; text-align:center; }

/* 项目库选择器 */
.ap-project-picker { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:14px; margin-top:8px; }
.ap-picker-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:0.82rem; }
.ap-picker-list { max-height:200px; overflow-y:auto; margin-bottom:8px; }
.ap-picker-item { display:flex; align-items:center; gap:6px; padding:5px 8px; border-radius:4px; font-size:0.78rem; cursor:pointer; }
.ap-picker-item:hover { background:#eef2ff; }
.ap-picker-item input { accent-color:var(--accent); }

.ap-program-workbench-loading{margin:14px 0;padding:16px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;color:#64748b;font-size:.78rem;}
.ap-object-boundary{display:grid;gap:5px;margin:12px 0;padding:12px 14px;border:1px solid #e0e7ff;border-radius:12px;background:#f8fbff;color:#52637a;font-size:.75rem;line-height:1.55;}
.ap-object-boundary strong{color:#1e3a8a;font-size:.82rem;}
.ap-program-workbench{margin:14px 0 16px;border:1px solid #dbeafe;border-radius:14px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.06);overflow:hidden;}
.ap-pw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 18px;border-bottom:1px solid #e8eef7;background:linear-gradient(135deg,#f8fbff,#fff);}
.ap-pw-head span{display:inline-flex;margin-bottom:5px;color:#2563eb;font-size:.56rem;font-weight:950;letter-spacing:.14em;}
.ap-pw-head h3{margin:0;color:#0f172a;font-size:1rem;letter-spacing:-.01em;}
.ap-pw-head p{max-width:760px;margin:6px 0 0;color:#52637a;font-size:.76rem;line-height:1.55;}
.ap-pw-actions{display:flex;gap:8px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;}
.ap-pw-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px 16px;background:#fbfdff;border-bottom:1px solid #eef2f7;}
.ap-pw-stats span{display:grid;gap:2px;padding:9px 10px;border:1px solid #edf2f7;border-radius:9px;background:#fff;color:#64748b;font-size:.62rem;font-weight:800;text-align:center;}
.ap-pw-stats strong{color:#0f172a;font-size:1.05rem;}
.ap-pw-empty{display:grid;gap:8px;justify-items:start;margin:14px;padding:18px;border:1px dashed #bfdbfe;border-radius:12px;background:#f8fbff;color:#64748b;font-size:.78rem;}
.ap-pw-empty strong{color:#0f172a;font-size:.92rem;}
.ap-pw-today{display:grid;grid-template-columns:230px minmax(0,1fr);gap:12px;padding:14px 16px;border-bottom:1px solid #eef2f7;background:#fff;}
.ap-pw-today>div:first-child{padding:12px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.ap-pw-today>div:first-child span{display:block;color:#2563eb;font-size:.56rem;font-weight:950;letter-spacing:.14em;}
.ap-pw-today>div:first-child strong{display:block;margin-top:5px;color:#0f172a;font-size:.9rem;}
.ap-pw-today>div:first-child p{margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.55;}
.ap-pw-today-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;}
.ap-pw-today-list article{display:grid;gap:6px;padding:11px;border:1px solid #edf2f7;border-radius:12px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.04);}
.ap-pw-today-list article strong{color:#0f172a;font-size:.76rem;line-height:1.35;}
.ap-pw-today-list article small{color:#64748b;font-size:.66rem;line-height:1.4;}
.ap-pw-jump-row{justify-self:start;margin-top:2px;padding:5px 9px;border:0;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.64rem;font-weight:900;cursor:pointer;}
.ap-pw-jump-row:hover{background:#dbeafe;}
.ap-pw-table-wrap{overflow-x:auto;padding:0 14px 14px;}
.ap-pw-table{width:100%;border-collapse:separate;border-spacing:0 8px;font-size:.74rem;}
.ap-pw-table th{text-align:left;color:#64748b;font-weight:900;padding:8px 10px;border-bottom:1px solid #edf2f7;}
.ap-pw-table td{padding:10px;border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7;background:#fff;vertical-align:top;}
.ap-pw-table td:first-child{border-left:1px solid #edf2f7;border-radius:10px 0 0 10px;}
.ap-pw-table td:last-child{border-right:1px solid #edf2f7;border-radius:0 10px 10px 0;}
.ap-pw-table tr.is-focused td{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 1px rgba(96,165,250,.22) inset;}
.ap-pw-table strong{display:block;color:#0f172a;font-size:.78rem;line-height:1.35;}
.ap-pw-table small{display:block;margin-top:4px;color:#64748b;line-height:1.45;}
.ap-pw-missing{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:.66rem;font-weight:900;}
.ap-pw-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.66rem;font-weight:950;}
.ap-pw-status.is-success{background:#dcfce7;color:#166534;}
.ap-pw-status.is-info{background:#e0f2fe;color:#075985;}
.ap-pw-status.is-warning{background:#fef3c7;color:#92400e;}
.ap-pw-status.is-danger{background:#fee2e2;color:#991b1b;}
.ap-pw-row-actions{display:flex;gap:6px;flex-wrap:wrap;}
.ap-pw-covered{border-top:1px solid #eef2f7;background:#fbfdff;}
.ap-pw-covered summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;color:#334155;font-size:.76rem;font-weight:900;cursor:pointer;}
.ap-pw-covered summary small{color:#64748b;font-size:.66rem;font-weight:700;}

/* 新建年度计划模态框 */
.ap-modal-overlay { position:fixed; inset:0; z-index:9000; background:rgba(15,23,42,0.45); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; animation:ptModalFadeIn 0.2s ease; }
.ap-modal { background:#fff; border-radius:14px; width:420px; max-width:92vw; box-shadow:0 20px 60px rgba(0,0,0,0.18); animation:ptModalSlideIn 0.25s ease; overflow:hidden; }
.ap-modal-header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px 0; }
.ap-modal-header h3 { margin:0; font-size:1rem; font-weight:650; color:#1e293b; }
.ap-modal-close { width:28px; height:28px; border:none; background:#f1f5f9; border-radius:7px; cursor:pointer; font-size:0.95rem; color:#64748b; display:flex; align-items:center; justify-content:center; }
.ap-modal-close:hover { background:#e2e8f0; }
.ap-modal-body { padding:14px 20px 8px; }
.ap-modal-field { margin-bottom:12px; }
.ap-modal-field label { display:block; font-size:0.78rem; font-weight:550; color:#475569; margin-bottom:4px; }
.ap-modal-field .ap-required { color:#ef4444; }
.ap-modal-field input, .ap-modal-field select, .ap-modal-field textarea { width:100%; padding:8px 10px; border:1.5px solid #e2e8f0; border-radius:7px; font-size:0.82rem; color:#1e293b; background:#f8fafc; outline:none; font-family:inherit; transition:border-color 0.15s,box-shadow 0.15s; }
.ap-modal-field input:focus, .ap-modal-field select:focus, .ap-modal-field textarea:focus { border-color:var(--accent); background:#fff; box-shadow:0 0 0 3px rgba(99,102,241,0.12); }
.ap-modal-footer { display:flex; justify-content:flex-end; gap:8px; padding:6px 20px 18px; }

.ap-approval-modal { display:flex; flex-direction:column; width:540px; max-height:min(760px, 92vh); overflow:hidden; }
.ap-approval-modal .ap-modal-header { flex:0 0 auto; padding:22px 24px 0; }
.ap-approval-modal .ap-modal-header h3 { font-size:1.08rem; font-weight:750; }
.ap-approval-modal .ap-modal-body { min-height:0; padding:16px 24px 10px; overflow:auto; }
.ap-approval-modal .ap-modal-note { margin-bottom:16px; border:1px solid #dbeafe; }
.ap-approval-missing { margin:0 0 16px; padding:12px 14px 0; border:1px solid #f3cf86; border-radius:10px; background:#fffbeb; }
.ap-approval-missing > strong { display:block; color:#92400e; font-size:.84rem; }
.ap-approval-missing > span { display:block; margin:3px 0 11px; color:#7c5b24; font-size:.72rem; line-height:1.5; }
.ap-approval-modal .ap-modal-field { margin-bottom:15px; }
.ap-approval-modal .ap-modal-field label { margin-bottom:7px; color:#334155; font-size:.82rem; font-weight:700; }
.ap-approval-modal .ap-modal-field input,
.ap-approval-modal .ap-modal-field select,
.ap-approval-modal .ap-modal-field textarea { min-height:42px; padding:10px 12px; border-color:#d7e1ee; border-radius:9px; background:#fff; font-size:.86rem; box-sizing:border-box; }
.ap-approval-modal .ap-modal-field textarea { min-height:96px; line-height:1.65; resize:vertical; }
.ap-approval-modal .ap-field-help { display:block; margin-top:6px; color:#7b8a9d; font-size:.7rem; line-height:1.5; }
.ap-approval-form-row { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:12px; }
.ap-approval-upload { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; min-height:64px; padding:11px 12px; border:1px dashed #a9bdd6; border-radius:10px; background:#f8fbff; }
.ap-approval-upload input { position:absolute; width:1px !important; height:1px !important; min-height:0 !important; padding:0 !important; opacity:0; overflow:hidden; pointer-events:none; }
.ap-approval-upload label { display:flex !important; flex-direction:column; align-items:flex-start; justify-content:center; min-width:132px; min-height:40px; margin:0 !important; padding:8px 14px; border:1px solid #bfd2ea; border-radius:8px; background:#fff; cursor:pointer; transition:border-color .15s,box-shadow .15s,background .15s; }
.ap-approval-upload label:hover { border-color:#2563eb; background:#eff6ff; box-shadow:0 3px 10px rgba(37,99,235,.1); }
.ap-approval-upload label strong { color:#1d4ed8; font-size:.8rem; }
.ap-approval-upload label span { margin-top:2px; color:#64748b; font-size:.66rem; font-weight:500; }
.ap-approval-file-status { min-width:0; overflow:hidden; color:#64748b; font-size:.75rem; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.ap-approval-file-status.has-files { color:#0f766e; font-weight:700; }
.ap-approval-modal .ap-modal-footer { flex:0 0 auto; padding:12px 24px 18px; border-top:1px solid #edf2f7; background:#fff; }

@media (max-width:560px) {
  .ap-approval-modal { width:calc(100vw - 24px); max-width:none; }
  .ap-approval-modal .ap-modal-header { padding:18px 18px 0; }
  .ap-approval-modal .ap-modal-body { padding:14px 18px 8px; }
  .ap-approval-form-row { grid-template-columns:1fr; gap:0; }
  .ap-approval-upload { grid-template-columns:1fr; }
  .ap-approval-upload label { align-items:center; width:100%; box-sizing:border-box; }
  .ap-approval-file-status { text-align:center; }
  .ap-approval-modal .ap-modal-footer { padding:8px 18px 18px; }
}

/* 空状态 */
.ap-empty { text-align:center; padding:40px 20px; }
.ap-empty-icon { font-size:2.5rem; margin-bottom:8px; }
.ap-empty-title { font-size:0.95rem; font-weight:600; color:#1e293b; margin-bottom:4px; }
.ap-empty-desc { font-size:0.8rem; color:#94a3b8; }

@media (max-width:768px) { .ap-annual-list { grid-template-columns:1fr; } .ap-detail-header { flex-direction:column; } .ap-item-form-grid { grid-template-columns:1fr; } }

/* ===== 审计报告 V2 Report Page Redesign ===== */
.rp2-stats {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.rp2-stat-item {
  flex: 1; min-width: 72px; padding: 12px 10px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rp2-stat-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.rp2-stat-item.critical { border-left: 3px solid #dc2626; }
.rp2-stat-item.high { border-left: 3px solid #ea580c; }
.rp2-stat-item.medium { border-left: 3px solid #ca8a04; }
.rp2-stat-item.low { border-left: 3px solid #16a34a; }
.rp2-stat-num { font-size: 1.4rem; font-weight: 700; color: #1e293b; line-height: 1; }
.rp2-stat-item.critical .rp2-stat-num { color: #dc2626; }
.rp2-stat-item.high .rp2-stat-num { color: #ea580c; }
.rp2-stat-item.medium .rp2-stat-num { color: #ca8a04; }
.rp2-stat-item.low .rp2-stat-num { color: #16a34a; }
.rp2-stat-label { font-size: 0.68rem; color: #64748b; margin-top: 4px; }

.rp-version-card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.rpv-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.rpv-head span { display: block; color: #2563eb; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; }
.rpv-head strong { display: block; margin-top: 4px; color: #0f172a; font-size: 1rem; }
.rpv-head p { margin: 5px 0 0; color: #64748b; font-size: 0.76rem; line-height: 1.55; }
.rpv-head b {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
}
.rpv-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 13px 0; }
.rpv-flow button {
  display: grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px;
  min-height: 34px;
  padding:0 11px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #fff;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  cursor:pointer;
}
.rpv-flow button>span{margin:0;color:inherit;font-size:inherit}
.rpv-flow button>b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.66rem}
.rpv-flow button.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.rpv-empty {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 0.76rem;
}
.rpv-list { display: grid; gap: 8px; }
.rpv-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.rpv-list article.is-stale { border-color: #fdba74; background: #fffaf5; }
.rpv-snapshot-state { padding: 4px 8px; border-radius: 999px; font-size: 0.64rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.rpv-snapshot-state.current { background: #ecfdf5; color: #047857; }
.rpv-snapshot-state.stale { background: #fff7ed; color: #c2410c; }
.rpv-list strong { display: block; color: #0f172a; font-size: 0.78rem; }
.rpv-list span { display: block; margin-top: 3px; color: #94a3b8; font-size: 0.66rem; }
.rpv-list p { margin: 0; color: #475569; font-size: 0.72rem; line-height: 1.45; }
.rpv-lock-note{grid-column:1/-1;color:#64748b;font-size:.64rem;line-height:1.45}
.rpv-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
html[data-theme="dark"] .rp-version-card,
html[data-theme="dark"] .rpv-flow button,
html[data-theme="dark"] .rpv-empty,
html[data-theme="dark"] .rpv-list article { background: #172235; border-color: #314158; }
html[data-theme="dark"] .rpv-head strong,
html[data-theme="dark"] .rpv-list strong { color: #f1f5f9; }
html[data-theme="dark"] .rpv-head p,
html[data-theme="dark"] .rpv-empty,
html[data-theme="dark"] .rpv-list p { color: #9fb0c7; }
@media (max-width: 768px) {
  .rpv-head { flex-direction: column; }
  .rpv-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpv-list article { grid-template-columns: 1fr; }
}
.rp-final-gate {
  margin: 0 0 16px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.rp-final-gate.is-draft { border-color: #c7d2fe; background: linear-gradient(180deg, #fff, #f8faff); }
.rp-final-gate.is-ok { border-color: #bbf7d0; background: linear-gradient(180deg, #fff, #f7fef9); }
.rp-final-gate.is-blocked { border-color: #fed7aa; background: linear-gradient(180deg, #fff, #fffaf5); }
.rpg-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.rpg-head span { display: block; color: #7c3aed; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; }
.rpg-head strong { display: block; margin-top: 4px; color: #0f172a; font-size: 0.96rem; }
.rpg-head p { margin: 5px 0 0; color: #64748b; font-size: 0.75rem; line-height: 1.55; }
.rpg-head b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.7rem;
}
.is-ok .rpg-head b { background: #dcfce7; color: #15803d; }
.is-blocked .rpg-head b { background: #ffedd5; color: #c2410c; }
.rpg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rpg-grid div { padding: 10px; border: 1px solid #edf2f7; border-radius: 10px; background: rgba(255, 255, 255, 0.72); }
.rpg-grid span { display: block; color: #64748b; font-size: 0.64rem; font-weight: 800; }
.rpg-grid strong { display: block; margin-top: 4px; color: #0f172a; font-size: 1.05rem; }
.rpg-grid small { display: block; margin-top: 2px; color: #94a3b8; font-size: 0.62rem; line-height: 1.35; }
.rpg-role-readiness { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.rpg-role-readiness article { display: grid; gap: 7px; padding: 10px 11px; border: 1px solid #e2e8f0; border-top: 3px solid #94a3b8; border-radius: 11px; background: rgba(255,255,255,.78); }
.rpg-role-readiness article.is-good { border-top-color: #16a34a; }
.rpg-role-readiness article.is-mid { border-top-color: #d97706; }
.rpg-role-readiness article.is-risk { border-top-color: #dc2626; }
.rpg-role-readiness article>div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rpg-role-readiness span { color: #64748b; font-size: .6rem; font-weight: 900; letter-spacing: .08em; }
.rpg-role-readiness strong { color: #0f172a; font-size: .84rem; }
.rpg-role-readiness p { margin: 0; color: #64748b; font-size: .66rem; line-height: 1.45; }
.rpg-role-readiness button { justify-self: start; padding: 5px 9px; border: 1px solid #c7d2fe; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .62rem; font-weight: 900; cursor: pointer; }
.rpg-role-readiness button:hover { background: #e0e7ff; }
.rpg-blockers { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 0.74rem; line-height: 1.55; }
.rpg-blockers strong { margin-right: 4px; }
.rpg-blockers span { display: block; margin-top: 3px; color: #c2410c; }
.rpg-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.rpg-action { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 11px; border: 1px solid #fed7aa; border-radius: 11px; background: #fff; color: #9a3412; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rpg-action:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(154, 52, 18, .12); border-color: #fb923c; }
.rpg-action strong { color: #c2410c; font-size: .72rem; }
.rpg-action span { color: #64748b; font-size: .62rem; line-height: 1.45; }
.rpg-issue-readiness { margin-top: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: rgba(255,255,255,0.74); overflow: hidden; }
.rpg-issue-readiness summary { cursor: pointer; padding: 9px 12px; color: #334155; font-size: 0.74rem; font-weight: 900; list-style: none; }
.rpg-issue-readiness summary::-webkit-details-marker { display: none; }
.rpg-issue-list { display: grid; gap: 6px; padding: 0 10px 10px; }
.rpg-issue-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; border: 1px solid #e2e8f0; background: #fff; }
.rpg-issue-list article.is-missing { border-color: #fed7aa; background: #fffaf5; }
.rpg-issue-list article.is-ready { border-color: #bbf7d0; background: #f7fef9; }
.rpg-issue-list strong { display: block; color: #0f172a; font-size: 0.73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpg-issue-list span { display: block; margin-top: 2px; color: #64748b; font-size: 0.64rem; }
.rpg-issue-list p { margin: 0; color: #9a3412; font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
.rpg-open-finding { border: 1px solid #f97316; border-radius: 999px; background: #fff7ed; color: #c2410c; padding: 5px 10px; font-size: .64rem; font-weight: 900; cursor: pointer; white-space: nowrap; }
.rpg-open-finding:hover { background: #ffedd5; }
.rpg-issue-list article.is-ready p { color: #15803d; }
.rpg-issue-more { padding: 8px 10px; border-radius: 9px; background: #f8fafc; color: #64748b; font-size: 0.66rem; }
.rp-archive-panel { margin: 0 0 16px; border: 1px solid #d8e1e9; border-top: 3px solid #4d6377; background: #fff; }
.rp-archive-panel.is-ready { border-top-color: #16836b; }
.rp-archive-panel.is-archived { border-top-color: #315f87; background: #f8fafc; }
.rpa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 18px 13px; border-bottom: 1px solid #dfe6ed; }
.rpa-head span { display: block; color: #526b82; font-size: .6rem; font-weight: 900; letter-spacing: .14em; }
.rpa-head strong { display: block; margin-top: 4px; color: #172f43; font-size: .92rem; }
.rpa-head p { max-width: 880px; margin: 6px 0 0; color: #687c8e; font-size: .71rem; line-height: 1.55; }
.rpa-head b { padding: 5px 9px; background: #f1f5f9; color: #536779; font-size: .68rem; white-space: nowrap; }
.is-ready .rpa-head b { background: #e8f7f2; color: #0c6d58; }
.is-archived .rpa-head b { background: #eaf1f6; color: #294d69; }
.rpa-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 1px solid #e2e8ee; background: #f7f9fb; }
.rpa-metrics span { padding: 11px 14px; border-right: 1px solid #e2e8ee; color: #687b8c; font-size: .66rem; }
.rpa-metrics span:last-child { border-right: 0; }
.rpa-metrics strong { margin-right: 5px; color: #18364e; font-size: .92rem; }
.rpa-blockers { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #f0dfbd; background: #fff9ec; color: #75551d; }
.rpa-blockers strong { flex: 0 0 auto; font-size: .7rem; }
.rpa-blockers span { font-size: .69rem; line-height: 1.5; }
.rpa-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.rpa-actions span { color: #687b8d; font-size: .69rem; line-height: 1.45; }
.rpa-archive-record { display: grid; gap: 4px; padding: 13px 16px; border-bottom: 1px solid #dfe6ed; }
.rpa-archive-record strong { color: #17364f; font-size: .76rem; }
.rpa-archive-record span { color: #687b8d; font-size: .67rem; }
#report-content.is-project-archived .rp2-config-card { opacity: .72; }
@media (max-width: 768px) { .rpa-head,.rpa-actions,.rpa-blockers { flex-direction: column; align-items: stretch; } .rpa-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.rp-snapshot-card {
  margin: 0 0 16px;
  padding: 15px;
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.rps-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.rps-head span { display: block; color: #4f46e5; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; }
.rps-head strong { display: block; margin-top: 4px; color: #0f172a; font-size: 0.96rem; }
.rps-head p { margin: 5px 0 0; color: #64748b; font-size: 0.75rem; line-height: 1.55; }
.rps-head b { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.7rem; }
.rps-empty { margin-top: 12px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; color: #64748b; font-size: 0.76rem; }
.rps-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rps-meta span { padding: 4px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.66rem; font-weight: 800; }
.rps-list { display: grid; gap: 8px; margin-top: 10px; }
.rps-list article { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.rps-list strong { display: block; color: #0f172a; font-size: 0.76rem; }
.rps-list p { margin: 4px 0 0; color: #64748b; font-size: 0.68rem; line-height: 1.45; }
.rps-more { padding: 8px 10px; border-radius: 10px; background: #f8fafc; color: #64748b; font-size: 0.68rem; }
html[data-theme="dark"] .rp-final-gate,
html[data-theme="dark"] .rpg-grid div,
html[data-theme="dark"] .rpg-role-readiness article { background: #172235; border-color: #314158; }
html[data-theme="dark"] .rp-final-gate.is-draft,
html[data-theme="dark"] .rp-final-gate.is-ok,
html[data-theme="dark"] .rp-final-gate.is-blocked { background: #172235; }
html[data-theme="dark"] .rpg-head strong,
html[data-theme="dark"] .rpg-grid strong,
html[data-theme="dark"] .rpg-role-readiness strong { color: #f1f5f9; }
html[data-theme="dark"] .rpg-head p,
html[data-theme="dark"] .rpg-grid small,
html[data-theme="dark"] .rpg-role-readiness p { color: #9fb0c7; }
html[data-theme="dark"] .rpg-blockers { background: #2c2115; color: #fed7aa; }
html[data-theme="dark"] .rpg-action { background: #172235; border-color: #7c2d12; color: #fed7aa; }
html[data-theme="dark"] .rpg-action strong { color: #fdba74; }
html[data-theme="dark"] .rpg-action span { color: #9fb0c7; }
@media (max-width: 860px) { .rpg-grid,.rpg-role-readiness { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .rpg-grid,.rpg-role-readiness { grid-template-columns: 1fr; } }
html[data-theme="dark"] .rpg-issue-readiness,
html[data-theme="dark"] .rpg-issue-list article,
html[data-theme="dark"] .rpg-issue-more { background: #172235; border-color: #314158; }
html[data-theme="dark"] .rpg-issue-list article.is-missing { background: #2c2115; border-color: #7c2d12; }
html[data-theme="dark"] .rpg-issue-list article.is-ready { background: #10251d; border-color: #166534; }
html[data-theme="dark"] .rpg-issue-readiness summary,
html[data-theme="dark"] .rpg-issue-list strong { color: #f1f5f9; }
html[data-theme="dark"] .rpg-issue-list span,
html[data-theme="dark"] .rpg-issue-more { color: #9fb0c7; }
html[data-theme="dark"] .rpg-open-finding { background: #2c2115; border-color: #7c2d12; color: #fdba74; }
html[data-theme="dark"] .rp-snapshot-card,
html[data-theme="dark"] .rps-empty,
html[data-theme="dark"] .rps-list article,
html[data-theme="dark"] .rps-more { background: #172235; border-color: #314158; }
html[data-theme="dark"] .rps-head strong,
html[data-theme="dark"] .rps-list strong { color: #f1f5f9; }
html[data-theme="dark"] .rps-head p,
html[data-theme="dark"] .rps-empty,
html[data-theme="dark"] .rps-list p,
html[data-theme="dark"] .rps-more { color: #9fb0c7; }
@media (max-width: 768px) {
  .rpg-head { flex-direction: column; }
  .rpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rps-head { flex-direction: column; }
}

/* 两列布局 */
.rp2-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.rp2-config-card, .rp2-summary-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rp2-card-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}
.rp2-card-icon { font-size: 1.1rem; }
.rp2-card-title { font-size: 0.88rem; font-weight: 600; color: #1e293b; }
.rp2-card-body { padding: 16px; }

/* 配置卡片内部 */
.rp2-info-group { margin-bottom: 14px; }
.rp2-info-group:last-child { margin-bottom: 0; }
.rp2-info-label { font-size: 0.72rem; font-weight: 600; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.rp2-info-value { font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.rp2-info-sub { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }
.rp2-tpl-hint { font-size: 0.65rem; color: #94a3b8; font-weight: 400; text-transform: none; }

/* 数据源 chips */
.rp2-ds-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rp2-ds-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: #eef2ff; border: 1px solid #c7d2fe;
  border-radius: 20px; font-size: 0.75rem; color: #4338ca; font-weight: 500;
}

/* 模板上传 */
.rp2-upload-area {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 2px dashed #cbd5e1; border-radius: 6px; cursor: pointer;
  transition: all 0.15s; background: #fafbfc;
}
.rp2-upload-area:hover { border-color: var(--accent); background: #eff6ff; }
.rp2-upload-icon { font-size: 1.1rem; }
.rp2-upload-text { font-size: 0.78rem; color: #64748b; }

/* 按钮组 */
.rp2-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rp2-actions .btn { flex: 1; min-width: 100px; justify-content: center; }
.rp2-gen-btn { font-size: 0.88rem !important; padding: 10px 18px !important; }

/* 严重度条形图 */
.rp2-sev-bars { display: flex; flex-direction: column; gap: 6px; }
.rp2-sev-bar-row { display: flex; align-items: center; gap: 8px; }
.rp2-sev-bar-label { font-size: 0.72rem; width: 32px; color: #64748b; font-weight: 500; }
.rp2-sev-bar-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.rp2-sev-bar-fill { height: 100%; border-radius: 5px; transition: width 0.4s ease; }
.rp2-sev-bar-val { font-size: 0.72rem; font-weight: 600; color: #475569; width: 20px; text-align: right; }

/* 整改状态网格 */
.rp2-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rp2-status-item {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px;
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 6px;
}
.rp2-status-icon { font-size: 0.9rem; }
.rp2-status-num { font-size: 1rem; font-weight: 700; color: #1e293b; }
.rp2-status-label { font-size: 0.62rem; color: #94a3b8; }

/* 穿行测试迷你行 */
.rp2-mini-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; border-bottom: 1px solid #f8fafc; font-size: 0.78rem;
}
.rp2-mini-val { font-weight: 600; color: var(--accent); font-size: 0.75rem; }

.rp2-empty-hint { padding: 24px 16px; text-align: center; }
.rp2-empty-hint p { font-size: 0.82rem; color: #94a3b8; }

/* 报告输出区 */
.rp2-output-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.rp2-output-body { padding: 20px 24px; }

/* 隐藏原始等宽输出，用格式化版 */
.rp-output { display: none !important; }

/* 格式化报告 */
.rp2-formatted { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 0.85rem; color: #1e293b; line-height: 1.7; }
.rp2-report-title {
  text-align: center; font-size: 1.3rem; font-weight: 700;
  color: #1e293b; padding: 16px 0; margin-bottom: 16px;
  border-bottom: 3px solid var(--accent); letter-spacing: 0.1em;
}
.rp2-section { margin-bottom: 20px; }
.rp2-section-title {
  font-size: 1rem; font-weight: 600; color: #4338ca;
  padding: 8px 12px; margin-bottom: 12px;
  background: linear-gradient(90deg, #eef2ff 0%, transparent 100%);
  border-left: 4px solid var(--accent); border-radius: 0 4px 4px 0;
}
.rp2-section-body { padding: 0 12px; }
.rp2-spacer { height: 8px; }

.rp2-field { display: flex; gap: 8px; padding: 4px 0; font-size: 0.82rem; }
.rp2-field-key { font-weight: 600; color: #64748b; min-width: 72px; }
.rp2-field-val { color: #1e293b; }

.rp2-para { margin: 4px 0; font-size: 0.85rem; color: #334155; }
.rp2-list-item { padding: 3px 0 3px 16px; font-size: 0.82rem; color: #475569; position: relative; }
.rp2-list-item::before { content: ""; position: absolute; left: 4px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rp2-list-num { font-weight: 600; color: var(--accent); margin-right: 6px; }

/* 报告中的发现条目 */
.rp2-finding-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #fafbfc; border: 1px solid #f1f5f9; border-radius: 6px;
  margin-bottom: 6px; transition: background 0.1s;
}
.rp2-finding-item:hover { background: #f0f2f5; }
.rp2-finding-num {
  font-size: 0.72rem; font-weight: 700; color: #94a3b8;
  min-width: 20px; text-align: center;
}
.rp2-finding-sev {
  padding: 2px 8px; border-radius: 3px; color: #fff;
  font-size: 0.65rem; font-weight: 600; min-width: 28px; text-align: center;
}
.rp2-finding-sta {
  padding: 2px 8px; border-radius: 3px;
  font-size: 0.65rem; font-weight: 600;
}
.rp2-finding-sta.open { background: #fef3c7; color: #92400e; }
.rp2-finding-sta.in-progress { background: #dbeafe; color: #1e40af; }
.rp2-finding-sta.resolved { background: #dcfce7; color: #166534; }
.rp2-finding-sta.accepted { background: #fef9c3; color: #854d0e; }
.rp2-finding-title { flex: 1; font-size: 0.82rem; font-weight: 500; color: #1e293b; }

/* 报告中的穿行测试循环 */
.rp2-cycle-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
}
.rp2-cycle-label { font-size: 0.82rem; font-weight: 500; min-width: 130px; color: #334155; }
.rp2-cycle-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.rp2-cycle-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.rp2-cycle-val { font-size: 0.75rem; font-weight: 600; color: #64748b; min-width: 36px; text-align: right; }
.rp2-cycle-extra { font-size: 0.72rem; color: #dc2626; }

/* 签署区 */
.rp2-sign-row {
  display: flex; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0; font-size: 0.82rem;
}
.rp2-sign-key { font-weight: 600; color: #64748b; min-width: 80px; }
.rp2-sign-val { color: #94a3b8; }

/* 提示行 */
.rp2-hint {
  margin-top: 16px; padding: 10px 14px;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 6px; font-size: 0.78rem; color: #92400e;
}

@media (max-width: 768px) {
  .rp2-columns { grid-template-columns: 1fr; }
  .rp2-stats { flex-direction: column; }
  .rp2-status-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   历史评估记录 — 专业商务风重设计
   ================================================================ */

/* --- 页面头部 --- */
.hist-page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}
.hist-page-header h2 {
  font-size: 1.3rem; font-weight: 700; color: #0f172a;
  letter-spacing: -0.01em; margin: 0;
}
.hist-page-desc {
  font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px;
}
.hist-clear-btn { flex-shrink: 0; margin-top: 2px; }

/* --- 统计仪表栏 --- */
.hist-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.hist-stat-card {
  background: var(--card-bg); border-radius: 8px;
  padding: 16px 18px; border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.15s;
}
.hist-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}
.hist-stat-label {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}
.hist-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px;
  font-size: 0.72rem;
}
.hist-stat-icon.blue { background: #eff6ff; color: #3b6df0; }
.hist-stat-icon.amber { background: #fffbeb; color: #ca8a04; }
.hist-stat-icon.green { background: #f0fdf4; color: #16a34a; }
.hist-stat-icon.rose { background: #fff1f2; color: #e11d48; }
.hist-stat-value {
  font-size: 1.55rem; font-weight: 700; color: var(--text-primary);
  margin-top: 6px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hist-stat-sub {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 3px;
}

/* --- 卡片列表 --- */
.hist-list { display: flex; flex-direction: column; gap: 10px; }

.hist-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
}
.hist-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: #c7d2e0;
  transform: translateY(-1px);
}
.hist-card-inner {
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: stretch;
}

/* 左侧分数圈 */
.hist-score-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 0;
  border-right: 1px solid var(--border-color);
  background: #fafbfe;
}
.hist-score-ring {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
}
.hist-score-label {
  font-size: 0.6rem; color: var(--text-muted); margin-top: 5px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}

/* 主体信息 */
.hist-body {
  padding: 14px 18px; display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.hist-row-1 {
  display: flex; align-items: center; gap: 10px;
}
.hist-company {
  font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.hist-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; color: #fff;
  letter-spacing: 0.02em; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.hist-row-2 {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hist-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; color: var(--text-secondary);
}
.hist-chip-icon {
  font-size: 0.8rem; opacity: 0.6;
}

/* 风险分布条 */
.hist-risk-bar {
  display: flex; height: 6px; border-radius: 3px; overflow: hidden;
  background: #f1f5f9; margin-top: 2px;
}
.hist-risk-seg {
  height: 100%; transition: width 0.3s ease;
}
.hist-risk-seg.critical { background: #dc2626; }
.hist-risk-seg.high { background: #ea580c; }
.hist-risk-seg.medium { background: #ca8a04; }
.hist-risk-seg.low { background: #16a34a; }

.hist-legend {
  display: flex; gap: 12px; margin-top: 4px;
}
.hist-legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.65rem; color: var(--text-muted);
}
.hist-legend-dot {
  width: 7px; height: 7px; border-radius: 50%;
}

/* 右侧操作列 */
.hist-actions-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 16px;
  border-left: 1px solid var(--border-color);
  background: #fafbfe;
}
.hist-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 6px;
  font-size: 0.76rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.hist-btn-view {
  background: var(--primary); color: #fff;
}
.hist-btn-view:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(59,109,240,0.3);
}
.hist-btn-del {
  background: transparent; color: #94a3b8; border-color: #e2e8f0;
}
.hist-btn-del:hover {
  color: #dc2626; border-color: #fecaca; background: #fef2f2;
}

/* --- 空状态 --- */
.hist-empty {
  text-align: center; padding: 60px 20px;
}
.hist-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  background: #f1f5f9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #94a3b8;
}
.hist-empty-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 6px;
}
.hist-empty-desc {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px;
  line-height: 1.6;
}
.hist-empty-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border-radius: 6px;
  background: var(--primary); color: #fff;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.hist-empty-action:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(59,109,240,0.25);
}

/* --- 时间轴装饰 --- */
.hist-card::before {
  content: '';
  position: absolute; left: 36px; top: 0;
  width: 2px; height: 100%;
  background: transparent;
}

/* --- 卡片入场动画 --- */
@keyframes histCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hist-card {
  animation: histCardIn 0.3s ease both;
}
.hist-card:nth-child(1) { animation-delay: 0s; }
.hist-card:nth-child(2) { animation-delay: 0.04s; }
.hist-card:nth-child(3) { animation-delay: 0.08s; }
.hist-card:nth-child(4) { animation-delay: 0.12s; }
.hist-card:nth-child(5) { animation-delay: 0.16s; }

/* --- 响应式 --- */
@media (max-width: 900px) {
  .hist-stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hist-stats-bar { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hist-card-inner { grid-template-columns: 56px 1fr; }
  .hist-actions-col {
    grid-column: 1 / -1; flex-direction: row;
    border-left: none; border-top: 1px solid var(--border-color);
    padding: 10px 16px;
  }
  .hist-page-header { flex-direction: column; gap: 10px; }
  .hist-score-ring { width: 40px; height: 40px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .hist-stats-bar { grid-template-columns: 1fr; }
  .hist-row-2 { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hist-legend { flex-wrap: wrap; }
}

/* ================================================================
   AI 模型配置页面
   ================================================================ */

/* 状态横幅 */
.ai-status-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px;
  font-size: 0.88rem; font-weight: 600;
}
.ai-connected {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
}
.ai-disconnected {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}
.ai-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.ai-connected .ai-status-dot {
  background: #16a34a; box-shadow: 0 0 6px rgba(22,163,74,0.5);
  animation: aiPulse 2s ease infinite;
}
.ai-disconnected .ai-status-dot { background: #dc2626; }
@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 区块标题 */
.ai-section { margin-bottom: 24px; }
.ai-section-title {
  font-size: 0.92rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

/* 提供商卡片网格 */
.ai-provider-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ai-provider-card {
  padding: 14px 16px; border: 2px solid var(--border-color);
  border-radius: 8px; cursor: pointer;
  background: var(--card-bg); transition: all 0.15s;
}
.ai-provider-card:hover {
  border-color: #93c5fd; background: #f8fbff;
}
.ai-provider-card.active {
  border-color: var(--primary); background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59,109,240,0.12);
}
.ai-provider-name {
  font-size: 0.85rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.ai-provider-desc {
  font-size: 0.7rem; color: var(--text-muted); line-height: 1.4;
}

/* 配置表单 */
.ai-form { display: flex; flex-direction: column; gap: 14px; }
.ai-form-row { display: flex; flex-direction: column; gap: 4px; }
.ai-form-row-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.ai-form-group {
  display: flex; flex-direction: column; gap: 5px;
}
.ai-form-group label {
  font-size: 0.78rem; font-weight: 600; color: #334155;
}
.ai-form-group input[type="text"],
.ai-form-group input[type="password"],
.ai-form-group select,
.ai-form-group textarea {
  padding: 9px 12px; border: 1px solid #dde; border-radius: 6px;
  font-size: 0.85rem; font-family: inherit; color: #334;
  background: #fafbfc; transition: border-color 0.15s, box-shadow 0.15s;
}
.ai-form-group input:focus,
.ai-form-group select:focus,
.ai-form-group textarea:focus {
  outline: none; border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.ai-form-group textarea { resize: vertical; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.8rem; }

/* 模型行 */
.ai-model-row { display: flex; gap: 8px; align-items: center; }
.ai-model-row select { flex: 1; }
.ai-model-custom-input {
  display: none; flex: 1;
  padding: 9px 12px; border: 1px solid #dde; border-radius: 6px;
  font-size: 0.85rem; color: #334; background: #fafbfc;
}

/* 滑块 */
.ai-form-group input[type="range"] {
  width: 100%; height: 6px; -webkit-appearance: none;
  background: #e2e8f0; border-radius: 3px; outline: none;
}
.ai-form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--primary); border-radius: 50%;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ai-range-labels {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; color: var(--text-muted); margin-top: 2px;
}

/* 操作按钮 */
.ai-actions {
  display: flex; gap: 10px; margin: 20px 0;
  padding-top: 16px; border-top: 1px solid var(--border-color);
}
.ai-btn-save { min-width: 120px; }
.ai-btn-test { min-width: 120px; }
.ai-btn-toggle {
  margin-left: auto;
}

/* 测试输出区 */
.ai-test-area {
  background: #f8fafc; border: 1px solid var(--border-color);
  border-radius: 8px; overflow: hidden; margin-bottom: 20px;
}
.ai-test-header {
  padding: 10px 16px; background: #f1f5f9;
  font-size: 0.78rem; font-weight: 600; color: #475569;
  border-bottom: 1px solid var(--border-color);
}
.ai-test-output {
  padding: 14px 16px; min-height: 60px;
  font-size: 0.82rem; color: var(--text-primary); line-height: 1.6;
}
.ai-test-loading { color: var(--text-muted); }
.ai-test-success {
  color: #166534; font-weight: 600; margin-bottom: 8px;
  padding: 6px 10px; background: #f0fdf4; border-radius: 4px;
}
.ai-test-fail {
  color: #991b1b; padding: 8px 12px; background: #fef2f2;
  border-radius: 4px; font-size: 0.8rem;
}
.ai-test-response {
  margin-top: 8px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 6px; font-size: 0.8rem; color: var(--text-primary);
  white-space: pre-wrap; line-height: 1.6;
}
.ai-test-streaming {
  margin-top: 8px; white-space: pre-wrap; line-height: 1.6;
  font-size: 0.82rem;
}
.ai-cursor {
  animation: aiCursorBlink 0.8s step-end infinite;
  color: var(--primary); font-weight: 700;
}
@keyframes aiCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 功能说明区 */
.ai-features { margin-top: 8px; }
.ai-features-desc {
  font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px;
}
.ai-feature-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.ai-feature-item {
  display: flex; gap: 12px; padding: 14px 16px;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; transition: box-shadow 0.15s;
}
.ai-feature-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ai-feature-icon {
  font-size: 1.4rem; flex-shrink: 0; margin-top: 2px;
}
.ai-feature-item strong {
  font-size: 0.85rem; color: var(--text-primary); display: block;
  margin-bottom: 3px;
}
.ai-feature-item p {
  font-size: 0.74rem; color: var(--text-muted); margin: 0; line-height: 1.5;
}

/* 错误提示 */
.ai-error {
  padding: 20px; text-align: center;
  color: #991b1b; font-size: 0.88rem;
  background: #fef2f2; border-radius: 8px;
}

/* 组织 AI 服务与本机调试分层 */
.ai-page { color: var(--text-primary); }
.ai-organization {
  overflow: hidden;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  background: #fff;
}
.ai-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.ai-service-kicker {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-size: .72rem;
  font-weight: 800;
}
.ai-service-head h3 {
  margin: 0;
  color: #10213b;
  font-size: 1.25rem;
  line-height: 1.3;
}
.ai-service-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #5b6b82;
  font-size: .86rem;
  line-height: 1.65;
}
.ai-service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: .75rem;
  white-space: nowrap;
}
.ai-service-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.ai-service-status.is-ready { border-color: #a7dbc2; background: #f0fdf7; color: #08714b; }
.ai-service-status.is-ready i { background: #14996b; }
.ai-service-status.is-incomplete { border-color: #f2cf95; background: #fff9ed; color: #8c5506; }
.ai-service-status.is-incomplete i { background: #d7901e; }
.ai-service-status.is-error { border-color: #efb3b3; background: #fff4f4; color: #a32929; }
.ai-service-status.is-error i { background: #d64545; }
.ai-service-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.ai-service-facts > div {
  min-width: 0;
  padding: 16px 20px;
  border-right: 1px solid #e2e8f0;
}
.ai-service-facts > div:last-child { border-right: 0; }
.ai-service-facts span,
.ai-service-facts strong { display: block; }
.ai-service-facts span { color: #75859a; font-size: .7rem; }
.ai-service-facts strong {
  overflow: hidden;
  margin-top: 5px;
  color: #182b47;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-org-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 24px 22px;
  padding: 14px 16px;
  border-left: 3px solid #3972d5;
  background: #f2f6fc;
}
.ai-org-next strong { color: #1e3a5f; font-size: .8rem; }
.ai-org-next p { margin: 4px 0 0; color: #607087; font-size: .76rem; line-height: 1.55; }
.ai-org-next .btn { flex: 0 0 auto; white-space: nowrap; }
.ai-secure-wizard {
  margin: 0 24px 22px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}
.ai-secure-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid #dce6f2;
  background: #eef5ff;
}
.ai-secure-wizard-head div > span {
  display: block;
  margin-bottom: 4px;
  color: #2563b8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.ai-secure-wizard-head strong { color: #18385f; font-size: .9rem; }
.ai-secure-wizard-head p { margin: 5px 0 0; color: #5e7189; font-size: .75rem; line-height: 1.55; }
.ai-security-mark {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #9fc7ef;
  border-radius: 999px;
  background: #fff;
  color: #1e5d9b;
  font-size: .68rem;
  font-weight: 800;
}
.ai-secure-steps { display: grid; grid-template-columns: 1.1fr 1.35fr .9fr; }
.ai-secure-steps > section {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #dce6f2;
}
.ai-secure-steps > section:last-child { border-right: 0; }
.ai-secure-steps > section > b {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #245fa8;
  color: #fff;
  font-size: .7rem;
}
.ai-secure-steps > section > div { min-width: 0; width: 100%; }
.ai-secure-steps strong { color: #213a57; font-size: .78rem; }
.ai-secure-steps p { margin: 5px 0 10px; color: #65768b; font-size: .72rem; line-height: 1.55; }
.ai-secure-steps small { display: block; margin-top: 7px; color: #74869b; font-size: .67rem; line-height: 1.5; }
.ai-command {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #cddbeb;
  border-radius: 8px;
  background: #17283d;
  overflow: hidden;
}
.ai-command code {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  color: #edf6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .7rem;
  white-space: nowrap;
}
.ai-command button {
  align-self: stretch;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #38516d;
  background: #223b57;
  color: #d9eaff;
  cursor: pointer;
  font-size: .67rem;
}
.ai-gateway-connect { display: flex; gap: 8px; }
.ai-gateway-connect input {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd8e7;
  border-radius: 7px;
  background: #fff;
  color: #233a55;
  font-size: .72rem;
}
.ai-gateway-connect .btn { flex: 0 0 auto; min-height: 34px; padding: 0 12px; white-space: nowrap; }
.ai-gateway-result {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #eef2f6;
  color: #65758a;
  font-size: .69rem;
  line-height: 1.45;
}
.ai-gateway-result.is-checking { background: #eef5ff; color: #2861a3; }
.ai-gateway-result.is-success { background: #edf9f3; color: #08714b; }
.ai-gateway-result.is-error { background: #fff1f1; color: #a32929; }
.ai-gateway-clear {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #55718f;
  cursor: pointer;
  font-size: .67rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-gateway-clear:disabled { cursor: default; opacity: .45; text-decoration: none; }
.ai-secure-steps #ai-local-gateway-login { width: 100%; margin-top: 2px; }
.ai-platform-controls { padding: 0 24px 22px; }
.ai-inline-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #efb3b3;
  border-radius: 8px;
  background: #fff4f4;
  color: #a32929;
  font-size: .78rem;
}
.ai-consent {
  margin-top: 4px;
  padding: 13px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 9px;
  background: #f8fafc;
}
.ai-consent label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.ai-consent input { margin-top: 3px; }
.ai-consent span { color: #3c4f68; font-size: .78rem; line-height: 1.55; }
.ai-consent span strong { display: block; margin-bottom: 2px; color: #1d334f; }
.ai-consent p { margin: 7px 0 0 25px; color: #728197; font-size: .72rem; line-height: 1.5; }
.ai-local-debug {
  margin-top: 16px;
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  background: #fbfcfe;
  overflow: hidden;
}
.ai-local-debug > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}
.ai-local-debug > summary::-webkit-details-marker { display: none; }
.ai-local-debug > summary div > span {
  display: inline-block;
  margin-bottom: 4px;
  color: #9a5b0a;
  font-size: .69rem;
  font-weight: 800;
}
.ai-local-debug > summary strong { display: block; color: #243850; font-size: .87rem; }
.ai-local-debug > summary p { margin: 4px 0 0; color: #6e7d90; font-size: .75rem; line-height: 1.5; }
.ai-local-debug > summary > b { color: #2563eb; font-size: .74rem; }
.ai-local-debug:not([open]) > .ai-local-debug-body { display: none; }
.ai-local-debug[open] > summary { border-bottom: 1px solid #d7e0eb; background: #f6f8fb; }
.ai-local-debug[open] > summary > b { font-size: 0; }
.ai-local-debug[open] > summary > b::after { content: '收起'; font-size: .74rem; }
.ai-local-debug-body { padding: 20px; }
.ai-local-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 3px solid #d58a18;
  background: #fff9ed;
}
.ai-local-warning strong { color: #7b4a07; font-size: .78rem; }
.ai-local-warning p { margin: 4px 0 0; color: #8a641f; font-size: .74rem; line-height: 1.55; }
.ai-form-group small { color: #738297; font-size: .7rem; line-height: 1.45; }
.ai-advanced > summary span { margin-left: 5px; color: #8593a5; font-size: .7rem; font-weight: 500; }
.ai-test-area[hidden] { display: none; }
html[data-theme="dark"] .ai-organization,
html[data-theme="dark"] .ai-local-debug { background: #172235; border-color: #34445a; }
html[data-theme="dark"] .ai-service-head,
html[data-theme="dark"] .ai-service-facts,
html[data-theme="dark"] .ai-local-debug[open] > summary { border-color: #34445a; }
html[data-theme="dark"] .ai-service-head h3,
html[data-theme="dark"] .ai-service-facts strong,
html[data-theme="dark"] .ai-local-debug > summary strong { color: #edf3fb; }
html[data-theme="dark"] .ai-service-head p,
html[data-theme="dark"] .ai-local-debug > summary p { color: #a4b2c5; }
html[data-theme="dark"] .ai-service-facts { background: #1a2940; }
html[data-theme="dark"] .ai-service-facts > div { border-color: #34445a; }
html[data-theme="dark"] .ai-org-next { background: #1a2d47; }
html[data-theme="dark"] .ai-org-next strong { color: #dbeafe; }
html[data-theme="dark"] .ai-org-next p { color: #a8b7ca; }
html[data-theme="dark"] .ai-secure-wizard { background: #17263a; border-color: #344b66; }
html[data-theme="dark"] .ai-secure-wizard-head { background: #1a2d47; border-color: #344b66; }
html[data-theme="dark"] .ai-secure-wizard-head strong,
html[data-theme="dark"] .ai-secure-steps strong { color: #e6f0fb; }
html[data-theme="dark"] .ai-secure-wizard-head p,
html[data-theme="dark"] .ai-secure-steps p,
html[data-theme="dark"] .ai-secure-steps small { color: #a8b7ca; }
html[data-theme="dark"] .ai-secure-steps > section { border-color: #344b66; }
html[data-theme="dark"] .ai-gateway-connect input { background: #142238; border-color: #3c5069; color: #e5edf7; }
html[data-theme="dark"] .ai-consent,
html[data-theme="dark"] .ai-advanced { background: #1a2940; border-color: #34445a; }
html[data-theme="dark"] .ai-consent span strong,
html[data-theme="dark"] .ai-consent span { color: #d7e1ef; }
html[data-theme="dark"] .ai-consent p,
html[data-theme="dark"] .ai-form-group small { color: #98a8bd; }

@media (max-width: 900px) {
  .ai-service-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-service-facts > div:nth-child(2) { border-right: 0; }
  .ai-service-facts > div:nth-child(-n+2) { border-bottom: 1px solid #e2e8f0; }
  .ai-secure-steps { grid-template-columns: 1fr; }
  .ai-secure-steps > section { border-right: 0; border-bottom: 1px solid #dce6f2; }
  .ai-secure-steps > section:last-child { border-bottom: 0; }
}

/* 响应式 */
@media (max-width: 900px) {
  .ai-provider-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ai-provider-grid { grid-template-columns: 1fr; }
  .ai-form-row-2col { grid-template-columns: 1fr; }
  .ai-actions { flex-wrap: wrap; }
  .ai-btn-toggle { margin-left: 0; }
  .ai-service-head { flex-direction: column; padding: 18px; }
  .ai-service-status { white-space: normal; }
  .ai-service-facts { grid-template-columns: 1fr; }
  .ai-service-facts > div,
  .ai-service-facts > div:nth-child(2) { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .ai-service-facts > div:last-child { border-bottom: 0; }
  .ai-org-next { align-items: stretch; flex-direction: column; margin: 0 18px 18px; }
  .ai-org-next .btn { width: 100%; }
  .ai-secure-wizard { margin: 0 18px 18px; }
  .ai-secure-wizard-head { flex-direction: column; }
  .ai-gateway-connect { flex-direction: column; }
  .ai-gateway-connect .btn { width: 100%; }
  .ai-platform-controls { padding: 0 18px 18px; }
  .ai-local-debug > summary { align-items: flex-start; padding: 16px 18px; }
  .ai-local-debug-body { padding: 18px; }
}

/* 合同审核 — 功能介绍 */
.cr-intro-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbEB 100%);
  border: 1px solid #fed7aa; border-radius: 10px;
  padding: 18px 22px; margin-bottom: 16px;
}
.cr-intro-lead {
  font-size: 0.88rem; color: #9a3412; font-weight: 500;
  line-height: 1.55; margin-bottom: 12px;
}
.cr-intro-items {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cr-intro-item {
  font-size: 0.76rem; color: #c2410c; background: #fff;
  padding: 4px 12px; border-radius: 4px; border: 1px solid #fdba74;
}
.cr-action-btns {
  display: flex; gap: 10px; margin-top: 10px;
}

/* ===== 内控测试 IC Testing ===== */
/* 模式切换标签 */
/* 内控测试 — 功能介绍 */
.ic-intro-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 20px 24px; margin-bottom: 18px;
}
.ic-intro-lead {
  font-size: 0.9rem; color: #1e3a5f; font-weight: 500;
  line-height: 1.6; margin-bottom: 16px;
}
.ic-intro-cols {
  display: flex; gap: 20px;
}
.ic-intro-col {
  flex: 1; background: #fff; border: 1px solid #dbeafe;
  border-radius: 8px; padding: 16px;
}
.ic-intro-col h4 {
  font-size: 0.88rem; font-weight: 700; color: #1e40af;
  margin-bottom: 8px;
}
.ic-intro-col p {
  font-size: 0.8rem; color: #475569; line-height: 1.55; margin-bottom: 10px;
}
.ic-intro-col ul {
  margin: 0; padding-left: 18px; list-style: disc;
}
.ic-intro-col li {
  font-size: 0.78rem; color: #64748b; line-height: 1.6; margin-bottom: 2px;
}
@media(max-width:768px){
  .ic-intro-cols { flex-direction: column; gap: 12px; }
}

/* 上传后自动检测进度提示 */
.ic-upload-progress {
  text-align: center; padding: 20px; margin: 12px 0;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
}
.ic-upload-progress .ic-progress-text {
  font-size: 0.88rem; color: #166534; font-weight: 500;
}
.ic-upload-progress .ic-progress-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid #bbf7d0; border-top-color: #16a34a;
  border-radius: 50%; animation: ic-spin 0.8s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes ic-spin { to { transform: rotate(360deg); } }

.ic-mode-tabs {
  display: flex; gap: 0; margin-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}
.ic-mode-tab {
  padding: 10px 20px; border: none; background: none;
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.15s;
}
.ic-mode-tab:hover { color: var(--text-primary); }
.ic-mode-tab.active {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* 文件类型引导 */
.ic-file-guide {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 8px; padding: 16px; margin-bottom: 16px;
}
.ic-file-guide-title {
  font-size: 0.88rem; font-weight: 600; color: #1e40af;
  margin-bottom: 10px;
}
.ic-file-guide-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px;
}
.ic-file-guide-item {
  font-size: 0.78rem; color: #1e3a5f; background: #fff;
  padding: 4px 10px; border-radius: 4px; border: 1px solid #dbeafe;
}
.ic-file-guide-hint {
  font-size: 0.72rem; color: #64748b;
}

/* 上传区 */
.ic-upload { margin-bottom: 16px; }
.ic-upload-zone {
  border: 2px dashed #cbd5e1; border-radius: 8px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: all 0.15s; background: #fafbfc;
}
.ic-upload-zone:hover, .ic-upload-zone.dragover {
  border-color: var(--primary); background: #eff6ff;
}
.ic-upload-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.ic-upload-zone p { font-size: 0.85rem; color: var(--text-secondary); margin: 4px 0; }
.ic-upload-hint { font-size: 0.72rem !important; color: var(--text-muted) !important; }

/* 操作按钮组 */
.ic-action-btns {
  display: flex; gap: 10px; margin-top: 12px;
}

/* 统计栏 */
.ic-summary-bar {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 16px; padding: 16px;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px;
}
.ic-summary-stats {
  display: flex; gap: 12px; flex: 1;
}
.ic-stat-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 16px; border-radius: 6px; min-width: 70px;
}
.ic-stat-critical { background: #fef2f2; }
.ic-stat-high { background: #fff7ed; }
.ic-stat-medium { background: #fffbeb; }
.ic-stat-low { background: #f0fdf4; }
.ic-stat-num {
  font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.ic-stat-critical .ic-stat-num { color: #dc2626; }
.ic-stat-high .ic-stat-num { color: #ea580c; }
.ic-stat-medium .ic-stat-num { color: #ca8a04; }
.ic-stat-low .ic-stat-num { color: #16a34a; }
.ic-stat-label {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 4px;
}
.ic-overall {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 20px; border-left: 2px solid var(--border-color);
}
.ic-overall-label {
  font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px;
}
.ic-overall-badge {
  padding: 6px 16px; border-radius: 6px; color: #fff;
  font-size: 1rem; font-weight: 700;
}

/* 结论区 */
.ic-conclusion-box {
  padding: 12px 16px; background: #f8fafc;
  border: 1px solid var(--border-color); border-radius: 6px;
  margin-bottom: 16px;
}
.ic-conclusion-text {
  font-size: 0.85rem; color: var(--text-primary);
  line-height: 1.6; margin: 0;
}

/* COSO 检查卡片 */
.ic-coso-checklist { margin-bottom: 16px; }
.ic-coso-checklist h3 {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border-color);
}
.ic-coso-card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; margin-bottom: 10px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ic-coso-card.detected.critical { border-left: 4px solid #dc2626; }
.ic-coso-card.detected.high { border-left: 4px solid #ea580c; }
.ic-coso-card.detected.medium { border-left: 4px solid #ca8a04; }
.ic-coso-card.detected.low { border-left: 4px solid #16a34a; }
.ic-coso-card.clean { border-left: 4px solid #16a34a; }
.ic-coso-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--bg-hover);
  border-bottom: 1px solid var(--border-color);
}
.ic-coso-card.clean .ic-coso-header { background: #f0fdf4; }
.ic-coso-card.detected .ic-coso-header { background: #fef2f2; }
.ic-coso-icon { font-size: 1.1rem; min-width: 20px; text-align: center; }
.ic-coso-element { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.ic-coso-sev {
  padding: 3px 10px; border-radius: 4px; color: #fff;
  font-size: 0.68rem; font-weight: 600;
}
.ic-coso-score, .ic-coso-status {
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 600;
}
.ic-coso-score { background: #fef2f2; color: #dc2626; }
.ic-coso-status.clean { background: #f0fdf4; color: #16a34a; }
.ic-coso-body { padding: 14px 16px; }
.ic-coso-desc {
  font-size: 0.82rem; color: var(--text-secondary);
  margin-bottom: 6px; line-height: 1.5;
}
.ic-coso-conclusion {
  font-size: 0.82rem; color: var(--text-primary);
  margin-bottom: 8px; line-height: 1.5;
}
.ic-coso-rec {
  font-size: 0.8rem; color: #059669; margin-bottom: 6px; line-height: 1.5;
}
.ic-coso-ref {
  font-size: 0.75rem; color: var(--accent); margin-bottom: 6px;
}
.ic-coso-excerpt {
  font-size: 0.78rem; color: #4338ca; background: #eff6ff;
  padding: 10px 12px; border-radius: 4px; margin: 8px 0;
  max-height: 100px; overflow-y: auto; line-height: 1.5;
}

/* 缺失控制区 */
.ic-missing-panel {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 16px; margin-bottom: 16px;
}
.ic-missing-panel h3 {
  font-size: 0.9rem; font-weight: 600; color: #92400e;
  margin-bottom: 10px; padding-bottom: 0; border-bottom: none;
}
.ic-missing-list { margin-bottom: 8px; }
.ic-missing-item {
  font-size: 0.82rem; color: #78350f; padding: 4px 0;
}
.ic-missing-hint {
  font-size: 0.75rem; color: #92400e; margin: 0;
}

/* 导出栏 */
.ic-export-bar {
  display: flex; gap: 10px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border-color);
}

/* AI 分析输出 */
.ic-ai-loading, .ic-ai-error, .ic-ai-result, .ic-ai-stream {
  margin-top: 16px; padding: 16px;
  background: #f8fafc; border: 1px solid var(--border-color);
  border-radius: 8px; font-size: 0.85rem; line-height: 1.7;
  white-space: pre-wrap;
}
.ic-ai-loading { color: var(--text-muted); text-align: center; }
.ic-ai-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.ic-ai-result { color: var(--text-primary); }
.ic-ai-stream { color: var(--text-primary); }
.ic-ai-cursor {
  animation: aiCursorBlink 0.8s step-end infinite;
  color: var(--primary); font-weight: 700;
}

/* ===== 手工测试工作底稿 ===== */
/* 业务循环标签 */
.ic-cycle-tabs {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.ic-cycle-tab {
  padding: 8px 16px; border: 2px solid var(--border-color);
  border-radius: 6px; background: var(--card-bg);
  font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.ic-cycle-tab:hover { border-color: var(--primary); color: var(--primary); }
.ic-cycle-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* 矩阵表头 */
.ic-matrix-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.ic-matrix-header h3 {
  font-size: 0.95rem; font-weight: 600; margin: 0;
  padding-bottom: 0; border-bottom: none;
}
.ic-matrix-actions { display: flex; gap: 8px; }

/* 测试矩阵表格 */
.ic-test-matrix {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ic-test-matrix th {
  background: #f1f5f9; padding: 10px 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-primary);
  text-align: left; border-bottom: 2px solid var(--border-color);
}
.ic-test-matrix td {
  padding: 8px 12px; font-size: 0.8rem; color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.ic-test-matrix tr:last-child td { border-bottom: none; }
.ic-test-matrix tr:hover { background: #f8fafc; }
.ic-ctrl-name { font-weight: 500; }
.ic-ctrl-method { color: var(--text-secondary); font-size: 0.75rem; }

/* 输入框 */
.ic-input {
  width: 100%; padding: 4px 8px;
  border: 1px solid var(--border-color); border-radius: 4px;
  font-size: 0.78rem; font-family: inherit;
  transition: border-color 0.15s;
}
.ic-input:focus {
  outline: none; border-color: var(--primary);
}
.ic-sample-size, .ic-deviation { text-align: center; }

/* 结论下拉框 */
.ic-conclusion { cursor: pointer; }
.ic-conc-有效 { background: #f0fdf4; border-color: #86efac; color: #166534; font-weight: 600; }
.ic-conc-无效 { background: #fef2f2; border-color: #fca5a5; color: #991b1b; font-weight: 600; }
.ic-conc-不适用 { background: #f5f5f5; border-color: #d4d4d8; color: #71717a; }

/* 备注输入 */
.ic-notes { font-size: 0.72rem; }

/* 响应式 */
@media (max-width: 900px) {
  .ic-summary-bar { flex-direction: column; align-items: stretch; }
  .ic-overall { border-left: none; border-top: 2px solid var(--border-color); padding-top: 12px; }
}
@media (max-width: 768px) {
  .ic-summary-stats { flex-wrap: wrap; }
  .ic-mode-tab { padding: 8px 14px; font-size: 0.82rem; }
  .ic-test-matrix { font-size: 0.72rem; }
  .ic-test-matrix th, .ic-test-matrix td { padding: 6px 8px; }
  .ic-cycle-tabs { gap: 6px; }
  .ic-cycle-tab { padding: 6px 12px; font-size: 0.75rem; }
}

/* ===== 知识库问答 — 增强样式 ===== */
/* 模式指示栏 */
.qa-mode-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
}
.qa-mode-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 0.72rem; font-weight: 600;
}
.qa-mode-ai {
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: #4f46e5;
}
.qa-mode-local {
  background: #f0fdf4; color: #166534;
}
.qa-mode-desc {
  flex: 1; color: var(--text-muted); font-size: 0.72rem;
}
.qa-mode-desc a { font-weight: 500; }
.qa-clear-btn {
  padding: 3px 10px; border: 1px solid var(--border-color);
  border-radius: 4px; background: #fff; color: var(--text-muted);
  font-size: 0.68rem; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.qa-clear-btn:hover {
  background: #fef2f2; border-color: #fca5a5; color: #dc2626;
}

/* 来源引用卡片 */
.qa-source-cards {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.qa-source-card {
  display: grid; grid-template-columns:minmax(0,1fr) auto; align-items: start; gap: 7px;
  padding: 8px 10px; background: #eff6ff;
  border: 1px solid #bfdbfe; border-radius: 4px;
  font-size: 0.68rem; color: #1e40af;
  width: min(100%, 520px); max-width: 520px; cursor: pointer; text-align: left;
}
.qa-source-card:hover { background: #dbeafe; border-color: #60a5fa; }
.qa-source-card:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.qa-source-card small { flex: 0 0 auto; color: #475569; font-size: 0.66rem; font-weight: 800; }
.qa-source-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qa-source-main{display:grid;gap:3px;min-width:0}
.qa-source-main q{display:block;color:#334155;font-size:12px;line-height:1.45;text-decoration:none;quotes:none;white-space:normal}
.qa-source-location{color:#1d4ed8!important;font-size:11px!important;font-weight:800!important}
.qa-source-level{align-self:start}

/* 流式文本 */
.qa-streaming-text {
  white-space: pre-wrap; word-break: break-word;
}

/* 对话清空后的过渡效果 */
.qa-message {
  animation: qaMsgFadeIn 0.2s ease-out;
}
@keyframes qaMsgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 768px) {
  .qa-mode-bar { flex-wrap: wrap; gap: 6px; }
  .qa-mode-desc { flex-basis: 100%; order: 3; }
  .qa-source-cards { flex-direction: column; }
  .qa-source-card { max-width: 100%; }
}

/* ====== Phase 4: 审计项目追踪中心 ====== */

/* 统计栏 */
.pt-stats-bar {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.pt-overview-board {
  display:grid;
  gap:14px;
  margin-bottom:14px;
  padding:18px;
  border:1px solid #d9e6f4;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 62%,#f4fff9 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.pt-overview-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.pt-overview-head span {
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:950;
}
.pt-overview-head strong {
  display:block;
  margin-top:5px;
  color:#0f172a;
  font-size:24px;
  line-height:1.25;
}
.pt-overview-head small {
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:14px;
}
.pt-overview-head .btn { flex:0 0 auto; min-height:38px; }
.pt-overview-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.pt-stat-card {
  flex: 1; min-width: 120px; background: var(--card-bg);
  border-radius: var(--card-radius); padding: 14px 16px;
  box-shadow: var(--card-shadow); text-align: center;
}
.pt-overview-board .pt-stat-card {
  min-width:0;
  padding:16px;
  border:1px solid #dfe7f1;
  box-shadow:none;
  text-align:left;
}
.pt-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.pt-stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.pt-stat-active { color: var(--primary); }
.pt-stat-done { color: var(--success); }
.pt-stat-warn { color:#d97706; }
.pt-stat-review { color:#7c3aed; }
.pt-stat-plan .pt-stat-value { color:#0f766e; }
.pt-overview-board .pt-stat-label { font-size:14px; font-weight:900; color:#475569; }
.pt-overview-board .pt-stat-value { margin-top:6px; font-size:30px; line-height:1; }
.pt-overview-board .pt-stat-note { margin-top:8px; color:#64748b; font-size:13px; }

/* 年度计划是项目中心的默认项目来源。 */
.pt-plan-source { margin:0 0 18px; overflow:hidden; border:1px solid #cfdced; border-top:3px solid #315f87; border-radius:10px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.04); }
.pt-plan-source-compact { margin:0 0 14px; border-top-width:1px; border-radius:16px; box-shadow:0 8px 22px rgba(15,23,42,.045); }
.pt-plan-source-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px 15px; border-bottom:1px solid #e2e8f0; background:linear-gradient(110deg,#f8fbff,#fff); }
.pt-plan-source-compact .pt-plan-source-head { align-items:center; padding:14px 16px; }
.pt-plan-source-head>div { min-width:0; }
.pt-plan-source-head span { display:block; margin-bottom:4px; color:#47739e; font-size:13px; font-weight:850; }
.pt-plan-source-head h3 { margin:0; color:#172033; font-size:20px; }
.pt-plan-source-head p { max-width:900px; margin:7px 0 0; color:#64748b; font-size:14px; line-height:1.6; }
.pt-plan-source-actions { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.pt-plan-source-actions b { padding:6px 10px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:13px; white-space:nowrap; }
.pt-plan-source-empty { display:grid; gap:5px; padding:18px 20px; color:#64748b; }
.pt-plan-source-compact .pt-plan-source-empty { padding:12px 16px; }
.pt-plan-source-empty strong { color:#334155; font-size:15px; }
.pt-plan-projects { display:grid; gap:0; }
.pt-plan-project { display:grid; grid-template-columns:minmax(260px,1.2fr) minmax(220px,1fr) auto; gap:18px; align-items:center; min-height:82px; padding:14px 20px; border-bottom:1px solid #e8edf3; }
.pt-plan-project:last-child { border-bottom:0; }
.pt-plan-project:hover { background:#f8fbff; }
.pt-plan-project-main,.pt-plan-project-basis { display:grid; gap:4px; min-width:0; }
.pt-plan-project-main>span { color:#2563eb; font-size:13px; font-weight:800; }
.pt-plan-project-main strong { overflow:hidden; color:#172033; font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.pt-plan-project-main small,.pt-plan-project-basis small { color:#64748b; font-size:13px; }
.pt-plan-project-basis span { color:#334155; font-size:14px; line-height:1.45; }
.pt-card-source { display:inline-flex; padding:3px 7px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.pt-card-source.is-plan { background:#eff6ff; color:#1d4ed8; }
.pt-card-source.is-exception { background:#fff7ed; color:#c2410c; }

/* 项目卡片网格 */
.pt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

/* Project center command desk: portfolio overview + selected project focus */
.pt-center-layout { display:block; }
.pt-portfolio-shell {
  display:grid;
  grid-template-columns:minmax(340px,.86fr) minmax(560px,1.6fr);
  gap:18px;
  align-items:start;
}
.pt-portfolio-list,.pt-command-center {
  min-width:0;
  border:1px solid #dbe5f1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.05);
}
.pt-portfolio-list { overflow:hidden; }
.pt-command-center { padding:18px; }
.pt-portfolio-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 12px;
  border-bottom:1px solid #e6edf5;
  background:linear-gradient(135deg,#f8fbff,#fff);
}
.pt-portfolio-head span,.pt-command-header span,.pt-focus-panel span,.pt-secondary-queue span {
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:900;
}
.pt-portfolio-head strong {
  display:block;
  margin-top:3px;
  color:#172033;
  font-size:18px;
}
.pt-portfolio-metrics {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  padding:12px 14px;
  border-bottom:1px solid #eef2f7;
}
.pt-filter-pill {
  display:grid;
  gap:2px;
  min-width:0;
  padding:9px 6px;
  border:1px solid #e1e8f2;
  border-radius:12px;
  background:#f8fafc;
  color:#475569;
  text-align:center;
  cursor:pointer;
}
.pt-filter-pill b { color:#172033; font-size:18px; line-height:1; }
.pt-filter-pill span { color:#64748b; font-size:12px; font-weight:800; }
.pt-filter-pill:hover,.pt-filter-pill.active { border-color:#93c5fd; background:#eff6ff; }
.pt-filter-pill.active b,.pt-filter-pill.active span { color:#1d4ed8; }
.pt-project-search {
  display:grid;
  gap:6px;
  padding:0 14px 12px;
  border-bottom:1px solid #eef2f7;
}
.pt-project-search span { color:#64748b; font-size:13px; font-weight:850; }
.pt-project-search input {
  width:100%;
  min-height:38px;
  padding:8px 11px;
  border:1px solid #d6e0ec;
  border-radius:10px;
  background:#fff;
  color:#172033;
  font-size:15px;
}
.pt-project-search input:focus { outline:2px solid rgba(37,99,235,.18); border-color:#60a5fa; }
.pt-project-rows { max-height:720px; overflow:auto; padding:8px; }
.pt-project-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 12px;
  width:100%;
  margin:0 0 8px;
  padding:12px;
  border:1px solid #e2e8f0;
  border-left:4px solid #94a3b8;
  border-radius:13px;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.pt-project-row:hover { border-color:#93c5fd; box-shadow:0 8px 18px rgba(37,99,235,.08); transform:translateY(-1px); }
.pt-project-row.is-selected { border-color:#2563eb; border-left-color:#2563eb; background:#f8fbff; }
.pt-project-row.is-attention { border-left-color:#d97706; }
.pt-project-row.is-review { border-left-color:#7c3aed; }
.pt-project-row.is-archive { border-left-color:#0f766e; }
.pt-project-row.is-archived { border-left-color:#16a34a; opacity:.82; }
.pt-project-row-main,.pt-project-row-focus { display:grid; gap:3px; min-width:0; }
.pt-project-row-main strong {
  overflow:hidden;
  color:#172033;
  font-size:15px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pt-project-row-main small,.pt-project-row-focus small { overflow:hidden; color:#64748b; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.pt-project-row-meta {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:5px;
}
.pt-project-row-meta em {
  padding:3px 7px;
  border-radius:999px;
  background:#eef2ff;
  color:#334155;
  font-size:12px;
  font-style:normal;
  font-weight:800;
}
.pt-project-row-focus { grid-column:1 / -1; }
.pt-project-row-focus b { color:#334155; font-size:13px; font-weight:900; }
.pt-project-row-progress {
  position:relative;
  grid-column:1 / -1;
  display:block;
  min-height:18px;
  padding-right:42px;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.pt-project-row-progress::before {
  content:'';
  position:absolute;
  left:0;
  right:42px;
  top:6px;
  height:7px;
  border-radius:999px;
  background:#e2e8f0;
}
.pt-project-row-progress i {
  position:absolute;
  left:0;
  top:6px;
  z-index:1;
  display:block;
  height:7px;
  max-width:calc(100% - 42px);
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#14b8a6);
}
.pt-project-row-progress b { position:absolute; top:0; right:0; }
.pt-project-row-empty { padding:28px 16px; color:#64748b; text-align:center; }
.pt-command-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:0 0 14px;
  border-bottom:1px solid #e6edf5;
}
.pt-command-header h3 { margin:4px 0 3px; color:#0f172a; font-size:24px; line-height:1.2; }
.pt-command-header p { margin:0; color:#64748b; font-size:15px; }
.pt-command-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.pt-command-tags>span:not(.pt-card-source) {
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:13px;
  font-weight:850;
}
.pt-focus-panel {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin:16px 0;
  padding:18px;
  border:1px solid #bfdbfe;
  border-left:5px solid #2563eb;
  border-radius:16px;
  background:linear-gradient(135deg,#eff6ff,#fff);
}
.pt-focus-panel.is-review { border-color:#ddd6fe; border-left-color:#7c3aed; background:linear-gradient(135deg,#f5f3ff,#fff); }
.pt-focus-panel.is-warn { border-color:#fed7aa; border-left-color:#d97706; background:linear-gradient(135deg,#fff7ed,#fff); }
.pt-focus-panel.is-close { border-color:#99f6e4; border-left-color:#0f766e; background:linear-gradient(135deg,#f0fdfa,#fff); }
.pt-focus-panel.is-done { border-color:#bbf7d0; border-left-color:#16a34a; background:linear-gradient(135deg,#f0fdf4,#fff); }
.pt-focus-panel h4 { margin:5px 0 5px; color:#0f172a; font-size:22px; line-height:1.25; }
.pt-focus-panel p { margin:0; color:#475569; font-size:15px; line-height:1.55; }
.pt-focus-panel .btn { min-height:42px; padding-inline:20px; font-size:15px; font-weight:900; }
.pt-health-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.pt-health-grid article {
  display:grid;
  gap:4px;
  min-width:0;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fff;
}
.pt-health-grid span { color:#64748b; font-size:13px; font-weight:850; }
.pt-health-grid strong { color:#0f172a; font-size:22px; line-height:1; }
.pt-health-grid small { overflow:hidden; color:#64748b; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.pt-stage-strip {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.pt-stage-strip article {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:4px 8px;
  align-items:center;
  padding:11px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#f8fafc;
}
.pt-stage-strip b {
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:#e2e8f0;
  color:#475569;
  font-size:13px;
}
.pt-stage-strip span { overflow:hidden; color:#172033; font-size:15px; font-weight:900; text-overflow:ellipsis; white-space:nowrap; }
.pt-stage-strip small { color:#64748b; font-size:13px; }
.pt-stage-strip article.is-done { border-color:#bbf7d0; background:#f0fdf4; }
.pt-stage-strip article.is-done b { background:#16a34a; color:#fff; }
.pt-stage-strip article.is-in-progress { border-color:#bfdbfe; background:#eff6ff; }
.pt-stage-strip article.is-in-progress b { background:#2563eb; color:#fff; }
.pt-secondary-queue {
  margin:0 0 14px;
  padding:13px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
}
.pt-secondary-queue>div:first-child {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.pt-secondary-queue strong { color:#334155; font-size:14px; }
.pt-secondary-queue>div:last-child { display:grid; gap:8px; }
.pt-mini-work {
  display:grid;
  gap:3px;
  width:100%;
  padding:10px 11px;
  border:1px solid #e2e8f0;
  border-left:4px solid #2563eb;
  border-radius:10px;
  background:#f8fafc;
  text-align:left;
  cursor:pointer;
}
.pt-mini-work b { color:#172033; font-size:14px; }
.pt-mini-work small { color:#64748b; font-size:13px; line-height:1.4; }
.pt-mini-work.is-review { border-left-color:#7c3aed; }
.pt-mini-work.is-warn { border-left-color:#d97706; }
.pt-mini-work.is-close { border-left-color:#0f766e; }
.pt-command-drawer {
  margin:0 0 12px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fff;
  overflow:hidden;
}
.pt-command-drawer>summary {
  padding:11px 13px;
  cursor:pointer;
  color:#334155;
  font-size:14px;
  font-weight:900;
  list-style:none;
  background:#f8fafc;
}
.pt-command-drawer>summary::-webkit-details-marker { display:none; }
.pt-command-drawer[open]>summary { border-bottom:1px solid #e2e8f0; }
.pt-command-drawer .pt-object-chain { margin:0; border:0; border-radius:0; box-shadow:none; }

/* 项目卡片 */
.pt-card {
  background: var(--card-bg); border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); padding: 20px; transition: box-shadow 0.2s;
  border: 1px solid var(--border-color);
}
.pt-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pt-work-queue {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(135deg,#f8fbff 0%,#f7fffb 100%);
}
.pt-work-queue-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:10px; }
.pt-work-queue-head span { display:block; color:#2563eb; font-size:13px; font-weight:900; }
.pt-work-queue-head strong { color:#0f172a; font-size:16px; }
.pt-work-queue-head small { max-width:620px; color:#64748b; font-size:14px; line-height:1.45; text-align:right; }
.pt-stat-note { margin-top:4px; color:#64748b; font-size:13px; font-weight:700; }
.pt-work-items { display:grid; gap:8px; }
.pt-work-item {
  display:grid;
  gap:4px;
  width:100%;
  min-height:58px;
  padding:11px 12px;
  border:1px solid #dfe7f2;
  border-left:4px solid #2563eb;
  border-radius:10px;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.pt-work-item:hover { border-color:#93c5fd; box-shadow:0 8px 18px rgba(37,99,235,.08); transform:translateY(-1px); }
.pt-work-item span { color:#172033; font-size:15px; font-weight:850; }
.pt-work-item small { color:#52637a; font-size:14px; line-height:1.45; }
.pt-work-item.is-review { border-left-color:#7c3aed; background:#fbf7ff; }
.pt-work-item.is-warn { border-left-color:#f59e0b; background:#fffaf0; }
.pt-work-item.is-close { border-left-color:#0f766e; background:#f0fdfa; }
.pt-work-item.is-done { border-left-color:#16a34a; background:#f0fdf4; }

.pt-object-chain {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.pt-object-chain-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:10px; }
.pt-object-chain-head span { color:#64748b; font-size:13px; font-weight:850; }
.pt-object-chain-head strong { color:#172033; font-size:15px; }
.pt-chain-nodes { display:flex; align-items:center; gap:6px; overflow-x:auto; padding-bottom:2px; }
.pt-chain-node {
  flex:0 0 auto;
  display:grid;
  gap:3px;
  min-width:72px;
  padding:8px 9px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
  text-align:center;
}
.pt-chain-node b { color:#334155; font-size:13px; }
.pt-chain-node span { color:#64748b; font-size:13px; font-weight:800; }
.pt-chain-node.is-ok { border-color:#bbf7d0; background:#f0fdf4; }
.pt-chain-node.is-ok b,.pt-chain-node.is-ok span { color:#15803d; }
.pt-chain-arrow { flex:0 0 auto; color:#94a3b8; font-style:normal; font-weight:900; }

/* 卡片头部 */
.pt-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; gap: 12px;
}
.pt-card-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
  margin: 0; line-height: 1.3;
}
.pt-card-entity {
  font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px;
}
.pt-card-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.pt-card-industry {
  display: inline-block; padding: 2px 8px; background: #eff6ff;
  color: #1e40af; border-radius: 10px; font-size: 0.68rem; font-weight: 500;
}
.pt-card-date {
  font-size: 0.68rem; color: var(--text-muted);
}

/* 进度条 */
.pt-progress-section { margin-bottom: 14px; }
.pt-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 5px;
}
.pt-progress-bar {
  height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.pt-progress-fill {
  height: 100%; border-radius: 4px; transition: width 0.4s ease;
  background: linear-gradient(90deg, #3b82f6, var(--accent));
}

/* 环节列表 */
.pt-stage-drawer {
  margin: 0 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.pt-stage-drawer>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 11px;
  list-style: none;
  cursor: pointer;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  background: #f8fafc;
}
.pt-stage-drawer>summary::-webkit-details-marker { display: none; }
.pt-stage-drawer>summary b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}
.pt-stage-drawer[open]>summary { border-bottom: 1px solid #e2e8f0; }
.pt-stage-list {
  display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 10px;
}
.pt-stage-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 4px; font-size: 0.78rem;
  background: #fafbfc;
}
.pt-stage-icon { font-size: 0.9rem; flex-shrink: 0; width: 20px; text-align: center; }
.pt-stage-name { flex: 1; color: var(--text-primary); font-weight: 500; }
.pt-stage-status { min-width:52px; font-size:12px; text-align:right; }
.pt-stage-done .pt-stage-status { color: var(--success); }
.pt-stage-active .pt-stage-status { color:var(--primary); font-weight:800; }
.pt-stage-pending .pt-stage-status { color: #cbd5e1; }
.pt-stage-detail {
  font-size: 0.68rem; color: var(--text-muted); max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 最近活动 */
.pt-last-activity {
  padding: 8px 10px; background: #f8fafc; border-radius: 4px;
  margin-bottom: 12px; font-size: 0.72rem; color: var(--text-secondary);
  border-left: 3px solid var(--primary);
}
.pt-last-activity-label { color: var(--text-muted); }
.pt-last-activity-text { color: var(--text-secondary); }

/* 卡片操作按钮 */
.pt-card-actions {
  display: flex; gap: 8px; padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.pt-btn {
  padding: 5px 12px; border-radius: 4px; font-size: 0.75rem;
  cursor: pointer; border: 1px solid var(--border-color);
  background: #fff; color: var(--text-secondary); transition: all 0.15s;
}
.pt-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.pt-btn-timeline { color: var(--primary); border-color: #bfdbfe; }
.pt-btn-timeline:hover { background: #eff6ff; }
.pt-btn-enter {
  background: var(--primary); color: #fff; border-color: var(--primary);
  margin-left: auto;
}
.pt-btn-enter:hover { background: var(--primary-hover); }

/* 时间轴 */
.pt-timeline {
  margin-top: 14px; padding: 14px 0 0 16px;
  border-top: 1px dashed var(--border-color);
}
.pt-timeline-title {
  font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 12px;
}
.pt-timeline-empty {
  font-size: 0.75rem; color: var(--text-muted); text-align: center;
  padding: 16px 0;
}
.pt-timeline-item {
  position: relative; padding-left: 20px; padding-bottom: 14px;
  border-left: 2px solid #e2e8f0; margin-left: 4px;
}
.pt-timeline-last { border-left-color: transparent; padding-bottom: 0; }
.pt-timeline-dot {
  position: absolute; left: -5px; top: 2px;
  width: 8px; height: 8px; border-radius: 50%;
}
.pt-timeline-content { padding-left: 4px; }
.pt-timeline-time {
  font-size: 0.68rem; color: var(--text-muted); margin-bottom: 2px;
}
.pt-timeline-summary {
  font-size: 0.78rem; color: var(--text-primary); line-height: 1.4;
}
.pt-timeline-stage {
  font-weight: 600; font-size: 0.72rem;
}

/* 空状态 */
.pt-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  background: var(--card-bg); border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.pt-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.pt-empty-title {
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
}
.pt-empty-desc {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
}

/* 历史记录页头 */
.hist-page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.hist-page-header h2 {
  font-size: 1.15rem; font-weight: 600; color: var(--text-primary);
  margin: 0;
}
.hist-page-desc {
  font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px;
}
.hist-clear-btn { flex-shrink: 0; }

/* 响应式 */
@media (max-width: 768px) {
  .pt-plan-source-head { flex-direction:column; }
  .pt-plan-source-actions { align-items:flex-start; flex-direction:column; }
  .pt-plan-project { grid-template-columns:1fr; gap:9px; }
  .pt-plan-project .btn { justify-self:start; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-portfolio-shell { grid-template-columns:1fr; }
  .pt-overview-head { flex-direction:column; }
  .pt-overview-metrics { grid-template-columns:1fr 1fr; }
  .pt-portfolio-metrics,.pt-health-grid,.pt-stage-strip { grid-template-columns:1fr 1fr; }
  .pt-command-header,.pt-focus-panel { grid-template-columns:1fr; }
  .pt-command-tags { justify-content:flex-start; }
  .pt-stats-bar { gap: 8px; }
  .pt-stat-card { min-width: 80px; padding: 10px 8px; }
  .pt-stat-value { font-size: 1.1rem; }
  .pt-card-header { flex-direction: column; gap: 6px; }
  .pt-card-meta { flex-direction: row; align-items: center; }
  .pt-stage-detail { max-width: 80px; }
}
@media (max-width: 520px) {
  .pt-overview-metrics,.pt-portfolio-metrics,.pt-health-grid,.pt-stage-strip { grid-template-columns:1fr; }
}

/* ============================================================
   自定义模态框 — 新建项目
   ============================================================ */
.pt-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: ptModalFadeIn 0.2s ease;
}
@keyframes ptModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ptModalSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pt-modal {
  background: #fff; border-radius: 14px; width: 460px; max-width: 92vw;
  max-height: calc(100vh - 48px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  animation: ptModalSlideIn 0.25s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.pt-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto;
  padding: 20px 24px 0; gap: 12px;
}
.pt-modal-header h3 {
  margin: 0; font-size: 1.1rem; font-weight: 650; color: #1e293b;
}
.pt-modal-close {
  width: 30px; height: 30px; border: none; background: #f1f5f9;
  border-radius: 8px; cursor: pointer; font-size: 1rem; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.pt-modal-close:hover { background: #e2e8f0; color: #334155; }
.pt-modal-body {
  padding: 16px 24px 8px;
  overflow-y: auto;
  min-height: 0;
}
.pt-modal-guidance { display:grid; gap:4px; margin:0 0 16px; padding:11px 12px; border-left:3px solid #d97706; background:#fff7ed; color:#7c2d12; }
.pt-modal-guidance strong { font-size:14px; }
.pt-modal-guidance span { font-size:13px; line-height:1.5; }
.pt-modal-field {
  margin-bottom: 16px;
}
.pt-modal-field label {
  display: block; font-size: 0.82rem; font-weight: 550; color: #475569;
  margin-bottom: 6px;
}
.pt-modal-field label .pt-required {
  color: #ef4444; margin-left: 2px;
}
.pt-modal-field input,
.pt-modal-field select,
.pt-modal-field textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; font-size: 0.88rem; color: #1e293b;
  background: #f8fafc; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.pt-modal-field input:focus,
.pt-modal-field select:focus,
.pt-modal-field textarea:focus {
  border-color: #3b82f6; background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.pt-modal-field input::placeholder { color: #94a3b8; }
.pt-modal-field .pt-field-hint {
  font-size: 0.72rem; color: #94a3b8; margin-top: 4px;
}
.pt-modal-field .pt-field-error {
  font-size: 0.75rem; color: #ef4444; margin-top: 4px; display: none;
}
.pt-modal-field.has-error input,
.pt-modal-field.has-error select,
.pt-modal-field.has-error textarea { border-color: #ef4444; }
.pt-modal-field.has-error .pt-field-error { display: block; }
.pt-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  flex: 0 0 auto;
  padding: 8px 24px 20px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.pt-modal-btn {
  padding: 9px 20px; border-radius: 8px; font-size: 0.85rem;
  font-weight: 550; cursor: pointer; border: none; font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.pt-modal-btn:active { transform: scale(0.97); }
.pt-modal-btn-cancel {
  background: #f1f5f9; color: #475569;
}
.pt-modal-btn-cancel:hover { background: #e2e8f0; }
.pt-modal-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.pt-modal-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

/* ============================================================
   审计概览仪表盘 — Dashboard
   ============================================================ */

/* 入场动画 */
@keyframes dashFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dash-animate-in {
  opacity: 0;
  animation: dashFadeUp 0.4s ease forwards;
}

/* 欢迎头部 */
.dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1px solid #e8ecf2;
}
.dash-title {
  font-size: 1.6rem; font-weight: 700; color: #0f172a;
  margin: 0; letter-spacing: -0.02em;
}
.dash-subtitle {
  font-size: 0.82rem; color: #94a3b8; margin-top: 4px;
}
.dash-year-badge {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 10px 18px; background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe; border-radius: 10px;
}
.dash-year-label {
  font-size: 0.78rem; font-weight: 700; color: #4338ca;
}
.dash-year-name {
  font-size: 0.68rem; color: var(--accent);
}

/* KPI 卡片行 */
.dash-overview-section { margin-bottom:16px; padding:14px; border:1px solid #e2e8f0; border-radius:22px; background:linear-gradient(135deg,#ffffff,#f8fbff); box-shadow:0 18px 44px rgba(15,23,42,.06); }
.dash-section-header-compact { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:12px; }
.dash-section-kicker { display:block; color:#2563eb; font-size:.66rem; font-weight:900; letter-spacing:.16em; margin-bottom:2px; }
.dash-section-note { color:#64748b; font-size:.76rem; }
.dash-focus-grid { display:grid; grid-template-columns:1.05fr 1.1fr; gap:14px; margin-bottom:14px; }
.dash-secondary-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.dash-kpi-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .dash-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .dash-focus-grid, .dash-secondary-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .dash-kpi-row { grid-template-columns: 1fr; }
}

/* KPI 卡片色调背景 */
.dash-kpi-blue .dash-kpi-bg { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dash-kpi-teal .dash-kpi-bg { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.dash-kpi-violet .dash-kpi-bg { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dash-kpi-sky .dash-kpi-bg { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.dash-kpi-amber .dash-kpi-bg { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dash-kpi-slate .dash-kpi-bg { background: linear-gradient(135deg, #64748b, #475569); }

.dash-kpi-card {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dash-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.dash-kpi-bg {
  padding: 12px 12px 11px; color: #fff; position: relative; min-height:92px;
}
.dash-kpi-icon {
  font-size: 1.15rem; opacity: 0.85; margin-bottom: 5px;
}
.dash-kpi-data {
  display: flex; align-items: baseline; gap: 4px;
}
.dash-kpi-value {
  font-size: 2.25rem; font-weight: 900; line-height: .95;
  font-variant-numeric: tabular-nums;
}
.dash-kpi-unit {
  font-size: 0.84rem; font-weight: 700; opacity: 0.9;
}
.dash-kpi-label {
  font-size: 0.9rem; font-weight: 800; margin-top: 5px; opacity: .98;
}
.dash-kpi-sub {
  font-size: 0.72rem; opacity: 0.84; margin-top: 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dash-kpi-warn {
  animation: dashPulse 2s ease-in-out infinite;
}
@keyframes dashPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  50% { box-shadow: 0 4px 20px rgba(239,68,68,0.25); }
}

/* 两列行 */
.dash-row-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}

/* 分区标题 */
.dash-section-header { margin-bottom: 12px; }
.dash-section-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0; }

/* 通用面板 */
.dash-panel {
  background: #fff; border: 1px solid #e8ecf2; border-radius: var(--card-radius);
  padding: 14px; box-shadow: 0 8px 24px rgba(15,23,42,0.04);
  transition: box-shadow 0.2s;
}
.dash-panel:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.dash-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.dash-panel-title {
  font-size: 1rem; font-weight: 800; color: #1e293b; margin: 0;
}
.dash-panel-badge {
  font-size: 0.68rem; font-weight: 600; color: var(--accent);
  padding: 3px 10px; background: #eef2ff; border-radius: 12px;
}
.dash-badge-danger {
  color: #dc2626; background: #fef2f2;
}
.dash-panel-link {
  font-size: 0.72rem; color: var(--accent); cursor: pointer;
  border: none; background: none; font-weight: 500;
  transition: color 0.15s;
}
.dash-panel-link:hover { color: #4338ca; text-decoration: underline; }

/* 快捷操作面板 */
.dash-quick-actions {
  margin-bottom: 16px;
}
.dash-qa-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 900px) {
  .dash-qa-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dash-qa-grid { grid-template-columns: 1fr; }
}
.dash-qa-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border: 1px solid #e8ecf2;
  border-radius: var(--card-radius); cursor: pointer;
  text-align: left; transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.dash-qa-item:hover {
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}
.dash-qa-icon { font-size: 1.4rem; min-width: 28px; text-align: center; }
.dash-qa-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dash-qa-label { font-size: 0.85rem; font-weight: 600; color: #1e293b; }
.dash-qa-desc { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-qa-arrow { font-size: 1.2rem; color: #cbd5e1; transition: color 0.15s; }
.dash-qa-item:hover .dash-qa-arrow { color: #6366f1; }

/* 空状态 */
.dash-empty-state {
  text-align: center; padding: 32px 16px;
}
.dash-empty-state p {
  font-size: 0.88rem; color: #94a3b8; margin: 0;
}
.dash-empty-hint {
  font-size: 0.72rem !important; color: #cbd5e1 !important; margin-top: 4px !important;
}

/* 环形图 */
.dash-donut-wrap {
  display: flex; align-items: center; gap: 24px;
}
.dash-donut {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dash-donut-center {
  width: 86px; height: 86px; border-radius: 50%;
  background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.06);
}
.dash-donut-value {
  font-size: 1.5rem; font-weight: 800; color: #1e293b; line-height: 1;
}
.dash-donut-label {
  font-size: 0.65rem; color: #94a3b8; margin-top: 2px;
}
.dash-donut-legend {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.dash-legend-item {
  display: flex; align-items: center; gap: 8px;
}
.dash-legend-dot {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
}
.dash-legend-label {
  font-size: 0.78rem; color: #64748b; min-width: 28px;
}
.dash-legend-count {
  font-size: 0.85rem; font-weight: 700; color: #1e293b;
}
.dash-legend-pct {
  font-size: 0.7rem; color: #94a3b8; margin-left: auto;
}

/* 审计环节进度 */
.dash-stage-list {
  display: flex; flex-direction: column; gap: 10px;
}
.dash-stage-item {
  display: flex; align-items: center; gap: 10px;
}
.dash-stage-info {
  display: flex; align-items: center; gap: 8px; min-width: 100px;
}
.dash-stage-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.dash-stage-name {
  font-size: 0.78rem; font-weight: 550; color: #475569;
}
.dash-stage-bar-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
}
.dash-stage-bar {
  flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden;
}
.dash-stage-fill {
  height: 100%; border-radius: 4px; transition: width 0.5s ease;
}
.dash-stage-pct {
  font-size: 0.68rem; color: #94a3b8; min-width: 32px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 项目进度列表 */
.dash-project-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 280px; overflow-y: auto;
}
.dash-project-item {
  padding: 10px 12px; background: #fafbfc; border: 1px solid #f1f5f9;
  border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.dash-project-item:hover {
  background: #f0f4ff; border-color: #c7d2fe;
}
.dash-project-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.dash-project-name {
  font-size: 0.82rem; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.dash-project-pct {
  font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.dash-project-bar {
  height: 5px; background: #e8ecf2; border-radius: 3px; overflow: hidden;
}
.dash-project-fill {
  height: 100%; border-radius: 3px; transition: width 0.4s ease;
}
.dash-project-entity {
  font-size: 0.68rem; color: #94a3b8; margin-top: 4px;
}

/* 发现分析 */
.dash-finding-section {
  margin-bottom: 14px;
}
.dash-finding-section:last-child { margin-bottom: 0; }
.dash-finding-label {
  font-size: 0.72rem; font-weight: 600; color: #64748b;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em;
}
.dash-bar-item {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.dash-bar-label {
  font-size: 0.75rem; font-weight: 550; color: #64748b; width: 16px;
}
.dash-bar-track {
  flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden;
}
.dash-bar-fill {
  height: 100%; border-radius: 5px; transition: width 0.4s ease;
}
.dash-bar-value {
  font-size: 0.78rem; font-weight: 700; color: #1e293b; width: 20px; text-align: right;
}

/* 整改状态网格 */
.dash-status-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
}
.dash-closure-panel { margin:10px 0 0; padding:12px; }
.dash-status-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: 7px 5px; border-radius: 10px; border: 1px solid;
  transition: transform 0.15s;
}
.dash-status-chip:hover { transform: scale(1.04); }
.dash-status-count {
  font-size: 1.2rem; font-weight: 800; line-height: 1;
}
.dash-status-label {
  font-size: 0.68rem; color: #64748b; margin-top: 3px; font-weight: 700;
}

/* 时间线 */
.dash-timeline {
  display: flex; flex-direction: column; gap: 0;
  max-height: 300px; overflow-y: auto;
}
.dash-timeline-item {
  display: flex; gap: 10px; position: relative;
  padding-bottom: 14px;
}
.dash-timeline-dot {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0; z-index: 1;
}
.dash-timeline-line {
  position: absolute; left: 13px; top: 28px;
  width: 2px; height: calc(100% - 28px);
  background: #e8ecf2;
}
.dash-timeline-content {
  flex: 1; min-width: 0; padding-top: 3px;
}
.dash-timeline-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.dash-timeline-project {
  font-size: 0.78rem; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-timeline-time {
  font-size: 0.65rem; color: #94a3b8; flex-shrink: 0;
}
.dash-timeline-summary {
  font-size: 0.72rem; color: #64748b; line-height: 1.4;
}

/* 高风险项目列表 */
.dash-risk-list {
  display: flex; flex-direction: column; gap: 8px;
}
.dash-risk-item {
  width:100%; color:inherit; font:inherit; text-align:left;
  padding: 10px 12px; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.dash-risk-item:hover {
  background: #fee2e2; border-color: #f87171;
}
.dash-risk-top {
  display: flex; justify-content: space-between; align-items: center;
}
.dash-risk-name {
  font-size: 0.82rem; font-weight: 600; color: #991b1b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.dash-risk-count {
  font-size: 0.72rem; font-weight: 700; color: #dc2626;
  padding: 2px 8px; background: rgba(220,38,38,0.1); border-radius: 10px;
}
.dash-risk-entity {
  font-size: 0.68rem; color: #b91c1c; margin-top: 3px; opacity: 0.7;
}
.dash-risk-level {
  font-size: 0.68rem; font-weight: 600; margin-top: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
  .dash-row-2col { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; gap: 12px; }
  .dash-donut-wrap { flex-direction: column; }
  .dash-donut { width: 120px; height: 120px; }
  .dash-donut-center { width: 72px; height: 72px; }
  .dash-donut-value { font-size: 1.2rem; }
  .dash-status-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-kpi-value { font-size: 1.6rem; }
}

/* ================================================================
   Phase 2 — 财务数据 (fi-*)
   ================================================================ */
.fi-upload-zone { border:2px dashed var(--border-color); border-radius:var(--card-radius); padding:30px; text-align:center; cursor:pointer; transition:border-color .2s; margin:12px 0; background:var(--card-bg); }
.fi-upload-zone:hover { border-color:var(--primary); }
.fi-upload-zone.dragover { border-color:var(--primary); background:#eff6ff; }
.fi-statement-card { background:var(--card-bg); border-radius:var(--card-radius); padding:16px; box-shadow:var(--card-shadow); margin:12px 0; }
.fi-statement-title { font-weight:600; font-size:0.9rem; margin-bottom:8px; padding-bottom:6px; border-bottom:2px solid var(--primary); }
.fi-items-table { width:100%; border-collapse:collapse; font-size:0.78rem; }
.fi-items-table th, .fi-items-table td { border:1px solid var(--border-color); padding:6px 8px; text-align:right; }
.fi-items-table th { background:#f1f5f9; font-weight:600; text-align:center; }
.fi-items-table td:first-child { text-align:left; font-weight:500; }
.fi-ratio-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; margin:12px 0; }
.fi-ratio-card { background:var(--card-bg); border-radius:var(--card-radius); padding:14px; box-shadow:var(--card-shadow); border-left:4px solid #16a34a; }
.fi-ratio-card.warning { border-left-color:#ca8a04; }
.fi-ratio-card.danger { border-left-color:#dc2626; }
.fi-ratio-name { font-size:0.75rem; color:var(--text-secondary); }
.fi-ratio-value { font-size:1.3rem; font-weight:700; margin:4px 0; }
.fi-ratio-ref { font-size:0.68rem; color:var(--text-muted); }
.fi-trend-bar { display:flex; align-items:center; gap:8px; margin:4px 0; font-size:0.75rem; }
.fi-trend-bar-fill { height:16px; border-radius:3px; min-width:2px; transition:width .3s; }
.fi-trend-bar-label { min-width:120px; text-align:right; color:var(--text-secondary); }
.fi-trend-bar-value { min-width:60px; font-weight:600; }

/* Phase 2 responsive */
@media (max-width: 768px) {
  .fi-ratio-grid { grid-template-columns:repeat(2,1fr); }
}

/* ============================================================
   Phase 3 — 工作流编排引擎 (workflow-engine)
   ============================================================ */
.wf-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.wf-context-note { margin:-6px 0 16px; padding:10px 14px; border:1px solid #dbeafe; border-radius:12px; background:linear-gradient(135deg,#eff6ff,#f8fafc); color:#334155; font-size:.82rem; line-height:1.6; }
.wf-header h3 { font-size:1rem; font-weight:700; }
.wf-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.wf-card { background:var(--card-bg); border-radius:var(--card-radius); padding:16px; box-shadow:var(--card-shadow); cursor:pointer; transition:transform .2s,box-shadow .2s; border-left:4px solid var(--primary); }
.wf-card:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.wf-card-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:0.68rem; font-weight:600; color:#fff; background:var(--primary); margin-bottom:8px; }
.wf-card-name { font-size:0.92rem; font-weight:600; margin-bottom:6px; }
.wf-card-meta { font-size:0.75rem; color:var(--text-secondary); margin-bottom:8px; }
.wf-progress-bar { height:8px; background:#e2e8f0; border-radius:4px; overflow:hidden; margin-bottom:6px; }
.wf-progress-bar-fill { height:100%; border-radius:4px; background:linear-gradient(90deg,#3b82f6,var(--accent)); transition:width .3s; }
.wf-card-stages { font-size:0.72rem; color:var(--text-secondary); }
.wf-card-actions { display:flex; justify-content:flex-end; margin-top:8px; gap:6px; }
/* Detail view */
.wf-detail-header { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.wf-back-btn { cursor:pointer; font-size:0.85rem; color:var(--primary); background:none; border:none; }
.wf-back-btn:hover { text-decoration:underline; }
.wf-detail-title { font-size:1.1rem; font-weight:700; }
.wf-detail-badge { display:inline-block; padding:2px 10px; border-radius:10px; font-size:0.7rem; font-weight:600; color:#fff; background:var(--primary); margin-left:8px; }
/* Progress ring */
.wf-progress-ring { width:80px; height:80px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:700; color:var(--primary); margin:0 auto 16px; }
/* Stage timeline */
.wf-timeline { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; padding:16px; background:var(--card-bg); border-radius:var(--card-radius); box-shadow:var(--card-shadow); overflow-x:auto; }
.wf-timeline-node { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:80px; position:relative; }
.wf-timeline-circle { width:28px; height:28px; border-radius:50%; border:3px solid #cbd5e1; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:700; color:#fff; transition:all .3s; }
.wf-timeline-circle.completed { background:#22c55e; border-color:#22c55e; }
.wf-timeline-circle.in-progress { background:#3b82f6; border-color:#3b82f6; }
.wf-timeline-circle.blocked { background:#ef4444; border-color:#ef4444; }
.wf-timeline-circle.pending { background:#e2e8f0; border-color:#cbd5e1; color:#94a3b8; }
.wf-timeline-label { font-size:0.7rem; color:var(--text-secondary); text-align:center; white-space:nowrap; }
.wf-timeline-line { flex:1; height:3px; background:#e2e8f0; min-width:20px; }
.wf-timeline-line.completed { background:#22c55e; }
.wf-timeline-line.in-progress { background:linear-gradient(90deg,#22c55e,#3b82f6); }
/* Kanban */
.wf-kanban { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.wf-kanban-col { background:#f8fafc; border-radius:8px; padding:10px; min-height:120px; }
.wf-kanban-col-header { font-size:0.78rem; font-weight:700; padding:4px 8px; border-radius:6px; margin-bottom:8px; text-align:center; }
.wf-kanban-col-header.pending { background:#e2e8f0; color:#64748b; }
.wf-kanban-col-header.in-progress { background:#dbeafe; color:#2563eb; }
.wf-kanban-col-header.completed { background:#dcfce7; color:#16a34a; }
.wf-kanban-col-header.blocked { background:#fee2e2; color:#dc2626; }
.wf-task-card { background:#fff; border-radius:var(--card-radius); padding:8px 10px; margin-bottom:6px; box-shadow:var(--card-shadow); cursor:pointer; font-size:0.78rem; border-left:3px solid transparent; transition:border-color .2s; }
.wf-task-card:hover { border-left-color:var(--primary); }
.wf-task-card-name { font-weight:600; margin-bottom:4px; }
.wf-task-source { margin:3px 0 4px; color:#2563eb; font-size:.66rem; font-weight:800; line-height:1.35; }
.wf-task-card-meta { font-size:0.68rem; color:var(--text-secondary); }
.wf-task-card-stage { display:inline-block; padding:1px 6px; border-radius:8px; font-size:0.62rem; background:#e0e7ff; color:#4338ca; margin-top:4px; }
/* Gantt chart */
.wf-gantt { background:var(--card-bg); border-radius:var(--card-radius); box-shadow:var(--card-shadow); padding:16px; margin-bottom:20px; overflow-x:auto; }
.wf-gantt-title { font-size:0.9rem; font-weight:700; margin-bottom:12px; }
.wf-gantt-table { width:100%; min-width:600px; border-collapse:collapse; }
.wf-gantt-table th { font-size:0.68rem; color:var(--text-secondary); padding:4px 6px; border-bottom:2px solid var(--border-color); text-align:left; font-weight:600; }
.wf-gantt-table td { padding:4px 6px; border-bottom:1px solid var(--border-color); font-size:0.75rem; vertical-align:middle; }
.wf-gantt-task-name { white-space:nowrap; font-weight:500; min-width:120px; }
.wf-gantt-bar-cell { position:relative; height:22px; }
.wf-gantt-bar { position:absolute; height:18px; border-radius:4px; top:2px; opacity:0.85; }
.wf-gantt-bar.pending { background:#cbd5e1; }
.wf-gantt-bar.in-progress { background:#3b82f6; }
.wf-gantt-bar.completed { background:#22c55e; }
.wf-gantt-bar.blocked { background:#ef4444; }
/* Modal */
.wf-modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.45); z-index:9999; display:flex; align-items:center; justify-content:center; animation:fadeIn .2s; }
.wf-modal { background:#fff; border-radius:12px; padding:24px; width:480px; max-width:92vw; max-height:85vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.2); animation:slideUp .25s; }
.wf-modal-title { font-size:1rem; font-weight:700; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; }
.wf-modal-close { cursor:pointer; font-size:1.2rem; background:none; border:none; color:#94a3b8; }
.wf-modal-close:hover { color:#334155; }
.wf-template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.wf-template-card { border:2px solid #e2e8f0; border-radius:8px; padding:12px; text-align:center; cursor:pointer; transition:border-color .2s,background .2s; }
.wf-template-card:hover { border-color:var(--primary); }
.wf-template-card.selected { border-color:var(--primary); background:#eff6ff; }
.wf-template-card-icon { font-size:1.5rem; margin-bottom:4px; }
.wf-template-card-name { font-size:0.78rem; font-weight:600; }
.wf-form-group { margin-bottom:12px; }
.wf-form-group label { display:block; font-size:0.78rem; font-weight:600; color:var(--text-secondary); margin-bottom:4px; }
.wf-form-group input, .wf-form-group select, .wf-form-group textarea { width:100%; padding:8px 10px; border:1px solid var(--border-color); border-radius:6px; font-size:0.82rem; }
.wf-form-group textarea { min-height:60px; resize:vertical; }
.wf-dep-list { list-style:none; padding:0; margin:0; }
.wf-dep-list li { font-size:0.75rem; padding:3px 0; color:var(--text-secondary); }
.wf-dep-list li::before { content:'⛓ '; }
/* Additional wf classes */
.wf-container { padding:4px 0; }
.wf-title { font-size:1.1rem; font-weight:700; margin:0; }
.wf-empty { text-align:center; padding:40px 20px; color:var(--text-secondary); font-size:0.88rem; background:var(--card-bg); border-radius:var(--card-radius); box-shadow:var(--card-shadow); }
.wf-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.wf-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.wf-card-del { background:none; border:none; font-size:1.2rem; color:#94a3b8; cursor:pointer; padding:0 4px; }
.wf-card-del:hover { color:#ef4444; }
.wf-card-date { font-size:0.7rem; color:var(--text-secondary); }
.wf-card-meta { display:flex; justify-content:space-between; align-items:center; font-size:0.72rem; color:var(--text-secondary); margin-top:6px; }
.wf-stage-summary { font-weight:500; }
.wf-progress-fill { height:100%; border-radius:4px; background:linear-gradient(90deg,#3b82f6,var(--accent)); transition:width .3s; }
.wf-progress-text { font-size:0.75rem; font-weight:600; color:var(--primary); }
.wf-new-btn { white-space:nowrap; }
.wf-template-badge { display:inline-block; padding:2px 10px; border-radius:10px; font-size:0.7rem; font-weight:600; color:#fff; background:var(--primary); }
.wf-detail-row { display:flex; gap:20px; align-items:flex-start; margin-bottom:20px; }
.wf-detail-progress { font-size:1.2rem; font-weight:700; color:var(--primary); }
.wf-progress-ring-wrap { text-align:center; }
.wf-progress-ring-inner { position:relative; width:80px; height:80px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.wf-progress-ring-num { font-size:1.1rem; font-weight:700; color:var(--primary); line-height:1; }
.wf-progress-ring-label { font-size:0.65rem; color:var(--text-secondary); margin-top:2px; }
.wf-section-title { font-size:0.88rem; font-weight:700; margin-bottom:10px; }
.wf-timeline-wrap { flex:1; }
.wf-timeline-check { font-size:0.75rem; }
.wf-timeline-dot { width:8px; height:8px; border-radius:50%; background:#fff; }
.wf-timeline-name { font-size:0.72rem; font-weight:600; }
.wf-timeline-sub { font-size:0.62rem; color:var(--text-secondary); display:block; }
.wf-kanban-wrap { margin-bottom:20px; }
.wf-kanban-header { font-size:0.78rem; font-weight:700; padding:4px 8px; border-radius:6px; margin-bottom:8px; text-align:center; background:#e2e8f0; color:#64748b; }
.wf-kanban-count { font-size:0.7rem; opacity:0.7; }
.wf-task-stage-badge { display:inline-block; padding:1px 6px; border-radius:8px; font-size:0.62rem; background:#e0e7ff; color:#4338ca; margin-top:4px; }
.wf-module-assign-card { margin:0 0 20px; padding:18px; border:1px solid rgba(148,163,184,.25); border-radius:22px; background:linear-gradient(135deg,#ffffff 0%,#f8fbff 55%,#eef6ff 100%); box-shadow:0 18px 44px rgba(15,23,42,.07); }
.wf-module-assign-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px; }
.wf-module-assign-head span { display:block; color:#2563eb; font-size:.68rem; font-weight:900; letter-spacing:.16em; margin-bottom:4px; }
.wf-module-assign-head h3 { margin:0; font-size:1.05rem; color:#0f172a; font-weight:900; }
.wf-module-assign-head p { margin:5px 0 0; color:#64748b; font-size:.78rem; line-height:1.6; }
.wf-ma-grid { border:1px solid #dbeafe; border-radius:18px; overflow:hidden; background:#fff; }
.wf-ma-row { display:grid; grid-template-columns:1.15fr 1fr 1.25fr .9fr .85fr auto; gap:10px; align-items:center; padding:10px 12px; border-bottom:1px solid #eef2f7; }
.wf-ma-row:last-child { border-bottom:none; }
.wf-ma-row:hover { background:#f8fbff; }
.wf-ma-header { background:linear-gradient(90deg,#eff6ff,#f8fafc); color:#475569; font-size:.7rem; font-weight:900; letter-spacing:.04em; }
.wf-ma-module strong { display:block; color:#0f172a; font-size:.78rem; font-weight:900; }
.wf-ma-module small { display:block; margin-top:2px; color:#94a3b8; font-size:.62rem; }
.wf-ma-row select,.wf-ma-row input { width:100%; min-height:34px; padding:7px 9px; border:1px solid #dbe3ef; border-radius:10px; background:#fff; color:#334155; font-size:.75rem; outline:none; }
.wf-ma-row select:focus,.wf-ma-row input:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.wf-open-module { white-space:nowrap; }
.wf-gantt-card { margin-top:20px; padding:18px; border:1px solid rgba(148,163,184,.25); border-radius:22px; background:linear-gradient(135deg,#ffffff 0%,#f8fbff 52%,#eef6ff 100%); box-shadow:0 22px 55px rgba(15,23,42,.08); overflow:hidden; }
.wf-gantt-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:12px; }
.wf-gantt-eyebrow { display:block; color:#2563eb; font-size:.68rem; font-weight:900; letter-spacing:.16em; margin-bottom:4px; }
.wf-gantt-head .wf-section-title { margin:0; font-size:1.05rem; color:#0f172a; }
.wf-gantt-head p { margin:5px 0 0; color:#64748b; font-size:.78rem; line-height:1.6; }
.wf-gantt-meta { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:#fff; border:1px solid #dbeafe; color:#475569; font-size:.72rem; font-weight:700; white-space:nowrap; box-shadow:0 10px 24px rgba(37,99,235,.08); }
.wf-gantt-meta b { color:#2563eb; }
.wf-gantt-legend { display:flex; flex-wrap:wrap; gap:10px; margin:8px 0 14px; }
.wf-gantt-legend span { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; background:rgba(255,255,255,.78); border:1px solid #e2e8f0; color:#64748b; font-size:.68rem; font-weight:700; }
.wf-gantt-legend i { width:9px; height:9px; border-radius:50%; display:inline-block; }
.wf-gantt-legend i.pending { background:#94a3b8; }
.wf-gantt-legend i.in-progress { background:#3b82f6; }
.wf-gantt-legend i.completed { background:#22c55e; }
.wf-gantt-legend i.blocked { background:#ef4444; }
.wf-gantt-wrap { display:flex; border:1px solid #dbeafe; border-radius:18px; overflow:hidden; background:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }
.wf-gantt-left { min-width:260px; border-right:1px solid #dbeafe; background:linear-gradient(180deg,#f8fbff,#ffffff); }
.wf-gantt-left-header { height:42px; display:flex; align-items:center; padding:0 14px; font-size:.72rem; font-weight:900; color:#334155; border-bottom:1px solid #dbeafe; background:#eff6ff; letter-spacing:.06em; }
.wf-gantt-right { flex:1; overflow-x:auto; background:repeating-linear-gradient(90deg,#ffffff 0,#ffffff 58px,#f8fafc 58px,#f8fafc 59px); }
.wf-gantt-weeks { display:flex; height:42px; border-bottom:1px solid #dbeafe; background:linear-gradient(180deg,#eff6ff,#f8fbff); min-width:680px; position:sticky; top:0; z-index:3; }
.wf-gantt-week { flex:1; min-width:74px; text-align:center; font-size:.66rem; padding:13px 2px 0; color:#475569; border-right:1px solid rgba(147,197,253,.45); font-weight:800; }
.wf-gantt-bars { position:relative; min-width:680px; }
.wf-gantt-stage-label { height:34px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; font-size:.74rem; font-weight:900; color:#0f172a; background:linear-gradient(90deg,color-mix(in srgb,var(--stage-color) 14%,#fff),#f8fafc); border-bottom:1px solid #e2e8f0; border-left:5px solid var(--stage-color); }
.wf-gantt-stage-label span { color:#64748b; font-size:.64rem; background:#fff; border:1px solid #e2e8f0; border-radius:999px; padding:2px 7px; }
.wf-gantt-task-label { height:38px; display:flex; align-items:center; gap:8px; padding:0 12px 0 18px; font-size:.74rem; border-bottom:1px solid #f1f5f9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#334155; }
.wf-gantt-task-label span:last-child { overflow:hidden; text-overflow:ellipsis; }
.wf-gantt-task-dot { flex:0 0 auto; width:9px; height:9px; border-radius:50%; box-shadow:0 0 0 4px rgba(148,163,184,.12); }
.wf-gantt-stage-row { height:34px; background:linear-gradient(90deg,rgba(37,99,235,.05),rgba(14,165,233,.02)); border-bottom:1px solid #e2e8f0; }
.wf-gantt-stage-row + .wf-gantt-bar-row { border-top:none; }
.wf-gantt-bar-row { position:relative; height:38px; border-bottom:1px solid #f1f5f9; }
.wf-gantt-bar { position:absolute; top:8px; height:22px; min-width:42px; border-radius:999px; background:linear-gradient(90deg,var(--bar-color),color-mix(in srgb,var(--bar-color) 72%,#fff)); box-shadow:0 10px 22px color-mix(in srgb,var(--bar-color) 22%,transparent); display:flex; align-items:center; justify-content:space-between; gap:6px; padding:0 8px; color:#fff; overflow:visible; }
.wf-gantt-bar strong { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.66rem; font-weight:800; }
.wf-gantt-bar em { flex:0 0 auto; font-style:normal; font-size:.58rem; opacity:.9; padding:1px 5px; border-radius:999px; background:rgba(255,255,255,.18); }
.wf-gantt-bar-start,.wf-gantt-bar-end { position:absolute; top:50%; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px color-mix(in srgb,var(--bar-color) 35%,transparent); }
.wf-gantt-bar-start { left:-3px; }
.wf-gantt-bar-end { right:-3px; }
.wf-gantt-today { position:absolute; top:0; bottom:0; width:2px; background:#ef4444; z-index:2; box-shadow:0 0 0 1px rgba(239,68,68,.15),0 0 18px rgba(239,68,68,.22); }
.wf-gantt-today span { position:absolute; top:6px; left:6px; padding:2px 7px; border-radius:999px; background:#ef4444; color:#fff; font-size:.58rem; font-weight:900; white-space:nowrap; }
.wf-form-label { display:block; font-size:0.78rem; font-weight:600; color:var(--text-secondary); margin-bottom:4px; }
.wf-form-input, .wf-form-select { width:100%; padding:8px 10px; border:1px solid var(--border-color); border-radius:6px; font-size:0.82rem; }
.wf-form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.wf-required { color:#ef4444; }
.wf-dep-none { font-size:0.75rem; color:var(--text-secondary); font-style:italic; }
.wf-template-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.wf-template-card-label { font-size:0.78rem; font-weight:600; display:block; margin-top:4px; }
@media (max-width: 768px) {
  .wf-kanban { grid-template-columns:repeat(2,1fr); }
  .wf-card-grid, .wf-grid { grid-template-columns:1fr; }
  .wf-template-grid, .wf-template-cards { grid-template-columns:1fr; }
  .wf-timeline { flex-wrap:wrap; gap:8px; }
  .wf-detail-row { flex-direction:column; }
  .wf-module-assign-head { flex-direction:column; }
  .wf-ma-row { grid-template-columns:1fr; gap:8px; }
  .wf-ma-header { display:none; }
  .wf-gantt-wrap { flex-direction:column; }
  .wf-gantt-left { min-width:auto; border-right:none; border-bottom:2px solid var(--border-color); }
}

/* ================================================================
   统一基础组件 — Upload Zone & Data Table
   ================================================================ */

/* 通用上传区基础类 */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-hover);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}
.upload-zone-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.upload-zone-text { font-size: 0.82rem; color: var(--text-secondary); margin: 4px 0; }
.upload-zone-hint { font-size: 0.7rem; color: var(--text-muted); }

/* 通用数据表格基础类 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.data-table th, .data-table td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  text-align: left;
}
.data-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.data-table tr:hover td {
  background: var(--bg-hover);
}
.data-table tr:nth-child(even) td {
  background: #fafbfc;
}
.data-table tr:nth-child(even):hover td {
  background: var(--bg-hover);
}

/* ================================================================
   Toast 通知系统
   ================================================================ */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 380px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--card-radius);
  background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 0.85rem; color: var(--text-primary);
  pointer-events: auto; cursor: pointer;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-left: 4px solid var(--primary);
}
.toast-show { transform: translateX(0); opacity: 1; }
.toast-hide { transform: translateX(120%); opacity: 0; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close {
  border: none; background: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-muted); padding: 0 2px;
  transition: color 0.15s; flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }
.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info { border-left-color: var(--primary); }
.toast-info .toast-icon { color: var(--primary); }

/* Toast 确认对话框 */
.toast-confirm-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(15,23,42,0.4); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: auto;
}
.toast-confirm-show { opacity: 1; }
.toast-confirm-hide { opacity: 0; }
.toast-confirm-dialog {
  background: #fff; border-radius: var(--card-radius);
  padding: 24px; min-width: 320px; max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: scale(0.95); transition: transform 0.2s ease;
}
.toast-confirm-show .toast-confirm-dialog { transform: scale(1); }
.toast-confirm-msg {
  font-size: 0.9rem; color: var(--text-primary);
  line-height: 1.6; margin-bottom: 20px;
}
.toast-confirm-btns { display: flex; justify-content: flex-end; gap: 8px; }
.toast-form-dialog { box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.toast-form-dialog h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; color: var(--text-primary); }
.toast-form-dialog .toast-confirm-msg { overflow-wrap: anywhere; }
.toast-form-field { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--text-primary); }
.toast-form-field input, .toast-form-field textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-color, #cbd5e1); border-radius: 6px; color: var(--text-primary); background: var(--bg-card, #fff); font: inherit; line-height: 1.6; }
.toast-form-field textarea { resize: vertical; }
.toast-form-error { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--danger, #b42318); overflow-wrap: anywhere; }
.toast-form-status { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.toast-form-dialog [aria-invalid="true"] { border-color: var(--danger, #b42318); }
@media (max-width: 768px) { .toast-form-field input, .toast-form-field textarea { font-size: 16px; } }

@media (max-width: 768px) {
  .toast-container { left: 16px; right: 16px; max-width: none; }
  .toast-confirm-dialog { min-width: auto; margin: 0 16px; }
}

/* ── Accessibility ── */
.nav-item:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav-group-label {
  color: #8a9bb5;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Breadcrumb ── */
.breadcrumb {
  grid-column: 2;
  padding: 6px 32px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
.breadcrumb span { color: var(--text-secondary); }
.breadcrumb .bc-sep { margin: 0 6px; color: var(--text-muted); }
.breadcrumb .bc-current { font-weight: 600; color: var(--text-primary); }
.breadcrumb .bc-link {
  appearance: none;
  padding: 2px 1px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  transition: color 0.15s, background-color 0.15s;
}
.breadcrumb .bc-link:hover { color: var(--accent-hover); text-decoration: underline; }
.breadcrumb .bc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.breadcrumb .bc-label { color: var(--text-secondary); }
@media (max-width: 768px) {
  .breadcrumb { grid-column: 1; padding: 6px 16px; margin-top: 48px; }
}

/* ══════════════════════════════════════════════════════════
   Dashboard Phase 2 — 发现分类 + 整改环形 + 6卡片布局
   ══════════════════════════════════════════════════════════ */

/* 发现分类条形图 */
.dash-category-section {
  margin-bottom: 16px;
}
.dash-category-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}
.dash-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.dash-category-icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.dash-category-name {
  font-size: 0.8rem;
  color: var(--text-primary);
  width: 50px;
  flex-shrink: 0;
}
.dash-category-bar {
  flex: 1;
  height: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}
.dash-category-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
  min-width: 2px;
}
.dash-category-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}
.dash-category-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* 整改环形图区域 */
.dash-rem-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.dash-rem-ring-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}
.dash-rem-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-rem-ring-center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 8px rgba(0,0,0,0.06);
}
.dash-rem-ring-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.dash-rem-ring-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.dash-rem-details {
  flex: 1;
  min-width: 0;
}
.dash-rem-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.dash-rem-detail-item:last-child { border-bottom: none; }
.dash-rem-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-rem-detail-label {
  font-size: 0.8rem;
  color: var(--text-primary);
  flex: 1;
}
.dash-rem-detail-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.dash-rem-avg {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.dash-rem-avg strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .dash-rem-section { flex-direction: column; align-items: center; }
  .dash-rem-ring-wrap { width: 120px; height: 120px; }
  .dash-rem-ring { width: 120px; height: 120px; }
  .dash-rem-ring-center { width: 68px; height: 68px; }
  .dash-rem-ring-value { font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════════════
   管理层互动模块 (management-interaction)
   ══════════════════════════════════════════════════════════ */

.mi-stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mi-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card, #fff);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mi-stat-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.mi-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.mi-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mi-filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card, #fff);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.mi-filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mi-filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.mi-card-list {
  display: grid;
  gap: 12px;
}
.mi-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.mi-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.mi-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mi-card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}
.mi-card-type-badge.interview { background: #6366f1; }
.mi-card-type-badge.meeting { background: #0ea5e9; }
.mi-card-type-badge.confirmation { background: #f59e0b; }
.mi-card-type-badge.memo { background: #8b5cf6; }
.mi-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.mi-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mi-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.mi-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mi-card-actions {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mi-card-actions .mi-action-done { color: #22c55e; }
.mi-card-actions .mi-action-pending { color: #f59e0b; }

.mi-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.mi-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.mi-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.mi-empty-hint {
  font-size: 0.82rem;
  margin-bottom: 16px;
}

/* 新建/编辑表单 */
.mi-form {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
}
.mi-form-row {
  margin-bottom: 16px;
}
.mi-form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.mi-form-row input,
.mi-form-row select,
.mi-form-row textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-page);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.mi-form-row input:focus,
.mi-form-row select:focus,
.mi-form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.mi-form-row textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
.mi-form-inline {
  display: flex;
  gap: 12px;
}
.mi-form-inline > .mi-form-row {
  flex: 1;
}

/* 参与人标签输入 */
.mi-participant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-page);
  min-height: 38px;
  cursor: text;
}
.mi-participant-tags:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.mi-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-size: 0.75rem;
}
.mi-tag-remove {
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.8;
}
.mi-tag-remove:hover { opacity: 1; }
.mi-participant-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.82rem;
  min-width: 100px;
  flex: 1;
  padding: 2px 4px;
  color: var(--text-primary);
}

/* 行动项行 */
.mi-action-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mi-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mi-action-row input[type="text"] {
  flex: 2;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg-page);
}
.mi-action-row input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}
.mi-action-row input[type="date"],
.mi-action-row select {
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: var(--bg-page);
}
.mi-action-row input[type="date"]:focus,
.mi-action-row select:focus {
  outline: none;
  border-color: var(--accent);
}
.mi-action-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #fef2f2;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mi-action-remove:hover { background: #fee2e2; }
.mi-add-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: transparent;
  margin-top: 4px;
  transition: background 0.2s;
}
.mi-add-action:hover { background: rgba(99,102,241,0.05); }

/* 表单按钮行 */
.mi-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.mi-form-actions .btn-primary {
  padding: 8px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.mi-form-actions .btn-primary:hover { background: var(--accent-hover); }
.mi-form-actions .btn-secondary {
  padding: 8px 20px;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.mi-form-actions .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* 详情页 */
.mi-detail {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
}
.mi-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.mi-detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mi-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mi-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.mi-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mi-detail-content {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
  padding: 16px;
  background: var(--bg-page);
  border-radius: 10px;
  margin-bottom: 20px;
}
.mi-detail-actions-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.mi-detail-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.mi-detail-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-page);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.mi-detail-action-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}
.mi-detail-action-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.mi-detail-action-text.done {
  text-decoration: line-through;
  color: var(--text-muted);
}
.mi-detail-action-owner {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 2px 8px;
  background: var(--bg-card, #fff);
  border-radius: 10px;
}
.mi-detail-action-due {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mi-detail-action-due.overdue {
  color: #ef4444;
  font-weight: 600;
}
.mi-detail-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mi-detail-btn-row .btn {
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card, #fff);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.mi-detail-btn-row .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mi-detail-btn-row .btn-danger {
  color: #ef4444;
  border-color: #fecaca;
}
.mi-detail-btn-row .btn-danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

/* 新建按钮 */
.mi-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mi-toolbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.mi-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.mi-btn-new:hover { background: var(--accent-hover); }

/* 管理层互动：新建/编辑表单美化 */
.mi-container .mi-form-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 34px 34px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(37,99,235,.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
}
.mi-form-card .mi-form-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}
.mi-form-card .mi-back-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.mi-form-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.mi-form-title-block h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.mi-form-title-block p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.7;
}
.mi-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.mi-form-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.mi-form-item.full { grid-column: 1 / -1; }
.mi-form-item label {
  color: #334155;
  font-size: .78rem;
  font-weight: 800;
}
.mi-field-hint {
  margin-top: -2px;
  color: #94a3b8;
  font-size: .72rem;
  line-height: 1.5;
}
.mi-form-item input,
.mi-form-item select,
.mi-form-item textarea,
.mi-action-row input,
.mi-action-row select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font: 600 .86rem inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.mi-form-item input::placeholder,
.mi-form-item textarea::placeholder,
.mi-action-row input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.mi-type-purpose {
  margin:0 0 10px;
  padding:11px 12px;
  border:1px solid #bfdbfe;
  border-left:4px solid #2563eb;
  border-radius:12px;
  background:#f8fbff;
}
.mi-type-purpose strong {
  display:block;
  color:#0f172a;
  font-size:14px;
  line-height:1.35;
}
.mi-type-purpose p {
  margin:4px 0 0;
  color:#52637a;
  font-size:13px;
  line-height:1.55;
}
.mi-form-item input:focus,
.mi-form-item select:focus,
.mi-form-item textarea:focus,
.mi-action-row input:focus,
.mi-action-row select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.11);
}
.mi-content-field textarea {
  min-height: 300px;
  line-height: 1.72;
  font-family: "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  resize: vertical;
}
.mi-tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #d7e0ec;
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.mi-tag-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.11);
}
.mi-tag-input-wrap .mi-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 800;
}
.mi-tag-input-wrap .mi-tag-del {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  cursor: pointer;
  color: #64748b;
}
.mi-tag-input-wrap .mi-tag-del:hover {
  background: #dbeafe;
  color: #1d4ed8;
}
.mi-tag-input-wrap .mi-tag-input {
  flex: 1 1 180px;
  min-height: 28px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.mi-tag-input-wrap .mi-tag-input:focus { box-shadow: none; }
#mi-action-items-list {
  display: grid;
  gap: 10px;
}
.mi-action-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(110px, .45fr) 150px 140px 42px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.mi-action-row .mi-ai-owner { width: 100% !important; }
.mi-action-row .mi-ai-del {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
}
.mi-add-action-btn {
  align-self: flex-start;
  margin-top: 10px !important;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
}
.mi-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}
.mi-form-actions .btn {
  min-width: 132px;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 850;
}
.mi-form-actions .btn-primary {
  background: #0f766e;
  box-shadow: 0 14px 26px rgba(15,118,110,.18);
}
.mi-form-actions .btn-primary:hover { background: #0f5f59; }
html[data-theme="dark"] .mi-container .mi-form-card {
  background: linear-gradient(135deg,#172235,#132b3d);
  border-color: #2d425a;
  box-shadow: none;
}
html[data-theme="dark"] .mi-form-title-block h2,
html[data-theme="dark"] .mi-form-item label { color: #f1f5f9; }
html[data-theme="dark"] .mi-form-title-block p,
html[data-theme="dark"] .mi-field-hint { color: #9fb0c7; }
html[data-theme="dark"] .mi-form-card .mi-form-header,
html[data-theme="dark"] .mi-form-actions { border-color: #314158; }
html[data-theme="dark"] .mi-form-item input,
html[data-theme="dark"] .mi-form-item select,
html[data-theme="dark"] .mi-form-item textarea,
html[data-theme="dark"] .mi-tag-input-wrap,
html[data-theme="dark"] .mi-type-purpose,
html[data-theme="dark"] .mi-action-row input,
html[data-theme="dark"] .mi-action-row select {
  background: #1b2940;
  border-color: #314158;
  color: #d8e1ee;
}
html[data-theme="dark"] .mi-type-purpose strong { color:#f1f5f9; }
html[data-theme="dark"] .mi-type-purpose p { color:#9fb0c7; }
html[data-theme="dark"] .mi-action-row {
  background: #172235;
  border-color: #314158;
}
@media(max-width: 980px) {
  .mi-form-grid { grid-template-columns: 1fr; }
  .mi-action-row { grid-template-columns: 1fr 1fr; }
  .mi-action-row .mi-ai-text { grid-column: 1 / -1; }
}
@media(max-width: 640px) {
  .mi-container .mi-form-card {
    padding: 22px 18px 24px;
    border-radius: 20px;
  }
  .mi-form-card .mi-form-header { grid-template-columns: 1fr; }
  .mi-action-row { grid-template-columns: 1fr; }
  .mi-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mi-form-actions .btn { width: 100%; }
}

@media (max-width: 768px) {
  .mi-form-inline { flex-direction: column; gap: 0; }
  .mi-action-row { flex-wrap: wrap; }
  .mi-action-row input[type="text"] { flex: 1 1 100%; }
  .mi-detail-header { flex-direction: column; }
  .mi-stats-bar { gap: 8px; }
  .mi-stat-chip { padding: 8px 12px; }
}

/* ====== UI refresh: internal audit control center ====== */
:root { --primary:#2563eb; --primary-hover:#1d4ed8; --accent:#0f766e; --accent-hover:#0f5f59; --accent-light:#ecfdf5; --sidebar-bg:#0f172a; --sidebar-hover:#16233b; --sidebar-active:#1e3a5f; --bg-page:#f6f8fc; --card-bg:#fff; --border-color:#e5eaf2; --card-radius:12px; --card-shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.05); }
body { background:var(--bg-page); letter-spacing:.01em; }
.app-layout { grid-template-columns:248px 1fr; background:radial-gradient(circle at 78% -10%,#e8f1ff 0,transparent 27%),var(--bg-page); }
.sidebar { width:248px; background:linear-gradient(180deg,#0b1222,#111c31 52%,#0d1526); border-right:1px solid rgba(148,163,184,.14); }
.sidebar-brand { display:flex; align-items:center; gap:11px; padding:22px 18px 18px; border-bottom-color:rgba(148,163,184,.15); }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:linear-gradient(135deg,#2563eb,#0f766e); box-shadow:0 8px 16px rgba(37,99,235,.25); color:#dbeafe; font-size:.68rem; font-weight:800; letter-spacing:.08em; }
.sidebar-brand h1 { font-size:.95rem; letter-spacing:.04em; }.sidebar-brand p{margin-top:3px;font-size:.62rem;color:#7d8da7}.sidebar-nav{padding:14px 8px}.nav-sep{border-color:rgba(148,163,184,.12)!important;margin:10px 12px!important}.nav-group-label{padding:12px 14px 5px;color:#62718b;font-size:.61rem;letter-spacing:.11em}.nav-item{min-height:40px;margin:2px;padding:9px 12px;gap:10px;border-left:0;border-radius:8px;color:#9aaac1}.nav-item:hover{color:#eef6ff;background:rgba(148,163,184,.1)}.nav-item.active{color:#f8fbff;background:linear-gradient(90deg,rgba(37,99,235,.29),rgba(15,118,110,.16));box-shadow:inset 2px 0 0 #60a5fa}.nav-icon{width:22px;font-size:1rem;filter:saturate(.76)}
.sidebar-footer{margin:0 10px 10px;padding:12px;border:1px solid rgba(148,163,184,.12);border-radius:12px;background:linear-gradient(180deg,rgba(15,23,42,.52),rgba(15,23,42,.32));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.sf-version{margin-bottom:10px;color:#667892;font-size:.66rem;text-align:center}.sf-data-panel{padding:10px;border:1px solid rgba(148,163,184,.12);border-radius:10px;background:rgba(2,6,23,.18)}.sf-data-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}.sf-data-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,rgba(37,99,235,.28),rgba(15,118,110,.22));color:#bfdbfe;font-size:.95rem;font-weight:800}.sf-data-head strong{display:block;color:#cbd5e1;font-size:.76rem;line-height:1.2}.sf-data-head small{display:block;margin-top:2px;color:#71809a;font-size:.62rem}.sf-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sf-btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:48px;padding:8px 9px;border:1px solid rgba(148,163,184,.14);border-radius:9px;background:rgba(15,23,42,.38);color:#94a3b8;cursor:pointer;text-align:left;transition:transform .15s,background .15s,border-color .15s,color .15s}.sf-btn span{color:#d8e1ee;font-size:.74rem;font-weight:750}.sf-btn small{margin-top:2px;color:#71809a;font-size:.6rem}.sf-btn:hover{transform:translateY(-1px);color:#dbeafe;background:rgba(37,99,235,.12);border-color:rgba(96,165,250,.28)}.sf-btn:hover small{color:#93c5fd}.sf-btn-restore:hover{background:rgba(15,118,110,.14);border-color:rgba(45,212,191,.25)}
.project-toolbar{position:sticky;top:0;z-index:50;max-width:none;min-height:58px;padding:10px 32px;background:rgba(255,255,255,.86);color:var(--text-primary);border-bottom:1px solid rgba(226,232,240,.9);box-shadow:0 1px 0 rgba(15,23,42,.03);backdrop-filter:blur(14px)}.project-bar-inner{min-height:36px;max-width:1400px;margin:auto}.project-label{color:#64748b;font-weight:600}.project-toolbar select{min-width:160px;padding:7px 10px;border-color:#d9e1ec;border-radius:7px;background:#f8fafc}.project-toolbar .btn{padding:6px 10px;border-radius:7px;font-size:.74rem}.project-toolbar .btn-primary{background:var(--primary)}.breadcrumb{max-width:1400px;padding:12px 32px 4px;color:#64748b}.main-content{max-width:1460px;padding:18px 32px 42px}.form-card,.section,.result-header,.stat-card{border:1px solid var(--border-color);box-shadow:var(--card-shadow)}.form-card{padding:28px}.btn{min-height:36px;border-radius:8px;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.btn-primary{background:var(--primary);box-shadow:0 4px 10px rgba(37,99,235,.16)}.btn-primary:hover{background:var(--primary-hover);transform:translateY(-1px)}.btn-secondary{border-color:#d7e0ec;background:#fff}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:6px 0 22px}.page-eyebrow,.cr-kicker{display:block;margin-bottom:7px;color:#0f766e;font-size:.64rem;letter-spacing:.13em;font-weight:800}.page-heading h2{font-size:1.62rem;line-height:1.2;color:#0f172a}.page-heading p{margin-top:8px;font-size:.86rem;color:#64748b}.page-heading-status{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #cceae4;border-radius:999px;background:#f0fdfa;color:#0f766e;font-size:.74rem;font-weight:600;white-space:nowrap}.status-dot{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}

/* Contract review workflow */
.cr-workflow{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-bottom:18px;overflow:hidden;border:1px solid #dce6f2;border-radius:12px;background:#dce6f2}.cr-step{display:flex;align-items:center;gap:10px;padding:13px 16px;background:#fff;color:#94a3b8}.cr-step span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f1f5f9;color:#64748b;font-size:.65rem;font-weight:800}.cr-step strong,.cr-step small{display:block}.cr-step strong{color:#64748b;font-size:.78rem}.cr-step small{margin-top:1px;font-size:.68rem}.cr-step.is-active{background:linear-gradient(90deg,#eff6ff,#f0fdfa)}.cr-step.is-active span{background:var(--primary);color:#fff;box-shadow:0 4px 9px rgba(37,99,235,.2)}.cr-step.is-active strong{color:#1e3a5f}
.cr-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr);gap:16px;margin-bottom:20px}.cr-upload-card,.cr-rules-card{padding:22px;border:1px solid var(--border-color);border-radius:14px;background:#fff;box-shadow:var(--card-shadow)}.cr-card-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.cr-card-heading h3,.cr-rules-card h3{margin:0;color:#172033;font-size:1rem}.cr-card-heading p{margin-top:5px;color:#64748b;font-size:.78rem}.cr-card-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:#2563eb;background:#eff6ff;font-size:1.3rem}.cr-upload{margin-bottom:0}.cr-upload-zone{padding:34px 20px;border:1.5px dashed #a9c4ea;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#f4fbfa)}.cr-upload-zone:hover,.cr-upload-zone.dragover{border-color:#2563eb;background:#eff6ff;transform:translateY(-1px)}.cr-upload-icon{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 10px;border-radius:12px;background:#dbeafe;color:#2563eb;font-size:1.45rem;font-weight:700}.cr-upload-zone p{font-size:.84rem}.cr-upload-hint{margin-bottom:14px!important}.cr-file-info{min-height:10px;margin-top:12px}.cr-file-info>span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;color:#0f766e;background:#f0fdfa;border:1px solid #cceae4;border-radius:8px;font-size:.78rem}.cr-action-btns{margin-top:14px;gap:9px}.cr-action-btns .btn-primary span{margin-left:7px;font-size:1rem}
.cr-parse-success{padding:11px 12px;border:1px solid #bde5d8;border-radius:10px;background:#f3fcf8}.cr-parse-success>div{display:flex;align-items:flex-start;gap:9px}.cr-parse-success>div>span{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#16a34a;color:#fff;font-size:.72rem}.cr-parse-success p{margin:0;color:#166534;font-size:.78rem}.cr-parse-success p strong,.cr-parse-success p small{display:block}.cr-parse-success p strong{margin-top:2px;color:#172033;font-size:.82rem}.cr-parse-success p small{margin-top:2px;color:#5b766d;font-size:.7rem}.cr-parse-success details{margin-top:9px;border-top:1px solid #d8eee6;padding-top:8px}.cr-parse-success summary{color:#2563eb;font-size:.72rem;font-weight:700;cursor:pointer}.cr-parse-success pre{max-height:260px;margin-top:8px;padding:11px;overflow:auto;border:1px solid #dbe5e1;border-radius:8px;background:#fff;color:#334155;font:12px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;white-space:pre-wrap}
.cr-rules-card{background:linear-gradient(165deg,#10213c,#152d4e);border-color:#233d61;color:#dbeafe}.cr-rules-card .cr-kicker{color:#79d8cb}.cr-rules-card h3{color:#fff}.cr-rules-card ul{margin:15px 0 20px;padding:0;list-style:none}.cr-rules-card li{position:relative;padding:8px 0 8px 17px;border-bottom:1px solid rgba(191,219,254,.12);color:#c6d6eb;font-size:.79rem}.cr-rules-card li::before{content:'•';position:absolute;left:2px;color:#5eead4}.cr-rules-note{padding:10px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:rgba(15,23,42,.25);color:#9db2ce;font-size:.7rem;line-height:1.6}.cr-summary{padding:22px;border-radius:14px;box-shadow:var(--card-shadow)}.cr-summary h3{font-size:1.04rem}.cr-checklist{margin-top:18px;padding:20px;border:1px solid var(--border-color);border-radius:14px;background:#fff;box-shadow:var(--card-shadow)}.cr-checklist>h3{margin-bottom:14px;color:#172033;font-size:.95rem}.cr-check-item{margin-bottom:10px;border-radius:10px;box-shadow:none}.cr-check-header{min-height:48px;padding:11px 14px}.cr-check-body{padding:15px 16px}.cr-check-rec,.cr-check-clause,.cr-risk-excerpt{margin-top:9px;padding:10px 12px;border-radius:7px;font-size:.79rem;line-height:1.65}.cr-check-rec{background:#eff6ff;color:#334155}.cr-check-clause{background:#f8fafc;color:#64748b}.cr-risk-excerpt{border-left:3px solid #f59e0b;background:#fffbeb;color:#78350f}
@media(max-width:900px){.cr-layout{grid-template-columns:1fr}}@media(max-width:768px){.app-layout{grid-template-columns:1fr}.sidebar{width:248px}.main-content{padding:16px}.project-toolbar{padding:8px 16px}.breadcrumb{padding:10px 16px 4px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}.cr-workflow{grid-template-columns:1fr}.cr-step{padding:10px 13px}}

/* 合同工具：基础体检与智能审阅分层 */
.cr-capability-card{display:flex;flex-direction:column;gap:13px}.cr-capability-card h3{margin-bottom:2px}.cr-capability-row{display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:start;padding:12px;border:1px solid rgba(191,219,254,.16);border-radius:10px;background:rgba(15,23,42,.22)}.cr-capability-row>b{display:grid;place-items:center;min-height:28px;border-radius:7px;background:#dbeafe;color:#1d4ed8;font-size:.68rem}.cr-capability-row.is-ai>b{background:#ccfbf1;color:#0f766e}.cr-capability-row strong,.cr-capability-row small{display:block}.cr-capability-row strong{color:#f8fafc;font-size:.8rem}.cr-capability-row small{margin-top:4px;color:#adc1da;font-size:.72rem;line-height:1.55}.cr-ai-state{margin-top:auto;padding:12px;border-radius:10px}.cr-ai-state strong,.cr-ai-state span{display:block}.cr-ai-state strong{font-size:.78rem}.cr-ai-state span{margin-top:4px;font-size:.7rem;line-height:1.55}.cr-ai-state.is-ready{border:1px solid rgba(94,234,212,.24);background:rgba(15,118,110,.2);color:#ccfbf1}.cr-ai-state.is-locked{border:1px solid rgba(251,191,36,.25);background:rgba(120,53,15,.22);color:#fef3c7}.cr-ai-state button{margin-top:9px;padding:0;border:0;background:transparent;color:#bfdbfe;font-size:.72rem;font-weight:700;text-decoration:underline;cursor:pointer}.cr-action-btns button:disabled{cursor:not-allowed;opacity:.52}.cr-format-warning{display:inline-block;margin-top:7px;padding:4px 7px;border-radius:6px;background:#fff7ed;color:#9a3412;font-size:.68rem;font-style:normal}.cr-inline-error{margin-top:12px;padding:12px 14px;border:1px solid #fecaca;border-radius:9px;background:#fef2f2;color:#991b1b;font-size:.8rem;line-height:1.6}.cr-native-file-input{position:fixed!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.cr-file-picker{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.cr-file-picker:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}

.cr-ai-context{display:grid;grid-template-columns:minmax(190px,1.15fr) repeat(4,minmax(145px,1fr));gap:10px;align-items:end;margin-bottom:18px;padding:14px 16px;border:1px solid #dce6f2;border-radius:12px;background:#fff}.cr-ai-context-copy{align-self:center}.cr-ai-context-copy strong,.cr-ai-context-copy span{display:block}.cr-ai-context-copy strong{color:#172033;font-size:.84rem}.cr-ai-context-copy span{margin-top:3px;color:#64748b;font-size:.7rem}.cr-ai-context label>span{display:block;margin-bottom:6px;color:#52657c;font-size:.68rem;font-weight:700}.cr-ai-context select{width:100%;height:36px;padding:0 30px 0 10px;border:1px solid #cdd9e8;border-radius:8px;background:#f8fafc;color:#243247;font-size:.75rem}.cr-ai-context select:focus{outline:2px solid rgba(37,99,235,.18);border-color:#3b82f6}

.cr-basic-result{margin-top:18px;border:1px solid #dce6f2;border-radius:14px;background:#fff;overflow:hidden}.cr-basic-result>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid #e5edf6}.cr-basic-result>header span{color:#2563eb;font-size:.68rem;font-weight:800}.cr-basic-result>header h3{margin:3px 0;color:#172033;font-size:1.05rem}.cr-basic-result>header p{color:#64748b;font-size:.76rem}.cr-basic-metrics{display:flex;gap:8px}.cr-basic-metrics b{display:grid;place-items:center;min-width:70px;padding:8px 12px;border:1px solid #dbe7f5;border-radius:9px;background:#f8fbff;color:#1d4ed8;font-size:1rem}.cr-basic-metrics small{margin-top:2px;color:#64748b;font-size:.64rem;font-weight:600}.cr-boundary-note{display:flex;align-items:center;gap:14px;margin:14px 20px 0;padding:11px 13px;border-left:3px solid #0f766e;background:#f0fdfa;color:#244b48}.cr-boundary-note strong{font-size:.77rem;white-space:nowrap}.cr-boundary-note span{font-size:.72rem;line-height:1.55}.cr-basic-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;padding:18px 20px}.cr-basic-grid h4{margin-bottom:10px;color:#172033;font-size:.82rem}.cr-fact-list{border-top:1px solid #e5edf6}.cr-fact-list>div{display:grid;grid-template-columns:125px 1fr;gap:14px;padding:11px 4px;border-bottom:1px solid #e5edf6}.cr-fact-list dt{color:#52657c;font-size:.72rem;font-weight:700}.cr-fact-list dd{color:#253247;font-size:.76rem;line-height:1.55}.cr-fact-list dd span{color:#94a3b8}.cr-attention-list{display:grid;gap:8px}.cr-attention-list article{padding:11px 12px;border:1px solid #f1dfb5;border-radius:9px;background:#fffbeb}.cr-attention-list strong{color:#854d0e;font-size:.75rem}.cr-attention-list p{margin-top:4px;color:#715327;font-size:.72rem;line-height:1.55}.cr-attention-list small{display:block;margin-top:5px;color:#a16207;font-size:.65rem}.cr-attention-list blockquote{margin:7px 0 0;padding:7px 9px;border-left:2px solid #f59e0b;background:#fff;color:#6b4c1f;font-size:.69rem;line-height:1.55}.cr-neutral-empty{padding:12px;border:1px dashed #cbd5e1;border-radius:9px;background:#f8fafc;color:#64748b;font-size:.73rem;line-height:1.6}.cr-check-details{margin:0 20px 18px;border-top:1px solid #e5edf6}.cr-check-details summary{padding:12px 0;color:#475569;font-size:.73rem;font-weight:700;cursor:pointer}.cr-check-details>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:12px}.cr-check-details p{display:flex;gap:8px;padding:9px 10px;border-radius:7px;background:#f8fafc;font-size:.7rem}.cr-check-details p strong{min-width:76px;color:#243247}.cr-check-details p span{color:#64748b;line-height:1.5}.cr-check-details p[data-status=review]{background:#fff7ed}.cr-basic-result>footer{display:flex;align-items:center;gap:12px;padding:13px 20px;border-top:1px solid #e5edf6;background:#f8fafc}.cr-basic-result>footer span{color:#64748b;font-size:.7rem}

.cr-ai-loading{position:relative;margin-top:18px;padding:20px;border:1px solid #cbdcf5;border-radius:14px;background:#f8fbff;overflow:hidden}.cr-ai-loading strong,.cr-ai-loading span{display:block}.cr-ai-loading strong{color:#173b6c;font-size:.86rem}.cr-ai-loading span{margin-top:4px;color:#64748b;font-size:.72rem}.cr-ai-loading i{display:inline-block;width:7px;height:7px;margin:12px 4px 0 0;border-radius:999px;background:#3b82f6;animation:crPulse 1.1s infinite ease-in-out}.cr-ai-loading i:nth-of-type(2){animation-delay:.15s}.cr-ai-loading i:nth-of-type(3){animation-delay:.3s}@keyframes crPulse{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}

.cr-ai-review-structured>header>div strong,.cr-ai-review-structured>header>div small{display:block}.cr-ai-review-structured>header>div small{margin-top:3px;color:#64748b;font-size:.65rem}.cr-ai-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e5edf6}.cr-ai-summary-grid p{min-height:92px;padding:14px 16px;border-right:1px solid #e5edf6;color:#243247;font-size:.74rem;line-height:1.55}.cr-ai-summary-grid p:last-child{border-right:0}.cr-ai-summary-grid span{display:block;margin-bottom:6px;color:#64748b;font-size:.66rem;font-weight:700}.cr-ai-overall{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:14px 18px;border-bottom:1px solid #e5edf6;background:#f8fbff}.cr-ai-overall strong{color:#1d4ed8;font-size:.75rem}.cr-ai-overall p{color:#334155;font-size:.76rem;line-height:1.6}.cr-ai-section{padding:18px;border-bottom:1px solid #e5edf6}.cr-ai-section>h4{margin:0 0 12px!important;color:#172033!important;font-size:.86rem!important}.cr-consistency-list,.cr-missing-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cr-consistency-list article,.cr-missing-list article{padding:12px;border:1px solid #dce6f2;border-radius:9px;background:#fff}.cr-consistency-list article>header{display:flex;justify-content:space-between;gap:10px}.cr-consistency-list article>header strong{color:#243247;font-size:.75rem}.cr-consistency-list article>header span{padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.62rem}.cr-consistency-list article[data-status=attention]{border-color:#f5d99c;background:#fffbeb}.cr-consistency-list article[data-status=attention]>header span{background:#fef3c7;color:#92400e}.cr-consistency-list article>p,.cr-missing-list p{margin-top:7px;color:#52657c;font-size:.71rem;line-height:1.55}.cr-consistency-list blockquote{margin:8px 0 0;padding:8px 9px;border-left:2px solid #93c5fd;background:#f8fbff;color:#334155;font-size:.69rem;line-height:1.55}.cr-consistency-list blockquote small{display:block;margin-top:4px;color:#64748b}.cr-consistency-list article>div{margin-top:8px;color:#334155;font-size:.7rem}.cr-ai-risk-list{display:grid;gap:9px}.cr-ai-risk-list details{border:1px solid #dce6f2;border-radius:10px;background:#fff;overflow:hidden}.cr-ai-risk-list summary{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;cursor:pointer}.cr-ai-risk-list summary strong{color:#243247;font-size:.77rem}.cr-ai-risk-list summary>b{color:#64748b;font-size:.64rem}.cr-severity{display:grid;place-items:center;min-height:25px;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:.65rem;font-weight:800}.cr-severity.high{background:#fee2e2;color:#b91c1c}.cr-severity.medium{background:#fef3c7;color:#92400e}.cr-severity.low{background:#dbeafe;color:#1d4ed8}.cr-ai-risk-list details>div{padding:2px 14px 14px;border-top:1px solid #e5edf6}.cr-ai-risk-list details>div>p{display:grid;grid-template-columns:90px 1fr;gap:10px;margin-top:11px;color:#475569;font-size:.72rem;line-height:1.6}.cr-ai-risk-list details>div>p>strong{color:#243247}.cr-ai-risk-list blockquote{margin:11px 0 0;padding:10px 12px;border-left:3px solid #3b82f6;background:#f8fbff;color:#334155;font-size:.71rem;line-height:1.6}.cr-ai-risk-list blockquote small{display:block;margin-top:5px;color:#64748b}.cr-verification{display:grid;grid-template-columns:90px 1fr;gap:10px;margin-top:11px;color:#475569;font-size:.72rem}.cr-verification ul{margin:0;padding-left:18px}.cr-verification li{margin-bottom:4px}.cr-legal-review{display:block!important;padding:8px 10px;border-radius:7px;background:#fff7ed;color:#9a3412!important}.cr-missing-list strong{color:#243247;font-size:.75rem}.cr-missing-list small{display:block;margin-top:7px;color:#1d4ed8;font-size:.68rem}.cr-next-checks ol{margin:0;padding-left:21px;color:#334155;font-size:.73rem;line-height:1.65}.cr-next-checks li{margin-bottom:5px}.cr-ai-boundary{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:14px 18px;background:#f8fafc}.cr-ai-boundary strong{color:#475569;font-size:.74rem}.cr-ai-boundary p{color:#64748b;font-size:.7rem;line-height:1.6}.cr-ai-review-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-top:1px solid #e5edf6;background:#fff}.cr-ai-review-actions>div{display:flex;gap:8px}.cr-ai-review-actions>span{max-width:420px;color:#64748b;font-size:.68rem;text-align:right;line-height:1.5}
.cr-ai-coverage{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px;border-bottom:1px solid #e5edf6;font-size:.7rem}.cr-ai-coverage strong,.cr-ai-coverage span{display:block}.cr-ai-coverage.is-complete{background:#f0fdf4;color:#166534}.cr-ai-coverage.is-partial{background:#fff7ed;color:#9a3412}.cr-ai-review-actions>label{display:grid;gap:4px;min-width:170px;color:#475569;font-size:.68rem;font-weight:700}.cr-ai-review-actions>label select{min-height:34px;padding:0 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#172033;font-size:.74rem}

@media(max-width:1180px){.cr-ai-context{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-ai-context-copy{grid-column:1/-1}.cr-ai-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-ai-summary-grid p:nth-child(2){border-right:0}.cr-ai-summary-grid p:nth-child(-n+2){border-bottom:1px solid #e5edf6}}
@media(max-width:820px){.cr-basic-grid{grid-template-columns:1fr}.cr-check-details>div,.cr-consistency-list,.cr-missing-list{grid-template-columns:1fr}.cr-basic-result>header,.cr-ai-review-actions{align-items:flex-start;flex-direction:column}.cr-ai-review-actions>span{text-align:left}.cr-ai-overall,.cr-ai-boundary{grid-template-columns:1fr}.cr-ai-risk-list summary{grid-template-columns:44px minmax(0,1fr)}.cr-ai-risk-list summary>b{grid-column:2}.cr-ai-risk-list details>div>p,.cr-verification{grid-template-columns:1fr}}
@media(max-width:560px){.cr-ai-context,.cr-ai-summary-grid{grid-template-columns:1fr}.cr-ai-context-copy{grid-column:auto}.cr-ai-summary-grid p{border-right:0;border-bottom:1px solid #e5edf6}.cr-fact-list>div{grid-template-columns:1fr}.cr-boundary-note{align-items:flex-start;flex-direction:column}.cr-basic-result>footer{align-items:flex-start;flex-direction:column}.cr-ai-review-actions>div{flex-wrap:wrap}}

/* ====== Phase 2: dashboard, risk assessment and IC testing ====== */
.dash-header{margin:2px 0 18px;padding:24px 26px;border:1px solid #dce7f5;border-radius:16px;background:linear-gradient(112deg,#fff 0%,#f4f8ff 64%,#ecfdf9 100%);box-shadow:var(--card-shadow)}.dash-eyebrow{display:block;margin-bottom:8px;color:#0f766e;font-size:.64rem;font-weight:800;letter-spacing:.14em}.dash-title{font-size:1.45rem!important;color:#172033!important}.dash-subtitle{margin-top:7px!important;color:#64748b!important}.dash-header-right{display:flex;align-items:center;gap:10px}.dash-year-badge{padding:9px 12px!important;border:1px solid #dbe5f1;border-radius:9px;background:#fff!important;box-shadow:none!important}.dash-year-label{color:#64748b!important}.dash-year-name{color:#1e3a5f!important}.dash-create-btn{border:0;border-radius:8px;padding:10px 13px;background:#172f52;color:#fff;font:600 .76rem inherit;cursor:pointer}.dash-create-btn:hover{background:#0f2340}.dash-create-btn span{margin-left:7px;font-size:1rem}.dash-kpi-row{gap:12px}.dash-kpi-card{border:1px solid #e4eaf2;border-radius:12px;background:#fff;box-shadow:var(--card-shadow);overflow:hidden}.dash-kpi-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.09)}.dash-kpi-bg{min-height:132px!important;color:#fff!important}.dash-kpi-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;font-size:1rem!important}.dash-kpi-data{margin-top:17px}.dash-kpi-value{color:#fff!important;font-size:1.7rem!important}.dash-kpi-unit,.dash-kpi-sub{color:rgba(255,255,255,.8)!important}.dash-kpi-label{color:rgba(255,255,255,.9)!important;font-size:.76rem!important}.dash-kpi-blue .dash-kpi-icon{background:#eff6ff;color:#2563eb}.dash-kpi-teal .dash-kpi-icon{background:#ecfdf5;color:#0f766e}.dash-kpi-violet .dash-kpi-icon{background:#f5f3ff;color:#7c3aed}.dash-kpi-sky .dash-kpi-icon{background:#ecfeff;color:#0891b2}.dash-kpi-amber .dash-kpi-icon{background:#fff7ed;color:#ea580c}.dash-kpi-slate .dash-kpi-icon{background:#f1f5f9;color:#475569}.dash-panel{border:1px solid #e4eaf2;border-radius:14px;box-shadow:var(--card-shadow)}.dash-panel:hover{box-shadow:0 10px 22px rgba(15,23,42,.07)}.dash-panel-title{color:#172033!important;font-size:.95rem!important}.dash-panel-badge{border-radius:999px!important;background:#f1f5f9!important;color:#64748b!important}.dash-panel-link{color:#2563eb!important}

/* Risk assessment: step-led form instead of a plain data entry card */
#view-home .form-card{position:relative;overflow:hidden;padding:28px;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff)}#view-home .form-card::before{content:'01  DEFINE AUDIT SCOPE';display:block;margin:-28px -28px 22px;padding:12px 28px;background:#f0f6ff;border-bottom:1px solid #dbeafe;color:#2563eb;font-size:.64rem;font-weight:800;letter-spacing:.14em}#view-home .form-card h2{font-size:1.42rem}#view-home .form-card .form-desc{max-width:880px;line-height:1.7}.pra-basis-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}.pra-basis-map article{min-height:94px;padding:13px 14px;border:1px solid #dce6f2;border-radius:8px;background:#fff}.pra-basis-map strong{display:block;color:#173047;font-size:.78rem}.pra-basis-map span{display:block;margin-top:6px;color:#64748b;font-size:.68rem;line-height:1.55}.pra-boundary-note{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:11px 13px;border-left:3px solid #b7791f;background:#fff9ea}.pra-boundary-note strong{flex:0 0 auto;color:#7a5418;font-size:.72rem}.pra-boundary-note span{color:#6b5a36;font-size:.7rem;line-height:1.55}.form-grid{gap:14px}.form-group{padding:12px;border:1px solid transparent;border-radius:10px;background:#fbfcfe;transition:border-color .15s,background .15s}.form-group:focus-within{border-color:#bfdbfe;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.06)}.form-group.full-width{padding:14px}.form-group label{color:#475569;font-size:.74rem;letter-spacing:.02em}.form-group select,.form-group input,.form-group textarea{padding:9px 10px;border-color:#d9e2ee;border-radius:7px;background:#fff}.checkbox-group{gap:8px}.checkbox-item{padding:6px 9px;border:1px solid #dce6f2;border-radius:999px;background:#fff;font-size:.76rem}.checkbox-item:has(input:checked){border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.form-actions{padding-top:6px;border-top:1px solid #edf1f6}.file-upload-zone{border-radius:10px;background:linear-gradient(135deg,#f8fbff,#f4fbfa)}

/* Internal control testing: document and manual testing as two clear work modes */
#view-ictest>h2{margin:8px 0 4px;font-size:1.5rem;color:#172033}#view-ictest>h2::before{content:'CONTROL ASSURANCE';display:block;margin-bottom:7px;color:#0f766e;font-size:.62rem;letter-spacing:.14em}.ic-intro-box{border:1px solid #dce7f5!important;border-radius:14px!important;background:linear-gradient(112deg,#fff,#f4f8ff)!important;box-shadow:var(--card-shadow)}.ic-mode-tabs{gap:7px;padding:5px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.ic-mode-tab{border:0!important;border-radius:7px!important;color:#64748b!important}.ic-mode-tab.active{background:#fff!important;color:#1d4ed8!important;box-shadow:0 2px 6px rgba(15,23,42,.08)!important}.ic-file-guide{border:1px solid #dce7f5!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--card-shadow)}.ic-file-guide-title{color:#172033!important}.ic-file-guide-item{border-radius:999px!important;border-color:#cfe0f7!important;background:#f8fbff!important;color:#31567d!important}.ic-upload-zone{border:1.5px dashed #a9c4ea!important;border-radius:12px!important;background:linear-gradient(135deg,#f8fbff,#f4fbfa)!important}.ic-upload-zone:hover,.ic-upload-zone.dragover{border-color:#2563eb!important;background:#eff6ff!important}.ic-summary-bar,.ic-result-summary{border-radius:14px!important;box-shadow:var(--card-shadow)}.ic-cycle-tabs{padding:5px!important;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.ic-cycle-tab{border-radius:7px!important}.ic-cycle-tab.active{background:#fff!important;color:#1d4ed8!important;box-shadow:0 2px 6px rgba(15,23,42,.08)}.ic-matrix-header{margin-top:16px;padding:16px 18px;border:1px solid #e4eaf2;border-bottom:0;border-radius:14px 14px 0 0;background:#fff}.ic-test-matrix{overflow:hidden;border:1px solid #e4eaf2!important;border-radius:0 0 14px 14px;box-shadow:var(--card-shadow)}.ic-test-matrix th{background:#f3f7fc!important;color:#475569!important}.ic-test-matrix td{border-color:#edf1f5!important}.ic-input{border-radius:6px!important;border-color:#d9e2ee!important}
@media(max-width:900px){.pra-basis-map{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.dash-header{padding:19px}.dash-header-right{align-items:flex-start;flex-wrap:wrap}.dash-create-btn{width:100%}.dash-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dash-kpi-bg{min-height:116px!important}#view-home .form-card::before{margin:-28px -28px 18px;padding:11px 20px}.pra-basis-map{grid-template-columns:1fr}.pra-boundary-note{flex-direction:column;gap:5px}.ic-matrix-header{align-items:flex-start;flex-direction:column;gap:12px}}

/* ====== Phase 3: remediation, document preview and appearance ====== */
.ft-stats-panel{margin:14px 0 10px;gap:10px}.ft-stat-card{border:1px solid #e4eaf2;border-radius:11px;box-shadow:var(--card-shadow)}.ft-kanban-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}.ft-kanban-lane{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;min-height:58px;padding:10px 12px;border:1px solid #e4eaf2;border-radius:11px;background:#fff;color:#475569;text-align:left;font:600 .77rem inherit;cursor:pointer;box-shadow:var(--card-shadow);transition:transform .15s,box-shadow .15s}.ft-kanban-lane:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.08)}.ft-kanban-count{display:grid;place-items:center;min-width:28px;height:28px;border-radius:8px;background:#f1f5f9;font-size:.9rem}.ft-kanban-arrow{color:#94a3b8;font-size:1rem}.ft-kanban-open{border-top:3px solid #f97316}.ft-kanban-open .ft-kanban-count{background:#fff7ed;color:#c2410c}.ft-kanban-progress{border-top:3px solid #2563eb}.ft-kanban-progress .ft-kanban-count{background:#eff6ff;color:#1d4ed8}.ft-kanban-resolved{border-top:3px solid #16a34a}.ft-kanban-resolved .ft-kanban-count{background:#f0fdf4;color:#15803d}.ft-kanban-accepted{border-top:3px solid #7c3aed}.ft-kanban-accepted .ft-kanban-count{background:#f5f3ff;color:#6d28d9}.finding-card{border:1px solid #e4eaf2;border-left-width:4px!important;border-radius:12px;padding:16px;box-shadow:var(--card-shadow)}.finding-header{gap:10px}.finding-title{font-size:.88rem;color:#172033}.finding-body{line-height:1.7}.ft-track{margin-top:14px;padding-top:14px;border-top:1px solid #edf1f6}.ft-meta-row,.ft-mgmt-form,.ft-verify-form,.ft-fu-form{gap:8px}.ft-section-toggle{font-weight:650;color:#334155}.ft-mgmt-details,.ft-verify-details,.ft-att-details,.ft-timeline-details,.ft-followup-details{margin-top:8px;padding:10px 12px;border:1px solid #e7edf4;border-radius:8px;background:#fbfcfe}

/* Reporting workspace: generate then turn the right column into a paged preview */
.rp2-stats{gap:9px}.rp2-stat-item{border-radius:11px;border-color:#e4eaf2;box-shadow:var(--card-shadow)}.rp2-columns{align-items:start}.rp2-config-card,.rp2-summary-card,.rp2-output-card{border-color:#e4eaf2;border-radius:14px;box-shadow:var(--card-shadow)}.rp2-card-header{padding:14px 16px;background:linear-gradient(112deg,#fff,#f4f8ff)}.rp2-preview-mode{grid-template-columns:minmax(290px,.72fr) minmax(0,1.28fr)}.rp2-preview-mode .rp2-summary-card{display:none}.rp2-preview-mode .rp2-output-card{display:block!important;grid-column:2;grid-row:1;margin:0;position:sticky;top:78px;max-height:calc(100vh - 96px);overflow:auto}.rp2-preview-mode .rp2-output-body{padding:18px;background:#e9eef5}.rp2-preview-mode .rp2-formatted{min-height:680px;padding:46px 52px;background:#fff;box-shadow:0 2px 16px rgba(15,23,42,.13);font-family:SimSun,'Songti SC',serif;font-size:.9rem;line-height:1.85}.rp2-preview-mode .rp2-formatted h1,.rp2-preview-mode .rp2-formatted h2{font-family:-apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif}.rp2-upload-area{border-radius:9px}.rp2-select{border-radius:7px}.rp2-actions .btn{border-radius:8px}

/* Accessible focus states and user-selectable dark appearance */
:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}.theme-toggle{display:flex!important;align-items:center;gap:7px;width:100%;margin-bottom:8px;padding:7px 8px!important;border:1px solid rgba(148,163,184,.18)!important;border-radius:7px!important;background:rgba(148,163,184,.08)!important;color:#aebbd0!important;font:600 .7rem inherit!important;cursor:pointer}.theme-toggle:hover{background:rgba(148,163,184,.16)!important;color:#fff!important}
html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] body{background:#101827;color:#d8e1ee}html[data-theme="dark"] .app-layout{background:radial-gradient(circle at 78% -10%,#172b48 0,transparent 27%),#101827}html[data-theme="dark"] .project-toolbar{background:rgba(15,23,42,.88);border-color:#26344a;color:#d8e1ee}html[data-theme="dark"] .project-toolbar select,html[data-theme="dark"] .project-toolbar .btn-secondary{background:#172235;color:#d8e1ee;border-color:#314158}html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .form-desc{color:#9fb0c7}html[data-theme="dark"] .form-card,html[data-theme="dark"] .section,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .result-header,html[data-theme="dark"] .dash-kpi-card,html[data-theme="dark"] .dash-panel,html[data-theme="dark"] .cr-upload-card,html[data-theme="dark"] .finding-card,html[data-theme="dark"] .ft-stat-card,html[data-theme="dark"] .ft-kanban-lane,html[data-theme="dark"] .rp2-config-card,html[data-theme="dark"] .rp2-summary-card{background:#172235;border-color:#2d3c54;color:#d8e1ee;box-shadow:none}html[data-theme="dark"] .page-heading h2,html[data-theme="dark"] .form-card h2,html[data-theme="dark"] .dash-title,html[data-theme="dark"] .dash-panel-title,html[data-theme="dark"] .finding-title{color:#f1f5f9!important}html[data-theme="dark"] .dash-header,html[data-theme="dark"] .ic-intro-box{background:linear-gradient(112deg,#172235,#132b3d)!important;border-color:#2d425a!important}html[data-theme="dark"] .dash-kpi-bg,html[data-theme="dark"] .dash-kpi-value{background:#172235!important;color:#eef4ff!important}html[data-theme="dark"] .dash-kpi-sub,html[data-theme="dark"] .dash-kpi-label{color:#9fb0c7!important}html[data-theme="dark"] .form-group,html[data-theme="dark"] .form-group select,html[data-theme="dark"] .form-group input,html[data-theme="dark"] .form-group textarea,html[data-theme="dark"] .ic-file-guide,html[data-theme="dark"] .ic-upload-zone,html[data-theme="dark"] .ic-matrix-header,html[data-theme="dark"] .ic-test-matrix th,html[data-theme="dark"] .ft-mgmt-details,html[data-theme="dark"] .ft-verify-details,html[data-theme="dark"] .ft-att-details,html[data-theme="dark"] .ft-timeline-details,html[data-theme="dark"] .ft-followup-details{background:#1b2940!important;color:#d8e1ee!important;border-color:#314158!important}html[data-theme="dark"] .rp2-preview-mode .rp2-output-body{background:#0f172a}html[data-theme="dark"] .rp2-preview-mode .rp2-formatted{background:#f8fafc;color:#1e293b}html[data-theme="dark"] .ft-kanban-count{background:#26364d;color:#e2e8f0}
@media(max-width:900px){.rp2-preview-mode{grid-template-columns:1fr}.rp2-preview-mode .rp2-output-card{grid-column:1;grid-row:2;position:static;max-height:none}.rp2-preview-mode .rp2-formatted{min-height:480px;padding:28px}}@media(max-width:768px){.ft-kanban-nav{grid-template-columns:repeat(2,1fr)}.ft-kanban-lane{min-height:52px}.ft-stats-panel{display:grid;grid-template-columns:repeat(3,1fr)}.rp2-preview-mode .rp2-output-body{padding:8px}.rp2-preview-mode .rp2-formatted{padding:22px 16px;font-size:.84rem}}

/* ===== Finding Management Redesign ===== */
.ff-workbench { display:flex; flex-direction:column; gap:18px; }
.ff-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(320px,.9fr); gap:24px; padding:30px 34px; border:1px solid rgba(147,197,253,.5); border-radius:28px; background:radial-gradient(circle at 82% 10%,rgba(99,102,241,.16),transparent 28%),linear-gradient(135deg,#f8fbff 0%,#eef6ff 52%,#f7f5ff 100%); box-shadow:0 24px 60px rgba(15,23,42,.08); }
.ff-hero::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(59,130,246,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(59,130,246,.08) 1px,transparent 1px); background-size:34px 34px; mask-image:linear-gradient(90deg,#000,transparent 70%); pointer-events:none; }
.ff-hero-copy,.ff-hero-metrics { position:relative; z-index:1; }
.ff-hero-copy span,.ff-command-copy span,.ff-panel-head span,.ff-list-head span { display:block; color:#2563eb; font-size:.7rem; font-weight:900; letter-spacing:.18em; text-transform:uppercase; margin-bottom:6px; }
.ff-hero-copy h2 { margin:0; color:#0f172a; font-size:2.7rem; font-weight:950; letter-spacing:-.05em; line-height:1.05; }
.ff-hero-copy p { margin:14px 0 0; color:#52647f; font-size:.95rem; line-height:1.8; max-width:720px; }
.ff-hero-metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; align-self:center; }
.ff-hero-metrics div { padding:16px; border:1px solid rgba(219,234,254,.9); border-radius:18px; background:rgba(255,255,255,.78); box-shadow:0 18px 36px rgba(37,99,235,.08); backdrop-filter:blur(10px); }
.ff-hero-metrics strong { display:block; color:#0f172a; font-size:1.8rem; font-weight:950; line-height:1; }
.ff-hero-metrics span { display:block; margin-top:6px; color:#64748b; font-size:.72rem; font-weight:800; }
.ff-command-card { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; padding:18px; border:1px solid rgba(226,232,240,.9); border-radius:22px; background:#fff; box-shadow:0 18px 44px rgba(15,23,42,.06); }
.ff-command-copy h3,.ff-panel-head h4,.ff-list-head h4 { margin:0; color:#0f172a; font-size:1.05rem; font-weight:900; }
.ff-command-copy p,.ff-panel-head p { margin:6px 0 0; color:#64748b; font-size:.78rem; line-height:1.6; }
.ff-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ff-search-wrap { display:flex; align-items:center; gap:8px; min-width:280px; padding:0 12px; border:1px solid #dbe3ef; border-radius:14px; background:#f8fbff; }
.ff-search-wrap span { color:#3b82f6; font-weight:900; }
.ff-search-wrap input { flex:1; min-width:0; height:40px; border:0; outline:none; background:transparent; color:#0f172a; font-size:.8rem; }
.ff-toolbar select { height:42px; min-width:128px; padding:0 12px; border:1px solid #dbe3ef; border-radius:14px; background:#fff; color:#334155; font-size:.78rem; font-weight:700; outline:none; }
.ff-layout { display:grid; grid-template-columns:minmax(280px,360px) minmax(0,1fr); gap:18px; align-items:start; }
.ff-create-panel,.ff-list-panel { border:1px solid rgba(226,232,240,.92); border-radius:24px; background:linear-gradient(180deg,#fff,#fbfdff); box-shadow:0 20px 52px rgba(15,23,42,.07); }
.ff-create-panel { position:sticky; top:18px; padding:20px; margin:0; }
.ff-list-panel { padding:18px; }
.ff-panel-head { margin-bottom:16px; }
.ff-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ff-item { display:flex; flex-direction:column; gap:6px; }
.ff-item.full { grid-column:1/-1; }
.ff-item label { color:#475569; font-size:.72rem; font-weight:900; }
.ff-item input,.ff-item select,.ff-item textarea { width:100%; border:1px solid #dbe3ef; border-radius:14px; background:#fff; color:#0f172a; font-size:.8rem; padding:10px 12px; outline:none; transition:border-color .15s,box-shadow .15s; box-sizing:border-box; }
.ff-item textarea { min-height:82px; resize:vertical; line-height:1.6; }
.ff-item input:focus,.ff-item select:focus,.ff-item textarea:focus { border-color:#3b82f6; box-shadow:0 0 0 4px rgba(59,130,246,.12); }
.ff-save-btn { width:100%; justify-content:center; margin-top:14px; height:42px; border-radius:14px!important; box-shadow:0 14px 28px rgba(59,130,246,.22); }
.ff-list-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.ff-list-count { padding:7px 11px; border:1px solid #dbeafe; border-radius:999px; background:#eff6ff; color:#2563eb; font-size:.72rem; font-weight:900; }
#ff-items { display:flex; flex-direction:column; gap:14px; }
#ff-items .finding-card { position:relative; margin:0; padding:18px; border:1px solid #e2e8f0; border-left-width:5px!important; border-radius:20px; background:#fff; box-shadow:0 16px 38px rgba(15,23,42,.07); overflow:hidden; transition:transform .16s,box-shadow .16s,border-color .16s; }
#ff-items .finding-card:hover { transform:translateY(-2px); box-shadow:0 24px 54px rgba(15,23,42,.1); border-color:#bfdbfe; }
#ff-items .finding-card::after { content:""; position:absolute; top:-50px; right:-45px; width:130px; height:130px; border-radius:50%; background:rgba(59,130,246,.07); pointer-events:none; }
#ff-items .finding-card.critical { border-left-color:#dc2626!important; }
#ff-items .finding-card.high { border-left-color:#ea580c!important; }
#ff-items .finding-card.medium { border-left-color:#ca8a04!important; }
#ff-items .finding-card.low { border-left-color:#16a34a!important; }
#ff-items .finding-card.overdue { background:linear-gradient(180deg,#fff,#fff7f7); }
#ff-items .finding-card.is-report-focus { border-color:#2563eb!important; box-shadow:0 0 0 3px rgba(37,99,235,.16),0 22px 52px rgba(37,99,235,.16); }
#ff-items .finding-header { position:relative; z-index:1; display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:12px; }
.finding-title-wrap { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.finding-index { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; flex:0 0 auto; border-radius:12px; background:linear-gradient(135deg,#dbeafe,#eef2ff); color:#2563eb; font-size:.76rem; font-weight:950; }
#ff-items .finding-title { flex:1; color:#0f172a; font-size:1rem; font-weight:900; line-height:1.45; }
.finding-badges { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
#ff-items .finding-severity,#ff-items .finding-status { border-radius:999px; padding:5px 9px; font-size:.66rem; font-weight:900; line-height:1; }
.finding-severity-critical { background:#fee2e2!important; color:#b91c1c!important; }
.finding-severity-high { background:#ffedd5!important; color:#c2410c!important; }
.finding-severity-medium { background:#fef3c7!important; color:#a16207!important; }
.finding-severity-low { background:#dcfce7!important; color:#15803d!important; }
#ff-items .finding-status.open { background:#fff7ed; color:#c2410c; }
#ff-items .finding-status.in-progress { background:#eff6ff; color:#1d4ed8; }
#ff-items .finding-status.resolved { background:#f0fdf4; color:#15803d; }
#ff-items .finding-status.accepted { background:#f5f3ff; color:#6d28d9; }
#ff-items .finding-status.draft { background:#f1f5f9; color:#475569; }
#ff-items .finding-status.review-submitted { background:#fff7ed; color:#c2410c; }
#ff-items .finding-status.review-returned { background:#fee2e2; color:#b91c1c; }
#ff-items .finding-status.review-approved { background:#dcfce7; color:#15803d; }
#ff-items .finding-status.review-not-adopted { background:#f1f5f9; color:#475569; }
#ff-items .finding-status.overdue { background:#fee2e2; color:#b91c1c; }
.ff-delete-btn { border-radius:999px!important; }
#ff-items .finding-body { position:relative; z-index:1; margin:0; color:#475569; font-size:.82rem; line-height:1.75; }
.finding-desc { padding:12px 14px; border:1px solid #eef2f7; border-radius:14px; background:#f8fafc; white-space:pre-wrap; }
.finding-focus-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.36fr);column-gap:22px;margin-bottom:12px;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;}
.finding-focus-fact{min-width:0;padding:15px 0 16px;}
.finding-focus-fact>span,.finding-focus-next>span,.finding-analysis-drawer>summary span,.finding-analysis-grid span{display:block;color:#64748b;font-size:.62rem;font-weight:950;letter-spacing:.08em;}
.finding-focus-fact>p{max-width:74ch;margin:6px 0 0;color:#253247;font-size:.82rem;line-height:1.7;white-space:pre-wrap;}
.finding-focus-next{min-width:0;margin:15px 0;padding:0 0 0 18px;border-left:1px solid #dbe5f2;}
.finding-focus-next>strong{display:block;margin-top:6px;color:#0f172a;font-size:.86rem;line-height:1.45;}
.finding-focus-next>p{margin:4px 0 0;color:#2563eb;font-size:.7rem;font-weight:850;line-height:1.45;}
.finding-analysis-drawer{grid-column:1/-1;border-top:1px solid #e2e8f0;}
.finding-analysis-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;list-style:none;cursor:pointer;}
.finding-analysis-drawer>summary::-webkit-details-marker{display:none;}
.finding-analysis-drawer>summary small{display:block;margin-top:2px;color:#64748b;font-size:.68rem;line-height:1.45;}
.finding-analysis-drawer>summary b{color:#2563eb;font-size:.7rem;font-weight:900;white-space:nowrap;}
.finding-analysis-drawer[open]>summary{border-bottom:1px solid #e2e8f0;}
.finding-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;}
.finding-analysis-grid>div{min-width:0;padding:12px 0;border-bottom:1px solid #eef2f7;}
.finding-analysis-grid>div:nth-child(even){padding-left:22px;border-left:1px solid #eef2f7;}
.finding-analysis-grid>div:last-child{grid-column:1/-1;padding-left:0;border-left:0;border-bottom:0;}
.finding-analysis-grid p{margin:4px 0 0;color:#475569;font-size:.72rem;line-height:1.65;white-space:pre-wrap;}
.finding-inline-feedback{margin:0 0 12px;padding:10px 12px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2;color:#b91c1c;font-size:.76rem;font-weight:800;line-height:1.5;}
.finding-inline-feedback.is-warning{border-color:#fde68a;background:#fffbeb;color:#92400e;}
.finding-inline-feedback.is-success{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
.finding-recommend { display:grid; grid-template-columns:54px minmax(0,1fr); gap:10px; align-items:start; margin-top:10px; padding:10px 12px; border:1px solid #d1fae5; border-radius:14px; background:#f0fdf4; }
.finding-recommend strong { color:#047857; font-size:.74rem; }
.finding-recommend span { color:#334155; white-space:pre-wrap; }
.finding-source-box { margin-top:10px; padding:11px 12px; border:1px solid #dbeafe; border-radius:8px; background:#eff6ff; }
.finding-source-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:6px; }
.finding-source-head span { color:#1d4ed8; font-size:.72rem; font-weight:900; }
.finding-source-head b { padding:3px 8px; border-radius:999px; background:#1d4ed8; color:#fff; font-size:.68rem; }
.finding-source-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; color:#334155; font-size:.76rem; }
.finding-source-grid span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.finding-source-details { margin-top:8px; color:#334155; }
.finding-source-details summary { cursor:pointer; font-weight:800; font-size:.72rem; color:#1d4ed8; }
.finding-source-details p { margin:7px 0 0; padding-top:7px; border-top:1px solid rgba(29,78,216,.14); }
.finding-source-details strong { display:block; color:#0f172a; font-size:.74rem; }
.finding-source-details span { display:block; color:#475569; font-size:.74rem; line-height:1.55; }
.finding-source-collapse{margin-top:12px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.finding-source-collapse>summary{padding:10px 12px;color:#1d4ed8;font-size:.72rem;font-weight:900;cursor:pointer;list-style:none;}
.finding-source-collapse>summary::-webkit-details-marker{display:none;}
.finding-source-collapse .finding-source-box{margin:0;border:0;border-top:1px solid #dbeafe;border-radius:0 0 12px 12px;}
.finding-meta-strip { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px dashed #e2e8f0; color:#64748b; font-size:.75rem; font-weight:800; }
.ap-source-note { margin-top:4px; color:#2563eb; font-size:.68rem; font-weight:800; line-height:1.35; }
.finding-meta-strip label { display:flex; align-items:center; gap:8px; }
.finding-meta-strip select { height:34px; padding:0 10px; border:1px solid #dbe3ef; border-radius:10px; background:#fff; color:#334155; font-size:.75rem; font-weight:800; outline:none; }
.finding-progress-mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0;padding:11px;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff;}
.finding-progress-mini div{padding:9px 10px;border:1px solid #edf2f7;border-radius:11px;background:#fff;}
.finding-progress-mini span{display:block;color:#64748b;font-size:.62rem;font-weight:950;letter-spacing:.08em;}
.finding-progress-mini strong{display:block;margin-top:4px;color:#0f172a;font-size:.82rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.finding-card-workbench{margin-top:12px;border:1px solid #c7ddff;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);overflow:hidden;}
.finding-card-workbench>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;cursor:pointer;list-style:none;}
.finding-card-workbench>summary::-webkit-details-marker{display:none;}
.finding-card-workbench>summary span{display:block;color:#2563eb;font-size:.6rem;font-weight:950;letter-spacing:.16em;}
.finding-card-workbench>summary strong{display:block;margin-top:3px;color:#0f172a;font-size:.92rem;}
.finding-card-workbench>summary small{display:block;margin-top:4px;color:#64748b;font-size:.7rem;line-height:1.45;}
.finding-card-workbench>summary b{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:30px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.68rem;font-weight:950;}
.finding-card-workbench[open]>summary{border-bottom:1px solid #dbeafe;background:#eff6ff;}
.finding-card-workbench[open]>summary b{background:#1d4ed8;color:#fff;}
.finding-card-workbench[open]>summary b{font-size:0;}
.finding-card-workbench[open]>summary b::after{content:"收起";font-size:.68rem;}
.finding-card-workbench-body{padding:12px 13px 13px;}
.finding-list-next-inline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0 0;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#f8fbff;
}
.finding-list-next-inline span{
  display:block;
  color:#2563eb;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.12em;
}
.finding-list-next-inline strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:.86rem;
}
.finding-list-next-inline .btn{
  flex:0 0 auto;
  white-space:nowrap;
}
.finding-action-board{margin:14px 0;padding:14px;border:1px solid #c7ddff;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#ffffff);box-shadow:0 14px 32px rgba(37,99,235,.06);}
.fab-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;}
.fab-head span{display:block;color:#2563eb;font-size:.64rem;font-weight:950;letter-spacing:.16em;}
.fab-head strong{display:block;margin-top:3px;color:#0f172a;font-size:.96rem;}
.fab-head p{margin:4px 0 0;color:#52637a;font-size:.74rem;line-height:1.55;}
.fab-head b{display:grid;place-items:center;min-width:48px;height:34px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.78rem;font-weight:950;}
.fab-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;}
.fab-card{min-height:132px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s;}
.fab-card:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 14px 28px rgba(37,99,235,.1);}
.fab-card span{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.62rem;font-weight:950;}
.fab-card strong{display:block;margin-top:9px;color:#0f172a;font-size:.8rem;line-height:1.3;}
.fab-card small{display:block;margin-top:5px;min-height:42px;color:#64748b;font-size:.68rem;line-height:1.45;}
.fab-card em{display:inline-flex;margin-top:10px;color:#2563eb;font-size:.68rem;font-style:normal;font-weight:950;}
.fab-card.is-ok{border-color:#bbf7d0;background:#f7fef9;}
.fab-card.is-ok span{background:#dcfce7;color:#15803d;}
.fab-card.is-current{border-color:#fed7aa;background:#fffaf5;box-shadow:inset 0 0 0 1px rgba(249,115,22,.14);}
.fab-card.is-current span{background:#ffedd5;color:#c2410c;}
.fab-card.is-missing{background:#fbfdff;}
.finding-next-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:13px 14px;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:12px;background:#f8fbff;}
.finding-next-action span{display:block;color:#2563eb;font-size:.56rem;font-weight:950;letter-spacing:.14em;}
.finding-next-action strong{display:block;margin-top:3px;color:#0f172a;font-size:.9rem;}
.finding-next-action p{margin:4px 0 0;color:#52637a;font-size:.74rem;line-height:1.5;}
.finding-next-action .btn{flex:0 0 auto;}
.finding-evidence-chain{margin-top:12px;padding:0;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff);}
.finding-evidence-chain[open]{padding-bottom:13px;}
.finding-evidence-chain summary::-webkit-details-marker{display:none;}
.fec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;cursor:pointer;list-style:none;}
.fec-head span{display:block;color:#2563eb;font-size:.6rem;font-weight:950;letter-spacing:.14em;}
.fec-head strong{display:block;margin-top:3px;color:#0f172a;font-size:.86rem;}
.fec-head b{display:grid;place-items:center;min-width:42px;height:30px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;}
.fec-nodes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:0 13px;}
.fec-node{min-height:86px;padding:9px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;}
.fec-node:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 20px rgba(37,99,235,.08);}
.fec-node span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:20px;padding:0 7px;border-radius:999px;font-size:.58rem;font-weight:950;}
.fec-node strong{display:block;margin-top:7px;color:#0f172a;font-size:.74rem;line-height:1.25;}
.fec-node small{display:block;margin-top:4px;color:#64748b;font-size:.65rem;line-height:1.35;}
.fec-node.is-ok{border-color:#bbf7d0;background:#f7fef9;}
.fec-node.is-ok span{background:#dcfce7;color:#15803d;}
.fec-node.is-missing{border-color:#fed7aa;background:#fffaf5;}
.fec-node.is-missing span{background:#ffedd5;color:#c2410c;}
.finding-evidence-chain p{margin:10px 13px 0;color:#64748b;font-size:.72rem;line-height:1.55;}
.finding-professional-ref{margin-top:12px;border:1px solid #d7e3f5;border-radius:14px;background:linear-gradient(180deg,#fff,#f7fbff);}
.finding-professional-ref summary{display:flex;align-items:center;gap:10px;padding:12px 13px;cursor:pointer;list-style:none;}
.finding-professional-ref summary::-webkit-details-marker{display:none;}
.finding-professional-ref summary span{color:#0f766e;font-size:.58rem;font-weight:950;letter-spacing:.14em;}
.finding-professional-ref summary strong{flex:1;color:#0f172a;font-size:.84rem;}
.finding-professional-ref summary b{padding:3px 8px;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:.62rem;}
.fpr-boundary{margin:0 13px 10px;color:#64748b;font-size:.7rem;line-height:1.55;}
.fpr-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 13px 12px;}
.fpr-group{display:grid;align-content:start;gap:7px;}
.fpr-group>strong{color:#334155;font-size:.7rem;}
.fpr-item{display:grid;gap:5px;padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;}
.fpr-item.is-saved{border-color:#99f6e4;background:#f0fdfa;}
.fpr-item span{width:max-content;max-width:100%;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.58rem;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fpr-item.is-saved span{background:#ccfbf1;color:#0f766e;}
.fpr-item h5{margin:0;color:#0f172a;font-size:.76rem;line-height:1.35;}
.fpr-item p,.fpr-item small{margin:0;color:#64748b;font-size:.66rem;line-height:1.45;}
.fpr-item small{padding-top:5px;border-top:1px dashed #e2e8f0;}
.fpr-add{justify-self:start;margin-top:2px;}
.fpr-empty{padding:10px;border:1px dashed #cbd5e1;border-radius:11px;background:#f8fafc;color:#64748b;font-size:.68rem;line-height:1.5;}
.fpr-actions{display:flex;justify-content:flex-end;padding:0 13px 13px;}
.finding-trace-panel{margin-top:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;}
.finding-draft-review{margin-top:12px;padding:13px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff);}.fdr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;}.fdr-head span{display:block;color:#2563eb;font-size:.58rem;font-weight:950;letter-spacing:.14em;}.fdr-head strong{display:block;margin-top:3px;color:#0f172a;font-size:.86rem;}.fdr-state{padding:4px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.65rem;white-space:nowrap;}.fdr-state.submitted{background:#fff7ed;color:#c2410c;}.fdr-state.returned{background:#fee2e2;color:#b91c1c;}.fdr-state.approved{background:#dcfce7;color:#15803d;}.fdr-note,.fdr-readonly{margin:0 0 10px;color:#64748b;font-size:.72rem;line-height:1.55;}.fdr-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:9px;}.fdr-grid label,.fdr-review-form label{display:flex;flex-direction:column;gap:5px;color:#475569;font-size:.66rem;font-weight:900;}.fdr-label em{color:#dc2626;font-style:normal;}.fdr-grid input,.fdr-grid select,.fdr-grid textarea,.fdr-review-form select,.fdr-review-form textarea{width:100%;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#172033;font-size:.72rem;box-sizing:border-box;outline:none;}.fdr-grid input,.fdr-grid select,.fdr-review-form select{height:34px;padding:0 9px;}.fdr-grid textarea,.fdr-review-form textarea{min-height:70px;padding:8px;resize:vertical;line-height:1.45;}.fdr-wide{grid-column:1/-1;}.fdr-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;}.fdr-actions>span{color:#64748b;font-size:.68rem;line-height:1.45;}.fdr-actions>div{display:flex;gap:8px;flex-wrap:wrap;}.fdr-review-form{display:grid;grid-template-columns:.7fr 1.3fr auto;gap:9px;align-items:end;}.fdr-result{display:grid;gap:6px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;}.fdr-result strong{color:#0f172a;font-size:.76rem;}.fdr-result span,.fdr-result small,.fdr-result p{margin:0;color:#64748b;font-size:.7rem;line-height:1.5;}.fdr-result p{padding-top:7px;border-top:1px solid #edf2f7;color:#334155;}
.fdr-not-adopt{margin-top:10px;border-top:1px solid #e2e8f0;padding-top:9px;color:#475569}.fdr-not-adopt summary{cursor:pointer;font-size:.7rem;font-weight:850}.fdr-not-adopt p{margin:7px 0;color:#64748b;font-size:.67rem;line-height:1.5}.fdr-not-adopt label{display:grid;gap:5px;font-size:.67rem;font-weight:850}.fdr-not-adopt textarea{min-height:58px;padding:8px;border:1px solid #dbe3ef;border-radius:9px;background:#fff;color:#172033;resize:vertical}.fdr-not-adopt .btn{margin-top:8px}
.finding-canvas-review{margin:0 0 11px;padding:11px;border:1px solid #c7ddff;border-radius:13px;background:#fff}.fcr-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.fcr-head span{display:block;color:#1d4ed8;font-size:.58rem;font-weight:950;letter-spacing:.14em}.fcr-head strong{display:block;margin-top:3px;color:#0f172a;font-size:.8rem}.fcr-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}.fcr-summary div{padding:8px 9px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.fcr-summary span{display:block;color:#64748b;font-size:.62rem}.fcr-summary strong{display:block;margin-top:3px;color:#0f172a;font-size:.9rem}.fcr-judgment{margin-top:8px;padding:9px 10px;border-left:3px solid #2563eb;background:#eff6ff}.fcr-judgment span{display:block;color:#1d4ed8;font-size:.62rem;font-weight:950}.fcr-judgment p{margin:4px 0 0;color:#334155;font-size:.7rem;line-height:1.5}.fcr-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.fcr-details{border:1px solid #e2e8f0;border-radius:10px;background:#fff}.fcr-details summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;cursor:pointer;list-style:none}.fcr-details summary::-webkit-details-marker{display:none}.fcr-details summary span{color:#334155;font-size:.68rem;font-weight:900}.fcr-details summary b{display:grid;place-items:center;min-width:24px;height:20px;padding:0 5px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.6rem}.fcr-details.pending summary b,.fcr-details.contrary summary b{background:#fff7ed;color:#c2410c}.fcr-details.ai summary b{background:#eef2ff;color:#4338ca}.fcr-details ol{display:grid;gap:5px;margin:0;padding:0 10px 10px 28px}.fcr-details li{color:#475569;font-size:.67rem;line-height:1.45}.fcr-empty{margin:0;padding:0 9px 9px;color:#94a3b8;font-size:.65rem;line-height:1.45}.fcr-boundary{margin:8px 0 0;color:#64748b;font-size:.65rem;line-height:1.5}.fcr-missing{display:flex;flex-direction:column;gap:3px;margin-top:9px;padding:9px 10px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2}.fcr-missing strong{color:#b91c1c;font-size:.7rem}.fcr-missing span{color:#7f1d1d;font-size:.67rem;line-height:1.45}
.fdr-readiness{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}.fdr-readiness>span{display:flex;gap:7px;align-items:baseline;padding:8px 10px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff;color:#334155;font-size:.68rem;line-height:1.45}.fdr-readiness>span b{color:#1d4ed8;white-space:nowrap}.fdr-readiness>span.pending{border-color:#fed7aa;background:#fff7ed}.fdr-readiness>span.pending b{color:#c2410c}.fdr-readiness>span.ready{border-color:#bbf7d0;background:#f0fdf4}.fdr-readiness>span.ready b{color:#15803d}
.finding-lifecycle{margin-top:12px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff);}
.finding-closeout-flow{padding:18px 20px;border:1px solid #dbeafe;border-radius:20px;background:#fff;box-shadow:0 16px 38px rgba(15,23,42,.05)}.fcf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.fcf-head span{display:block;color:#2563eb;font-size:.66rem;font-weight:950;letter-spacing:.14em}.fcf-head strong{display:block;margin-top:4px;color:#0f172a;font-size:1.05rem}.fcf-head p{margin:5px 0 0;color:#52637a;font-size:.78rem;line-height:1.6}.fcf-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.fcf-step{position:relative;min-height:118px;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff)}.fcf-step span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:.68rem;font-weight:950}.fcf-step strong{display:block;margin-top:10px;color:#0f172a;font-size:.82rem}.fcf-step b{display:block;margin-top:5px;color:#1d4ed8;font-size:1.25rem}.fcf-step small{display:block;margin-top:4px;color:#64748b;font-size:.66rem;line-height:1.45}
.finding-closeout-queue{padding:18px 20px;border:1px solid #d7e5f5;border-radius:20px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 14px 34px rgba(15,23,42,.05)}.fcq-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.fcq-head span{display:block;color:#0f766e;font-size:13px;font-weight:950;letter-spacing:.08em}.fcq-head strong{display:block;margin-top:4px;color:#0f172a;font-size:21px;line-height:1.25}.fcq-head p{margin:5px 0 0;color:#52637a;font-size:15px;line-height:1.6}.fcq-head b{white-space:nowrap;padding:8px 11px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:14px}.fcq-list{display:grid;gap:10px}.fcq-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;width:100%;padding:13px 14px;border:1px solid #dbeafe;border-radius:15px;background:#fff;text-align:left;cursor:pointer;transition:.16s ease}.fcq-item:hover{border-color:#93c5fd;box-shadow:0 10px 24px rgba(37,99,235,.1);transform:translateY(-1px)}.fcq-item i{display:grid;place-items:center;min-width:44px;height:34px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-style:normal;font-size:13px;font-weight:950}.fcq-item strong{display:block;color:#0f172a;font-size:16px;line-height:1.35}.fcq-item small{display:block;margin-top:4px;color:#64748b;font-size:13px;line-height:1.45}.fcq-item em{white-space:nowrap;color:#2563eb;font-style:normal;font-size:14px;font-weight:900}.fcq-empty{padding:14px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#64748b;font-size:15px}
.fl-steps{display:flex;flex-wrap:wrap;gap:7px;}
.fl-step{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:.64rem;font-weight:900;}
.fl-step i{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font-style:normal;background:#e2e8f0;color:#64748b;font-size:.58rem;}
.fl-step.is-done{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
.fl-step.is-done i{background:#16a34a;color:#fff;}
.fl-step.is-current{border-color:#fed7aa;background:#fff7ed;color:#c2410c;}
.fl-step.is-current i{background:#f97316;color:#fff;}
.fl-next{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;color:#475569;font-size:.7rem;line-height:1.5;}
.fl-action{white-space:nowrap;}
.finding-trace-panel summary{display:flex;align-items:center;gap:10px;padding:12px 13px;cursor:pointer;list-style:none;}
.finding-trace-panel summary::-webkit-details-marker{display:none;}
.finding-trace-panel summary span{color:#64748b;font-size:.58rem;font-weight:950;letter-spacing:.14em;}
.finding-trace-panel summary strong{flex:1;color:#0f172a;font-size:.84rem;}
.finding-trace-panel summary b{padding:3px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.62rem;}
.ftp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 13px 12px;}
.ftp-grid div{padding:9px;border:1px solid #edf2f7;border-radius:10px;background:#f8fafc;}
.ftp-grid span{display:block;color:#64748b;font-size:.62rem;font-weight:900;}
.ftp-grid strong{display:block;margin-top:4px;color:#172033;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ftp-grid small{display:block;margin-top:3px;color:#94a3b8;font-size:.62rem;}
.ftp-permissions{display:flex;gap:8px;flex-wrap:wrap;padding:0 13px 12px;}
.ftp-permissions span{padding:4px 9px;border-radius:999px;font-size:.66rem;font-weight:900;}
.ftp-permissions .ok{background:#dcfce7;color:#15803d;}
.ftp-permissions .no{background:#fee2e2;color:#b91c1c;}
.ftp-history{display:grid;gap:7px;padding:0 13px 13px;}
.ftp-history p{display:grid;grid-template-columns:90px 142px minmax(0,1fr);gap:8px;align-items:start;margin:0;padding:8px;border:1px solid #edf2f7;border-radius:10px;background:#fbfdff;}
.ftp-history b{color:#0f172a;font-size:.7rem;}
.ftp-history span{color:#64748b;font-size:.66rem;}
.ftp-history small{color:#475569;font-size:.66rem;line-height:1.45;}
.finding-report-feedback{margin-top:12px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fbff);}
.finding-report-feedback.is-action-focus{box-shadow:0 0 0 3px rgba(124,58,237,.16),0 16px 36px rgba(124,58,237,.12);border-color:#a78bfa;}
.finding-draft-review.is-action-focus,.finding-source-collapse.is-action-focus{box-shadow:0 0 0 3px rgba(37,99,235,.14),0 16px 36px rgba(37,99,235,.1);border-color:#93c5fd;}
.finding-report-feedback summary{display:flex;align-items:center;gap:10px;padding:12px 13px;cursor:pointer;list-style:none;}
.finding-report-feedback summary::-webkit-details-marker{display:none;}
.finding-report-feedback summary span{color:#7c3aed;font-size:.58rem;font-weight:950;letter-spacing:.14em;}
.finding-report-feedback summary strong{flex:1;color:#0f172a;font-size:.84rem;}
.finding-report-feedback summary b{padding:3px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.62rem;}
.finding-report-feedback summary b.pending{background:#fff7ed;color:#c2410c;}
.finding-report-feedback summary b.include{background:#ecfdf5;color:#047857;}
.finding-report-feedback summary b.exclude{background:#f1f5f9;color:#475569;}
.frf-stale-notice{display:flex;align-items:flex-start;gap:8px;margin:0 13px 12px;padding:9px 10px;border-left:3px solid #ea580c;background:#fff7ed;color:#9a3412;}
.frf-stale-notice strong{font-size:.7rem;white-space:nowrap;}.frf-stale-notice span{font-size:.68rem;line-height:1.5;}
.frf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 13px 12px;}
.frf-grid label{display:flex;flex-direction:column;gap:5px;color:#475569;font-size:.66rem;font-weight:900;}
.frf-grid select,.frf-grid textarea{width:100%;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#172033;font-size:.72rem;outline:none;}
.frf-grid select{height:34px;padding:0 9px;}
.frf-grid textarea{min-height:66px;padding:8px;resize:vertical;line-height:1.45;}
.frf-grid select:disabled,.frf-grid textarea:disabled{background:#f1f5f9;color:#64748b;border-color:#e2e8f0;cursor:not-allowed;opacity:1;}
.frf-check:has(input:disabled){background:#f8fafc;border-color:#e2e8f0;color:#64748b;cursor:not-allowed;}
.frf-wide{grid-column:span 2;}
.frf-check{justify-content:flex-end;padding:8px 10px;border:1px solid #edf2f7;border-radius:10px;background:#fff;}
.frf-check input{width:16px;height:16px;margin-right:6px;}
.frf-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px 13px;}
.frf-actions span{color:#64748b;font-size:.68rem;line-height:1.4;}
.frf-save{white-space:nowrap;}
.frf-formal-feedback{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 13px 12px;padding:9px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e3a5f;}
.frf-formal-feedback strong{font-size:.72rem;}
.frf-formal-feedback span,.frf-formal-feedback small{font-size:.68rem;line-height:1.45;color:#476782;}
.frf-formal-feedback small{width:100%;}
.frf-register-feedback,.frf-open-feedback{margin-left:auto;white-space:nowrap;}
.mi-revision-history{margin:12px 0;border:1px solid #dbe3ec;background:#f8fafc;}
.mi-revision-history summary{padding:10px 12px;cursor:pointer;color:#31506a;font-size:.72rem;font-weight:800;}
.mi-revision-history>div{display:grid;gap:8px;padding:0 12px 12px;}
.mi-revision-history article{padding:10px;border:1px solid #e2e8f0;background:#fff;}
.mi-revision-history strong,.mi-revision-history span,.mi-revision-history small{display:block;}
.mi-revision-history strong{color:#17364f;font-size:.7rem;}.mi-revision-history span,.mi-revision-history small{margin-top:3px;color:#718497;font-size:.64rem;}
.mi-revision-history p{margin:7px 0 0;color:#445b70;font-size:.68rem;line-height:1.55;white-space:pre-wrap;}
.ff-empty { display:grid; place-items:center; min-height:260px; padding:36px 20px; border:1px dashed #cbd5e1; border-radius:20px; background:linear-gradient(135deg,#f8fafc,#eff6ff); color:#64748b; text-align:center; }
.ff-empty div { font-size:2rem; margin-bottom:8px; }
.ff-empty strong { color:#0f172a; font-size:1rem; }
.ff-empty p { margin:8px 0 0; max-width:360px; font-size:.8rem; line-height:1.7; }
html[data-theme="dark"] .ff-hero,html[data-theme="dark"] .ff-command-card,html[data-theme="dark"] .ff-create-panel,html[data-theme="dark"] .ff-list-panel,html[data-theme="dark"] #ff-items .finding-card { background:#172235; border-color:#2d3c54; box-shadow:none; }
html[data-theme="dark"] .ff-hero-copy h2,html[data-theme="dark"] .ff-command-copy h3,html[data-theme="dark"] .ff-panel-head h4,html[data-theme="dark"] .ff-list-head h4,html[data-theme="dark"] #ff-items .finding-title,html[data-theme="dark"] .ff-empty strong { color:#f1f5f9!important; }
html[data-theme="dark"] .ff-hero-copy p,html[data-theme="dark"] .ff-command-copy p,html[data-theme="dark"] .ff-panel-head p,html[data-theme="dark"] #ff-items .finding-body { color:#9fb0c7; }
html[data-theme="dark"] .ff-search-wrap,html[data-theme="dark"] .ff-toolbar select,html[data-theme="dark"] .ff-item input,html[data-theme="dark"] .ff-item select,html[data-theme="dark"] .ff-item textarea,html[data-theme="dark"] .finding-meta-strip select,html[data-theme="dark"] .finding-desc,html[data-theme="dark"] .finding-source-collapse { background:#1b2940; color:#d8e1ee; border-color:#314158; }
html[data-theme="dark"] .finding-focus-summary,html[data-theme="dark"] .finding-focus-next,html[data-theme="dark"] .finding-analysis-drawer,html[data-theme="dark"] .finding-analysis-drawer[open]>summary,html[data-theme="dark"] .finding-analysis-grid>div{border-color:#314158;}
html[data-theme="dark"] .finding-focus-fact>p,html[data-theme="dark"] .finding-focus-next>strong,html[data-theme="dark"] .finding-analysis-grid p{color:#d8e1ee;}
html[data-theme="dark"] .finding-source-collapse .finding-source-box{border-color:#314158;}
html[data-theme="dark"] .finding-action-board,html[data-theme="dark"] .fab-card,html[data-theme="dark"] .finding-progress-mini,html[data-theme="dark"] .finding-progress-mini div,html[data-theme="dark"] .finding-card-workbench,html[data-theme="dark"] .finding-closeout-queue,html[data-theme="dark"] .fcq-item{background:#1b2940;border-color:#314158;box-shadow:none;}
html[data-theme="dark"] .finding-card-workbench[open]>summary{background:#172235;border-color:#314158;}
html[data-theme="dark"] .finding-progress-mini strong,html[data-theme="dark"] .finding-card-workbench>summary strong{color:#f1f5f9;}
html[data-theme="dark"] .finding-progress-mini span,html[data-theme="dark"] .finding-card-workbench>summary small,html[data-theme="dark"] .fcq-head p,html[data-theme="dark"] .fcq-item small{color:#9fb0c7;}
html[data-theme="dark"] .fab-head strong,html[data-theme="dark"] .fab-card strong{color:#f1f5f9;}
html[data-theme="dark"] .fab-head p,html[data-theme="dark"] .fab-card small{color:#9fb0c7;}
html[data-theme="dark"] .fab-card.is-ok{background:#13291f;border-color:#166534;}
html[data-theme="dark"] .fab-card.is-current{background:#2c2115;border-color:#9a3412;}
html[data-theme="dark"] .finding-evidence-chain,html[data-theme="dark"] .fec-node{background:#1b2940;border-color:#314158;}
html[data-theme="dark"] .fec-head strong,html[data-theme="dark"] .fec-node strong{color:#f1f5f9;}
html[data-theme="dark"] .finding-evidence-chain p,html[data-theme="dark"] .fec-node small{color:#9fb0c7;}
html[data-theme="dark"] .fec-node.is-ok{background:#13291f;border-color:#166534;}
html[data-theme="dark"] .fec-node.is-missing{background:#2c2115;border-color:#9a3412;}
html[data-theme="dark"] .finding-professional-ref,html[data-theme="dark"] .fpr-item,html[data-theme="dark"] .fpr-empty{background:#1b2940;border-color:#314158;}
html[data-theme="dark"] .finding-professional-ref summary strong,html[data-theme="dark"] .fpr-item h5,html[data-theme="dark"] .fpr-group>strong{color:#f1f5f9;}
html[data-theme="dark"] .ap-program-workbench,html[data-theme="dark"] .ap-pw-table td,html[data-theme="dark"] .finding-next-action{background:#172235;border-color:#314158;}
html[data-theme="dark"] .ap-object-boundary,html[data-theme="dark"] .ap-pw-head,html[data-theme="dark"] .ap-pw-stats,html[data-theme="dark"] .ap-pw-empty,html[data-theme="dark"] .ap-pw-today,html[data-theme="dark"] .ap-pw-today>div:first-child,html[data-theme="dark"] .ap-pw-today-list article,html[data-theme="dark"] .ap-pw-covered{background:#132033;border-color:#314158;}
html[data-theme="dark"] .ap-pw-head h3,html[data-theme="dark"] .ap-pw-stats strong,html[data-theme="dark"] .ap-pw-table strong,html[data-theme="dark"] .finding-next-action strong{color:#f1f5f9;}
@media (max-width:768px){.ap-pw-head{flex-direction:column}.ap-pw-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-pw-today,.finding-focus-summary,.finding-progress-mini{grid-template-columns:1fr}.finding-focus-next{margin:0;padding:12px 0;border-top:1px solid #e2e8f0;border-left:0}.finding-analysis-grid{grid-template-columns:1fr}.finding-analysis-grid>div:nth-child(even){padding-left:0;border-left:0}.finding-analysis-grid>div:last-child{grid-column:auto}.fab-grid{grid-template-columns:1fr 1fr}.finding-card-workbench>summary{align-items:flex-start;flex-direction:column}.finding-next-action{align-items:flex-start;flex-direction:column}.finding-next-action .btn{width:100%;}.fcq-head{flex-direction:column}.fcq-item{grid-template-columns:1fr}.fcq-item em{white-space:normal}}
html[data-theme="dark"] .fpr-boundary,html[data-theme="dark"] .fpr-item p,html[data-theme="dark"] .fpr-item small,html[data-theme="dark"] .fpr-empty{color:#9fb0c7;}
html[data-theme="dark"] .fpr-item.is-saved{background:#13312d;border-color:#0f766e;}
html[data-theme="dark"] .finding-trace-panel,html[data-theme="dark"] .ftp-grid div,html[data-theme="dark"] .ftp-history p{background:#1b2940;border-color:#314158;}
html[data-theme="dark"] .finding-draft-review,html[data-theme="dark"] .fdr-result,html[data-theme="dark"] .finding-lifecycle{background:#1b2940;border-color:#314158;}html[data-theme="dark"] .fdr-head strong,html[data-theme="dark"] .fdr-result strong{color:#f1f5f9;}html[data-theme="dark"] .fdr-note,html[data-theme="dark"] .fdr-readonly,html[data-theme="dark"] .fdr-actions>span,html[data-theme="dark"] .fdr-result span,html[data-theme="dark"] .fdr-result small,html[data-theme="dark"] .fl-next{color:#9fb0c7;}html[data-theme="dark"] .fdr-grid label,html[data-theme="dark"] .fdr-review-form label{color:#9fb0c7;}html[data-theme="dark"] .fdr-grid input,html[data-theme="dark"] .fdr-grid select,html[data-theme="dark"] .fdr-grid textarea,html[data-theme="dark"] .fdr-review-form select,html[data-theme="dark"] .fdr-review-form textarea{background:#172235;color:#d8e1ee;border-color:#314158;}html[data-theme="dark"] .fl-step{background:#172235;border-color:#314158;color:#9fb0c7;}
html[data-theme="dark"] .finding-canvas-review,html[data-theme="dark"] .fcr-details{background:#172235;border-color:#314158}html[data-theme="dark"] .fcr-head strong,html[data-theme="dark"] .fcr-summary strong{color:#f1f5f9}html[data-theme="dark"] .fcr-summary div{background:#1b2940;border-color:#314158}html[data-theme="dark"] .fcr-judgment{background:#1e3151}html[data-theme="dark"] .fcr-judgment p,html[data-theme="dark"] .fcr-details li,html[data-theme="dark"] .fcr-details summary span,html[data-theme="dark"] .fcr-boundary{color:#b9c6d8}
html[data-theme="dark"] .finding-trace-panel summary strong,html[data-theme="dark"] .ftp-grid strong,html[data-theme="dark"] .ftp-history b{color:#f1f5f9;}
html[data-theme="dark"] .ftp-history small{color:#cbd5e1;}
html[data-theme="dark"] .finding-report-feedback,html[data-theme="dark"] .frf-check{background:#1b2940;border-color:#314158;}
html[data-theme="dark"] .finding-report-feedback summary strong{color:#f1f5f9;}
html[data-theme="dark"] .frf-grid label,html[data-theme="dark"] .frf-actions span{color:#9fb0c7;}
html[data-theme="dark"] .frf-grid select,html[data-theme="dark"] .frf-grid textarea{background:#172235;color:#d8e1ee;border-color:#314158;}
html[data-theme="dark"] .frf-grid select:disabled,html[data-theme="dark"] .frf-grid textarea:disabled,html[data-theme="dark"] .frf-check:has(input:disabled){background:#172235;color:#9fb0c7;border-color:#314158;}
html[data-theme="dark"] .frf-formal-feedback{background:#172235;border-color:#314158;color:#d8e1ee;}html[data-theme="dark"] .frf-formal-feedback span,html[data-theme="dark"] .frf-formal-feedback small{color:#9fb0c7;}
html[data-theme="dark"] .frf-stale-notice{background:#2c2115;color:#fed7aa;}html[data-theme="dark"] .mi-revision-history,html[data-theme="dark"] .mi-revision-history article{background:#172235;border-color:#314158;}html[data-theme="dark"] .mi-revision-history strong{color:#f1f5f9;}html[data-theme="dark"] .mi-revision-history p{color:#cbd5e1;}
@media (max-width:1100px){.ff-hero,.ff-layout{grid-template-columns:1fr}.ff-create-panel{position:static}.ff-command-card{align-items:stretch;flex-direction:column}.ff-toolbar{width:100%}.ff-search-wrap{flex:1;min-width:220px}}
@media (max-width:700px){.ff-hero{padding:24px 20px}.ff-hero-copy h2{font-size:2rem}.ff-hero-metrics{grid-template-columns:repeat(2,1fr)}.ff-grid{grid-template-columns:1fr}.ff-toolbar{flex-direction:column;align-items:stretch}.ff-search-wrap{min-width:0}.ff-toolbar select{width:100%}#ff-items .finding-header{flex-direction:column}.finding-badges{justify-content:flex-start}.finding-recommend{grid-template-columns:1fr}.fab-grid,.fec-nodes{grid-template-columns:1fr}.fab-card,.fec-node{min-height:auto}.fpr-list,.ftp-grid,.ftp-history p,.frf-grid,.fdr-grid,.fdr-review-form,.fcr-details-grid{grid-template-columns:1fr}.fcr-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.fcr-head{align-items:flex-start;flex-direction:column}.frf-wide,.fdr-wide{grid-column:auto}.frf-actions,.fdr-actions{align-items:stretch;flex-direction:column}.frf-save,.fdr-actions>div .btn,.fdr-review-form .btn{width:100%;justify-content:center}}

/* ===== System Settings ===== */
.sidebar-footer .sf-data-panel { display:none!important; }
.sys-settings { display:flex; flex-direction:column; gap:18px; }
.sys-settings>.sys-ai-card{order:1}
.sys-settings>.sys-grid{order:2}
.sys-settings>.sys-platform-status,.sys-settings>#sys-platform-snapshot{order:3}
.sys-platform-status>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:15px 18px;color:#172033}
.sys-platform-status>summary::-webkit-details-marker{display:none}
.sys-platform-status>summary span{font-size:.78rem;font-weight:800;color:#3971a5}
.sys-platform-status>summary strong{font-size:.96rem}
.sys-platform-status>summary small{margin-left:auto;color:#64748b;font-size:.82rem;font-weight:500;max-width:62%;text-align:right}
.sys-platform-status[open]>summary{border-bottom:1px solid #e2e8f0}
.app-page-hero-metrics { display:none!important; }
.sys-hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr); gap:24px; padding:30px 34px; border:1px solid rgba(147,197,253,.5); border-radius:28px; background:radial-gradient(circle at 82% 10%,rgba(99,102,241,.16),transparent 28%),linear-gradient(135deg,#f8fbff 0%,#eef6ff 52%,#f7f5ff 100%); box-shadow:0 24px 60px rgba(15,23,42,.08); }
.sys-hero span,.sys-card-head span { display:block; color:#2563eb; font-size:.7rem; font-weight:900; letter-spacing:.18em; text-transform:uppercase; margin-bottom:6px; }
.sys-hero h2 { margin:0; color:#0f172a; font-size:2.55rem; font-weight:950; letter-spacing:-.05em; line-height:1.05; }
.sys-hero p { margin:14px 0 0; color:#52647f; font-size:.95rem; line-height:1.8; }
.sys-hero-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; align-self:center; }
.sys-hero-grid div { padding:16px; border:1px solid rgba(219,234,254,.9); border-radius:18px; background:rgba(255,255,255,.78); box-shadow:0 18px 36px rgba(37,99,235,.08); }
.sys-hero-grid strong { display:block; color:#0f172a; font-size:1.35rem; font-weight:950; line-height:1; }
.sys-hero-grid span { display:block; margin:7px 0 0; color:#64748b; font-size:.7rem; font-weight:800; letter-spacing:0; text-transform:none; }
.sys-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:16px; align-items:stretch; }
.sys-card,.sys-ai-card { border:1px solid rgba(226,232,240,.92); border-radius:24px; background:linear-gradient(180deg,#fff,#fbfdff); box-shadow:0 20px 52px rgba(15,23,42,.07); padding:20px; }
.sys-card-primary { background:linear-gradient(135deg,#fff,#f8fbff); }
.sys-card-head h3 { margin:0; color:#0f172a; font-size:1.05rem; font-weight:900; }
.sys-card-head p { margin:6px 0 0; color:#64748b; font-size:.78rem; line-height:1.65; }
.sys-action-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.sys-action { min-height:86px; padding:16px; border:1px solid #dbeafe; border-radius:18px; background:linear-gradient(135deg,#eff6ff,#fff); color:#0f172a; text-align:left; cursor:pointer; transition:transform .16s,box-shadow .16s,border-color .16s; }
.sys-action:hover { transform:translateY(-2px); border-color:#93c5fd; box-shadow:0 16px 32px rgba(37,99,235,.12); }
.sys-action.warn { background:linear-gradient(135deg,#fff7ed,#fff); border-color:#fed7aa; }
.sys-action:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.sys-action strong { display:block; font-size:.95rem; font-weight:900; }
.sys-action span { display:block; margin-top:7px; color:#64748b; font-size:.75rem; line-height:1.5; }
.sys-note { margin-top:12px; padding:10px 12px; border:1px solid #e0f2fe; border-radius:14px; background:#f0f9ff; color:#0369a1; font-size:.74rem; line-height:1.6; }
.sys-info-list { display:grid; gap:9px; margin:16px 0; }
.sys-info-list div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px dashed #e2e8f0; font-size:.78rem; }
.sys-info-list span { color:#64748b; }
.sys-info-list strong { color:#0f172a; }
.sys-ai-card { padding:20px; }
.sys-ai-card .ai-page { margin-top:14px; }
html[data-theme="dark"] .sys-hero,html[data-theme="dark"] .sys-card,html[data-theme="dark"] .sys-ai-card { background:#172235; border-color:#2d3c54; box-shadow:none; }
html[data-theme="dark"] .sys-hero h2,html[data-theme="dark"] .sys-card-head h3,html[data-theme="dark"] .sys-hero-grid strong,html[data-theme="dark"] .sys-info-list strong { color:#f1f5f9; }
html[data-theme="dark"] .sys-hero p,html[data-theme="dark"] .sys-card-head p,html[data-theme="dark"] .sys-info-list span { color:#9fb0c7; }
html[data-theme="dark"] .sys-hero-grid div,html[data-theme="dark"] .sys-action { background:#1b2940; border-color:#314158; color:#d8e1ee; box-shadow:none; }
html[data-theme="dark"] .sys-note { background:#132b3d; border-color:#2d425a; color:#9dd6ef; }
@media(max-width:1100px){.sys-hero,.sys-grid{grid-template-columns:1fr}.sys-hero-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.sys-hero{padding:24px 20px}.sys-hero h2{font-size:2rem}.sys-hero-grid,.sys-action-grid{grid-template-columns:1fr}}

/* Keep toolbar, breadcrumb and page content in explicit compact grid rows.
   Without row placement, the fixed sidebar can create a tall implicit row before page content. */
@media (min-width:769px) {
  .app-layout { grid-template-rows: auto auto minmax(0, 1fr); align-content:start; }
  .sidebar { grid-column:1; grid-row:1 / 4; }
  .project-toolbar { grid-column:2; grid-row:1; align-self:start; }
  .breadcrumb { grid-column:2; grid-row:2; align-self:start; min-height:34px; }
  .main-content { grid-column:2; grid-row:3; align-self:start; width:100%; margin-top:0; }
  #view-auditplan, #view-taskarrange, #view-contract { margin-top:0; padding-top:0; }
}

.breadcrumb .bc-group { color:#0f766e; font-weight:600; }
.breadcrumb .bc-project { color:#475569; }

/* Unified bilingual section heading: mirrors the risk assessment header treatment. */
.unified-page-heading { position:relative; overflow:hidden; display:block; margin:0 0 20px; padding:0 24px 23px; border:1px solid #dce7f5; border-radius:14px; background:#fff; box-shadow:var(--card-shadow); }
.unified-page-heading .page-eyebrow { display:block; margin:0 -24px 20px; padding:12px 24px; border-bottom:1px solid #dbeafe; background:#f0f6ff; color:#2563eb; font-size:.64rem; font-weight:800; letter-spacing:.14em; }
.unified-page-heading h2 { margin:0; color:#0f172a; font-size:1.48rem; line-height:1.25; }
.unified-page-heading p { margin:8px 0 0; color:#64748b; font-size:.85rem; line-height:1.65; }
.unified-page-heading .page-heading-status { position:absolute; right:24px; bottom:22px; }
html[data-theme="dark"] .unified-page-heading { border-color:#2d425a; background:#172235; box-shadow:none; }
html[data-theme="dark"] .unified-page-heading .page-eyebrow { border-color:#2d425a; background:#1b2940; }
html[data-theme="dark"] .unified-page-heading h2 { color:#f1f5f9; }
html[data-theme="dark"] .unified-page-heading p { color:#9fb0c7; }
@media(max-width:768px){.unified-page-heading{padding:0 18px 18px;margin-bottom:16px}.unified-page-heading .page-eyebrow{margin:0 -18px 16px;padding:11px 18px}.unified-page-heading h2{font-size:1.3rem}.unified-page-heading .page-heading-status{position:static;display:inline-flex;margin-top:12px}}

/* ===== Unified module hero, aligned with Knowledge QA visual language ===== */
.app-page-hero.unified-page-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:end;
  margin:0 0 18px;
  padding:30px 34px;
  border:1px solid #dbeafe;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.16), transparent 34%),
    linear-gradient(135deg,#f8fbff 0%,#eef5ff 54%,#f8fafc 100%);
  box-shadow:0 18px 48px rgba(15,23,42,.08);
}
.app-page-hero.unified-page-heading::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(37,99,235,.08) 1px,transparent 1px),
    linear-gradient(180deg,rgba(37,99,235,.06) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(90deg,transparent,#000 16%,#000 72%,transparent);
  opacity:.55;
}
.app-page-hero-copy,
.app-page-hero-metrics { position:relative; z-index:1; }
.app-page-hero.unified-page-heading .page-eyebrow {
  display:inline-flex;
  margin:0 0 12px;
  padding:0;
  border:0;
  background:transparent;
  color:#2563eb;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.18em;
}
.app-page-hero.unified-page-heading h2 {
  margin:0;
  color:#0f172a;
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1.05;
  letter-spacing:-.055em;
}
.app-page-hero.unified-page-heading p {
  max-width:780px;
  margin:14px 0 0;
  color:#475569;
  font-size:.98rem;
  line-height:1.75;
}
.app-page-hero-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(92px,1fr));
  gap:10px;
}
.app-page-hero-metrics div {
  min-width:104px;
  padding:14px 16px;
  border:1px solid rgba(191,219,254,.86);
  border-radius:18px;
  background:rgba(255,255,255,.76);
  box-shadow:0 12px 28px rgba(30,64,175,.08);
}
.app-page-hero-metrics strong,
.app-page-hero-metrics span { display:block; }
.app-page-hero-metrics strong { color:#1e3a8a; font-size:1.05rem; font-weight:900; }
.app-page-hero-metrics span { margin-top:4px; color:#64748b; font-size:.72rem; font-weight:700; }

/* ===== System guide ===== */
.guide-section { margin-bottom:18px; padding:22px; border:1px solid #dbeafe; border-radius:22px; background:#fff; box-shadow:0 14px 38px rgba(15,23,42,.06); }
.guide-section-head { max-width:820px; margin-bottom:16px; }
.guide-section-head span { display:inline-flex; margin-bottom:8px; color:#2563eb; font-size:.68rem; font-weight:900; letter-spacing:.16em; }
.guide-section-head h2 { margin:0; color:#0f172a; font-size:1.32rem; letter-spacing:-.02em; }
.guide-section-head p { margin:8px 0 0; color:#64748b; font-size:.88rem; line-height:1.7; }
.guide-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.guide-flow-card { position:relative; min-height:178px; padding:18px; border:1px solid #e2e8f0; border-radius:18px; background:linear-gradient(180deg,#f8fbff,#fff); }
.guide-step { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:12px; background:#2563eb; color:#fff; font-size:.78rem; font-weight:900; box-shadow:0 10px 22px rgba(37,99,235,.22); }
.guide-flow-card h3 { margin:14px 0 8px; color:#0f172a; font-size:1rem; }
.guide-flow-card p { margin:0; color:#64748b; font-size:.8rem; line-height:1.65; }
.guide-flow-card code { display:inline-flex; margin-top:12px; padding:4px 8px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:.68rem; font-weight:700; }
.guide-table-wrap { overflow:auto; border:1px solid #e2e8f0; border-radius:16px; }
.guide-table { width:100%; border-collapse:collapse; min-width:760px; font-size:.82rem; }
.guide-table th { padding:12px 14px; background:#eff6ff; color:#1e3a8a; text-align:left; font-weight:800; }
.guide-table td { padding:12px 14px; border-top:1px solid #e2e8f0; color:#475569; line-height:1.65; vertical-align:top; }
.guide-table td:first-child { color:#0f172a; font-weight:800; white-space:nowrap; }
.guide-note-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.guide-note-card { padding:18px; border:1px solid #e2e8f0; border-radius:18px; background:#f8fafc; }
.guide-note-card h3 { margin:0 0 8px; color:#0f172a; font-size:1rem; }
.guide-note-card p { margin:0; color:#64748b; font-size:.82rem; line-height:1.75; }
.guide-section-visual { overflow:hidden; background:linear-gradient(135deg,#f8fbff,#eef5ff 54%,#fff); }
.guide-map { position:relative; min-height:520px; border:1px solid #dbeafe; border-radius:24px; background:radial-gradient(circle at 50% 48%,rgba(37,99,235,.12),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.72),rgba(248,250,252,.86)); }
.guide-map::before { content:""; position:absolute; inset:40px; border:1px dashed rgba(37,99,235,.28); border-radius:999px; }
.guide-map::after { content:""; position:absolute; inset:96px; border:1px dashed rgba(15,118,110,.22); border-radius:999px; }
.guide-map-center { position:absolute; left:50%; top:50%; z-index:3; width:250px; min-height:150px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:22px; border:1px solid rgba(191,219,254,.95); border-radius:28px; background:rgba(255,255,255,.9); box-shadow:0 24px 60px rgba(30,64,175,.14); text-align:center; }
.guide-map-center span { color:#2563eb; font-size:.68rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.guide-map-center strong { margin-top:8px; color:#0f172a; font-size:1.26rem; letter-spacing:-.03em; }
.guide-map-center p { margin:10px 0 0; color:#64748b; font-size:.78rem; line-height:1.65; }
.guide-orbit-node { position:absolute; z-index:2; width:188px; min-height:116px; padding:16px; border:1px solid #dbeafe; border-radius:22px; background:rgba(255,255,255,.86); color:#0f172a; text-align:left; cursor:pointer; box-shadow:0 14px 34px rgba(15,23,42,.08); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.guide-orbit-node:hover { transform:translateY(-3px); border-color:#93c5fd; box-shadow:0 20px 42px rgba(37,99,235,.16); }
.guide-orbit-node span { display:inline-flex; align-items:center; justify-content:center; width:34px; height:26px; margin-bottom:10px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:.68rem; font-weight:900; letter-spacing:.08em; }
.guide-orbit-node strong { display:block; font-size:.95rem; font-weight:900; }
.guide-orbit-node small { display:block; margin-top:6px; color:#64748b; font-size:.72rem; line-height:1.5; }
.guide-node-1 { left:7%; top:11%; }
.guide-node-2 { left:50%; top:5%; transform:translateX(-50%); }
.guide-node-2:hover { transform:translateX(-50%) translateY(-3px); }
.guide-node-3 { right:7%; top:11%; }
.guide-node-4 { right:7%; bottom:11%; }
.guide-node-5 { left:50%; bottom:5%; transform:translateX(-50%); }
.guide-node-5:hover { transform:translateX(-50%) translateY(-3px); }
.guide-node-6 { left:7%; bottom:11%; }
.guide-lane-board { display:grid; gap:14px; position:relative; }
.guide-lane { display:grid; grid-template-columns:110px 1fr; gap:14px; align-items:stretch; }
.guide-lane-label { display:grid; place-items:center; border-radius:18px; color:#fff; font-weight:900; letter-spacing:.12em; writing-mode:vertical-rl; min-height:112px; }
.guide-lane-blue .guide-lane-label { background:linear-gradient(180deg,#2563eb,#1d4ed8); }
.guide-lane-teal .guide-lane-label { background:linear-gradient(180deg,#0f766e,#0d9488); }
.guide-lane-amber .guide-lane-label { background:linear-gradient(180deg,#d97706,#b45309); }
.guide-lane-items { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.guide-lane-items::before { content:""; position:absolute; left:14%; right:14%; top:50%; height:2px; background:linear-gradient(90deg,#bfdbfe,#99f6e4,#fde68a); transform:translateY(-50%); }
.guide-lane-card { position:relative; z-index:1; min-height:112px; padding:18px; border:1px solid #e2e8f0; border-radius:18px; background:#fff; text-align:left; cursor:pointer; box-shadow:0 10px 26px rgba(15,23,42,.06); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.guide-lane-card::after { content:""; position:absolute; right:-12px; top:50%; width:22px; height:22px; border-top:2px solid #93c5fd; border-right:2px solid #93c5fd; transform:translateY(-50%) rotate(45deg); background:#fff; }
.guide-lane-card:last-child::after { display:none; }
.guide-lane-card:hover { transform:translateY(-2px); border-color:#93c5fd; box-shadow:0 16px 34px rgba(37,99,235,.12); }
.guide-lane-card strong { display:block; color:#0f172a; font-size:.96rem; }
.guide-lane-card span { display:block; margin-top:8px; color:#64748b; font-size:.78rem; line-height:1.6; }
.guide-link-board { display:grid; gap:10px; }
.guide-link-row { display:grid; grid-template-columns:130px 56px minmax(220px,1fr) 56px minmax(180px,.8fr); gap:10px; align-items:center; padding:12px; border:1px solid #e2e8f0; border-radius:18px; background:linear-gradient(90deg,#fff,#f8fbff); }
.guide-link-source,.guide-link-target,.guide-link-data { min-height:54px; display:flex; align-items:center; border-radius:14px; padding:10px 12px; font-size:.8rem; }
.guide-link-source { justify-content:center; background:#eff6ff; color:#1d4ed8; font-weight:900; }
.guide-link-data { background:#fff; border:1px solid #dbeafe; color:#0f172a; }
.guide-link-target { background:#f0fdfa; color:#0f766e; font-weight:800; }
.guide-link-arrow { position:relative; height:2px; background:#bfdbfe; }
.guide-link-arrow span { position:absolute; right:-1px; top:50%; width:10px; height:10px; border-top:2px solid #60a5fa; border-right:2px solid #60a5fa; transform:translateY(-50%) rotate(45deg); }
.guide-link-arrow-strong { background:#99f6e4; }
.guide-link-arrow-strong span { border-color:#14b8a6; }
.guide-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:end; margin-bottom:18px; padding:24px; border:1px solid #dbeafe; border-radius:16px; background:linear-gradient(112deg,#fff 0%,#f4f8ff 72%,#ecfdf9 100%); box-shadow:var(--card-shadow); }
.guide-hero span { color:#2563eb; font-size:.66rem; font-weight:900; letter-spacing:.14em; }
.guide-hero h2 { margin:7px 0 0; color:#0f172a; font-size:1.45rem; line-height:1.25; }
.guide-hero p { max-width:920px; margin:8px 0 0; color:#64748b; font-size:.86rem; line-height:1.7; }
.guide-hero-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.guide-operating-flow, .guide-flow-steps { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.guide-main-flow { grid-template-columns:repeat(4,minmax(0,1fr)); }
.guide-event-flow { grid-template-columns:repeat(5,minmax(0,1fr)); }
.guide-flow-step { position:relative; min-height:190px; padding:14px; border:1px solid #dce7f5; border-radius:10px; background:#fbfdff; text-align:left; cursor:pointer; transition:transform .15s,border-color .15s,box-shadow .15s; }
.guide-flow-step:hover { transform:translateY(-2px); border-color:#93c5fd; box-shadow:0 12px 24px rgba(37,99,235,.1); }
.guide-flow-step::after { content:""; position:absolute; right:-8px; top:28px; width:14px; height:14px; border-top:2px solid #93c5fd; border-right:2px solid #93c5fd; transform:rotate(45deg); background:#fbfdff; z-index:2; }
.guide-flow-step:last-child::after { display:none; }
.guide-flow-step span { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:24px; padding:0 8px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:.66rem; font-weight:900; }
.guide-flow-step strong { display:block; margin-top:12px; color:#0f172a; font-size:.88rem; line-height:1.35; }
.guide-flow-step p { margin:7px 0 0; color:#64748b; font-size:.73rem; line-height:1.55; }
.guide-quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.guide-quick-card { min-height:150px; padding:15px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; text-align:left; cursor:pointer; transition:transform .15s,border-color .15s,box-shadow .15s; }
.guide-quick-card:hover { transform:translateY(-2px); border-color:#bfdbfe; box-shadow:0 12px 24px rgba(15,23,42,.07); }
.guide-quick-card b { display:inline-flex; min-width:30px; height:24px; align-items:center; justify-content:center; border-radius:999px; background:#eff6ff; color:#2563eb; font-size:.66rem; }
.guide-quick-card span { display:block; margin-top:10px; color:#64748b; font-size:.68rem; font-weight:850; letter-spacing:.08em; }
.guide-quick-card strong { display:block; margin-top:5px; color:#172033; font-size:.94rem; }
.guide-quick-card p { margin:6px 0 0; color:#64748b; font-size:.76rem; line-height:1.6; }
.guide-role-board, .guide-rule-grid, .guide-principle-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.guide-role-card, .guide-rule-card, .guide-principle-card { padding:16px; border:1px solid #e2e8f0; border-radius:10px; background:#fbfdff; }
.guide-role-card h3, .guide-principle-card h3 { margin:0; color:#0f172a; font-size:.94rem; }
.guide-role-card p, .guide-rule-card p, .guide-principle-card p { margin:7px 0 0; color:#64748b; font-size:.76rem; line-height:1.65; }
.guide-role-card div { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.guide-role-card div span { padding:3px 8px; border-radius:999px; background:#eff6ff; color:#1d4ed8; font-size:.66rem; font-weight:800; }
.guide-rule-card { border-top:3px solid #2563eb; }
.guide-rule-card span { color:#2563eb; font-size:.68rem; font-weight:900; }
.guide-rule-card strong { display:block; margin-top:6px; color:#0f172a; font-size:.9rem; line-height:1.4; }
.guide-inline-link { border:none; background:transparent; color:#2563eb; font-weight:800; cursor:pointer; }
.guide-section-compact{padding:18px;border-radius:16px;}
.guide-brief-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.guide-brief-card{padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#fbfdff;}
.guide-brief-card strong{display:block;color:#0f172a;font-size:.9rem;}
.guide-brief-card p{margin:7px 0 0;color:#64748b;font-size:.78rem;line-height:1.65;}
.guide-faq{display:grid;gap:9px;}
.guide-faq-item{border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden;}
.guide-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;color:#0f172a;font-size:.84rem;font-weight:850;cursor:pointer;list-style:none;}
.guide-faq-item summary::-webkit-details-marker{display:none;}
.guide-faq-item summary::after{content:"+";display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#eff6ff;color:#2563eb;font-weight:900;}
.guide-faq-item[open] summary{border-bottom:1px solid #e2e8f0;background:#f8fbff;}
.guide-faq-item[open] summary::after{content:"-";}
.guide-faq-body{padding:14px;}
.guide-faq-body p{margin:0;color:#64748b;font-size:.8rem;line-height:1.7;}
.guide-faq-body .guide-rule-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.guide-faq-body .guide-rule-card{padding:13px;border-radius:10px;}

html[data-theme="dark"] .app-page-hero.unified-page-heading,
html[data-theme="dark"] .guide-section { border-color:#2d425a; background:linear-gradient(135deg,#172235,#132b3d); box-shadow:none; }
html[data-theme="dark"] .app-page-hero.unified-page-heading h2,
html[data-theme="dark"] .guide-section-head h2,
html[data-theme="dark"] .guide-flow-card h3,
html[data-theme="dark"] .guide-note-card h3,
html[data-theme="dark"] .guide-table td:first-child { color:#f1f5f9; }
html[data-theme="dark"] .app-page-hero.unified-page-heading p,
html[data-theme="dark"] .guide-section-head p,
html[data-theme="dark"] .guide-flow-card p,
html[data-theme="dark"] .guide-note-card p,
html[data-theme="dark"] .guide-table td { color:#9fb0c7; }
html[data-theme="dark"] .app-page-hero-metrics div,
html[data-theme="dark"] .guide-flow-card,
html[data-theme="dark"] .guide-note-card,
html[data-theme="dark"] .guide-table-wrap { background:#1b2940; border-color:#314158; box-shadow:none; }
html[data-theme="dark"] .guide-map,
html[data-theme="dark"] .guide-map-center,
html[data-theme="dark"] .guide-orbit-node,
html[data-theme="dark"] .guide-lane-card,
html[data-theme="dark"] .guide-link-row,
html[data-theme="dark"] .guide-link-data,
html[data-theme="dark"] .guide-hero,
html[data-theme="dark"] .guide-flow-step,
html[data-theme="dark"] .guide-quick-card,
html[data-theme="dark"] .guide-role-card,
html[data-theme="dark"] .guide-rule-card,
html[data-theme="dark"] .guide-principle-card,
html[data-theme="dark"] .guide-brief-card,
html[data-theme="dark"] .guide-faq-item { background:#1b2940; border-color:#314158; box-shadow:none; }
html[data-theme="dark"] .guide-map-center strong,
html[data-theme="dark"] .guide-orbit-node strong,
html[data-theme="dark"] .guide-lane-card strong,
html[data-theme="dark"] .guide-link-data,
html[data-theme="dark"] .guide-hero h2,
html[data-theme="dark"] .guide-flow-step strong,
html[data-theme="dark"] .guide-quick-card strong,
html[data-theme="dark"] .guide-role-card h3,
html[data-theme="dark"] .guide-rule-card strong,
html[data-theme="dark"] .guide-principle-card h3,
html[data-theme="dark"] .guide-brief-card strong,
html[data-theme="dark"] .guide-faq-item summary { color:#f1f5f9; }
html[data-theme="dark"] .guide-map-center p,
html[data-theme="dark"] .guide-orbit-node small,
html[data-theme="dark"] .guide-lane-card span,
html[data-theme="dark"] .guide-hero p,
html[data-theme="dark"] .guide-flow-step p,
html[data-theme="dark"] .guide-quick-card p,
html[data-theme="dark"] .guide-role-card p,
html[data-theme="dark"] .guide-rule-card p,
html[data-theme="dark"] .guide-principle-card p,
html[data-theme="dark"] .guide-brief-card p,
html[data-theme="dark"] .guide-faq-body p { color:#9fb0c7; }
html[data-theme="dark"] .guide-flow-step::after { background:#1b2940; }
html[data-theme="dark"] .guide-table th { background:#20314b; color:#bfdbfe; }
html[data-theme="dark"] .guide-table td { border-color:#314158; }
html[data-theme="dark"] .guide-faq-item[open] summary{background:#172235;border-color:#314158;}

@media(max-width:1100px){
  .app-page-hero.unified-page-heading { grid-template-columns:1fr; }
  .app-page-hero-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .guide-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-hero { grid-template-columns:1fr; }
  .guide-hero-actions { justify-content:flex-start; }
  .guide-operating-flow, .guide-flow-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-flow-step::after { display:none; }
  .guide-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-role-board, .guide-rule-grid, .guide-principle-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-brief-grid,.guide-faq-body .guide-rule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-map { min-height:auto; display:grid; gap:12px; padding:18px; }
  .guide-map::before,.guide-map::after { display:none; }
  .guide-map-center,.guide-orbit-node,.guide-node-1,.guide-node-2,.guide-node-3,.guide-node-4,.guide-node-5,.guide-node-6 { position:static; width:auto; transform:none; }
  .guide-node-2:hover,.guide-node-5:hover { transform:translateY(-3px); }
  .guide-orbit { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .guide-lane { grid-template-columns:1fr; }
  .guide-lane-label { min-height:auto; padding:10px 14px; writing-mode:horizontal-tb; }
  .guide-link-row { grid-template-columns:1fr; }
  .guide-link-arrow { width:2px; height:24px; margin:auto; }
  .guide-link-arrow span { right:auto; left:50%; top:auto; bottom:-1px; transform:translateX(-50%) rotate(135deg); }
}
@media(max-width:720px){
  .app-page-hero.unified-page-heading { padding:24px 20px; border-radius:20px; }
  .app-page-hero-metrics,
  .guide-flow,
  .guide-note-grid,
  .guide-orbit,
  .guide-lane-items,
  .guide-operating-flow,
  .guide-flow-steps,
  .guide-quick-grid,
  .guide-role-board,
  .guide-rule-grid,
  .guide-principle-grid,
  .guide-brief-grid,
  .guide-faq-body .guide-rule-grid { grid-template-columns:1fr; }
  .guide-lane-items::before,.guide-lane-card::after { display:none; }
  .guide-section { padding:18px; border-radius:18px; }
  .guide-hero { padding:18px; border-radius:14px; }
  .guide-hero h2 { font-size:1.18rem; }
  .guide-flow-step { min-height:auto; }
}
#view-rdanalysis{margin-top:0;padding-top:0}
#view-relatedscreening{margin-top:0;padding-top:0}
@media(max-width:768px){.rd-data-table{font-size:0.72rem}.rd-data-table th,.rd-data-table td{padding:4px 6px}.rd-metric-card{min-width:110px;padding:8px 10px}.rd-tabs{overflow-x:auto;white-space:nowrap}.rd-tab{padding:8px 12px;font-size:0.8rem}.rs-company-grid{grid-template-columns:1fr}.rs-form-grid{grid-template-columns:1fr}.rs-dim-table{font-size:0.7rem}}

/* Dashboard welcome screen */
.welcome-shell{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:28px;align-items:stretch;margin:2px 0 18px;padding:30px;border:1px solid #dce7f5;border-radius:18px;background:linear-gradient(120deg,#ffffff 0%,#f4f8ff 58%,#edf6ff 100%);box-shadow:0 18px 42px rgba(15,23,42,.07)}
.welcome-shell::before{content:"";position:absolute;inset:auto -120px -180px auto;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.14),rgba(37,99,235,0) 66%);pointer-events:none}
.welcome-copy{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;min-height:260px}
.welcome-eyebrow{display:inline-flex;margin-bottom:12px;color:#2563eb;font-size:.66rem;font-weight:850;letter-spacing:.16em}
.welcome-copy h1{margin:0;color:#0f172a;font-size:2rem;line-height:1.18;letter-spacing:-.03em}
.welcome-copy p{max-width:620px;margin:14px 0 0;color:#64748b;font-size:.95rem;line-height:1.75}
.welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.welcome-action{min-height:40px;padding:0 16px;border:1px solid #d7e0ec;border-radius:10px;background:#fff;color:#334155;font:700 .82rem inherit;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s}
.welcome-action:hover{transform:translateY(-1px);border-color:#bfdbfe;box-shadow:0 10px 20px rgba(15,23,42,.07)}
.welcome-action.primary{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.18)}
.welcome-modules{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.welcome-modules button{min-height:112px;padding:16px;border:1px solid #e1e9f5;border-radius:14px;background:rgba(255,255,255,.86);color:#1e293b;text-align:left;cursor:pointer;box-shadow:0 1px 0 rgba(15,23,42,.03);transition:transform .15s,box-shadow .15s,border-color .15s}
.welcome-modules button:hover{transform:translateY(-2px);border-color:#bfdbfe;box-shadow:0 12px 24px rgba(15,23,42,.08)}
.welcome-modules span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:24px;margin-bottom:12px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:.66rem;font-weight:850;letter-spacing:.08em}
.welcome-modules strong{display:block;color:#172033;font-size:.92rem}
.welcome-modules small{display:block;margin-top:5px;color:#64748b;font-size:.73rem;line-height:1.5}
html[data-theme="dark"] .welcome-shell{border-color:#2d425a;background:linear-gradient(120deg,#172235 0%,#132b3d 100%);box-shadow:none}
html[data-theme="dark"] .welcome-copy h1,html[data-theme="dark"] .welcome-modules strong{color:#f1f5f9}
html[data-theme="dark"] .welcome-copy p,html[data-theme="dark"] .welcome-modules small{color:#9fb0c7}
html[data-theme="dark"] .welcome-action{border-color:#314158;background:#1b2940;color:#d8e1ee}
html[data-theme="dark"] .welcome-action.primary{border-color:#3b82f6;background:#2563eb;color:#fff}
html[data-theme="dark"] .welcome-modules button{border-color:#314158;background:rgba(27,41,64,.82);color:#d8e1ee}
@media(max-width:980px){.welcome-shell{grid-template-columns:1fr}.welcome-copy{min-height:auto}.welcome-modules{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.welcome-shell{padding:20px;border-radius:16px}.welcome-copy h1{font-size:1.5rem}.welcome-modules{grid-template-columns:1fr}.welcome-modules button{min-height:92px}.welcome-actions .welcome-action{width:100%}}

/* Dashboard welcome page: guided product entry */
.welcome-shell{
  grid-template-columns:minmax(0,1.06fr) minmax(330px,.94fr);
  grid-template-areas:"copy flow" "modules modules";
  gap:22px;
  padding:34px;
  border-radius:24px;
  background:
    radial-gradient(circle at 86% 0%, rgba(37,99,235,.18), transparent 30%),
    radial-gradient(circle at 4% 100%, rgba(15,118,110,.12), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f4f8ff 56%,#eef7ff 100%);
}
.welcome-shell::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(37,99,235,.065) 1px,transparent 1px),
    linear-gradient(180deg,rgba(37,99,235,.05) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(90deg,transparent,#000 14%,#000 76%,transparent);
  opacity:.62;
}
.welcome-copy{grid-area:copy;min-height:330px;justify-content:center}
.welcome-eyebrow{font-size:.72rem;font-weight:900;letter-spacing:.18em}
.welcome-copy h1{font-size:clamp(2.05rem,4vw,3.4rem);line-height:1.05;letter-spacing:-.055em}
.welcome-copy p{max-width:720px;font-size:1rem}
.welcome-action.guide{background:linear-gradient(135deg,#0f766e,#2563eb);border-color:transparent;box-shadow:0 14px 28px rgba(37,99,235,.2)}
.welcome-guide-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:22px;
  padding:15px 16px;
  border:1px solid #bfdbfe;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  box-shadow:0 14px 30px rgba(30,64,175,.08);
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.welcome-guide-strip:hover{transform:translateY(-2px);border-color:#60a5fa;box-shadow:0 18px 38px rgba(37,99,235,.14)}
.welcome-guide-strip span{display:block;color:#2563eb;font-size:.64rem;font-weight:900;letter-spacing:.16em}
.welcome-guide-strip strong{display:block;margin-top:4px;color:#0f172a;font-size:.92rem}
.welcome-guide-strip small{display:block;margin-top:4px;color:#64748b;font-size:.75rem;line-height:1.5}
.welcome-guide-strip b{flex-shrink:0;color:#0f766e;font-size:.78rem}
.dash-audit-flow{margin:14px 0;padding:16px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(120deg,#fff,#f8fbff);box-shadow:var(--card-shadow)}
.dash-audit-flow-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.dash-audit-flow-head span{color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.14em}
.dash-audit-flow-head strong{color:#0f172a;font-size:.98rem}
.dash-audit-flow-head small{color:#64748b;font-size:.76rem;line-height:1.5}
.dash-audit-flow-line{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.dash-audit-flow-step{min-height:86px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
.dash-audit-flow-step:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 20px rgba(37,99,235,.09)}
.dash-audit-flow-step span{display:inline-flex;height:20px;min-width:28px;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:.62rem;font-weight:900}
.dash-audit-flow-step strong{display:block;margin-top:8px;color:#0f172a;font-size:.82rem}
.dash-audit-flow-step small{display:block;margin-top:4px;color:#64748b;font-size:.68rem;line-height:1.4}
.dash-main-process-line{grid-template-columns:repeat(4,minmax(0,1fr))}
.dash-audit-flow-step em{display:inline-flex;align-items:center;margin-top:9px;padding:3px 8px;border-radius:999px;background:#f8fafc;color:#64748b;font-size:.62rem;font-style:normal;font-weight:850}
.dash-audit-flow-step.is-done{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f0fdf4)}
.dash-audit-flow-step.is-done span,.dash-audit-flow-step.is-done em{background:#dcfce7;color:#15803d}
.dash-audit-flow-step.is-active{border-color:#93c5fd;background:linear-gradient(180deg,#fff,#eff6ff);box-shadow:0 12px 24px rgba(37,99,235,.1)}
.dash-audit-flow-step.is-active span,.dash-audit-flow-step.is-active em{background:#dbeafe;color:#1d4ed8}
.dash-audit-flow-step.is-pending{background:#fff;color:#94a3b8}
.dash-audit-flow-step.is-pending span{background:#f1f5f9;color:#64748b}
.dash-next-step-card{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.62fr);gap:0;margin:14px 0 16px;border:1px solid #bfd4ff;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#f7fbff 0%,#fff 52%,#f8fafc 100%);box-shadow:0 18px 42px rgba(37,99,235,.11)}
.dash-next-step-main{padding:22px 24px}
.dash-next-step-main>span{display:inline-flex;margin-bottom:8px;padding:4px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.62rem;font-weight:900;letter-spacing:.13em}
.dash-next-step-main h2{margin:0;color:#0f172a;font-size:1.28rem;letter-spacing:-.02em}
.dash-next-step-main p{max-width:780px;margin:9px 0 0;color:#526579;font-size:.82rem;line-height:1.65}
.dash-next-step-primary{display:inline-grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:14px;align-items:center;min-width:230px;margin-top:18px;padding:13px 17px;border:0;border-radius:12px;background:linear-gradient(135deg,#1d4ed8,#0f766e);color:#fff;text-align:left;cursor:pointer;box-shadow:0 14px 28px rgba(29,78,216,.22);transition:transform .15s,box-shadow .15s}
.dash-next-step-primary:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(29,78,216,.28)}
.dash-next-step-primary small{grid-column:1;color:rgba(255,255,255,.72);font-size:.58rem;font-weight:900;letter-spacing:.1em}
.dash-next-step-primary strong{grid-column:1;color:#fff;font-size:.92rem}
.dash-next-step-primary b{grid-column:2;grid-row:1/3;font-size:1.2rem}
.dash-next-step-side{display:grid;align-content:start;gap:13px;padding:20px;border-left:1px solid #dbeafe;background:rgba(255,255,255,.76)}
.dash-next-step-side em{display:block;color:#64748b;font-size:.62rem;font-style:normal;font-weight:900;letter-spacing:.08em}
.dash-next-step-side strong{display:block;margin-top:4px;color:#172033;font-size:.92rem}
.dash-next-step-side ul{margin:0;padding:10px 12px 10px 28px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#526579;font-size:.72rem;line-height:1.55}
.dash-next-step-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
.dash-next-step-chips span{display:grid;gap:2px;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.dash-next-step-chips b{color:#0f172a;font-size:.9rem}
.dash-next-step-chips small{color:#64748b;font-size:.62rem}
.dash-project-home{margin:14px 0 16px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 16px 38px rgba(15,23,42,.07);overflow:hidden}
.dash-project-home-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid #e2e8f0}
.dash-project-home-head span{display:inline-flex;margin-bottom:7px;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.62rem;font-weight:900;letter-spacing:.13em}
.dash-project-home-head h2{margin:0;color:#0f172a;font-size:1.25rem;letter-spacing:-.02em}
.dash-project-home-head p{max-width:840px;margin:8px 0 0;color:#526579;font-size:.82rem;line-height:1.65}
.dash-project-create{flex:0 0 auto;padding:10px 14px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.74rem;font-weight:900;cursor:pointer}
.dash-project-create:hover{background:#dbeafe}
.dash-project-select-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;padding:16px}
.dash-project-select-card{display:grid;gap:12px;padding:14px;border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:14px;background:#fff;transition:border-color .15s,box-shadow .15s,transform .15s}
.dash-project-select-card:hover{transform:translateY(-1px);border-color:#bfdbfe;box-shadow:0 12px 24px rgba(37,99,235,.09)}
.dash-project-select-card.is-selected{border-color:#93c5fd;border-left-color:#2563eb;background:linear-gradient(180deg,#fff,#f8fbff)}
.dash-project-select-card.is-high{border-left-color:#16a34a}
.dash-project-select-card.is-mid{border-left-color:#2563eb}
.dash-project-select-card.is-low{border-left-color:#f59e0b}
.dash-project-select-main{display:grid;gap:4px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.dash-project-select-main span{width:max-content;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.58rem;font-weight:900}
.dash-project-select-card.is-selected .dash-project-select-main span{background:#dbeafe;color:#1d4ed8}
.dash-project-select-main strong{color:#0f172a;font-size:.94rem}
.dash-project-select-main small{color:#64748b;font-size:.7rem}
.dash-project-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}
.dash-project-progress div{height:8px;border-radius:999px;background:#edf2f7;overflow:hidden}
.dash-project-progress b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#0f766e)}
.dash-project-progress span{color:#334155;font-size:.72rem;font-weight:900}
.dash-project-next{display:grid;gap:4px;padding:11px 12px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;}
.dash-project-next em{color:#1d4ed8;font-size:.6rem;font-style:normal;font-weight:950;letter-spacing:.08em;}
.dash-project-next strong{color:#0f172a;font-size:.78rem;line-height:1.45;}
.dash-project-state{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dash-project-state div,.dash-project-assets{padding:9px 10px;border:1px solid #eef2f7;border-radius:10px;background:#fbfdff}
.dash-project-state em,.dash-project-assets em{display:block;color:#64748b;font-size:.6rem;font-style:normal;font-weight:900;letter-spacing:.08em}
.dash-project-state p,.dash-project-assets p{margin:4px 0 0;color:#334155;font-size:.68rem;line-height:1.45}
.dash-project-assets.is-ready{border-color:#bbf7d0;background:#f0fdf4}
.dash-project-enter{display:grid;gap:2px;padding:10px 12px;border:0;border-radius:10px;background:#0f172a;color:#fff;text-align:left;cursor:pointer}
.dash-project-enter:hover{background:#1d4ed8}
.dash-project-enter small{color:rgba(255,255,255,.68);font-size:.62rem}
.dash-project-enter strong{font-size:.78rem}
.dash-project-empty{margin:16px;padding:20px;border:1px dashed #bfdbfe;border-radius:14px;background:#f8fbff;text-align:center}
.dash-project-empty strong{display:block;color:#0f172a;font-size:.96rem}
.dash-project-empty p{margin:8px 0 14px;color:#64748b;font-size:.78rem}
.dash-project-empty button{padding:10px 14px;border:0;border-radius:999px;background:#1d4ed8;color:#fff;font-weight:900;cursor:pointer}
.dash-drill-runway{margin:14px 0 16px;border:1px solid #d8e4f2;border-radius:16px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 54%,#f5fbf8 100%);box-shadow:0 16px 36px rgba(15,23,42,.06);overflow:hidden}
.dash-drill-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 14px;border-bottom:1px solid #e2e8f0}
.dash-drill-head span{display:inline-flex;margin-bottom:7px;padding:4px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.62rem;font-weight:950;letter-spacing:.13em}
.dash-drill-head h2{margin:0;color:#0f172a;font-size:1.12rem;letter-spacing:-.02em}
.dash-drill-head p{max-width:860px;margin:7px 0 0;color:#526579;font-size:.78rem;line-height:1.62}
.dash-drill-head button{flex:0 0 auto;padding:10px 14px;border:0;border-radius:999px;background:#0f766e;color:#fff;font-size:.72rem;font-weight:950;cursor:pointer;box-shadow:0 10px 20px rgba(15,118,110,.18)}
.dash-drill-head button:hover{background:#0f5f59}
.dash-drill-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:14px;background:rgba(255,255,255,.62)}
.dash-drill-step{position:relative;display:grid;align-content:start;gap:7px;min-height:174px;padding:13px 12px;border:1px solid #e2e8f0;border-right:0;background:#fff;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s}
.dash-drill-step:first-child{border-radius:12px 0 0 12px}
.dash-drill-step:last-child{border-right:1px solid #e2e8f0;border-radius:0 12px 12px 0}
.dash-drill-step:hover{z-index:2;transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 12px 24px rgba(37,99,235,.09)}
.dash-drill-step span{width:max-content;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.58rem;font-weight:950}
.dash-drill-step strong{color:#0f172a;font-size:.82rem}
.dash-drill-step small{display:grid;gap:2px;margin:0;color:#526579;font-size:.64rem;line-height:1.45}
.dash-drill-step small b{color:#334155;font-size:.58rem;font-weight:950}
.dash-drill-step em{align-self:end;margin-top:2px;padding:6px 7px;border-radius:8px;background:#f8fafc;color:#475569;font-size:.62rem;font-style:normal;font-weight:850;line-height:1.35}
.dash-drill-step.is-done{background:#f7fef9;border-color:#bbf7d0}
.dash-drill-step.is-done span,.dash-drill-step.is-done em{background:#dcfce7;color:#166534}
.dash-drill-step.is-active{background:#fffaf3;border-color:#fed7aa}
.dash-drill-step.is-active span,.dash-drill-step.is-active em{background:#ffedd5;color:#9a3412}
.dash-drill-step.is-next{box-shadow:inset 0 4px 0 #2563eb}
.dash-drill-step.is-next strong{color:#1d4ed8}
.dash-drill-roles{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 14px}
.dash-drill-roles span{padding:5px 8px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#1e40af;font-size:.62rem;font-weight:900}
.dash-drill-empty{margin:14px;padding:18px;border:1px dashed #bfdbfe;border-radius:13px;background:#f8fbff;text-align:center}
.dash-drill-empty strong{display:block;color:#0f172a;font-size:.9rem}
.dash-drill-empty p{margin:7px 0 0;color:#64748b;font-size:.74rem;line-height:1.55}
.dash-review-detail{margin:16px 0;border:1px solid #e2e8f0;border-radius:14px;background:#fff;overflow:hidden}
.dash-review-detail summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;color:#0f172a;font-size:.84rem;font-weight:900;cursor:pointer;list-style:none}
.dash-review-detail summary::-webkit-details-marker{display:none}
.dash-review-detail summary small{color:#64748b;font-size:.68rem;font-weight:700}
.dash-review-detail summary:hover{background:#f8fafc}
.welcome-flow-card{
  grid-area:flow;
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:330px;
  padding:24px;
  border:1px solid rgba(191,219,254,.95);
  border-radius:24px;
  background:rgba(255,255,255,.82);
  box-shadow:0 22px 54px rgba(30,64,175,.12);
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.welcome-flow-card:hover{transform:translateY(-3px);border-color:#93c5fd;box-shadow:0 26px 62px rgba(37,99,235,.16)}
.welcome-flow-head span{display:block;color:#2563eb;font-size:.68rem;font-weight:900;letter-spacing:.16em}
.welcome-flow-head strong{display:block;margin-top:8px;color:#0f172a;font-size:1.18rem}
.welcome-flow-line{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.welcome-flow-line::before{content:"";position:absolute;left:10%;right:10%;top:50%;height:2px;background:linear-gradient(90deg,#bfdbfe,#99f6e4,#bfdbfe);transform:translateY(-50%)}
.welcome-flow-node{position:relative;z-index:1;display:grid;place-items:center;gap:6px;min-height:78px;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff}
.welcome-flow-node span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#2563eb;color:#fff;font-size:.72rem;font-weight:900}
.welcome-flow-node strong{color:#1e3a8a;font-size:.82rem}
.welcome-flow-card p{margin:0;color:#64748b;font-size:.8rem;line-height:1.7}
.welcome-modules{grid-area:modules;grid-template-columns:repeat(4,minmax(0,1fr))}
.welcome-modules button{min-height:124px;border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 12px 28px rgba(15,23,42,.055)}
html[data-theme="dark"] .welcome-guide-strip,
html[data-theme="dark"] .welcome-flow-card,
html[data-theme="dark"] .welcome-flow-node{border-color:#314158;background:rgba(27,41,64,.82)}
html[data-theme="dark"] .dash-audit-flow,
html[data-theme="dark"] .dash-audit-flow-step{border-color:#314158;background:#1b2940;box-shadow:none}
html[data-theme="dark"] .dash-next-step-card{border-color:#314158;background:#152238;box-shadow:none}
html[data-theme="dark"] .dash-project-home,
html[data-theme="dark"] .dash-project-select-card,
html[data-theme="dark"] .dash-project-next,
html[data-theme="dark"] .dash-drill-runway,
html[data-theme="dark"] .dash-review-detail{border-color:#314158;background:#152238;box-shadow:none}
html[data-theme="dark"] .dash-project-home-head,
html[data-theme="dark"] .dash-drill-head{border-color:#314158}
html[data-theme="dark"] .dash-project-home-head h2,
html[data-theme="dark"] .dash-project-select-main strong,
html[data-theme="dark"] .dash-project-next strong,
html[data-theme="dark"] .dash-project-progress span,
html[data-theme="dark"] .dash-project-empty strong,
html[data-theme="dark"] .dash-drill-head h2,
html[data-theme="dark"] .dash-drill-step strong,
html[data-theme="dark"] .dash-drill-empty strong,
html[data-theme="dark"] .dash-review-detail summary{color:#f1f5f9}
html[data-theme="dark"] .dash-project-home-head p,
html[data-theme="dark"] .dash-project-select-main small,
html[data-theme="dark"] .dash-project-next em,
html[data-theme="dark"] .dash-project-state p,
html[data-theme="dark"] .dash-project-assets p,
html[data-theme="dark"] .dash-project-empty p,
html[data-theme="dark"] .dash-drill-head p,
html[data-theme="dark"] .dash-drill-step small,
html[data-theme="dark"] .dash-drill-empty p,
html[data-theme="dark"] .dash-review-detail summary small{color:#9fb0c7}
html[data-theme="dark"] .dash-project-state div,
html[data-theme="dark"] .dash-project-assets,
html[data-theme="dark"] .dash-project-empty,
html[data-theme="dark"] .dash-drill-step,
html[data-theme="dark"] .dash-drill-empty{border-color:#314158;background:#1b2940}
html[data-theme="dark"] .dash-drill-grid{background:#17263d}
html[data-theme="dark"] .dash-drill-step em{background:#152238;color:#cbd5e1}
html[data-theme="dark"] .dash-drill-roles span{border-color:#314158;background:#1b2940;color:#bfdbfe}
html[data-theme="dark"] .dash-next-step-main h2,
html[data-theme="dark"] .dash-next-step-side strong,
html[data-theme="dark"] .dash-next-step-chips b{color:#f1f5f9}
html[data-theme="dark"] .dash-next-step-main p,
html[data-theme="dark"] .dash-next-step-side ul,
html[data-theme="dark"] .dash-next-step-chips small{color:#9fb0c7}
html[data-theme="dark"] .dash-next-step-side{border-color:#314158;background:#17263d}
html[data-theme="dark"] .dash-next-step-side ul,
html[data-theme="dark"] .dash-next-step-chips span{border-color:#314158;background:#1b2940}
html[data-theme="dark"] .welcome-guide-strip strong,
html[data-theme="dark"] .welcome-flow-head strong,
html[data-theme="dark"] .dash-audit-flow-head strong,
html[data-theme="dark"] .dash-audit-flow-step strong{color:#f1f5f9}
html[data-theme="dark"] .welcome-guide-strip small,
html[data-theme="dark"] .welcome-flow-card p,
html[data-theme="dark"] .dash-audit-flow-head small,
html[data-theme="dark"] .dash-audit-flow-step small{color:#9fb0c7}
html[data-theme="dark"] .dash-audit-flow-step em{background:#26364f;color:#cbd5e1}
html[data-theme="dark"] .dash-audit-flow-step.is-done{border-color:#166534;background:#13291f}
html[data-theme="dark"] .dash-audit-flow-step.is-active{border-color:#2563eb;background:#14284a}
@media(max-width:1200px){.welcome-modules{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.dash-drill-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dash-drill-step,.dash-drill-step:first-child,.dash-drill-step:last-child{border:1px solid #e2e8f0;border-radius:12px}}
@media(max-width:980px){.welcome-shell{grid-template-columns:1fr;grid-template-areas:"copy" "flow" "modules"}.welcome-copy,.welcome-flow-card{min-height:auto}.welcome-flow-line{grid-template-columns:repeat(6,1fr)}.dash-audit-flow-line{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-main-process-line{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-next-step-card{grid-template-columns:1fr}.dash-next-step-side{border-left:0;border-top:1px solid #dbeafe}.dash-project-home-head,.dash-drill-head{flex-direction:column}.dash-project-create,.dash-drill-head button{width:max-content}}
@media(max-width:768px){.welcome-shell{padding:22px}.welcome-flow-line{grid-template-columns:repeat(2,1fr)}.welcome-flow-line::before{display:none}.welcome-guide-strip{align-items:flex-start;flex-direction:column}.welcome-modules{grid-template-columns:1fr}.dash-audit-flow-line{grid-template-columns:1fr}.dash-audit-flow-step{min-height:auto}.dash-next-step-main{padding:18px}.dash-next-step-primary{width:100%;min-width:0}.dash-next-step-side{padding:16px}.dash-project-home-head,.dash-drill-head{padding:18px}.dash-project-select-grid{grid-template-columns:1fr;padding:12px}.dash-project-state{grid-template-columns:1fr}.dash-drill-grid{grid-template-columns:1fr;padding:12px}.dash-drill-step{min-height:0}.dash-review-detail summary{align-items:flex-start;flex-direction:column}}

/* ── 登录遮罩层 ─────────────────────────────────────── */
.login-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f172a 100%);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;}
.login-card{background:#fff;border-radius:16px;padding:40px 36px;max-width:400px;width:90%;text-align:center;box-shadow:0 25px 50px rgba(0,0,0,0.25);}
.login-brand{margin-bottom:24px;}
.login-brand-mark{display:inline-block;width:56px;height:56px;background:linear-gradient(135deg,#2563eb,#0ea5e9);border-radius:14px;color:#fff;font-size:1.4rem;font-weight:800;line-height:56px;text-align:center;margin-bottom:16px;letter-spacing:0.05em;}
.login-brand h1{font-size:1.3rem;font-weight:700;color:#1e293b;margin:0 0 4px;}
.login-brand p{font-size:0.82rem;color:#64748b;margin:0;}
.login-form{text-align:left;}
.login-field{margin-bottom:14px;}
.login-field label{display:block;font-size:0.78rem;font-weight:600;color:#475569;margin-bottom:5px;}
.login-field input{width:100%;padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:0.88rem;color:#1e293b;box-sizing:border-box;transition:border-color 0.2s;}
.login-field input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px rgba(37,99,235,0.1);}
.login-error{background:#fef2f2;color:#dc2626;font-size:0.78rem;padding:8px 12px;border-radius:6px;margin-bottom:12px;border:1px solid #fecaca;}
.login-btn{width:100%;padding:12px 24px;font-size:0.92rem;font-weight:600;border-radius:10px;background:#2563eb;color:#fff;border:none;cursor:pointer;transition:background 0.2s;margin-top:4px;}
.login-btn:hover{background:#1d4ed8;}
.login-divider{display:flex;align-items:center;margin:16px 0;color:#94a3b8;font-size:0.78rem;}
.login-divider::before,.login-divider::after{content:"";flex:1;height:1px;background:#e2e8f0;}
.login-divider span{padding:0 12px;}
.login-guest-btn{width:100%;padding:10px 20px;font-size:0.85rem;font-weight:500;border-radius:8px;background:#fff;color:#64748b;border:1px solid #e2e8f0;cursor:pointer;transition:all 0.2s;}
.login-guest-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#475569;}
.login-hint{font-size:0.72rem;color:#94a3b8;margin-top:12px;line-height:1.5;text-align:center;}
.login-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.login-mode-card{min-height:112px;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s;}
.login-mode-card:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 12px 24px rgba(15,23,42,.08);}
.login-mode-card span{display:inline-flex;margin-bottom:10px;padding:3px 8px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.12em;}
.login-mode-card strong{display:block;color:#0f172a;font-size:.95rem;}
.login-mode-card small{display:block;margin-top:6px;color:#64748b;font-size:.72rem;line-height:1.45;}
.login-mode-demo{border-color:#bfdbfe;background:linear-gradient(135deg,#fff,#f4f8ff);}
.login-mode-demo span{background:#2563eb;color:#fff;}
.login-local-recovery{margin-top:12px;padding:12px 14px;border:1px solid #f5d28b;border-radius:10px;background:#fffbeb;text-align:left;}
.login-local-recovery strong{display:block;color:#92400e;font-size:.82rem;}
.login-local-recovery p{margin:5px 0 10px;color:#78716c;font-size:.72rem;line-height:1.5;}
.login-local-recovery .login-btn{margin:0;width:100%;background:#fff;border-color:#d6b764;color:#78350f;}
.login-local-recovery .login-btn:hover{background:#fef3c7;border-color:#c59a36;}
.login-card{max-width:460px;}
.login-setup-guide{color:#475569;font-size:0.84rem;line-height:1.65;text-align:left;margin:16px 0;overflow-wrap:anywhere;}
.login-overlay:has(#first-run-form){overflow-y:auto;align-items:flex-start;padding:24px 12px;box-sizing:border-box;}
.login-overlay:has(#first-run-form) .login-card{margin:auto;box-sizing:border-box;}
#first-run-form{text-align:left;}
#first-run-form .login-error[hidden]{display:none;}

/* Purchase audit MVP */
.pmvp-page{display:grid;gap:16px;}
.pmvp-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:24px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(112deg,#fff,#f5f9ff 70%,#ecfdf5);box-shadow:var(--card-shadow);}
.pmvp-hero span,.pmvp-card-head span{display:block;color:#2563eb;font-size:.66rem;font-weight:900;letter-spacing:.16em;}
.pmvp-hero h2{margin:8px 0 0;color:#0f172a;font-size:1.65rem;line-height:1.2;}
.pmvp-hero p{max-width:760px;margin:8px 0 0;color:#64748b;font-size:.88rem;line-height:1.7;}
.pmvp-hero-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.pmvp-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
.pmvp-step{min-height:94px;padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s;}
.pmvp-step:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 20px rgba(37,99,235,.08);}
.pmvp-step span{display:inline-flex;height:22px;min-width:30px;align-items:center;justify-content:center;padding:0 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.64rem;font-weight:900;}
.pmvp-step strong{display:block;margin-top:9px;color:#0f172a;font-size:.88rem;}
.pmvp-step small{display:block;margin-top:5px;color:#64748b;font-size:.7rem;line-height:1.4;}
.pmvp-step.active{border-color:#2563eb;background:#eff6ff;}
.pmvp-step.active span{background:#2563eb;color:#fff;}
.pmvp-step.done{border-color:#bbf7d0;background:#f0fdf4;}
.pmvp-step.done span{background:#16a34a;color:#fff;}
.pmvp-step.locked{cursor:not-allowed;opacity:.52;background:#f8fafc;}
.pmvp-step.locked:hover{transform:none;border-color:#e2e8f0;box-shadow:none;}
.pmvp-card{padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:var(--card-shadow);}
.pmvp-card-head{margin-bottom:14px;}
.pmvp-card-head h3{margin:6px 0 0;color:#0f172a;font-size:1rem;}
.pmvp-card-head p{max-width:860px;margin:7px 0 0;color:#64748b;font-size:.8rem;line-height:1.65;}
.pmvp-project-card-compact{padding:14px 16px;}
.pmvp-project-card-compact .pmvp-card-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.pmvp-project-card-compact .pmvp-card-head span{margin:0;}
.pmvp-project-card-compact .pmvp-card-head h3{margin:0;font-size:.94rem;}
.pmvp-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.pmvp-summary-grid div{padding:13px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;}
.pmvp-summary-grid span{display:block;color:#64748b;font-size:.7rem;}
.pmvp-summary-grid strong{display:block;margin-top:6px;color:#0f172a;font-size:.88rem;}
.pmvp-project-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.pmvp-project-strip div{padding:10px 11px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;min-width:0;}
.pmvp-project-strip span{display:block;color:#64748b;font-size:.66rem;font-weight:800;}
.pmvp-project-strip strong{display:block;margin-top:5px;color:#0f172a;font-size:.82rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pmvp-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;}
.pmvp-team-grid section{padding:12px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-team-grid span{display:block;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.12em;}
.pmvp-team-grid strong{display:block;margin-top:5px;color:#0f172a;font-size:.9rem;}
.pmvp-team-grid small{display:block;margin-top:5px;color:#64748b;font-size:.7rem;line-height:1.5;}
.pmvp-empty{display:grid;gap:6px;padding:16px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;}
.pmvp-empty strong{color:#0f172a;}
.pmvp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.pmvp-form label{display:grid;gap:6px;color:#334155;font-size:.76rem;font-weight:800;}
.pmvp-form label small{display:block;color:#64748b;font-size:.68rem;line-height:1.5;font-weight:600;}
.pmvp-form input,.pmvp-form select{height:38px;padding:0 11px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:.82rem;}
.pmvp-form input:focus,.pmvp-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.pmvp-form-actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end;margin-top:4px;}
.pmvp-rule-preview{grid-column:1/-1;padding:13px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;}
.pmvp-rule-preview strong{display:block;margin-bottom:5px;font-size:.78rem;}
.pmvp-rule-preview span{display:block;font-size:.76rem;line-height:1.65;color:#31567d;}
.pmvp-project-sheet{padding:0;border-color:#dbe3ef;border-radius:12px;background:#fff;box-shadow:none;overflow:hidden;}
.pmvp-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #edf2f7;background:#fff;}
.pmvp-sheet-head span{display:block;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.16em;}
.pmvp-sheet-head h3{margin:7px 0 0;color:#0f172a;font-size:1.08rem;line-height:1.25;}
.pmvp-sheet-head p{max-width:780px;margin:7px 0 0;color:#64748b;font-size:.78rem;line-height:1.55;}
.pmvp-sheet-head>strong{display:grid;place-items:center;width:32px;height:32px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;color:#2563eb;font-size:.78rem;}
.pmvp-project-form{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:0;align-items:start;}
.pmvp-form-main{display:grid;gap:0;min-width:0;}
.pmvp-form-section{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;padding:18px 20px;border-bottom:1px solid #edf2f7;}
.pmvp-section-title span{display:block;color:#0f172a;font-size:.82rem;font-weight:900;}
.pmvp-section-title small{display:block;margin-top:5px;color:#94a3b8;font-size:.68rem;line-height:1.5;font-weight:700;}
.pmvp-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;min-width:0;}
.pmvp-team-fields{grid-template-columns:repeat(3,minmax(0,1fr));}
.pmvp-project-form label{display:grid;gap:6px;min-width:0;color:#334155;font-size:.74rem;font-weight:850;}
.pmvp-field-label{display:flex;align-items:center;gap:6px;min-height:18px;color:#334155;}
.pmvp-help{display:inline-grid;place-items:center;width:15px;height:15px;border:1px solid #cbd5e1;border-radius:999px;color:#64748b;font-size:.58rem;font-style:normal;line-height:1;cursor:help;}
.pmvp-project-form input,.pmvp-project-form select{width:100%;height:36px;padding:0 10px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;color:#0f172a;font-size:.8rem;}
.pmvp-project-form input:focus,.pmvp-project-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.09);}
.pmvp-project-form label small{display:block;color:#64748b;font-size:.66rem;line-height:1.45;font-weight:650;}
.pmvp-project-form .pmvp-rule-preview{grid-column:auto;margin:18px 18px 18px 0;padding:14px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;color:#334155;position:sticky;top:78px;}
.pmvp-project-form .pmvp-project-guide{grid-column:auto;margin:18px 18px 18px 0;padding:15px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#eff6ff);color:#334155;position:sticky;top:78px;}
.pmvp-project-guide span{display:block;margin-bottom:7px;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.13em;line-height:1.2;}
.pmvp-project-guide strong{display:block;margin:0;color:#0f172a;font-size:.9rem;line-height:1.35;}
.pmvp-project-guide p{margin:10px 0 12px;color:#475569;font-size:.74rem;line-height:1.7;}
.pmvp-project-guide ol{display:grid;gap:8px;margin:0;padding:10px 0 0 20px;border-top:1px solid #dbeafe;color:#1e3a8a;font-size:.72rem;font-weight:850;line-height:1.5;}
.pmvp-project-form .pmvp-rule-preview span{display:block;margin-bottom:7px;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.13em;line-height:1.2;}
.pmvp-project-form .pmvp-rule-preview strong{display:block;margin:0;color:#0f172a;font-size:.88rem;line-height:1.35;}
.pmvp-project-form .pmvp-rule-preview p{margin:10px 0 12px;color:#475569;font-size:.74rem;line-height:1.65;}
.pmvp-project-form .pmvp-rule-preview dl{display:grid;gap:8px;margin:0;padding-top:10px;border-top:1px solid #e2e8f0;}
.pmvp-project-form .pmvp-rule-preview dl div{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.pmvp-project-form .pmvp-rule-preview dt{color:#64748b;font-size:.66rem;font-weight:800;}
.pmvp-project-form .pmvp-rule-preview dd{margin:0;color:#0f172a;font-size:.72rem;font-weight:900;text-align:right;}
.pmvp-project-form .pmvp-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin:0;padding:14px 18px;border-top:1px solid #edf2f7;background:#fbfcfe;}
.pmvp-placeholder{padding:18px;border:1px dashed #bfdbfe;border-radius:12px;background:#f8fbff;color:#64748b;font-size:.84rem;}
.pmvp-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 14px;}
.pmvp-toolbar select{height:38px;min-width:260px;padding:0 11px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:.82rem;}
.pmvp-workbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(112deg,#fff,#f8fbff 78%,#eff6ff);box-shadow:var(--card-shadow);}
.pmvp-workbar-main{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap;}
.pmvp-workbar-title{display:flex;align-items:baseline;gap:8px;min-width:0;}
.pmvp-workbar-title span{color:#2563eb;font-size:.58rem;font-weight:900;letter-spacing:.14em;}
.pmvp-workbar-title strong{max-width:260px;color:#0f172a;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pmvp-workbar-title small{color:#64748b;font-size:.68rem;font-weight:800;white-space:nowrap;}
.pmvp-workbar-meta{display:flex;gap:6px;flex-wrap:wrap;min-width:0;}
.pmvp-workbar-meta span{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#475569;font-size:.66rem;font-weight:800;}
.pmvp-role-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.pmvp-role-buttons button{min-width:132px;padding:10px 12px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;}
.pmvp-role-buttons button:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 20px rgba(37,99,235,.08);}
.pmvp-role-buttons button.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 12px 24px rgba(37,99,235,.12);}
.pmvp-role-buttons strong{display:block;color:#0f172a;font-size:.78rem;}
.pmvp-role-buttons small{display:block;margin-top:4px;color:#64748b;font-size:.68rem;}
.pmvp-role-buttons-compact button{min-width:112px;padding:8px 10px;border-radius:10px;}
.pmvp-role-buttons-compact strong{font-size:.72rem;}
.pmvp-role-buttons-compact small{margin-top:2px;font-size:.62rem;}
.pmvp-workbar-quick{grid-template-columns:minmax(0,1fr) auto;}
.pmvp-quick-badge{display:grid;gap:2px;min-width:190px;padding:9px 11px;border:1px solid #bfdbfe;border-radius:10px;background:#fff;}
.pmvp-quick-badge strong{color:#1d4ed8;font-size:.72rem;}
.pmvp-quick-badge small{color:#64748b;font-size:.66rem;line-height:1.35;}
.pmvp-role-focus{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:11px 12px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#1e3a8a;}
.pmvp-role-focus strong{white-space:nowrap;font-size:.78rem;}
.pmvp-role-focus span{font-size:.74rem;line-height:1.55;}
.pmvp-role-highlight{border-color:#2563eb!important;box-shadow:0 18px 34px rgba(37,99,235,.12)!important;}
.pmvp-manager-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:-4px;padding:8px 10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;color:#64748b;font-size:.7rem;font-weight:800;}
.pmvp-manager-status strong{color:#0f172a;font-size:.72rem;}
.pmvp-manager-status span{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;}
.pmvp-demo-guide{padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eef6ff);box-shadow:0 12px 26px rgba(37,99,235,.08);}
.pmvp-demo-guide-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;}
.pmvp-demo-guide-head span{display:block;color:#2563eb;font-size:.6rem;font-weight:950;letter-spacing:.15em;}
.pmvp-demo-guide-head strong{display:block;margin-top:4px;color:#0f172a;font-size:.95rem;}
.pmvp-demo-guide-head p{margin:5px 0 0;color:#64748b;font-size:.74rem;line-height:1.5;}
.pmvp-demo-mode{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:10px 12px;border:1px solid #dbeafe;border-radius:11px;background:rgba(255,255,255,.72);}
.pmvp-demo-modebar{margin-top:-6px;margin-bottom:0;border-color:#dbe3ef;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.04);}
.pmvp-demo-mode strong{display:block;color:#0f172a;font-size:.78rem;}
.pmvp-demo-mode span{display:block;margin-top:3px;color:#64748b;font-size:.7rem;line-height:1.45;}
.pmvp-demo-mode-buttons{display:inline-flex;gap:4px;padding:4px;border:1px solid #dbe3ef;border-radius:999px;background:#fff;flex:0 0 auto;}
.pmvp-demo-mode-buttons button{height:30px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:#64748b;font-size:.7rem;font-weight:900;cursor:pointer;}
.pmvp-demo-mode-buttons button.active{background:#2563eb;color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.2);}
.pmvp-tool-result-card .pmvp-event-table{margin-top:12px;}
.pmvp-tool-result-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px;}
.pmvp-tool-result-status div{padding:12px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(135deg,#fff,#f8fbff);}
.pmvp-tool-result-status span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.12em;}
.pmvp-tool-result-status strong{display:block;margin-top:6px;color:#0f172a;font-size:.95rem;}
.pmvp-tool-result-status small{display:block;margin-top:4px;color:#64748b;font-size:.68rem;line-height:1.4;}
.pmvp-tool-result-note{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px dashed #93c5fd;border-radius:12px;background:#eff6ff;color:#1e3a8a;}
.pmvp-tool-result-note strong{flex:0 0 auto;font-size:.74rem;}
.pmvp-tool-result-note span{font-size:.72rem;line-height:1.55;}
.pmvp-demo-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:12px;padding:10px 12px;border:1px solid #dbeafe;border-radius:11px;background:#fff;}
.pmvp-demo-next strong{color:#1d4ed8;font-size:.72rem;}
.pmvp-demo-next span{color:#334155;font-size:.76rem;line-height:1.45;}
.pmvp-demo-steps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;}
.pmvp-demo-steps button{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;min-height:62px;padding:9px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;}
.pmvp-demo-steps button:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 20px rgba(37,99,235,.08);}
.pmvp-demo-steps button.active{border-color:#2563eb;background:#eff6ff;}
.pmvp-demo-steps button.done{border-color:#bbf7d0;background:#f0fdf4;}
.pmvp-demo-steps span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:.64rem;font-weight:900;grid-row:span 2;}
.pmvp-demo-steps button.done span{background:#dcfce7;color:#15803d;}
.pmvp-demo-steps strong{color:#0f172a;font-size:.72rem;line-height:1.25;}
.pmvp-demo-steps small{color:#64748b;font-size:.64rem;line-height:1.35;}
.pmvp-value-board{display:grid;grid-template-columns:1.35fr repeat(5,minmax(0,1fr));gap:10px;margin:0 0 12px;}
.pmvp-value-board div{padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;min-width:0;}
.pmvp-value-board .primary{background:linear-gradient(135deg,#eff6ff,#f8fbff);border-color:#bfdbfe;}
.pmvp-value-board span{display:block;color:#64748b;font-size:.68rem;font-weight:900;line-height:1.35;}
.pmvp-value-board strong{display:block;margin-top:7px;color:#0f172a;font-size:1.08rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pmvp-value-board .primary strong{font-size:1.35rem;color:#1d4ed8;}
.pmvp-value-board small{display:block;margin-top:6px;color:#64748b;font-size:.66rem;line-height:1.35;}
.pmvp-management-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.pmvp-management-grid div{padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-management-grid span{display:block;color:#64748b;font-size:.7rem;font-weight:800;}
.pmvp-management-grid strong{display:block;margin-top:6px;color:#0f172a;font-size:1rem;}
.pmvp-management-grid small{display:block;margin-top:5px;color:#64748b;font-size:.7rem;line-height:1.45;}
.pmvp-risk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.pmvp-risk-card{display:grid;gap:12px;padding:15px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;}
.pmvp-risk-card:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 12px 26px rgba(37,99,235,.08);}
.pmvp-risk-card.selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 14px 32px rgba(37,99,235,.12);}
.pmvp-risk-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.pmvp-risk-top strong{color:#0f172a;font-size:.95rem;line-height:1.4;}
.pmvp-risk-card p{margin:0;color:#475569;font-size:.8rem;line-height:1.65;}
.pmvp-risk-card dl{display:grid;gap:8px;margin:0;padding:12px;border-radius:10px;background:#f8fafc;}
.pmvp-risk-card dt{color:#64748b;font-size:.68rem;font-weight:900;}
.pmvp-risk-card dd{margin:2px 0 0;color:#1e293b;font-size:.78rem;line-height:1.55;}
.pmvp-level{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;font-size:.68rem;font-weight:900;white-space:nowrap;}
.pmvp-level-高{background:#fee2e2;color:#b91c1c;}
.pmvp-level-中{background:#fef3c7;color:#92400e;}
.pmvp-test-list{display:grid;gap:10px;}
.pmvp-test-item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.pmvp-test-index{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:#eff6ff;color:#2563eb;font-weight:900;font-size:.82rem;}
.pmvp-test-main{display:grid;gap:10px;min-width:0;}
.pmvp-test-main strong{color:#0f172a;font-size:.86rem;line-height:1.55;}
.pmvp-test-controls{display:grid;grid-template-columns:160px minmax(0,1fr);gap:10px;}
.pmvp-test-controls select,.pmvp-test-controls input{height:38px;padding:0 11px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:.8rem;}
.pmvp-test-controls input:focus,.pmvp-test-controls select:focus,.pmvp-toolbar select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.pmvp-evidence-list{display:grid;gap:10px;margin-top:14px;}
.pmvp-evidence-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;}
.pmvp-evidence-item strong{display:block;color:#0f172a;font-size:.86rem;}
.pmvp-evidence-item span{display:block;margin-top:4px;color:#64748b;font-size:.76rem;line-height:1.45;}
.pmvp-finding-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.pmvp-finding-form label{display:grid;gap:6px;color:#334155;font-size:.76rem;font-weight:800;}
.pmvp-finding-form label:nth-child(n+3){grid-column:1/-1;}
.pmvp-finding-form input,.pmvp-finding-form select,.pmvp-finding-form textarea{width:100%;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:.82rem;}
.pmvp-finding-form input,.pmvp-finding-form select{height:38px;padding:0 11px;}
.pmvp-finding-form textarea{min-height:86px;padding:10px 11px;resize:vertical;line-height:1.55;}
.pmvp-finding-form input:focus,.pmvp-finding-form select:focus,.pmvp-finding-form textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.pmvp-report-document{display:grid;gap:14px;padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;}
.pmvp-report-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #e2e8f0;}
.pmvp-report-title span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.16em;}
.pmvp-report-title h4{margin:5px 0 6px;color:#0f172a;font-size:1.15rem;}
.pmvp-report-title p{margin:0;color:#475569;font-size:.8rem;line-height:1.6;}
.pmvp-report-title>strong{display:inline-flex;align-items:center;height:30px;padding:0 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;white-space:nowrap;}
.pmvp-report-meta{display:flex;gap:8px;flex-wrap:wrap;color:#475569;font-size:.74rem;font-weight:800;}
.pmvp-report-meta span{padding:6px 9px;border:1px solid #dbeafe;border-radius:999px;background:#fff;}
.pmvp-report-scoreboard{display:grid;grid-template-columns:1.3fr repeat(3,minmax(0,1fr));gap:10px;}
.pmvp-report-scoreboard div{padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#fff;}
.pmvp-report-scoreboard span{display:block;color:#64748b;font-size:.68rem;font-weight:900;}
.pmvp-report-scoreboard strong{display:block;margin-top:5px;color:#0f172a;font-size:1.05rem;}
.pmvp-report-scoreboard small{display:block;margin-top:3px;color:#94a3b8;font-size:.66rem;}
.pmvp-report-section{padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.pmvp-report-section.compact{padding:12px 14px;}
.pmvp-report-section h5{margin:0 0 11px;color:#0f172a;font-size:.88rem;}
.pmvp-report-section dl{display:grid;gap:10px;margin:0;}
.pmvp-report-section dl div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;}
.pmvp-report-section dt{color:#64748b;font-size:.7rem;font-weight:900;}
.pmvp-report-section dd{margin:0;color:#334155;font-size:.78rem;line-height:1.6;}
.pmvp-report-table{display:grid;gap:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;}
.pmvp-report-table>div{display:grid;grid-template-columns:78px 1.1fr 1.5fr 110px;gap:10px;align-items:center;padding:10px 12px;border-top:1px solid #edf2f7;color:#334155;font-size:.76rem;}
.pmvp-report-table>div:first-child{border-top:0;background:#f8fafc;color:#64748b;font-weight:900;}
.pmvp-report-table span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pmvp-report-table .pmvp-level{height:22px;}
.pmvp-report-finding{display:grid;gap:10px;padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-report-finding+ .pmvp-report-finding{margin-top:10px;}
.pmvp-report-finding>div{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.pmvp-report-finding strong{color:#0f172a;font-size:.86rem;line-height:1.45;}
.pmvp-report-finding p{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;margin:0;color:#334155;font-size:.76rem;line-height:1.65;}
.pmvp-report-finding b{color:#64748b;font-size:.7rem;}
.pmvp-report-empty{padding:14px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.78rem;}
.pmvp-report-trace{display:flex;gap:8px;flex-wrap:wrap;}
.pmvp-report-trace span{padding:7px 9px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-size:.72rem;font-weight:800;}
.pmvp-report-raw{border:1px dashed #cbd5e1;border-radius:12px;background:#fff;}
.pmvp-report-raw summary{cursor:pointer;padding:11px 13px;color:#475569;font-size:.76rem;font-weight:900;}
.pmvp-report-raw pre{margin:0;padding:14px 16px;border-top:1px dashed #cbd5e1;color:#0f172a;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:.8rem;line-height:1.75;white-space:pre-wrap;word-break:break-word;}
.pmvp-report-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0;}
.pmvp-report-flow div{padding:12px 13px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-report-flow span{display:block;color:#64748b;font-size:.68rem;font-weight:900;}
.pmvp-report-flow strong{display:block;margin-top:5px;color:#0f172a;font-size:.9rem;line-height:1.25;}
.pmvp-report-flow small{display:block;margin-top:4px;color:#94a3b8;font-size:.68rem;}
.pmvp-report-blocker{display:flex;align-items:center;gap:10px;margin:12px 0;padding:12px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#92400e;}
.pmvp-report-blocker strong{white-space:nowrap;font-size:.82rem;}
.pmvp-report-blocker span{flex:1;font-size:.76rem;line-height:1.55;}
.pmvp-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px;}
.pmvp-kpi-grid div{padding:14px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-kpi-grid strong{display:block;color:#0f172a;font-size:1.35rem;line-height:1.1;}
.pmvp-kpi-grid span{display:block;margin-top:5px;color:#64748b;font-size:.72rem;font-weight:800;}
.pmvp-data-grid,.pmvp-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.pmvp-data-card,.pmvp-model-card{display:grid;gap:10px;padding:15px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.pmvp-import-window{margin:14px 0;padding:16px;border:1px solid #b9cef2;border-radius:14px;background:#f7faff;scroll-margin-top:18px;}
.pmvp-import-window:focus{outline:3px solid rgba(37,99,235,.16);outline-offset:2px;}
.pmvp-import-window-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid #dbe7f6;}
.pmvp-import-window-head span{display:block;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.15em;}
.pmvp-import-window-head strong{display:block;margin-top:5px;color:#0f172a;font-size:1rem;}
.pmvp-import-window-head p{max-width:720px;margin:6px 0 0;color:#64748b;font-size:.75rem;line-height:1.55;}
.pmvp-import-formats{display:flex;gap:6px;flex:0 0 auto;}
.pmvp-import-formats b{padding:6px 8px;border:1px solid #c9d9ef;border-radius:6px;background:#fff;color:#31557d;font-size:.62rem;letter-spacing:.04em;}
.pmvp-import-window .pmvp-data-card:first-child{border-color:#8fb3ec;box-shadow:inset 0 3px 0 #2563eb;}
.pmvp-import-actions{justify-content:flex-end;margin-top:12px;}
.pmvp-data-preview{margin-top:14px;padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff;}
.pmvp-data-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px;}
.pmvp-data-preview-head span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.16em;}
.pmvp-data-preview-head strong{display:block;margin-top:5px;color:#0f172a;font-size:.95rem;}
.pmvp-data-preview-head p{margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.5;}
.pmvp-data-preview-head em{flex:0 0 auto;padding:7px 10px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#1d4ed8;font-size:.68rem;font-style:normal;font-weight:900;}
.pmvp-data-preview-item{border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden;}
.pmvp-data-preview-item+ .pmvp-data-preview-item{margin-top:8px;}
.pmvp-data-preview-item summary{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;cursor:pointer;list-style:none;}
.pmvp-data-preview-item summary::-webkit-details-marker{display:none;}
.pmvp-data-preview-item summary span{color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.12em;}
.pmvp-data-preview-item summary strong{color:#0f172a;font-size:.82rem;}
.pmvp-data-preview-item summary small{color:#64748b;font-size:.68rem;font-weight:800;white-space:nowrap;}
.pmvp-data-preview-table{overflow:auto;border-top:1px solid #edf2f7;}
.pmvp-data-preview-table table{width:100%;border-collapse:collapse;min-width:760px;}
.pmvp-data-preview-table th,.pmvp-data-preview-table td{padding:9px 10px;border-bottom:1px solid #edf2f7;text-align:left;font-size:.7rem;line-height:1.45;white-space:nowrap;}
.pmvp-data-preview-table th{background:#f1f5f9;color:#475569;font-weight:900;}
.pmvp-data-preview-table td{color:#334155;}
.pmvp-data-preview-note{margin:8px 12px 11px;color:#64748b;font-size:.68rem;}
.pmvp-model-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 14px;}
.pmvp-model-summary div{padding:12px 14px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#eef6ff);}
.pmvp-model-summary strong{display:block;color:#0f172a;font-size:1.2rem;line-height:1;}
.pmvp-model-summary span{display:block;margin-top:5px;color:#64748b;font-size:.7rem;font-weight:850;}
.pmvp-model-actionbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;padding:14px 16px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f8fbff);box-shadow:0 12px 28px rgba(37,99,235,.08);}
.pmvp-model-actionbar strong{display:block;color:#0f172a;font-size:.9rem;line-height:1.35;}
.pmvp-model-actionbar span{display:block;margin-top:4px;color:#64748b;font-size:.74rem;line-height:1.45;}
.pmvp-model-actionbar>div:last-child{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.pmvp-model-section-title{margin:16px 0 10px;}
.pmvp-data-link-panel{margin:12px 0 14px;padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eff6ff);}
.pmvp-data-link-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px;}
.pmvp-data-link-head strong{color:#0f172a;font-size:.9rem;}
.pmvp-data-link-head span{color:#64748b;font-size:.72rem;line-height:1.45;}
.pmvp-data-link-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.pmvp-data-link-grid div{padding:10px;border:1px solid rgba(191,219,254,.85);border-radius:11px;background:rgba(255,255,255,.82);}
.pmvp-data-link-grid b{display:block;margin-bottom:7px;color:#1e3a8a;font-size:.68rem;}
.pmvp-data-link-grid p{display:flex;gap:6px;flex-wrap:wrap;margin:0;}
.pmvp-data-chip{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;font-size:.66rem;font-weight:800;}
.pmvp-data-chip.ok{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
.pmvp-data-chip.warn{border-color:#fde68a;background:#fffbeb;color:#b45309;}
.pmvp-data-chip.soft{border-color:#c7d2fe;background:#eef2ff;color:#4338ca;}
.pmvp-data-chip.muted{border-color:#e2e8f0;background:#f8fafc;color:#64748b;}
.pmvp-model-selectable{position:relative;align-content:start;transition:border-color .18s,box-shadow .18s,transform .18s,background .18s;}
.pmvp-model-selectable.selected{border-color:#93c5fd;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 14px 30px rgba(37,99,235,.08);}
.pmvp-model-selectable.blocked{opacity:.82;}
.pmvp-model-selectable:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.08);}
.pmvp-model-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;cursor:pointer;}
.pmvp-model-toggle input{width:18px;height:18px;accent-color:#2563eb;}
.pmvp-model-toggle span{flex:1;}
.pmvp-model-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.pmvp-model-title strong{flex:1;}
.pmvp-model-meta{display:grid;gap:8px;margin:0;}
.pmvp-model-meta div{padding:9px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;}
.pmvp-model-meta dt{margin-bottom:4px;color:#1d4ed8;font-size:.66rem;font-weight:900;}
.pmvp-model-meta dd{margin:0;color:#475569;font-size:.72rem;line-height:1.55;}
.pmvp-model-params{padding:10px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;}
.pmvp-model-params>strong{display:block;margin:0 0 8px;color:#1e3a8a;font-size:.7rem;}
.pmvp-model-params>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.pmvp-model-params label{display:grid;gap:5px;color:#334155;font-size:.66rem;font-weight:850;}
.pmvp-model-params input{width:100%;height:32px;padding:0 8px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;color:#0f172a;font-size:.75rem;}
.pmvp-model-params small{display:block;margin-top:8px;color:#64748b;font-size:.66rem;line-height:1.45;}
.pmvp-model-boundary{padding:9px 10px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;}
.pmvp-model-boundary summary{cursor:pointer;color:#334155;font-size:.72rem;font-weight:850;}
.pmvp-model-boundary p{margin:8px 0 0;font-size:.7rem;}
.pmvp-workshop{margin-top:16px;padding:16px;border:1px solid #c7d2fe;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef2ff);box-shadow:0 16px 36px rgba(37,99,235,.08);}
.pmvp-workshop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;}
.pmvp-workshop-head span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.16em;}
.pmvp-workshop-head strong{display:block;margin-top:5px;color:#0f172a;font-size:1rem;}
.pmvp-workshop-head p{margin:6px 0 0;color:#64748b;font-size:.74rem;line-height:1.55;}
.pmvp-workshop-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.pmvp-workshop-head em{flex:0 0 auto;padding:7px 10px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#1d4ed8;font-size:.68rem;font-style:normal;font-weight:900;}
.pmvp-workshop-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid rgba(191,219,254,.9);border-radius:14px;background:rgba(255,255,255,.78);}
.pmvp-workshop-form label{display:grid;gap:6px;color:#334155;font-size:.7rem;font-weight:850;}
.pmvp-workshop-form label.wide{grid-column:span 3;}
.pmvp-workshop-form input,.pmvp-workshop-form select{width:100%;height:36px;padding:0 10px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#0f172a;font-size:.78rem;}
.pmvp-workshop-actions{grid-column:span 3;display:flex;align-items:center;gap:12px;justify-content:flex-start;}
.pmvp-workshop-actions small{color:#64748b;font-size:.7rem;}
.pmvp-template-help{grid-column:span 3;display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #dbeafe;border-radius:11px;background:#f8fbff;color:#475569;}
.pmvp-template-help strong{flex:0 0 auto;color:#1d4ed8;font-size:.72rem;}
.pmvp-template-help span{font-size:.7rem;line-height:1.55;}
.pmvp-custom-list{display:grid;gap:8px;margin-top:12px;}
.pmvp-custom-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dbeafe;border-radius:12px;background:#fff;}
.pmvp-custom-list span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.12em;}
.pmvp-custom-list strong{display:block;margin-top:3px;color:#0f172a;font-size:.86rem;}
.pmvp-custom-list small{display:block;margin-top:4px;color:#64748b;font-size:.7rem;line-height:1.45;}
.pmvp-rule-builder{margin-top:12px;padding:14px;border:1px dashed #93c5fd;border-radius:14px;background:rgba(255,255,255,.72);}
.pmvp-rule-builder .pmvp-workshop-head{margin-bottom:10px;}
.pmvp-advanced-models{margin-top:16px;border:1px solid #c7d2fe;border-radius:16px;background:#f8fbff;overflow:hidden;}
.pmvp-advanced-models>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;color:#0f172a;font-size:.86rem;font-weight:900;cursor:pointer;list-style:none;}
.pmvp-advanced-models>summary::-webkit-details-marker{display:none;}
.pmvp-advanced-models>summary::before{content:"+";display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#eff6ff;color:#2563eb;font-weight:900;}
.pmvp-advanced-models[open]>summary::before{content:"-";}
.pmvp-advanced-models>summary span{flex:1;}
.pmvp-advanced-models>summary strong{padding:5px 9px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:.68rem;white-space:nowrap;}
.pmvp-advanced-models>.pmvp-section-title,.pmvp-advanced-models>.pmvp-model-grid,.pmvp-advanced-models>.pmvp-workshop{margin-left:16px;margin-right:16px;}
.pmvp-advanced-models>.pmvp-workshop{margin-bottom:16px;}
.pmvp-model-grid-extended{margin-bottom:14px;}
.pmvp-rule-form{background:#fff;}
.pmvp-data-head span,.pmvp-model-card span{display:block;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.14em;}
.pmvp-data-head strong,.pmvp-model-card strong{display:block;margin-top:5px;color:#0f172a;font-size:.95rem;line-height:1.35;}
.pmvp-data-card p,.pmvp-model-card p{margin:0;color:#64748b;font-size:.76rem;line-height:1.6;}
.pmvp-model-card small{color:#475569;font-size:.7rem;line-height:1.45;}
.pmvp-data-status{display:flex;align-items:baseline;gap:8px;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;}
.pmvp-data-status.ok{border-color:#bbf7d0;background:#f0fdf4;}
.pmvp-data-status strong{color:#0f172a;font-size:1.25rem;line-height:1;}
.pmvp-data-status span{color:#64748b;font-size:.72rem;}
.pmvp-data-models{padding:10px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;}
.pmvp-data-models strong{display:block;margin-bottom:6px;color:#1e3a8a;font-size:.68rem;}
.pmvp-data-models p{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px;}
.pmvp-data-models p span{padding:4px 7px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.64rem;font-weight:850;}
.pmvp-data-models em{color:#94a3b8;font-size:.68rem;font-style:normal;}
.pmvp-warn,.pmvp-ok{display:block;padding:7px 9px;border-radius:8px;font-size:.7rem;line-height:1.4;}
.pmvp-warn{border:1px solid #fde68a;background:#fffbeb;color:#b45309;}
.pmvp-ok{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;}
.pmvp-file-name{color:#64748b;font-size:.7rem;line-height:1.4;}
.pmvp-data-actions{display:flex;gap:8px;flex-wrap:wrap;}
.pmvp-event-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:14px;align-items:start;margin-top:14px;}
.pmvp-event-layout-stacked{grid-template-columns:1fr;}
.pmvp-flow-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0;}
.pmvp-flow-summary div{padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;}
.pmvp-flow-summary strong{display:block;color:#0f172a;font-size:1rem;line-height:1;}
.pmvp-flow-summary span{display:block;margin-top:5px;color:#64748b;font-size:.68rem;font-weight:850;}
.pmvp-event-table{overflow:auto;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.pmvp-event-table table{width:100%;min-width:760px;border-collapse:collapse;font-size:.78rem;}
.pmvp-event-table th{padding:10px 12px;background:#eff6ff;color:#1e3a8a;text-align:left;font-weight:900;white-space:nowrap;}
.pmvp-event-table td{padding:10px 12px;border-top:1px solid #e2e8f0;color:#334155;vertical-align:top;}
.pmvp-event-table tr{cursor:pointer;}
.pmvp-event-table tr.selected td{background:#eff6ff;}
.pmvp-event-fold{margin-top:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff;overflow:hidden;}
.pmvp-event-fold summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;color:#0f172a;font-size:.78rem;font-weight:900;cursor:pointer;list-style:none;}
.pmvp-event-fold summary::-webkit-details-marker{display:none;}
.pmvp-event-fold summary::before{content:"+";display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#eff6ff;color:#2563eb;font-weight:900;}
.pmvp-event-fold[open] summary::before{content:"-";}
.pmvp-event-fold summary span{display:flex;align-items:center;gap:8px;}
.pmvp-event-fold summary strong{display:grid;place-items:center;min-width:26px;height:24px;padding:0 8px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:.72rem;}
.pmvp-event-fold .pmvp-event-table{border:0;border-top:1px solid #e2e8f0;border-radius:0;}
.pmvp-outcome-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0;}
.pmvp-outcome-board details{border:1px solid #dbeafe;border-radius:12px;background:#fbfdff;overflow:hidden;}
.pmvp-outcome-board summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;color:#0f172a;font-size:.78rem;font-weight:900;cursor:pointer;list-style:none;}
.pmvp-outcome-board summary::-webkit-details-marker{display:none;}
.pmvp-outcome-board summary::before{content:"+";display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#eff6ff;color:#2563eb;font-weight:900;}
.pmvp-outcome-board details[open] summary::before{content:"-";}
.pmvp-outcome-board summary span{flex:1;}
.pmvp-outcome-board summary strong{display:grid;place-items:center;min-width:28px;height:24px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;}
.pmvp-outcome-board .pmvp-pool-list,.pmvp-outcome-board .pmvp-empty,.pmvp-outcome-board .pmvp-follow-alert{margin:0 12px 12px;}
.pmvp-event-detail{padding:15px;border:1px solid #dbeafe;border-radius:12px;background:#fbfdff;}
.pmvp-event-empty-detail{display:grid;min-height:260px;place-items:center;border-style:dashed;background:linear-gradient(135deg,#fff,#f8fbff);}
.pmvp-event-empty-detail>div{max-width:430px;text-align:center;}
.pmvp-event-empty-detail span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.16em;}
.pmvp-event-empty-detail strong{display:block;margin-top:8px;color:#0f172a;font-size:1rem;}
.pmvp-event-empty-detail p{margin:8px 0 0;color:#64748b;font-size:.76rem;line-height:1.65;}
.pmvp-flowline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 12px;}
.pmvp-flowline span{display:flex;align-items:center;gap:5px;min-height:30px;padding:5px 7px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#64748b;font-size:.62rem;font-weight:850;white-space:nowrap;}
.pmvp-flowline b{display:grid;place-items:center;width:17px;height:17px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.58rem;}
.pmvp-flowline span.done{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
.pmvp-flowline span.done b{background:#16a34a;color:#fff;}
.pmvp-flowline span.active{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;}
.pmvp-flowline span.active b{background:#2563eb;color:#fff;}
.pmvp-flowline span.returned{border-color:#fed7aa;background:#fff7ed;color:#c2410c;}
.pmvp-flowline span.returned b{background:#f97316;color:#fff;}
.pmvp-status-note{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.pmvp-status-note strong{color:#0f172a;font-size:.78rem;}
.pmvp-status-note span{color:#64748b;font-size:.68rem;font-weight:750;}
.pmvp-submission-packet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;}
.pmvp-submission-packet div{min-width:0;}
.pmvp-submission-packet span{display:block;color:#64748b;font-size:.62rem;font-weight:850;}
.pmvp-submission-packet strong{display:block;margin-top:4px;color:#0f172a;font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pmvp-submission-packet p{grid-column:1/-1;margin:2px 0 0;color:#475569;font-size:.72rem;line-height:1.5;}
.pmvp-return-panel{margin:12px 0 0;padding:10px;border:1px solid #fed7aa;border-radius:10px;background:#fff7ed;}
.pmvp-return-panel label{margin:0;color:#7c2d12;}
.pmvp-return-panel textarea{min-height:76px;background:#fff;border-color:#fdba74;}
.pmvp-change-panel{margin:12px 0;padding:12px;border:1px solid #bfdbfe;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#eff6ff);}
.pmvp-change-panel dl{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:10px 0!important;}
.pmvp-change-panel dt{color:#1d4ed8!important;font-size:.66rem!important;}
.pmvp-change-panel dd{padding:8px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#334155!important;font-size:.74rem!important;}
.pmvp-change-panel p{margin:8px 0 0;color:#475569;font-size:.74rem;line-height:1.55;}
.pmvp-change-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.pmvp-change-apply{border-color:#c7d2fe;background:linear-gradient(135deg,#fff,#f5f7ff);}
.pmvp-event-detail dl{display:grid;gap:8px;margin:0 0 12px;}
.pmvp-event-detail dt{color:#64748b;font-size:.68rem;font-weight:900;}
.pmvp-event-detail dd{margin:0;color:#0f172a;font-size:.78rem;line-height:1.55;}
.pmvp-evidence-chain{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0;padding:12px;border:1px solid #c7d2fe;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#eef2ff);}
.pmvp-evidence-chain .pmvp-follow-title{grid-column:1/-1;}
.pmvp-evidence-chain>div:not(.pmvp-follow-title){padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#fff;}
.pmvp-evidence-chain>div span{display:block;color:#1d4ed8;font-size:.68rem;font-weight:900;}
.pmvp-evidence-chain>div p{margin:6px 0 0;color:#475569;font-size:.74rem;line-height:1.55;}
.pmvp-evidence-chain label{margin-top:0!important;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#fff;}
.pmvp-evidence-chain textarea{min-height:68px!important;background:#fbfdff!important;}
.pmvp-event-detail label{display:grid;gap:6px;margin-top:10px;color:#334155;font-size:.74rem;font-weight:800;}
.pmvp-event-detail input,.pmvp-event-detail select,.pmvp-event-detail textarea{width:100%;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:.8rem;}
.pmvp-event-detail input{height:36px;padding:0 10px;}
.pmvp-event-detail select{height:36px;padding:0 10px;}
.pmvp-event-detail textarea{min-height:86px;padding:9px 10px;resize:vertical;line-height:1.55;}
.pmvp-event-detail input:focus,.pmvp-event-detail select:focus,.pmvp-event-detail textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1);}
.pmvp-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.pmvp-related{margin-top:14px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;}
.pmvp-related strong{display:block;margin-bottom:8px;color:#0f172a;font-size:.82rem;}
.pmvp-related ul{margin:0;padding-left:18px;color:#475569;font-size:.76rem;line-height:1.6;}
.pmvp-decision-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;padding:12px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-decision-panel .pmvp-follow-title{grid-column:1/-1;}
.pmvp-decision-card{position:relative;display:grid;gap:6px;margin:0!important;padding:12px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;}
.pmvp-decision-card:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 10px 20px rgba(37,99,235,.08);}
.pmvp-decision-card.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 12px 24px rgba(37,99,235,.12);}
.pmvp-decision-card.confirm{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff5f5);}
.pmvp-decision-card.confirm strong{color:#b91c1c;}
.pmvp-decision-card.confirm.active{border-color:#ef4444;background:#fef2f2;box-shadow:0 12px 24px rgba(239,68,68,.14);}
.pmvp-decision-card.exclude{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f6fff9);}
.pmvp-decision-card.exclude strong{color:#15803d;}
.pmvp-decision-card.exclude.active{border-color:#22c55e;background:#f0fdf4;box-shadow:0 12px 24px rgba(34,197,94,.14);}
.pmvp-decision-card.follow{border-color:#fed7aa;background:linear-gradient(180deg,#fff,#fff8ed);}
.pmvp-decision-card.follow strong{color:#c2410c;}
.pmvp-decision-card.follow.active{border-color:#f97316;background:#fff7ed;box-shadow:0 12px 24px rgba(249,115,22,.14);}
.pmvp-decision-card.disabled{cursor:not-allowed;opacity:.74;}
.pmvp-decision-card.disabled:hover{transform:none;box-shadow:none;}
.pmvp-decision-card input{position:absolute;opacity:0;pointer-events:none;}
.pmvp-decision-card strong{color:#0f172a;font-size:.82rem;}
.pmvp-decision-card span{color:#64748b;font-size:.7rem;line-height:1.45;font-weight:600;}
.pmvp-decision-section{display:none;margin-top:12px;padding:12px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-decision-section.active{display:grid;gap:10px;}
.pmvp-confirm-section{background:#f0fdf4;border-color:#bbf7d0;color:#166534;}
.pmvp-confirm-section strong{font-size:.82rem;}
.pmvp-confirm-section span{font-size:.74rem;line-height:1.55;}
.pmvp-exclusion-form{grid-template-columns:1fr;}
.pmvp-exclusion-form label{margin-top:0;}
.pmvp-exclusion-form input,.pmvp-exclusion-form textarea{width:100%;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:.8rem;}
.pmvp-exclusion-form input{height:36px;padding:0 10px;}
.pmvp-exclusion-form textarea{min-height:76px;padding:9px 10px;resize:vertical;line-height:1.55;}
.pmvp-follow-form{grid-template-columns:repeat(3,minmax(0,1fr));background:linear-gradient(180deg,#f8fbff,#fff);}
.pmvp-follow-title{grid-column:1/-1;display:grid;gap:4px;}
.pmvp-follow-title strong{color:#0f172a;font-size:.82rem;}
.pmvp-follow-title span{color:#64748b;font-size:.72rem;line-height:1.5;}
.pmvp-follow-form label{margin-top:0;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.pmvp-follow-form label:first-of-type,.pmvp-follow-form label:nth-last-child(1),.pmvp-follow-form label:nth-last-child(2){grid-column:1/-1;}
.pmvp-follow-form input,.pmvp-follow-form select,.pmvp-follow-form textarea{margin-top:2px;border-color:#dbeafe;background:#fbfdff;}
.pmvp-follow-alert{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:12px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#92400e;}
.pmvp-follow-alert strong{white-space:nowrap;font-size:.82rem;}
.pmvp-follow-alert span{font-size:.76rem;line-height:1.55;}
.pmvp-follow-table table{min-width:1080px;}
.pmvp-exclusion-table table{min-width:1180px;}
.pmvp-due{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;font-size:.68rem;font-weight:900;white-space:nowrap;}
.pmvp-due-overdue{background:#fee2e2;color:#b91c1c;}
.pmvp-due-today{background:#ffedd5;color:#c2410c;}
.pmvp-due-soon{background:#fef3c7;color:#92400e;}
.pmvp-due-open{background:#e0f2fe;color:#0369a1;}
.pmvp-due-confirmed{background:#dcfce7;color:#15803d;}
.pmvp-result-pools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;}
.pmvp-result-pools>section{padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff;}
.pmvp-result-pools .pmvp-card-head{margin-bottom:10px;}
.pmvp-pool-list{display:grid;gap:10px;}
.pmvp-pool-card{display:grid;gap:8px;padding:11px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.pmvp-pool-card>div{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.pmvp-pool-card strong{color:#0f172a;font-size:.78rem;line-height:1.35;}
.pmvp-pool-card p{margin:0;color:#475569;font-size:.72rem;line-height:1.55;}
.pmvp-pool-card small{display:block;color:#64748b;font-size:.66rem;line-height:1.45;}
.pmvp-pool-card footer{display:flex;gap:7px;flex-wrap:wrap;}
.pmvp-manager-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0;}
.pmvp-manager-grid div{padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;}
.pmvp-manager-grid span{display:block;color:#64748b;font-size:.7rem;font-weight:850;}
.pmvp-manager-grid strong{display:block;margin-top:6px;color:#0f172a;font-size:1.25rem;line-height:1;}
.pmvp-manager-grid small{display:block;margin-top:6px;color:#64748b;font-size:.68rem;line-height:1.45;}
.pmvp-manager-focus-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;}
.pmvp-manager-focus-card{padding:13px;border:1px solid #dbeafe;border-radius:12px;background:#fbfdff;}
.pmvp-manager-focus-card>span{display:block;margin-bottom:8px;color:#1d4ed8;font-size:.7rem;font-weight:950;letter-spacing:.1em;}
.pmvp-manager-focus-card p{margin:0;color:#64748b;font-size:.74rem;line-height:1.55;}
.pmvp-manager-focus-card ul{display:grid;gap:7px;margin:0;padding-left:16px;color:#475569;font-size:.74rem;line-height:1.5;}
.pmvp-manager-focus-card button{padding:0;border:0;background:transparent;color:#1d4ed8;font:inherit;font-weight:800;text-align:left;cursor:pointer;}
.pmvp-manager-detail{margin-top:12px;}
.pmvp-finding-list{display:grid;gap:12px;}
.pmvp-finding-card{padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff;}
.pmvp-finding-card div{display:flex;align-items:center;gap:8px;}
.pmvp-finding-card strong{color:#0f172a;font-size:.9rem;line-height:1.4;}
.pmvp-finding-card p{margin:10px 0;color:#475569;font-size:.8rem;line-height:1.6;}
.pmvp-finding-card dl{display:grid;gap:8px;margin:0;}
.pmvp-finding-card dt{color:#64748b;font-size:.68rem;font-weight:900;}
.pmvp-finding-card dd{margin:0;color:#334155;font-size:.78rem;line-height:1.55;}
.pmvp-feedback-permission{margin:0 0 12px;padding:10px 12px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;color:#1e3a8a;font-size:.74rem;font-weight:800;line-height:1.55;}
.pmvp-feedback-card{padding:0;overflow:hidden;border-color:#dbe7f5;background:#fff;}
.pmvp-feedback-card>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 16px;background:linear-gradient(180deg,#f8fbff,#fff);border-bottom:1px solid #e6edf7;}
.pmvp-feedback-card>div:first-child strong{min-width:0;}
.pmvp-feedback-card>div:first-child em{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.68rem;font-style:normal;font-weight:900;white-space:nowrap;}
.pmvp-feedback-card>p{margin:0;padding:12px 16px;color:#475569;background:#fff;border-bottom:1px solid #eef3f9;}
.pmvp-feedback-card .pmvp-feedback-grid{display:grid;grid-template-columns:180px 230px minmax(260px,1fr) 170px;gap:12px;padding:14px 16px;background:#fbfdff;}
.pmvp-feedback-grid label{display:grid;gap:7px;margin:0;color:#334155;font-size:.74rem;font-weight:900;line-height:1.25;}
.pmvp-feedback-grid label:nth-child(4){grid-column:1/4;}
.pmvp-feedback-grid label:nth-child(5){grid-column:4;grid-row:1/3;}
.pmvp-feedback-grid select,.pmvp-feedback-grid textarea{width:100%;border:1px solid #d7e1ee;border-radius:9px;background:#fff;color:#0f172a;font:inherit;font-weight:750;transition:border-color .15s,box-shadow .15s,background .15s;}
.pmvp-feedback-grid select{height:38px;padding:0 34px 0 11px;}
.pmvp-feedback-grid textarea{min-height:76px;padding:9px 11px;resize:vertical;line-height:1.55;font-weight:650;}
.pmvp-feedback-grid select:focus,.pmvp-feedback-grid textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.pmvp-feedback-grid textarea::placeholder{color:#94a3b8;font-weight:650;}
.pmvp-feedback-grid select:disabled,.pmvp-feedback-grid textarea:disabled{background:#f1f5f9;color:#64748b;border-color:#e2e8f0;cursor:not-allowed;opacity:1;}
.pmvp-feedback-grid .pmvp-check-row{display:flex;align-items:center;justify-content:center;gap:10px;min-height:100%;padding:14px;border:1px solid #bfdbfe;border-radius:12px;background:linear-gradient(180deg,#eff6ff,#fff);color:#1e3a8a;font-size:.78rem;text-align:left;}
.pmvp-feedback-grid .pmvp-check-row input{width:18px;height:18px;accent-color:#2563eb;flex:0 0 auto;}
.pmvp-feedback-grid .pmvp-check-row:has(input:disabled){background:#f8fafc;border-color:#e2e8f0;color:#64748b;cursor:not-allowed;}
html[data-theme="dark"] .pmvp-hero,
html[data-theme="dark"] .pmvp-card,
html[data-theme="dark"] .pmvp-step,
html[data-theme="dark"] .pmvp-summary-grid div,
html[data-theme="dark"] .pmvp-project-strip div,
html[data-theme="dark"] .pmvp-team-grid section,
html[data-theme="dark"] .pmvp-kpi-grid div,
html[data-theme="dark"] .pmvp-workbar,
html[data-theme="dark"] .pmvp-quick-badge,
html[data-theme="dark"] .pmvp-role-buttons button,
html[data-theme="dark"] .pmvp-role-focus,
html[data-theme="dark"] .pmvp-demo-guide,
html[data-theme="dark"] .pmvp-demo-mode,
html[data-theme="dark"] .pmvp-demo-mode-buttons,
html[data-theme="dark"] .pmvp-tool-result-status div,
html[data-theme="dark"] .pmvp-tool-result-note,
html[data-theme="dark"] .pmvp-demo-next,
html[data-theme="dark"] .pmvp-demo-steps button,
html[data-theme="dark"] .pmvp-value-board div,
html[data-theme="dark"] .pmvp-management-grid div,
html[data-theme="dark"] .pmvp-manager-status,
html[data-theme="dark"] .pmvp-manager-status span,
html[data-theme="dark"] .pmvp-data-card,
html[data-theme="dark"] .pmvp-import-window,
html[data-theme="dark"] .pmvp-model-card,
html[data-theme="dark"] .pmvp-model-summary div,
html[data-theme="dark"] .pmvp-model-actionbar,
html[data-theme="dark"] .pmvp-data-link-panel,
html[data-theme="dark"] .pmvp-data-link-grid div,
html[data-theme="dark"] .pmvp-data-chip,
html[data-theme="dark"] .pmvp-data-models,
html[data-theme="dark"] .pmvp-project-guide,
html[data-theme="dark"] .pmvp-workshop,
html[data-theme="dark"] .pmvp-advanced-models,
html[data-theme="dark"] .pmvp-workshop-form,
html[data-theme="dark"] .pmvp-rule-builder,
html[data-theme="dark"] .pmvp-template-help,
html[data-theme="dark"] .pmvp-custom-list article,
html[data-theme="dark"] .pmvp-workshop-head em,
html[data-theme="dark"] .pmvp-evidence-chain,
html[data-theme="dark"] .pmvp-evidence-chain>div:not(.pmvp-follow-title),
html[data-theme="dark"] .pmvp-evidence-chain label,
html[data-theme="dark"] .pmvp-manager-focus-card,
html[data-theme="dark"] .pmvp-model-params,
html[data-theme="dark"] .pmvp-model-meta div,
html[data-theme="dark"] .pmvp-model-boundary,
html[data-theme="dark"] .pmvp-rule-preview,
html[data-theme="dark"] .pmvp-decision-panel,
html[data-theme="dark"] .pmvp-decision-card,
html[data-theme="dark"] .pmvp-decision-section,
html[data-theme="dark"] .pmvp-follow-form label,
html[data-theme="dark"] .pmvp-risk-card,
html[data-theme="dark"] .pmvp-test-item,
html[data-theme="dark"] .pmvp-evidence-item,
html[data-theme="dark"] .pmvp-event-table,
html[data-theme="dark"] .pmvp-event-fold,
html[data-theme="dark"] .pmvp-outcome-board details,
html[data-theme="dark"] .pmvp-event-detail,
html[data-theme="dark"] .pmvp-related,
html[data-theme="dark"] .pmvp-follow-form,
html[data-theme="dark"] .pmvp-return-panel,
html[data-theme="dark"] .pmvp-change-panel,
html[data-theme="dark"] .pmvp-change-panel dd,
html[data-theme="dark"] .pmvp-finding-card,
html[data-theme="dark"] .pmvp-report-flow div,
html[data-theme="dark"] .pmvp-report-document,
html[data-theme="dark"] .pmvp-report-scoreboard div,
html[data-theme="dark"] .pmvp-report-section,
html[data-theme="dark"] .pmvp-report-table,
html[data-theme="dark"] .pmvp-report-table>div:first-child,
html[data-theme="dark"] .pmvp-report-finding,
html[data-theme="dark"] .pmvp-report-empty,
html[data-theme="dark"] .pmvp-report-trace span,
html[data-theme="dark"] .pmvp-report-raw,
html[data-theme="dark"] .pmvp-report-raw pre{background:#172235;border-color:#314158;box-shadow:none;}
html[data-theme="dark"] .pmvp-hero h2,
html[data-theme="dark"] .pmvp-card-head h3,
html[data-theme="dark"] .pmvp-step strong,
html[data-theme="dark"] .pmvp-summary-grid strong,
html[data-theme="dark"] .pmvp-project-strip strong,
html[data-theme="dark"] .pmvp-team-grid strong,
html[data-theme="dark"] .pmvp-workbar-title strong,
html[data-theme="dark"] .pmvp-quick-badge strong,
html[data-theme="dark"] .pmvp-role-buttons strong,
html[data-theme="dark"] .pmvp-demo-guide-head strong,
html[data-theme="dark"] .pmvp-demo-mode strong,
html[data-theme="dark"] .pmvp-tool-result-status strong,
html[data-theme="dark"] .pmvp-tool-result-note strong,
html[data-theme="dark"] .pmvp-demo-next strong,
html[data-theme="dark"] .pmvp-demo-steps strong,
html[data-theme="dark"] .pmvp-value-board strong,
html[data-theme="dark"] .pmvp-management-grid strong,
html[data-theme="dark"] .pmvp-manager-status strong,
html[data-theme="dark"] .pmvp-kpi-grid strong,
html[data-theme="dark"] .pmvp-data-head strong,
html[data-theme="dark"] .pmvp-model-card strong,
html[data-theme="dark"] .pmvp-model-summary strong,
html[data-theme="dark"] .pmvp-model-actionbar strong,
html[data-theme="dark"] .pmvp-advanced-models>summary,
html[data-theme="dark"] .pmvp-data-link-head strong,
html[data-theme="dark"] .pmvp-data-link-grid b,
html[data-theme="dark"] .pmvp-data-models strong,
html[data-theme="dark"] .pmvp-project-guide strong,
html[data-theme="dark"] .pmvp-workshop-head strong,
html[data-theme="dark"] .pmvp-custom-list strong,
html[data-theme="dark"] .pmvp-template-help strong,
html[data-theme="dark"] .pmvp-evidence-chain>div span,
html[data-theme="dark"] .pmvp-manager-focus-card>span,
html[data-theme="dark"] .pmvp-model-params>strong,
html[data-theme="dark"] .pmvp-data-status strong,
html[data-theme="dark"] .pmvp-follow-title strong,
html[data-theme="dark"] .pmvp-decision-card strong,
html[data-theme="dark"] .pmvp-risk-top strong,
html[data-theme="dark"] .pmvp-risk-card dd,
html[data-theme="dark"] .pmvp-test-main strong,
html[data-theme="dark"] .pmvp-evidence-item strong,
html[data-theme="dark"] .pmvp-event-detail dd,
html[data-theme="dark"] .pmvp-event-fold summary,
html[data-theme="dark"] .pmvp-outcome-board summary,
html[data-theme="dark"] .pmvp-return-panel label,
html[data-theme="dark"] .pmvp-change-panel dd,
html[data-theme="dark"] .pmvp-related strong,
html[data-theme="dark"] .pmvp-finding-card strong,
html[data-theme="dark"] .pmvp-report-title h4,
html[data-theme="dark"] .pmvp-report-scoreboard strong,
html[data-theme="dark"] .pmvp-report-section h5,
html[data-theme="dark"] .pmvp-report-finding strong,
html[data-theme="dark"] .pmvp-report-raw pre,
html[data-theme="dark"] .pmvp-empty strong{color:#f1f5f9;}
html[data-theme="dark"] .pmvp-hero p,
html[data-theme="dark"] .pmvp-card-head p,
html[data-theme="dark"] .pmvp-step small,
html[data-theme="dark"] .pmvp-summary-grid span,
html[data-theme="dark"] .pmvp-project-strip span,
html[data-theme="dark"] .pmvp-team-grid small,
html[data-theme="dark"] .pmvp-workbar-title small,
html[data-theme="dark"] .pmvp-workbar-meta span,
html[data-theme="dark"] .pmvp-quick-badge small,
html[data-theme="dark"] .pmvp-role-buttons small,
html[data-theme="dark"] .pmvp-role-focus span,
html[data-theme="dark"] .pmvp-demo-guide-head p,
html[data-theme="dark"] .pmvp-demo-mode span,
html[data-theme="dark"] .pmvp-tool-result-status small,
html[data-theme="dark"] .pmvp-tool-result-note span,
html[data-theme="dark"] .pmvp-demo-next span,
html[data-theme="dark"] .pmvp-demo-steps small,
html[data-theme="dark"] .pmvp-value-board span,
html[data-theme="dark"] .pmvp-value-board small,
html[data-theme="dark"] .pmvp-management-grid span,
html[data-theme="dark"] .pmvp-management-grid small,
html[data-theme="dark"] .pmvp-manager-status,
html[data-theme="dark"] .pmvp-kpi-grid span,
html[data-theme="dark"] .pmvp-data-card p,
html[data-theme="dark"] .pmvp-model-card p,
html[data-theme="dark"] .pmvp-model-card small,
html[data-theme="dark"] .pmvp-model-summary span,
html[data-theme="dark"] .pmvp-model-actionbar span,
html[data-theme="dark"] .pmvp-data-link-head span,
html[data-theme="dark"] .pmvp-data-chip,
html[data-theme="dark"] .pmvp-data-models em,
html[data-theme="dark"] .pmvp-project-guide p,
html[data-theme="dark"] .pmvp-project-guide ol,
html[data-theme="dark"] .pmvp-workshop-head p,
html[data-theme="dark"] .pmvp-workshop-actions small,
html[data-theme="dark"] .pmvp-template-help span,
html[data-theme="dark"] .pmvp-custom-list small,
html[data-theme="dark"] .pmvp-evidence-chain>div p,
html[data-theme="dark"] .pmvp-manager-focus-card p,
html[data-theme="dark"] .pmvp-manager-focus-card ul,
html[data-theme="dark"] .pmvp-model-params label,
html[data-theme="dark"] .pmvp-model-params small,
html[data-theme="dark"] .pmvp-model-meta dd,
html[data-theme="dark"] .pmvp-model-boundary summary,
html[data-theme="dark"] .pmvp-model-boundary p,
html[data-theme="dark"] .pmvp-form label small,
html[data-theme="dark"] .pmvp-rule-preview span,
html[data-theme="dark"] .pmvp-decision-card span,
html[data-theme="dark"] .pmvp-data-status span,
html[data-theme="dark"] .pmvp-risk-card p,
html[data-theme="dark"] .pmvp-risk-card dt,
html[data-theme="dark"] .pmvp-evidence-item span,
html[data-theme="dark"] .pmvp-event-detail dt,
html[data-theme="dark"] .pmvp-related ul,
html[data-theme="dark"] .pmvp-report-flow span,
html[data-theme="dark"] .pmvp-report-flow small,
html[data-theme="dark"] .pmvp-report-title p,
html[data-theme="dark"] .pmvp-report-meta,
html[data-theme="dark"] .pmvp-report-scoreboard span,
html[data-theme="dark"] .pmvp-report-scoreboard small,
html[data-theme="dark"] .pmvp-report-section dt,
html[data-theme="dark"] .pmvp-report-section dd,
html[data-theme="dark"] .pmvp-report-table span,
html[data-theme="dark"] .pmvp-report-table b,
html[data-theme="dark"] .pmvp-report-finding p,
html[data-theme="dark"] .pmvp-report-finding b,
html[data-theme="dark"] .pmvp-report-raw summary,
html[data-theme="dark"] .pmvp-report-trace span,
html[data-theme="dark"] .pmvp-follow-title span,
html[data-theme="dark"] .pmvp-change-panel p,
html[data-theme="dark"] .pmvp-finding-card p,
html[data-theme="dark"] .pmvp-finding-card dt,
html[data-theme="dark"] .pmvp-finding-card dd,
html[data-theme="dark"] .pmvp-file-name,
html[data-theme="dark"] .pmvp-empty,
html[data-theme="dark"] .pmvp-placeholder{color:#9fb0c7;}
html[data-theme="dark"] .pmvp-data-status{background:#111827;border-color:#314158;}
html[data-theme="dark"] .pmvp-data-preview,
html[data-theme="dark"] .pmvp-data-preview-item,
html[data-theme="dark"] .pmvp-data-preview-head em,
html[data-theme="dark"] .pmvp-data-preview-table th,
html[data-theme="dark"] .pmvp-event-empty-detail{background:#172235;border-color:#314158;box-shadow:none;}
html[data-theme="dark"] .pmvp-data-preview-table td{border-color:#314158;color:#dbeafe;}
html[data-theme="dark"] .pmvp-data-preview-table th{color:#bfdbfe;}
html[data-theme="dark"] .pmvp-demo-mode-buttons button{color:#9fb0c7;}
html[data-theme="dark"] .pmvp-demo-mode-buttons button.active{background:#2563eb;color:#fff;}
html[data-theme="dark"] .pmvp-project-sheet,
html[data-theme="dark"] .pmvp-sheet-head,
html[data-theme="dark"] .pmvp-project-form .pmvp-rule-preview,
html[data-theme="dark"] .pmvp-project-form .pmvp-project-guide,
html[data-theme="dark"] .pmvp-project-form .pmvp-form-actions{background:#172235;border-color:#314158;box-shadow:none;}
html[data-theme="dark"] .pmvp-form-section,
html[data-theme="dark"] .pmvp-project-form .pmvp-rule-preview dl{border-color:#314158;}
html[data-theme="dark"] .pmvp-sheet-head h3,
html[data-theme="dark"] .pmvp-sheet-head>strong,
html[data-theme="dark"] .pmvp-section-title span,
html[data-theme="dark"] .pmvp-project-form .pmvp-rule-preview strong,
html[data-theme="dark"] .pmvp-project-form .pmvp-rule-preview dd{color:#f1f5f9;}
html[data-theme="dark"] .pmvp-sheet-head p,
html[data-theme="dark"] .pmvp-section-title small,
html[data-theme="dark"] .pmvp-project-form .pmvp-rule-preview p,
html[data-theme="dark"] .pmvp-project-form .pmvp-rule-preview dt,
html[data-theme="dark"] .pmvp-project-form label small{color:#9fb0c7;}
html[data-theme="dark"] .pmvp-project-form input,
html[data-theme="dark"] .pmvp-project-form select,
html[data-theme="dark"] .pmvp-model-params input,
html[data-theme="dark"] .pmvp-workshop-form input,
html[data-theme="dark"] .pmvp-workshop-form select,
html[data-theme="dark"] .pmvp-evidence-chain textarea{background:#111827;border-color:#314158;color:#f1f5f9;}
html[data-theme="dark"] .pmvp-help{border-color:#4b5d76;color:#9fb0c7;}
html[data-theme="dark"] .pmvp-event-table th{background:#1e3a5f;color:#bfdbfe;}
html[data-theme="dark"] .pmvp-event-table td{border-color:#314158;color:#dbeafe;}
html[data-theme="dark"] .pmvp-event-table tr.selected td{background:#1d3558;}
html[data-theme="dark"] .pmvp-follow-alert{background:#422006;border-color:#854d0e;color:#fde68a;}
html[data-theme="dark"] .pmvp-decision-card.confirm{background:#2a1518;border-color:#7f1d1d;}
html[data-theme="dark"] .pmvp-decision-card.confirm.active{background:#3b171b;border-color:#ef4444;}
html[data-theme="dark"] .pmvp-decision-card.exclude{background:#10271a;border-color:#166534;}
html[data-theme="dark"] .pmvp-decision-card.exclude.active{background:#12351f;border-color:#22c55e;}
html[data-theme="dark"] .pmvp-decision-card.follow{background:#2a1b0d;border-color:#9a3412;}
html[data-theme="dark"] .pmvp-decision-card.follow.active{background:#3a240f;border-color:#f97316;}
html[data-theme="dark"] .pmvp-feedback-card{background:#172235;border-color:#314158;}
html[data-theme="dark"] .pmvp-feedback-permission{background:#13233a;border-color:#2563eb;color:#dbeafe;}
html[data-theme="dark"] .pmvp-feedback-card>div:first-child,
html[data-theme="dark"] .pmvp-feedback-card>p,
html[data-theme="dark"] .pmvp-feedback-grid{background:#172235;border-color:#314158;}
html[data-theme="dark"] .pmvp-feedback-card>div:first-child em{background:#1e3a5f;color:#bfdbfe;}
html[data-theme="dark"] .pmvp-feedback-grid label{color:#dbeafe;}
html[data-theme="dark"] .pmvp-feedback-grid select,
html[data-theme="dark"] .pmvp-feedback-grid textarea{background:#111827;border-color:#314158;color:#f1f5f9;}
html[data-theme="dark"] .pmvp-feedback-grid select:disabled,
html[data-theme="dark"] .pmvp-feedback-grid textarea:disabled{background:#1e293b;color:#9fb0c7;border-color:#314158;}
html[data-theme="dark"] .pmvp-feedback-grid .pmvp-check-row{background:#13233a;border-color:#2563eb;color:#dbeafe;}
html[data-theme="dark"] .pmvp-feedback-grid .pmvp-check-row:has(input:disabled){background:#172235;border-color:#314158;color:#9fb0c7;}
@media(max-width:980px){.pmvp-steps,.pmvp-summary-grid,.pmvp-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pmvp-hero{align-items:flex-start;flex-direction:column;}}
@media(max-width:1100px){.pmvp-data-grid,.pmvp-model-grid,.pmvp-event-layout,.pmvp-workbar,.pmvp-project-form,.pmvp-outcome-board,.pmvp-report-flow,.pmvp-report-scoreboard{grid-template-columns:1fr;}.pmvp-demo-steps{grid-template-columns:repeat(2,minmax(0,1fr));}.pmvp-value-board{grid-template-columns:repeat(2,minmax(0,1fr));}.pmvp-value-board .primary{grid-column:1/-1;}.pmvp-role-buttons{justify-content:flex-start;}.pmvp-project-form .pmvp-rule-preview,.pmvp-project-form .pmvp-project-guide{position:static;margin:0 20px 18px;}.pmvp-management-grid,.pmvp-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pmvp-project-strip{grid-template-columns:repeat(2,minmax(0,1fr));}.pmvp-report-blocker{align-items:stretch;flex-direction:column;}}
@media(max-width:1180px){.pmvp-feedback-card .pmvp-feedback-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pmvp-feedback-grid label:nth-child(4),.pmvp-feedback-grid label:nth-child(5){grid-column:1/-1;grid-row:auto;}.pmvp-feedback-grid .pmvp-check-row{justify-content:flex-start;min-height:52px;}}
@media(max-width:720px){.login-mode-grid,.pmvp-steps,.pmvp-summary-grid,.pmvp-kpi-grid,.pmvp-form,.pmvp-risk-grid,.pmvp-test-controls,.pmvp-finding-form,.pmvp-follow-form,.pmvp-decision-panel,.pmvp-management-grid,.pmvp-team-grid,.pmvp-project-strip,.pmvp-form-section,.pmvp-field-grid,.pmvp-team-fields,.pmvp-model-params>div,.pmvp-model-summary,.pmvp-workshop-form,.pmvp-evidence-chain,.pmvp-manager-focus-grid,.pmvp-change-grid,.pmvp-change-panel dl,.pmvp-demo-steps,.pmvp-demo-next,.pmvp-tool-result-status,.pmvp-value-board{grid-template-columns:1fr;}.pmvp-workshop-form label.wide,.pmvp-workshop-actions,.pmvp-template-help{grid-column:auto;}.pmvp-form-actions,.pmvp-toolbar,.pmvp-evidence-item,.pmvp-data-actions,.pmvp-detail-actions,.pmvp-follow-alert,.pmvp-role-focus,.pmvp-workbar-main,.pmvp-workshop-head,.pmvp-workshop-head-actions,.pmvp-workshop-actions,.pmvp-custom-list article,.pmvp-template-help,.pmvp-hero-actions,.pmvp-demo-guide-head,.pmvp-demo-mode,.pmvp-tool-result-note,.pmvp-report-title{justify-content:stretch;flex-direction:column;align-items:stretch;}.pmvp-demo-mode-buttons{width:100%;}.pmvp-demo-mode-buttons button{flex:1;}.pmvp-quick-badge{min-width:0;}.pmvp-sheet-head{padding:16px;}.pmvp-form-section{gap:10px;padding:16px;}.pmvp-project-form .pmvp-rule-preview,.pmvp-project-form .pmvp-project-guide{margin:0 16px 16px;}.pmvp-report-section dl div,.pmvp-report-finding p{grid-template-columns:1fr;}.pmvp-report-table{border:0;gap:8px;}.pmvp-report-table>div{grid-template-columns:1fr;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}.pmvp-report-table>div:first-child{display:none;}.pmvp-toolbar select{min-width:0;width:100%;}.pmvp-form-actions .btn,.pmvp-hero .btn,.pmvp-data-actions .btn,.pmvp-detail-actions .btn,.pmvp-role-buttons button,.pmvp-demo-next .btn{width:100%;}.pmvp-workbar-title{flex-wrap:wrap;}.pmvp-workbar-title strong{max-width:100%;}}
@media(max-width:720px){.pmvp-feedback-card>div:first-child{grid-template-columns:auto minmax(0,1fr);}.pmvp-feedback-card>div:first-child em{grid-column:1/-1;justify-self:start;}.pmvp-feedback-card .pmvp-feedback-grid{grid-template-columns:1fr;padding:12px;}.pmvp-feedback-grid label:nth-child(4),.pmvp-feedback-grid label:nth-child(5){grid-column:auto;}.pmvp-feedback-card>p{padding:11px 12px;}}
@media(max-width:720px){.pmvp-data-preview-head{flex-direction:column;}.pmvp-data-preview-head em{align-self:flex-start;}.pmvp-data-preview-item summary{grid-template-columns:1fr;gap:5px;}.pmvp-data-preview-item summary small{white-space:normal;}}
@media(max-width:720px){.pmvp-import-window-head{flex-direction:column;}.pmvp-import-formats{flex-wrap:wrap;}.pmvp-import-actions{align-items:stretch;}}
@media(max-width:720px){html[data-theme="dark"] .pmvp-report-table>div{background:#172235;border-color:#314158;}}
@media(max-width:720px){.pmvp-model-actionbar{align-items:stretch;flex-direction:column;}.pmvp-model-actionbar>div:last-child{align-items:stretch;flex-direction:column;width:100%;}.pmvp-model-actionbar .btn{width:100%;}.pmvp-advanced-models>summary{align-items:flex-start;flex-direction:column;}}

.pmvp-quality{margin:0 0 14px;padding:14px;border:1px solid #dbe3ef;border-left-width:4px;border-radius:8px;background:#fbfcfe;}
.pmvp-quality-ready{border-left-color:#15803d;}.pmvp-quality-warning{border-left-color:#b45309;}.pmvp-quality-blocked{border-left-color:#b91c1c;}
.pmvp-quality-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.pmvp-quality-head span,.pmvp-trial-feedback>div:first-child>span{display:block;color:#475569;font-size:.62rem;font-weight:900;letter-spacing:.12em;}
.pmvp-quality-head strong,.pmvp-trial-feedback>div:first-child>strong{display:block;margin-top:4px;color:#0f172a;font-size:.9rem;}
.pmvp-quality-head p,.pmvp-trial-feedback>div:first-child>p{margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.5;}
.pmvp-quality-head em{flex:0 0 auto;padding:5px 8px;border:1px solid currentColor;border-radius:6px;background:#fff;font-size:.68rem;font-style:normal;font-weight:900;}
.pmvp-quality-ready .pmvp-quality-head em{color:#15803d;}.pmvp-quality-warning .pmvp-quality-head em{color:#9a3412;}.pmvp-quality-blocked .pmvp-quality-head em{color:#b91c1c;}
.pmvp-quality-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;}
.pmvp-quality-stats div{padding:9px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;}
.pmvp-quality-stats span{display:block;color:#64748b;font-size:.65rem;}.pmvp-quality-stats strong{display:block;margin-top:4px;color:#0f172a;font-size:.82rem;}
.pmvp-quality-list{display:grid;gap:7px;margin-top:10px;}.pmvp-quality-list>div{display:grid;grid-template-columns:10px 110px minmax(0,1fr);gap:8px;align-items:start;padding-top:7px;border-top:1px solid #e9eef5;}
.pmvp-quality-list strong{color:#334155;font-size:.72rem;}.pmvp-quality-list p{margin:0;color:#64748b;font-size:.7rem;line-height:1.45;}
.pmvp-quality-dot{width:8px;height:8px;margin-top:4px;border-radius:999px;background:#94a3b8;}.pmvp-quality-dot.ready{background:#15803d;}.pmvp-quality-dot.warning{background:#b45309;}.pmvp-quality-dot.blocked{background:#b91c1c;}
.pmvp-quality-action{margin:10px 0 0;padding-top:9px;border-top:1px solid #e2e8f0;color:#334155;font-size:.72rem;font-weight:800;}
.pmvp-no-result{margin:12px 0;padding:18px;border:1px solid #bbf7d0;border-radius:8px;background:#f0fdf4;}.pmvp-no-result strong{color:#166534;font-size:.9rem;}.pmvp-no-result p{margin:7px 0 0;color:#3f6212;font-size:.74rem;line-height:1.6;}
.pmvp-trial-feedback{display:grid;gap:12px;margin-top:16px;padding:14px;border-top:1px solid #e2e8f0;background:#fbfcfe;}
.pmvp-trial-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}.pmvp-trial-options label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;padding:10px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;cursor:pointer;}
.pmvp-trial-options input{grid-row:1/3;margin-top:2px;}.pmvp-trial-options strong{color:#0f172a;font-size:.74rem;}.pmvp-trial-options span{color:#64748b;font-size:.66rem;line-height:1.4;}
.pmvp-trial-note{display:grid;gap:6px;color:#334155;font-size:.72rem;font-weight:800;}.pmvp-trial-note textarea{min-height:70px;padding:9px 10px;border:1px solid #dbe3ef;border-radius:7px;background:#fff;color:#0f172a;font:inherit;resize:vertical;}
.pmvp-trial-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;}.pmvp-trial-actions>span{color:#64748b;font-size:.68rem;}
html[data-theme="dark"] .pmvp-quality,html[data-theme="dark"] .pmvp-trial-feedback{background:#111827;border-color:#314158;}html[data-theme="dark"] .pmvp-quality-stats div,html[data-theme="dark"] .pmvp-quality-head em,html[data-theme="dark"] .pmvp-trial-options label,html[data-theme="dark"] .pmvp-trial-note textarea{background:#172235;border-color:#314158;}html[data-theme="dark"] .pmvp-quality-head strong,html[data-theme="dark"] .pmvp-quality-stats strong,html[data-theme="dark"] .pmvp-trial-feedback>div:first-child>strong,html[data-theme="dark"] .pmvp-trial-options strong{color:#e5edf8;}html[data-theme="dark"] .pmvp-quality-list strong,html[data-theme="dark"] .pmvp-quality-action,html[data-theme="dark"] .pmvp-trial-note{color:#cbd5e1;}
@media(max-width:720px){.pmvp-quality-head,.pmvp-trial-actions{align-items:stretch;flex-direction:column;}.pmvp-quality-head em{align-self:flex-start;}.pmvp-quality-stats,.pmvp-trial-options{grid-template-columns:1fr;}.pmvp-quality-list>div{grid-template-columns:10px minmax(0,1fr);}.pmvp-quality-list p{grid-column:2;}.pmvp-trial-actions .btn{width:100%;}}
.pmvp-pilot-pack{margin:0 0 14px;padding:14px 0;border-top:1px solid #dbe3ef;border-bottom:1px solid #dbe3ef;}
.pmvp-pilot-pack-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}.pmvp-pilot-pack-head span{display:block;color:#475569;font-size:.62rem;font-weight:900;letter-spacing:.12em;}.pmvp-pilot-pack-head strong{display:block;margin-top:4px;color:#0f172a;font-size:.9rem;}.pmvp-pilot-pack-head p{max-width:760px;margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.5;}
.pmvp-pilot-pack-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;}.pmvp-pilot-pack-steps>div{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 8px;padding:9px 10px;border-left:2px solid #0f766e;background:#f0fdfa;}.pmvp-pilot-pack-steps b{grid-row:1/3;display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#0f766e;color:#fff;font-size:.68rem;}.pmvp-pilot-pack-steps strong{color:#134e4a;font-size:.73rem;}.pmvp-pilot-pack-steps span{color:#52706d;font-size:.66rem;line-height:1.4;}
.pmvp-pilot-pack-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;flex-wrap:wrap;}
html[data-theme="dark"] .pmvp-pilot-pack{border-color:#314158;}html[data-theme="dark"] .pmvp-pilot-pack-head strong{color:#e5edf8;}html[data-theme="dark"] .pmvp-pilot-pack-steps>div{background:#102b2a;border-color:#2dd4bf;}html[data-theme="dark"] .pmvp-pilot-pack-steps strong{color:#ccfbf1;}html[data-theme="dark"] .pmvp-pilot-pack-steps span{color:#99c9c2;}
@media(max-width:720px){.pmvp-pilot-pack-head{align-items:stretch;flex-direction:column;}.pmvp-pilot-pack-steps{grid-template-columns:1fr;}.pmvp-pilot-pack-actions{align-items:stretch;flex-direction:column;}.pmvp-pilot-pack-actions .btn,.pmvp-pilot-pack-head .btn{width:100%;}}

/* ====== Risk assessment workpaper ====== */
.rwp-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: linear-gradient(112deg,#fff 0%,#f4f8ff 70%,#ecfdf9 100%);
  box-shadow: var(--card-shadow);
}
.rwp-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.rwp-panel h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
}
.rwp-panel p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.65;
}
.rwp-panel-stats {
  display: flex;
  gap: 8px;
}
.rwp-panel-stats span {
  min-width: 70px;
  padding: 8px 10px;
  border: 1px solid #e2eaf5;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  text-align: center;
}
.rwp-panel-stats strong {
  display: block;
  color: #172033;
  font-size: 1.1rem;
  line-height: 1;
}
.rwp-panel-stats small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: .66rem;
}
.rwp-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rwp-review-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #fbfdff;
}
.rwp-review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rwp-review-title strong {
  color: #172033;
  font-size: .84rem;
}
.rwp-review-title span {
  color: #64748b;
  font-size: .7rem;
}
.rwp-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.rwp-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #475569;
  font-size: .7rem;
  font-weight: 700;
}
.rwp-grid select,
.rwp-grid textarea {
  width: 100%;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: 500 .76rem inherit;
}
.rwp-grid select {
  height: 34px;
  padding: 0 9px;
}
.rwp-grid textarea {
  min-height: 58px;
  padding: 8px 9px;
  resize: vertical;
  line-height: 1.55;
}
.rwp-grid select:focus,
.rwp-grid textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.rwp-full {
  grid-column: 1 / -1;
}
html[data-theme="dark"] .rwp-panel {
  border-color: #2d425a;
  background: linear-gradient(112deg,#172235,#132b3d);
  box-shadow: none;
}
html[data-theme="dark"] .rwp-panel h3,
html[data-theme="dark"] .rwp-panel-stats strong,
html[data-theme="dark"] .rwp-review-title strong {
  color: #f1f5f9;
}
html[data-theme="dark"] .rwp-panel p,
html[data-theme="dark"] .rwp-panel-stats small,
html[data-theme="dark"] .rwp-review-title span,
html[data-theme="dark"] .rwp-grid label {
  color: #9fb0c7;
}
html[data-theme="dark"] .rwp-panel-stats span,
html[data-theme="dark"] .rwp-review-card,
html[data-theme="dark"] .rwp-grid select,
html[data-theme="dark"] .rwp-grid textarea {
  background: #172235;
  border-color: #314158;
  color: #d8e1ee;
}
@media (max-width: 980px) {
  .rwp-panel { grid-template-columns: 1fr; align-items: stretch; }
  .rwp-panel-stats { justify-content: flex-start; flex-wrap: wrap; }
  .rwp-panel-actions { justify-content: flex-start; }
  .rwp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .rwp-grid { grid-template-columns: 1fr; }
  .rwp-review-title { align-items: flex-start; flex-direction: column; }
}

/* Professional references and public cases */
.pc-page { color: #172033; }
.pc-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 22px 24px 20px; border-bottom: 1px solid #dce4ee; background: #fff; }
.pc-heading > div { min-width: 0; max-width: 760px; }
.pc-heading > div > span { display: block; margin-bottom: 7px; color: #3568d4; font-size: .66rem; font-weight: 800; letter-spacing: 0; }
.pc-heading h2 { margin: 0; color: #142038; font-size: 1.45rem; letter-spacing: 0; }
.pc-heading p { margin: 8px 0 0; color: #64748b; font-size: .78rem; line-height: 1.7; }
.pc-heading-actions { display:flex; flex:0 0 auto; align-items:center; gap:10px; }
.pc-return-to-knowledge { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:0 11px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; font-size:12px; font-weight:800; cursor:pointer; }
.pc-return-to-knowledge:hover { border-color:#93c5fd; color:#1d4ed8; }
.pc-return-to-knowledge:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.pc-return-to-knowledge svg { width:15px; height:15px; }
.pc-heading dl { display: flex; flex: 0 0 auto; margin: 0; border-left: 1px solid #dce4ee; }
.pc-heading dl div { min-width: 82px; padding: 2px 15px; text-align: center; }
.pc-heading dt { color: #172033; font-size: 1.2rem; font-weight: 800; }
.pc-heading dd { margin: 3px 0 0; color: #7a8799; font-size: .65rem; }
.pc-candidate-assets{padding:14px 24px;border-bottom:1px solid #dce4ee;background:linear-gradient(135deg,#f8fbff,#fff);}
.pc-candidate-assets.is-empty{background:#f8fafc;}
.qa-professional-asset-desk{display:grid;gap:10px;padding:14px}.qa-professional-asset-desk article{padding:14px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}.qa-professional-asset-desk article>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.qa-professional-asset-desk article>header span,.qa-professional-asset-desk article>header b{padding:4px 7px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:10px}.qa-professional-asset-desk article>header strong{color:#172033;font-size:14px}.qa-professional-asset-desk article>p{margin:9px 0;color:#52627a;font-size:12px;line-height:1.6}.qa-professional-asset-desk article>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.qa-professional-asset-desk article>dl div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:7px}.qa-professional-asset-desk dt{color:#64748b;font-size:11px}.qa-professional-asset-desk dd{margin:0;color:#334155;font-size:11px}.qa-professional-asset-desk article>label{display:grid;gap:5px;margin-top:10px;color:#475569;font-size:11px}.qa-professional-asset-desk article>label input{border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px}.qa-professional-asset-desk footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}.qa-professional-asset-desk footer small{margin-right:auto;color:#64748b}.qa-professional-asset-desk footer button{border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:7px 10px;color:#334155;cursor:pointer}.qa-professional-asset-desk footer button.primary{border-color:#2563eb;background:#2563eb;color:#fff}
.pc-asset-governance{padding:16px 24px;border-bottom:1px solid #dce4ee;background:#fff}.pc-asset-governance>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.pc-asset-governance>header span{display:block;color:#0f766e;font-size:10px;font-weight:900;letter-spacing:.12em}.pc-asset-governance>header strong{display:block;margin-top:5px;color:#142038;font-size:15px}.pc-asset-governance>header p{max-width:760px;margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.55}.pc-asset-governance>header dl{display:flex;margin:0;border:1px solid #dbe4ef;border-radius:10px;overflow:hidden}.pc-asset-governance>header dl div{min-width:70px;padding:8px 10px;text-align:center;border-left:1px solid #e2e8f0}.pc-asset-governance>header dl div:first-child{border-left:0}.pc-asset-governance>header dt{font-size:16px;font-weight:900;color:#0f172a}.pc-asset-governance>header dd{margin:2px 0 0;font-size:10px;color:#64748b}.pc-asset-governance-list{display:grid;gap:10px;margin-top:14px}.pc-asset-governance-list article{padding:13px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}.pc-asset-governance-list article.is-focused{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.08)}.pc-asset-candidate-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.pc-asset-candidate-head span,.pc-asset-candidate-head b{padding:4px 7px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:10px}.pc-asset-candidate-head strong{color:#172033;font-size:14px}.pc-asset-governance-list article>p{margin:8px 0;color:#52627a;font-size:12px;line-height:1.6}.pc-asset-governance-list article>dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.pc-asset-governance-list article>dl div{display:grid;grid-template-columns:68px minmax(0,1fr);gap:7px}.pc-asset-governance-list dt{color:#64748b;font-size:11px}.pc-asset-governance-list dd{margin:0;color:#334155;font-size:11px}.pc-asset-governance-list article>label{display:grid;gap:5px;margin-top:10px;color:#475569;font-size:11px}.pc-asset-governance-list article>label input{border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px}.pc-asset-governance-list footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}.pc-asset-governance-list footer small{margin-right:auto;color:#64748b}.pc-asset-governance-list footer button{border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:7px 10px;color:#334155;cursor:pointer}.pc-asset-governance-list footer button.primary{border-color:#2563eb;background:#2563eb;color:#fff}.pq-responsibility{color:#315fd6!important}
.pc-candidate-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px;}
.pc-candidate-head span,.pc-candidate-assets>div:first-child span{display:block;color:#2563eb;font-size:.6rem;font-weight:900;letter-spacing:.12em;}
.pc-candidate-head strong,.pc-candidate-assets>div:first-child strong{display:block;margin-top:5px;color:#142038;font-size:.9rem;}
.pc-candidate-head p,.pc-candidate-assets>div:first-child p{max-width:720px;margin:5px 0 0;color:#64748b;font-size:.7rem;line-height:1.55;}
.pc-candidate-head dl{display:flex;margin:0;border:1px solid #dbeafe;border-radius:12px;background:#fff;overflow:hidden;}
.pc-candidate-head dl div{min-width:70px;padding:8px 12px;text-align:center;}
.pc-candidate-head dl div+div{border-left:1px solid #dbeafe;}
.pc-candidate-head dt{color:#1d4ed8;font-size:1rem;font-weight:900;}
.pc-candidate-head dd{margin:2px 0 0;color:#64748b;font-size:.6rem;}
.pc-candidate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;}
.pc-candidate-list article{position:relative;display:grid;gap:4px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;}
.pc-candidate-list article.ready{border-color:#bfdbfe;background:linear-gradient(135deg,#fff,#eff6ff);}
.pc-candidate-list article.knowledge-candidate{border-color:#bbf7d0;background:linear-gradient(135deg,#fff,#ecfdf5);}
.pc-candidate-list article span{width:max-content;padding:2px 7px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.56rem;font-weight:900;}
.pc-candidate-list article strong{overflow:hidden;color:#172033;font-size:.72rem;line-height:1.4;text-overflow:ellipsis;white-space:nowrap;}
.pc-candidate-list article small{color:#64748b;font-size:.62rem;line-height:1.4;}
.pc-candidate-list article b{position:absolute;right:9px;top:9px;padding:2px 7px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.56rem;}
.pc-candidate-list article button{width:max-content;margin-top:4px;padding:5px 9px;border:1px solid #2563eb;border-radius:999px;background:#2563eb;color:#fff;font-size:.58rem;font-weight:900;cursor:pointer;}
.pc-candidate-list article button:disabled{border-color:#cbd5e1;background:#f1f5f9;color:#94a3b8;cursor:not-allowed;}
.pc-candidate-empty{padding:12px;border:1px dashed #bfdbfe;border-radius:12px;background:#fff;color:#64748b;font-size:.7rem;}
.pc-knowledge-gate{border-bottom:1px solid #dce4ee;background:#fffaf3}.pc-knowledge-gate summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 24px;cursor:pointer;list-style:none}.pc-knowledge-gate summary::-webkit-details-marker{display:none}.pc-knowledge-gate summary span{display:inline-flex;align-items:center;gap:8px;color:#92400e;font-size:.73rem}.pc-knowledge-gate summary svg{width:16px;height:16px}.pc-knowledge-gate summary small{color:#8a6a3c;font-size:.63rem}.pc-knowledge-gate-body{display:grid;gap:12px;padding:0 24px 18px;border-top:1px solid #fde6c7}.pc-knowledge-gate-intro{padding-top:13px}.pc-knowledge-gate-intro strong{display:block;color:#172033;font-size:.82rem}.pc-knowledge-gate-intro p{max-width:860px;margin:5px 0 0;color:#64748b;font-size:.7rem;line-height:1.6}.pc-knowledge-gate-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.pc-knowledge-gate-stats article{padding:12px;border:1px solid #fed7aa;border-radius:12px;background:#fff}.pc-knowledge-gate-stats span,.pc-knowledge-gate-stats strong,.pc-knowledge-gate-stats small{display:block}.pc-knowledge-gate-stats span{font-size:.62rem;font-weight:900}.pc-knowledge-gate-stats strong{margin-top:3px;color:#172033;font-size:1.35rem}.pc-knowledge-gate-stats small{margin-top:3px;color:#64748b;font-size:.64rem;line-height:1.4}.pc-knowledge-gate-stats .accepted span{color:#047857}.pc-knowledge-gate-stats .candidate span{color:#b45309}.pc-knowledge-gate-stats .rejected span{color:#b91c1c}.pc-knowledge-priority{display:grid;gap:8px;padding:12px;border:1px solid #fde6c7;border-radius:12px;background:linear-gradient(135deg,#fff,#fff7ed)}.pc-knowledge-priority>strong{color:#172033;font-size:.74rem}.pc-knowledge-priority>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.pc-knowledge-priority article{display:grid;gap:3px;padding:10px;border:1px solid rgba(251,191,36,.45);border-radius:11px;background:#fff}.pc-knowledge-priority article span{width:max-content;padding:2px 7px;border-radius:999px;background:#fffbeb;color:#b45309;font-size:.56rem;font-weight:900}.pc-knowledge-priority article b{color:#172033;font-size:.7rem;line-height:1.35}.pc-knowledge-priority article small{color:#64748b;font-size:.6rem;line-height:1.4}.pc-knowledge-gate-rules{padding:12px;border:1px solid #fde6c7;border-radius:12px;background:#fff}.pc-knowledge-gate-rules strong{display:block;color:#172033;font-size:.74rem}.pc-knowledge-gate-rules ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px;margin:8px 0 0;padding-left:18px;color:#475569;font-size:.68rem;line-height:1.5}.pc-knowledge-gate-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-left:3px solid #f59e0b;background:#fff7ed;color:#6b4a1f;font-size:.68rem;line-height:1.5}.pc-knowledge-gate-actions a{flex:0 0 auto;color:#b45309;font-weight:900;text-decoration:none}.pc-knowledge-gate-actions a:hover{text-decoration:underline}
.pc-knowledge-review-queue{display:grid;gap:10px;padding:12px;border:1px solid #fde6c7;border-radius:12px;background:#fff}
.pc-governance-workbench{display:grid;gap:10px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(135deg,#fff,#f8fbff)}
.pc-governance-filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) minmax(180px,1.4fr) auto;gap:8px;align-items:end}
.pc-governance-filters label{display:grid;gap:4px;color:#475569;font-size:.58rem;font-weight:900}
.pc-governance-filters select,.pc-governance-filters input{width:100%;min-height:32px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#172033;padding:6px 8px;font-size:.64rem}
.pc-governance-filters button{min-height:32px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#475569;padding:6px 10px;font-size:.62rem;font-weight:900;cursor:pointer}
.pc-governance-filters button:hover{border-color:#93c5fd;color:#2563eb}
.pc-review-queue-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.pc-review-queue-head strong{display:block;color:#172033;font-size:.78rem}
.pc-review-queue-head p{max-width:820px;margin:5px 0 0;color:#64748b;font-size:.66rem;line-height:1.6}
.pc-review-queue-head span{flex:0 0 auto;padding:3px 8px;border-radius:999px;background:#fff7ed;color:#9a5b12;font-size:.6rem;font-weight:900}
.pc-review-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pc-review-batch{display:grid;gap:9px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff}
.pc-review-batch.candidate{border-color:#fed7aa;background:#fffaf3}
.pc-review-batch.rejected{border-color:#fecaca;background:#fffafa}
.pc-review-batch header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:start}
.pc-review-batch header span{grid-column:1/-1;color:#7c8ba0;font-size:.58rem;font-weight:900}
.pc-review-batch header strong{overflow:hidden;color:#172033;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}
.pc-review-batch header em{padding:3px 8px;border-radius:999px;background:#fff;color:#9a5b12;font-size:.6rem;font-style:normal;font-weight:900}
.pc-review-batch p{margin:0;color:#64748b;font-size:.66rem;line-height:1.55}
.pc-review-meta,.pc-review-tags{display:flex;flex-wrap:wrap;gap:5px}
.pc-review-meta span,.pc-review-tags b{padding:3px 7px;border-radius:999px;background:#eef2ff;color:#39437f;font-size:.57rem;font-weight:800}
.pc-review-tags b{background:#f1f5f9;color:#475569}
.pc-review-batch ol{margin:0;padding-left:17px;color:#475569;font-size:.64rem;line-height:1.5}
.pc-review-batch footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid rgba(148,163,184,.25);padding-top:9px}
.pc-review-batch footer small{color:#7a879a;font-size:.6rem}
.pc-review-batch footer div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.pc-review-batch button{border:1px solid #f3c17a;border-radius:999px;background:#fff7ed;color:#92400e;padding:4px 8px;font-size:.6rem;font-weight:900;cursor:pointer}
.pc-review-batch button:hover{background:#ffedd5}
.pc-item-review-queue{margin-top:12px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:#fff}
.pc-item-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-top:10px}
.pc-item-review-grid article{display:grid;gap:8px;padding:11px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc}
.pc-item-review-grid article.ready{border-color:#bbf7d0;background:linear-gradient(135deg,#fff,#ecfdf5)}
.pc-item-review-grid article.rejected{border-color:#fecaca;background:linear-gradient(135deg,#fff,#fff1f2)}
.pc-item-review-grid article.needsSource{border-color:#fed7aa;background:linear-gradient(135deg,#fff,#fff7ed)}
.pc-item-review-grid header{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:start}
.pc-item-review-grid header span{grid-column:1/-1;width:max-content;padding:2px 7px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:.56rem;font-weight:900}
.pc-item-review-grid header strong{color:#172033;font-size:.72rem;line-height:1.4}
.pc-item-review-grid header em{padding:2px 7px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.56rem;font-style:normal;font-weight:900}
.pc-item-review-grid article.ready header em{background:#dcfce7;color:#166534}
.pc-item-review-grid article.rejected header em{background:#fee2e2;color:#991b1b}
.pc-item-review-grid p{margin:0;color:#64748b;font-size:.62rem;line-height:1.5}
.pc-item-review-grid label{display:grid;gap:4px;color:#475569;font-size:.6rem;font-weight:900}
.pc-item-review-grid input{padding:7px 9px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#172033;font-size:.64rem}
.pc-upgrade-package{border:1px dashed #bfdbfe;border-radius:10px;background:#fff}
.pc-upgrade-package summary{padding:7px 9px;color:#1d4ed8;font-size:.6rem;font-weight:900;cursor:pointer;list-style:none}
.pc-upgrade-package summary::-webkit-details-marker{display:none}
.pc-upgrade-package>div{display:grid;gap:7px;padding:0 9px 9px}
.pc-upgrade-package p{margin:0;color:#64748b;font-size:.6rem;line-height:1.45}
.pc-upgrade-package dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
.pc-upgrade-package dt{color:#94a3b8;font-size:.55rem;font-weight:900}
.pc-upgrade-package dd{margin:2px 0 0;color:#172033;font-size:.62rem;font-weight:800}
.pc-upgrade-package strong{color:#334155;font-size:.58rem}
.pc-upgrade-package ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;margin:0;padding-left:16px;color:#475569;font-size:.58rem;line-height:1.4}
.pc-item-review-grid footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pc-item-review-grid footer div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.pc-item-review-grid footer button{padding:5px 8px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#2563eb;font-size:.58rem;font-weight:900;cursor:pointer}
.pc-item-review-grid footer button[data-pc-item-review-status="ready"]{border-color:#bbf7d0;background:#ecfdf5;color:#047857}
.pc-item-review-grid footer button[data-pc-item-review-status="rejected"]{border-color:#fecaca;background:#fff1f2;color:#b91c1c}
.pc-review-note{color:#64748b;font-size:.6rem;line-height:1.45}
.pc-proc-risk-review{overflow:hidden;border:1px solid #bfdbfe;border-radius:14px;background:#fff}
.pc-proc-risk-review-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid #dbeafe;background:linear-gradient(135deg,#f8fbff,#eff6ff)}
.pc-proc-risk-review-head>div>span{display:block;color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.04em}
.pc-proc-risk-review-head>div>strong{display:block;margin-top:3px;color:#172033;font-size:18px}
.pc-proc-risk-review-head>div>p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.5}
.pc-proc-risk-review-head dl{display:flex;align-items:center;gap:6px;margin:0}
.pc-proc-risk-review-head dl div{min-width:58px;padding:7px 9px;border:1px solid #dbeafe;border-radius:10px;background:#fff;text-align:center}
.pc-proc-risk-review-head dt{color:#64748b;font-size:12px;font-weight:800}
.pc-proc-risk-review-head dd{margin:2px 0 0;color:#172033;font-size:18px;font-weight:900}
.pc-proc-risk-review-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:560px}
.pc-proc-risk-review-workspace>aside{border-right:1px solid #e2e8f0;background:#f8fafc}
.pc-proc-risk-review-workspace>aside nav{display:flex;flex-wrap:wrap;gap:5px;padding:10px;border-bottom:1px solid #e2e8f0}
.pc-proc-risk-review-workspace>aside nav button{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:5px 8px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#475569;font-size:12px;font-weight:800;cursor:pointer}
.pc-proc-risk-review-workspace>aside nav button b{color:#2563eb}
.pc-proc-risk-review-workspace>aside nav button.is-active{border-color:#2563eb;background:#2563eb;color:#fff}
.pc-proc-risk-review-workspace>aside nav button.is-active b{color:#fff}
.pc-proc-risk-list{display:grid;max-height:510px;overflow:auto}
.pc-proc-risk-list button{position:relative;display:grid;gap:3px;padding:11px 13px;border:0;border-bottom:1px solid #e2e8f0;background:transparent;text-align:left;cursor:pointer}
.pc-proc-risk-list button:hover{background:#f1f5f9}
.pc-proc-risk-list button.is-active{background:#eef6ff}
.pc-proc-risk-list button.is-active:before{position:absolute;inset:0 auto 0 0;width:3px;background:#2563eb;content:""}
.pc-proc-risk-list span{color:#64748b;font-size:12px;font-weight:800}
.pc-proc-risk-list strong{color:#172033;font-size:14px;line-height:1.35}
.pc-proc-risk-list small{width:max-content;padding:2px 6px;border-radius:999px;background:#fff7ed;color:#9a5b12;font-size:12px;font-weight:900}
.pc-proc-risk-detail{min-width:0;padding:16px}
.pc-proc-risk-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.pc-proc-risk-detail>header span{color:#2563eb;font-size:12px;font-weight:900}
.pc-proc-risk-detail h4{margin:3px 0 0;color:#172033;font-size:20px}
.pc-proc-risk-detail>header em{padding:4px 8px;border-radius:999px;background:#fff7ed;color:#9a5b12;font-size:12px;font-style:normal;font-weight:900}
.pc-proc-risk-detail>header em.merge-existing{background:#e0f2fe;color:#0369a1}
.pc-proc-risk-detail>header em.approve-new{background:#dcfce7;color:#166534}
.pc-proc-risk-detail>header em.return-for-revision{background:#fee2e2;color:#991b1b}
.pc-proc-risk-event{margin:10px 0 0;padding:10px 12px;border-left:3px solid #2563eb;background:#f8fbff;color:#334155;font-size:14px;line-height:1.6}
.pc-proc-risk-quality{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:11px}
.pc-proc-risk-quality strong{margin-right:3px;color:#172033;font-size:13px}
.pc-proc-risk-quality span{padding:3px 7px;border-radius:999px;font-size:12px;font-weight:800}
.pc-proc-risk-quality .is-passed{background:#ecfdf5;color:#047857}
.pc-proc-risk-quality .is-missing{background:#fff7ed;color:#b45309}
.pc-proc-risk-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:12px;border:1px solid #e2e8f0;border-radius:12px}
.pc-proc-risk-evidence section{padding:11px 12px}
.pc-proc-risk-evidence section+section{border-left:1px solid #e2e8f0}
.pc-proc-risk-detail h5{margin:0;color:#172033;font-size:14px}
.pc-proc-risk-evidence ul,.pc-proc-risk-support ul,.pc-proc-risk-support ol{margin:7px 0 0;padding-left:17px;color:#475569;font-size:13px;line-height:1.55}
.pc-proc-risk-support{margin-top:12px;border:1px solid #e2e8f0;border-radius:11px;background:#fbfdff}
.pc-proc-risk-support>summary{padding:10px 12px;color:#334155;font-size:13px;font-weight:900;cursor:pointer}
.pc-proc-risk-support>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 12px 12px;border-top:1px solid #e2e8f0}
.pc-proc-risk-support section{padding-top:11px}
.pc-proc-risk-support li b,.pc-proc-risk-support li span{display:block}
.pc-proc-risk-support li span{margin-top:1px;color:#7c8ba0}
.pc-proc-risk-decision{display:grid;gap:9px;margin-top:12px;padding:12px;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff}
.pc-proc-risk-decision>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pc-proc-risk-decision label{display:grid;gap:4px;color:#334155;font-size:13px;font-weight:900}
.pc-proc-risk-decision select,.pc-proc-risk-decision input,.pc-proc-risk-decision textarea{width:100%;padding:8px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font:inherit;font-size:14px}
.pc-proc-risk-decision input:disabled{background:#f1f5f9;color:#64748b}
.pc-proc-risk-decision textarea{resize:vertical;line-height:1.5}
.pc-ic-graph-review .pc-proc-risk-evidence p{margin:7px 0 0;color:#475569;font-size:13px;line-height:1.6}
.pc-proc-risk-decision footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pc-proc-risk-decision footer small{color:#64748b;font-size:12px}
.pc-proc-risk-decision footer div{display:flex;gap:7px}
.pc-proc-risk-trace{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px;padding:10px 12px;border:1px solid #dbeafe;border-radius:11px;background:#f8fbff}
.pc-proc-risk-trace strong{margin-right:3px;color:#172033;font-size:13px}
.pc-proc-risk-trace span{padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:900}
.pc-proc-risk-trace span.is-complete{background:#dcfce7;color:#166534}
.pc-proc-risk-trace i{color:#94a3b8;font-size:12px;font-style:normal}
.pc-proc-risk-published{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px;padding:11px 12px;border:1px solid #bbf7d0;border-radius:11px;background:#f0fdf4}
.pc-proc-risk-published strong{color:#166534;font-size:14px}
.pc-proc-risk-published p{margin:3px 0 0;color:#475569;font-size:13px;line-height:1.5}
.pc-proc-risk-published small{max-width:300px;color:#64748b;font-size:12px;line-height:1.5;text-align:right}
.pc-sales-risk-batch{margin-top:14px}
.pc-sales-risk-list{display:grid}
.pc-sales-risk-list>details{border-bottom:1px solid #e2e8f0;background:#fff}
.pc-sales-risk-list>details:last-child{border-bottom:0}
.pc-sales-risk-list>details>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 130px;align-items:center;gap:14px;padding:12px 16px;cursor:pointer}
.pc-sales-risk-list>details>summary span{display:grid;gap:2px}
.pc-sales-risk-list>details>summary b{color:#2563eb;font-size:12px}
.pc-sales-risk-list>details>summary strong{color:#172033;font-size:14px}
.pc-sales-risk-list>details>summary em{padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:12px;font-style:normal;font-weight:900}
.pc-sales-risk-list>details.approve-new>summary em{background:#dcfce7;color:#166534}
.pc-sales-risk-list>details.return-for-revision>summary em{background:#fee2e2;color:#991b1b}
.pc-sales-risk-list>details>summary small{color:#64748b;font-size:12px;text-align:right}
.pc-sales-risk-detail{padding:0 16px 16px;background:#fbfdff}
.pc-sales-risk-detail>p{margin:0;padding:11px 12px;border-left:3px solid #2563eb;background:#f8fbff;color:#334155;font-size:14px;line-height:1.6}
.pc-sales-risk-detail .pc-proc-risk-evidence p{margin:7px 0 0;color:#475569;font-size:13px;line-height:1.6}
.pra-field-help{display:block;margin:-5px 0 10px;color:#64748b;font-size:12px;line-height:1.45}
.pra-field-help.is-error{padding:7px 9px;border-left:3px solid #dc2626;border-radius:5px;background:#fef2f2;color:#b91c1c;font-weight:800}
.pra-risk-detail [aria-invalid="true"]{border-color:#dc2626!important;box-shadow:0 0 0 2px rgba(220,38,38,.1)}
.pc-case-review-queue{margin-top:12px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}
.pc-case-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-top:10px}
.pc-case-review-grid article{display:grid;gap:8px;padding:11px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}
.pc-case-review-grid article.reviewed{border-color:#bbf7d0;background:linear-gradient(135deg,#fff,#ecfdf5)}
.pc-case-review-grid article.rejected{border-color:#fecaca;background:linear-gradient(135deg,#fff,#fff1f2)}
.pc-case-review-grid header{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:start}
.pc-case-review-grid header span{grid-column:1/-1;width:max-content;padding:2px 7px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.56rem;font-weight:900}
.pc-case-review-grid header strong{color:#172033;font-size:.72rem;line-height:1.4}
.pc-case-review-grid header em{padding:2px 7px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.56rem;font-style:normal;font-weight:900}
.pc-case-review-grid article.reviewed header em{background:#dcfce7;color:#166534}
.pc-case-review-grid article.rejected header em{background:#fee2e2;color:#991b1b}
.pc-case-review-grid p{margin:0;color:#64748b;font-size:.62rem;line-height:1.5}
.pc-case-review-grid label{display:grid;gap:4px;color:#475569;font-size:.6rem;font-weight:900}
.pc-case-review-grid input{padding:7px 9px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#172033;font-size:.64rem}
.pc-case-review-grid footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pc-case-review-grid footer button{padding:5px 9px;border:1px solid #2563eb;border-radius:999px;background:#2563eb;color:#fff;font-size:.58rem;font-weight:900;cursor:pointer}
.pc-case-review-grid footer button[data-pc-case-approved="false"]{border-color:#fecaca;background:#fff;color:#b91c1c}
.pc-case-review-grid footer small{color:#64748b;font-size:.6rem;line-height:1.45}
.pc-standard-editor { border-bottom: 1px solid #dce4ee; background: #f8fafc; }
.pc-standard-editor summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 24px; cursor: pointer; list-style: none; }
.pc-standard-editor summary::-webkit-details-marker { display: none; }
.pc-standard-editor summary span { display: inline-flex; align-items: center; gap: 8px; color: #274b78; font-size: .73rem; }
.pc-standard-editor summary svg { width: 16px; height: 16px; }
.pc-standard-editor summary small { color: #728196; font-size: .63rem; }
.pc-standard-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 14px; padding: 5px 24px 20px; border-top: 1px solid #e2e8f0; }
.pc-standard-form label { display: flex; flex-direction: column; gap: 6px; color: #44566f; font-size: .66rem; font-weight: 700; }
.pc-standard-form .wide { grid-column: 1/-1; }
.pc-standard-form input,.pc-standard-form select,.pc-standard-form textarea { width: 100%; border: 1px solid #cfd9e5; border-radius: 4px; background: #fff; color: #24364e; padding: 8px 9px; font: inherit; font-weight: 400; box-sizing: border-box; }
.pc-standard-form textarea { resize: vertical; line-height: 1.55; }
.pc-standard-criteria { display: grid; gap: 10px; padding: 14px; border: 1px solid #d7e0e9; background: #f8fafc; }
.pc-standard-criteria>div:first-child { display: grid; gap: 3px; }
.pc-standard-criteria>div:first-child strong { color: #24364e; font-size: .73rem; }
.pc-standard-criteria>div:first-child span { color: #66798b; font-size: .64rem; font-weight: 400; }
.pc-standard-criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pc-standard-criteria-grid .wide { grid-column: 1/-1; }
.pc-standard-upload { position: relative; border: 1px dashed #aebed0; padding: 11px 13px; background: #fff; cursor: pointer; }
.pc-standard-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pc-standard-upload span { display: flex; align-items: baseline; gap: 10px; }
.pc-standard-upload small,.pc-standard-file-status { color: #748398; font-size: .62rem; font-weight: 400; }
.pc-standard-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pc-standard-actions span { color: #6b7b90; font-size: .64rem; }
.pc-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); min-height: 650px; background: #f7f9fc; }
.pc-module-nav { padding: 18px 12px; border-right: 1px solid #dce4ee; background: #f3f6fa; }
.pc-module-title { padding: 0 9px 12px; }
.pc-module-title strong, .pc-module-title span { display: block; }
.pc-module-title strong { color: #25324a; font-size: .76rem; }
.pc-module-title span { margin-top: 3px; color: #8a96a8; font-size: .63rem; }
.pc-module-btn { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 48px; margin: 2px 0; padding: 8px 9px; border: 0; border-left: 3px solid transparent; background: transparent; color: #58677c; text-align: left; cursor: pointer; }
.pc-module-btn:hover { background: #eaf0f8; color: #263b5c; }
.pc-module-btn.is-active { border-left-color: #3568d4; background: #e7eefb; color: #244f9f; }
.pc-module-btn svg { width: 16px; height: 16px; }
.pc-module-btn span, .pc-module-btn strong, .pc-module-btn small { display: block; min-width: 0; }
.pc-module-btn strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.pc-module-btn small { margin-top: 2px; color: #8693a5; font-size: .59rem; }
.pc-module-btn em { min-width: 21px; color: #708096; font-size: .62rem; font-style: normal; font-weight: 700; text-align: right; }
.pc-browser { min-width: 0; padding: 18px; }
.pc-toolbar { display: grid; grid-template-columns: minmax(240px,.82fr) minmax(0,1.18fr); gap: 10px; align-items: center; margin-bottom: 12px; }
.pc-toolbar label { display: flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid #ccd7e5; background: #fff; }
.pc-toolbar label:focus-within { border-color: #4f7fea; box-shadow: 0 0 0 2px rgba(79,127,234,.12); }
.pc-toolbar label svg { flex: 0 0 auto; width: 16px; color: #7c8ba0; }
.pc-toolbar input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #24324a; font-size: .72rem; }
.pc-type-switch { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:1px; height:38px; padding:0; overflow:hidden; border:1px solid #d5dfeb; border-radius:8px; background:#d5dfeb; }
.pc-type-switch button { min-width:0; padding:0 7px; border:0; border-radius:0; background:#f8fafc; color:#68778b; font-size:.67rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.pc-type-switch button:hover { background:#f1f5f9; color:#334155; }
.pc-type-switch button:focus-visible { position:relative; z-index:1; outline:2px solid #2563eb; outline-offset:-2px; }
.pc-type-switch button.is-active { background:#fff; color:#2e5db5; box-shadow:inset 0 -2px 0 #3568d4; }
.pc-result-count { color: #8290a2; font-size: .66rem; white-space: nowrap; }
.pc-workspace { display: grid; grid-template-columns: minmax(330px,.9fr) minmax(390px,1.1fr); min-height: 570px; border: 1px solid #d8e1ec; background: #fff; }
.pc-result-list { min-width: 0; overflow: auto; border-right: 1px solid #d8e1ec; }
.pc-search-landing{display:grid;gap:14px;padding:18px;background:linear-gradient(135deg,#f8fbff,#fff)}
.pc-search-hero{display:grid;gap:7px;padding:17px;border:1px solid #dbeafe;border-radius:16px;background:#fff}
.pc-search-hero span{width:max-content;padding:3px 8px;border-radius:999px;background:#eef2ff;color:#3347a3;font-size:.58rem;font-weight:900}
.pc-search-hero strong{color:#172033;font-size:.92rem;line-height:1.45}
.pc-search-hero p{margin:0;color:#64748b;font-size:.68rem;line-height:1.65}
.pc-search-tags{display:flex;flex-wrap:wrap;gap:8px}
.pc-search-tags button{padding:8px 11px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.66rem;font-weight:900;cursor:pointer}
.pc-search-tags button:hover{background:#dbeafe}
.pc-search-guide{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.pc-search-guide article{padding:12px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}
.pc-search-guide strong{display:block;color:#172033;font-size:.7rem}
.pc-search-guide p{margin:6px 0 0;color:#64748b;font-size:.62rem;line-height:1.55}
.pc-layered-results{display:grid;gap:12px;padding:14px;background:#f8fafc}
.pc-layer-summary{display:grid;gap:4px;padding:13px 14px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#fff)}
.pc-layer-summary strong{color:#172033;font-size:.74rem;line-height:1.45}
.pc-layer-summary span{color:#64748b;font-size:.62rem;line-height:1.55}
.pc-layer-section{overflow:hidden;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.pc-layer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 13px;border-bottom:1px solid #e8eef6;background:#fbfdff}
.pc-layer-head strong{display:block;color:#172033;font-size:.76rem;line-height:1.35}
.pc-layer-head span{display:block;margin-top:4px;color:#64748b;font-size:.59rem;line-height:1.5}
.pc-layer-head em{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#3347a3;font-size:.55rem;font-style:normal;font-weight:900;white-space:nowrap}
.pc-layer-items .pc-result-row{border-bottom:1px solid #edf2f7}
.pc-layer-items .pc-result-row:last-child{border-bottom:0}
.pc-layer-more{margin:0;padding:9px 13px;border-top:1px dashed #e2e8f0;color:#7a879a;font-size:.59rem;line-height:1.5}
.pc-layer-empty{padding:12px 13px;color:#7a879a;font-size:.62rem;line-height:1.55}
.pc-procedure-suggestions{display:grid;gap:8px;padding:10px}
.pc-procedure-suggestions article{display:grid;gap:5px;padding:10px 11px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff}
.pc-procedure-suggestions span{width:max-content;padding:2px 6px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:.54rem;font-weight:900}
.pc-procedure-suggestions p{margin:0;color:#26354d;font-size:.66rem;line-height:1.55}
.pc-procedure-suggestions small{color:#718096;font-size:.57rem;line-height:1.45}
.pc-boundary-list{display:grid;gap:7px;margin:0;padding:10px;list-style:none}
.pc-boundary-list li{display:grid;gap:4px;padding:9px 10px;border:1px solid #f0dfbd;border-radius:11px;background:#fffaf0}
.pc-boundary-list span{color:#3d3322;font-size:.64rem;line-height:1.55}
.pc-boundary-list small{color:#8a6b24;font-size:.56rem;line-height:1.4}
.pc-result-row { display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(80px,120px) 16px; gap: 10px; align-items: center; width: 100%; min-height: 86px; padding: 11px 13px; border: 0; border-bottom: 1px solid #e5eaf1; background: #fff; color: #24324a; text-align: left; cursor: pointer; }
.pc-result-row:hover { background: #f8faff; }
.pc-result-row.is-selected { box-shadow: inset 3px 0 #3568d4; background: #f1f5fd; }
.pc-result-type { display: inline-flex; align-items: center; justify-content: center; width: 66px; min-height: 24px; padding: 3px 5px; border: 1px solid #c8d6eb; color: #46658d; font-size: .59rem; font-weight: 750; line-height: 1.3; text-align: center; }
.pc-result-type.case { border-color: #d9cda7; background: #fffbef; color: #806827; }
.pc-result-main { min-width: 0; }
.pc-result-main strong, .pc-result-main small { display: block; min-width: 0; }
.pc-result-main strong { overflow: hidden; color: #1c2940; font-size: .72rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.pc-result-main small { overflow: hidden; margin-top: 4px; color: #7a879a; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.pc-result-explain { display: flex; flex-wrap: wrap; gap: 4px 5px; align-items: center; margin-top: 6px; }
.pc-result-explain em { padding: 2px 6px; border-radius: 999px; background: #eef2ff; color: #3347a3; font-size: .55rem; font-style: normal; font-weight: 900; line-height: 1.35; }
.pc-result-explain small { flex: 1 1 220px; min-width: 0; margin-top: 0; color: #66778e; font-size: .58rem; line-height: 1.45; }
.pc-result-modules { overflow: hidden; color: #65758d; font-size: .62rem; line-height: 1.45; text-align: right; text-overflow: ellipsis; }
.pc-result-row > svg { width: 14px; color: #9ba8b8; }
.pc-detail-pane { min-width: 0; overflow: auto; background: #fbfcfe; }
.pc-detail { padding: 21px 23px 24px; }
.pc-detail header > span { color: #3d6cc8; font-size: .62rem; font-weight: 800; }
.pc-detail h3 { margin: 7px 0 5px; color: #16223a; font-size: 1rem; line-height: 1.45; letter-spacing: 0; }
.pc-detail header p { margin: 0; color: #758397; font-size: .67rem; }
.pc-detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0 15px; }
.pc-detail-tags span { padding: 3px 7px; border: 1px solid #d8e1ed; background: #f4f7fb; color: #526783; font-size: .59rem; }
.pc-detail-body { border-top: 1px solid #dde5ef; }
.pc-detail-body section { padding: 12px 0; border-bottom: 1px solid #e5eaf1; }
.pc-detail-body h4 { margin: 0 0 5px; color: #30415c; font-size: .66rem; }
.pc-detail-body p { margin: 0; color: #5f6f84; font-size: .68rem; line-height: 1.65; white-space: pre-wrap; }
.pc-case-sources ul { display: grid; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.pc-case-sources li { display: grid; grid-template-columns: minmax(110px,.5fr) minmax(0,1fr); gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid #e5eaf1; border-radius: 8px; background: #fff; }
.pc-case-sources li strong { color: #334155; font-size: .64rem; }
.pc-case-sources li span { overflow: hidden; color: #64748b; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.pc-case-source-more { margin-top: 8px !important; color: #7a879a !important; font-size: .62rem !important; }
.pc-source-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #2e61bf; font-size: .68rem; font-weight: 750; text-decoration: none; }
.pc-source-link:hover { text-decoration: underline; }
.pc-source-link svg { width: 14px; }
.pc-detail-empty, .pc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 30px; color: #8290a2; text-align: center; }
.pc-detail-empty svg, .pc-empty svg { width: 28px; height: 28px; margin-bottom: 10px; }
.pc-detail-empty strong, .pc-empty strong { color: #46556d; font-size: .76rem; }
.pc-detail-empty span, .pc-empty span { margin-top: 5px; font-size: .64rem; line-height: 1.55; }
html[data-theme="dark"] .pc-heading, html[data-theme="dark"] .pc-result-row { background: #172235; }
html[data-theme="dark"] .pc-layered-results { background: #111b2b; }
html[data-theme="dark"] .pc-layer-summary { background: linear-gradient(135deg,#172a46,#162134); border-color: #314158; }
html[data-theme="dark"] .pc-layer-section, html[data-theme="dark"] .pc-procedure-suggestions article { background: #172235; border-color: #314158; }
html[data-theme="dark"] .pc-layer-head { background: #141f31; border-color: #314158; }
html[data-theme="dark"] .pc-layer-head strong, html[data-theme="dark"] .pc-layer-summary strong, html[data-theme="dark"] .pc-procedure-suggestions p { color: #e7edf8; }
html[data-theme="dark"] .pc-boundary-list li { background: #2a2315; border-color: #584525; }
html[data-theme="dark"] .pc-candidate-assets, html[data-theme="dark"] .pc-candidate-list article, html[data-theme="dark"] .pc-candidate-head dl, html[data-theme="dark"] .pc-candidate-empty, html[data-theme="dark"] .pc-knowledge-review-queue, html[data-theme="dark"] .pc-review-batch { background: #172235; border-color: #314158; }
html[data-theme="dark"] .pc-standard-editor { background: #141f31; border-color: #314158; }
html[data-theme="dark"] .pc-standard-form { border-color: #314158; }
html[data-theme="dark"] .pc-standard-form input,html[data-theme="dark"] .pc-standard-form select,html[data-theme="dark"] .pc-standard-form textarea,html[data-theme="dark"] .pc-standard-upload { background: #172235; border-color: #3a4a61; color: #e7edf8; }
html[data-theme="dark"] .pc-standard-criteria { background: #172235; border-color: #3a4a61; }
html[data-theme="dark"] .pc-standard-criteria>div:first-child strong { color: #e7edf8; }
html[data-theme="dark"] .pc-proc-risk-review,html[data-theme="dark"] .pc-proc-risk-review-head,html[data-theme="dark"] .pc-proc-risk-detail,html[data-theme="dark"] .pc-proc-risk-decision,html[data-theme="dark"] .pc-proc-risk-support,html[data-theme="dark"] .pc-proc-risk-trace,html[data-theme="dark"] .pc-proc-risk-published{background:#172235;border-color:#314158}
html[data-theme="dark"] .pc-proc-risk-review-workspace>aside,html[data-theme="dark"] .pc-proc-risk-list button.is-active{background:#141f31}
html[data-theme="dark"] .pc-proc-risk-review-workspace>aside,html[data-theme="dark"] .pc-proc-risk-review-workspace>aside nav,html[data-theme="dark"] .pc-proc-risk-list button,html[data-theme="dark"] .pc-proc-risk-evidence,html[data-theme="dark"] .pc-proc-risk-evidence section+section{border-color:#314158}
html[data-theme="dark"] .pc-proc-risk-review-head>div>strong,html[data-theme="dark"] .pc-proc-risk-review-head dd,html[data-theme="dark"] .pc-proc-risk-list strong,html[data-theme="dark"] .pc-proc-risk-detail h4,html[data-theme="dark"] .pc-proc-risk-detail h5,html[data-theme="dark"] .pc-proc-risk-quality strong{color:#e7edf8}
html[data-theme="dark"] .pc-proc-risk-decision select,html[data-theme="dark"] .pc-proc-risk-decision input,html[data-theme="dark"] .pc-proc-risk-decision textarea{background:#111b2b;border-color:#3a4a61;color:#e7edf8}
html[data-theme="dark"] .pc-layout, html[data-theme="dark"] .pc-detail-pane { background: #111b2b; }
html[data-theme="dark"] .pc-module-nav, html[data-theme="dark"] .pc-type-switch { background: #162134; }
html[data-theme="dark"] .pc-workspace, html[data-theme="dark"] .pc-toolbar label, html[data-theme="dark"] .pc-type-switch button.is-active, html[data-theme="dark"] .pc-case-sources li { background: #172235; }
html[data-theme="dark"] .pc-heading h2, html[data-theme="dark"] .pc-heading dt, html[data-theme="dark"] .pc-candidate-head strong, html[data-theme="dark"] .pc-candidate-list article strong, html[data-theme="dark"] .pc-result-main strong, html[data-theme="dark"] .pc-detail h3, html[data-theme="dark"] .pc-review-queue-head strong, html[data-theme="dark"] .pc-review-batch header strong { color: #e7edf8; }
html[data-theme="dark"] .pc-heading, html[data-theme="dark"] .pc-module-nav, html[data-theme="dark"] .pc-workspace, html[data-theme="dark"] .pc-result-list, html[data-theme="dark"] .pc-result-row, html[data-theme="dark"] .pc-detail-body, html[data-theme="dark"] .pc-detail-body section, html[data-theme="dark"] .pc-case-sources li { border-color: #314158; }
@media (max-width: 1120px) {
  .pc-layout { grid-template-columns: 180px minmax(0,1fr); }
  .pc-workspace { grid-template-columns: minmax(290px,.85fr) minmax(330px,1.15fr); }
  .pc-result-row { grid-template-columns: 68px minmax(0,1fr) 16px; }
  .pc-result-modules { display: none; }
  .pc-proc-risk-review-workspace { grid-template-columns: 270px minmax(0,1fr); }
  .pc-proc-risk-evidence { grid-template-columns: 1fr; }
  .pc-proc-risk-evidence section+section { border-top:1px solid #e2e8f0;border-left:0; }
}
@media (max-width: 820px) {
  .pc-heading { align-items: stretch; flex-direction: column; }
  .pc-heading dl { border-top: 1px solid #dce4ee; border-left: 0; padding-top: 12px; }
  .pc-heading dl div { flex: 1; }
  .pc-standard-form { grid-template-columns: 1fr 1fr; padding: 5px 16px 18px; }
  .pc-layout { grid-template-columns: 1fr; }
  .pc-module-nav { display: flex; gap: 5px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid #dce4ee; }
  .pc-module-title { display: none; }
  .pc-module-btn { flex: 0 0 auto; width: auto; min-height: 38px; margin: 0; border-left: 0; border-bottom: 3px solid transparent; }
  .pc-module-btn.is-active { border-bottom-color: #3568d4; }
  .pc-module-btn small, .pc-module-btn em { display: none; }
  .pc-browser { padding: 12px; }
  .pc-toolbar { grid-template-columns: 1fr; }
  .pc-result-count { display: none; }
  .pc-type-switch button { flex: 1; }
  .pc-review-batch-grid { grid-template-columns: 1fr; }
  .pc-workspace { grid-template-columns: 1fr; }
  .pc-result-list { max-height: 320px; border-right: 0; border-bottom: 1px solid #d8e1ec; }
  .pc-layered-results { padding: 10px; }
  .pc-layer-head { flex-direction: column; }
  .pc-proc-risk-review-head { align-items:flex-start;flex-direction:column; }
  .pc-proc-risk-review-head dl { width:100%; }
  .pc-proc-risk-review-head dl div { flex:1; }
  .pc-proc-risk-review-workspace { grid-template-columns:1fr; }
  .pc-proc-risk-review-workspace>aside { border-right:0;border-bottom:1px solid #e2e8f0; }
  .pc-proc-risk-list { max-height:240px; }
}
@media (max-width: 520px) {
  .pc-heading { padding: 18px 16px; }
  .pc-heading h2 { font-size: 1.2rem; }
  .pc-heading dl div { min-width: 0; padding: 2px 8px; }
  .pc-standard-editor summary { align-items: flex-start; flex-direction: column; padding: 12px 16px; }
  .pc-standard-form { grid-template-columns: 1fr; }
  .pc-standard-form .wide { grid-column: auto; }
  .pc-standard-criteria-grid { grid-template-columns: 1fr; }
  .pc-standard-criteria-grid .wide { grid-column: auto; }
  .pc-standard-actions { align-items: stretch; flex-direction: column; }
  .pc-result-row { grid-template-columns: 62px minmax(0,1fr) 14px; padding: 10px; }
  .pc-result-type { width: 58px; }
  .pc-result-explain small { flex-basis: 100%; }
  .pc-case-sources li { grid-template-columns: 1fr; }
  .pc-detail { padding: 18px 15px; }
  .pc-proc-risk-review-head dl { display:grid;grid-template-columns:repeat(2,1fr); }
  .pc-proc-risk-decision>div { grid-template-columns:1fr; }
  .pc-proc-risk-decision footer { align-items:stretch;flex-direction:column; }
  .pc-proc-risk-support>div { grid-template-columns:1fr; }
}

/* ====== Project-level risk assessment ====== */
.pra-result-hero {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  margin:0 0 16px;
  padding:24px 26px;
  border:1px solid #dce7f5;
  border-radius:16px;
  background:linear-gradient(112deg,#fff 0%,#f4f8ff 68%,#ecfdf9 100%);
  box-shadow:var(--card-shadow);
}
.pra-result-hero h2 {
  margin:0;
  color:#0f172a;
  font-size:1.42rem;
  line-height:1.25;
}
.pra-result-hero p {
  max-width:900px;
  margin:7px 0 0;
  color:#64748b;
  font-size:.84rem;
  line-height:1.7;
}
.pra-stat-cards {
  margin-bottom:16px;
}
.pra-review-desk {
  border:1px solid #bfd3ee;
  border-radius:16px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#eff6ff 100%);
  box-shadow:0 16px 34px rgba(15,23,42,.06);
  overflow:hidden;
}
.prd-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid #dbe7f4;
}
.prd-head span {
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:900;
  letter-spacing:.06em;
}
.prd-head h3 {
  margin:5px 0 6px;
  color:#172033;
  font-size:24px;
  line-height:1.25;
}
.prd-head p {
  margin:0;
  max-width:860px;
  color:#536579;
  font-size:15px;
  line-height:1.65;
}
.prd-head>strong {
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:14px;
  line-height:1.25;
}
.pra-review-desk.is-reviewed .prd-head>strong {
  background:#047857;
}
.prd-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  border-bottom:1px solid #e2e8f0;
  background:#fff;
}
.prd-metrics span {
  padding:15px 18px;
  border-right:1px solid #e2e8f0;
}
.prd-metrics span:last-child {
  border-right:0;
}
.prd-metrics b {
  display:block;
  color:#172033;
  font-size:26px;
  line-height:1;
}
.prd-metrics small {
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.pra-review-queue {
  display:grid;
  gap:10px;
  padding:16px 18px 18px;
}
.pra-review-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:14px 16px;
  border:1px solid #dbe7f4;
  border-radius:12px;
  background:#fff;
}
.pra-review-row span {
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:850;
}
.pra-review-row strong {
  display:block;
  margin-top:4px;
  color:#172033;
  font-size:17px;
  line-height:1.35;
}
.pra-review-row p {
  margin:5px 0 0;
  color:#64748b;
  font-size:14px;
  line-height:1.55;
}
.pra-review-more {
  margin:2px 0 0;
  color:#64748b;
  font-size:14px;
}
.pra-scheme-bridge {
  border:1px solid #bfdbfe;
  border-radius:16px;
  background:linear-gradient(135deg,#fff,#f8fbff);
  box-shadow:0 16px 34px rgba(37,99,235,.06);
  overflow:hidden;
}
.pra-scheme-bridge.is-locked {
  border-color:#e2e8f0;
  background:#f8fafc;
}
.pra-scheme-bridge.is-generated {
  border-color:#86efac;
  background:linear-gradient(135deg,#f0fdf4,#fff);
}
.pra-sb-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid #dbeafe;
}
.pra-sb-head span {
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:950;
  letter-spacing:.08em;
}
.pra-sb-head h3 {
  margin:5px 0 6px;
  color:#172033;
  font-size:22px;
}
.pra-sb-head p {
  margin:0;
  max-width:900px;
  color:#52637a;
  font-size:15px;
  line-height:1.65;
}
.pra-sb-head strong {
  flex:0 0 auto;
  padding:7px 12px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:13px;
}
.pra-scheme-bridge.is-locked .pra-sb-head strong { background:#e2e8f0; color:#64748b; }
.pra-scheme-bridge.is-generated .pra-sb-head strong { background:#dcfce7; color:#15803d; }
.pra-sb-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-bottom:1px solid #dbeafe;
  background:#fff;
}
.pra-sb-metrics article {
  padding:15px 18px;
  border-right:1px solid #dbeafe;
}
.pra-sb-metrics article:last-child { border-right:0; }
.pra-sb-metrics b {
  display:block;
  color:#1d4ed8;
  font-size:25px;
  line-height:1;
}
.pra-sb-metrics span {
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.pra-sb-actions {
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px 18px;
  flex-wrap:wrap;
}
.pra-sb-actions span {
  color:#64748b;
  font-size:14px;
  line-height:1.55;
}
.pra-scope-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.pra-scope-card {
  min-height:130px;
  padding:14px;
  border:1px solid #e2eaf5;
  border-radius:12px;
  background:#fbfdff;
}
.pra-scope-card.required { border-top:3px solid #dc2626; }
.pra-scope-card.sample { border-top:3px solid #2563eb; }
.pra-scope-card.defer { border-top:3px solid #94a3b8; }
.pra-scope-card h4 {
  margin:0 0 10px;
  color:#172033;
  font-size:.88rem;
}
.pra-scope-card ul {
  margin:0;
  padding-left:18px;
  color:#475569;
  font-size:.78rem;
  line-height:1.7;
}
.pra-scope-card p {
  color:#94a3b8;
  font-size:.78rem;
}
.pra-score-row {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:12px 0;
}
.pra-score-row span {
  padding:8px 10px;
  border:1px solid #e2eaf5;
  border-radius:9px;
  background:#f8fafc;
  color:#64748b;
  font-size:.72rem;
}
.pra-score-row strong {
  color:#172033;
}
.pra-trigger {
  margin:10px 0;
  padding:9px 11px;
  border:1px solid #fde68a;
  border-radius:9px;
  background:#fffbeb;
  color:#92400e;
  font-size:.76rem;
}
#audit-objective,
#audit-past-issues,
#audit-management-focus,
#audit-auditor-focus,
#audit-focus-notes {
  min-height:74px;
  resize:vertical;
}
.pra-basis-intro {
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-top:8px;
  padding:12px 0 8px;
  border-top:1px solid #dbe4ef;
}
.pra-basis-intro strong { color:#172033; font-size:.9rem; }
.pra-basis-intro span { color:#64748b; font-size:.74rem; line-height:1.55; }
.pra-industry-risk-preview { display:grid; gap:12px; min-height:56px; padding:13px; border:1px solid #dce5f0; border-radius:10px; background:#f8fafc; color:#52637a; font-size:.86rem; line-height:1.6; }
.pra-industry-risk-preview span { padding:9px 11px; border:1px solid #dbe5f3; border-left:4px solid #3566db; border-radius:8px; background:#fff; color:#26364f; font-size:.86rem; font-weight:650; line-height:1.45; }
.pra-risk-intel-group{display:grid;gap:10px;width:100%;padding:13px 14px;border:1px solid #d8e3f0;background:#fff;border-radius:10px}.pra-risk-intel-group.is-module{border-left:4px solid #3566db}.pra-risk-intel-group.is-reference{border-left:4px solid #059669}.pra-risk-intel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.pra-risk-intel-head strong{color:#17243a;font-size:.92rem}.pra-risk-intel-head strong b{display:inline-flex;margin-left:5px;padding:2px 7px;border-radius:999px;background:#e8f0ff;color:#315fd6;font-size:.68rem}.pra-risk-intel-head small{max-width:520px;color:#64748b;font-size:.78rem;line-height:1.55;text-align:right}.pra-risk-intel-group>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pra-risk-chip.module{border-left-color:#3566db}.pra-risk-chip.warning{border-left-color:#d97706;background:#fff7ed;color:#9a3412}.pra-risk-chip.factor{border-left-color:#059669;background:#f0fdf8;color:#08694e}
.pra-basis-result>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid #dce5f0; border-left:1px solid #dce5f0; }
.pra-basis-result article { min-height:92px; padding:13px 15px; border-right:1px solid #dce5f0; border-bottom:1px solid #dce5f0; background:#fff; }
.pra-basis-result article span { display:block; margin-bottom:6px; color:#3566db; font-size:.68rem; font-weight:800; }
.pra-basis-result article p { margin:0; color:#475569; font-size:.78rem; line-height:1.65; white-space:pre-line; }
.pra-basis-collapsed {
  padding:0;
  overflow:hidden;
}
.pra-basis-collapsed summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  color:#172033;
  font-size:16px;
  font-weight:850;
  cursor:pointer;
  list-style:none;
}
.pra-basis-collapsed summary::-webkit-details-marker {
  display:none;
}
.pra-basis-collapsed summary::before {
  content:'▸';
  color:#2563eb;
  transition:transform .18s ease;
}
.pra-basis-collapsed[open] summary::before {
  transform:rotate(90deg);
}
.pra-basis-collapsed summary span {
  margin-left:auto;
  color:#64748b;
  font-size:13px;
  font-weight:650;
}
.pra-basis-collapsed>div {
  margin:0 18px 18px;
}
.pra-audit-response { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.8fr); gap:24px; padding:18px 20px; border-left:4px solid #173f5f; background:#f8fafc; }
.pra-audit-response>div>span { color:#3566db; font-size:.65rem; font-weight:800; letter-spacing:.1em; }
.pra-audit-response h3 { margin:5px 0 7px; color:#172033; font-size:1rem; }
.pra-audit-response p { margin:0; color:#64748b; font-size:.76rem; line-height:1.65; }
.pra-audit-response aside { padding-left:20px; border-left:1px solid #dce5f0; }
.pra-audit-response aside strong { display:block; color:#172033; font-size:.76rem; }
.pra-audit-response aside p { margin:4px 0 8px; color:#334155; font-weight:700; }
.pra-audit-response ul { margin:0; padding-left:18px; color:#475569; font-size:.74rem; line-height:1.65; }
.wf-assessment-context { margin:4px 0 16px; padding:14px 16px; border-left:4px solid #3566db; background:#f8fafc; }
.wf-assessment-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.wf-assessment-head>div>span,.at-assessment-source>div>span { display:block; color:#3566db; font-size:.63rem; font-weight:800; letter-spacing:.1em; }
.wf-assessment-head strong { display:block; margin-top:4px; color:#172033; font-size:.82rem; }
.wf-assessment-head p { margin:5px 0 0; color:#64748b; font-size:.72rem; line-height:1.55; }
.wf-assessment-head>b { flex:0 0 auto; padding:4px 7px; border:1px solid #aac3f8; color:#244fca; font-size:.68rem; }
.wf-assessment-metrics { display:grid; grid-template-columns:.7fr .7fr 1.6fr; margin-top:12px; border-top:1px solid #dce5f0; border-left:1px solid #dce5f0; }
.wf-assessment-metrics>span { padding:9px 10px; border-right:1px solid #dce5f0; border-bottom:1px solid #dce5f0; }
.wf-assessment-metrics small { display:block; margin-bottom:3px; color:#718096; font-size:.62rem; }
.wf-assessment-metrics strong { color:#27364b; font-size:.7rem; line-height:1.45; }
.wf-assessment-basis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 16px; margin-top:10px; }
.wf-assessment-basis p,.wf-assessment-requirements p { margin:0; color:#53657c; font-size:.7rem; line-height:1.55; }
.wf-assessment-basis span,.wf-assessment-requirements span { display:block; color:#27364b; font-size:.62rem; font-weight:800; }
.wf-assessment-requirements { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:10px; padding-top:10px; border-top:1px solid #dce5f0; }
.at-assessment-source { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(0,1.5fr); gap:20px; padding:15px 18px; border-left:4px solid #3566db; background:#f8fafc; }
.at-assessment-source h3 { margin:4px 0 6px; color:#172033; font-size:.9rem; }
.at-assessment-source p { margin:0; color:#64748b; font-size:.74rem; line-height:1.6; }
.at-assessment-source dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; margin:0; border-top:1px solid #dce5f0; border-left:1px solid #dce5f0; }
.at-assessment-source dl>div { padding:8px 10px; border-right:1px solid #dce5f0; border-bottom:1px solid #dce5f0; }
.at-assessment-source dt { color:#718096; font-size:.62rem; font-weight:700; }
.at-assessment-source dd { margin:3px 0 0; color:#27364b; font-size:.7rem; line-height:1.5; }
html[data-theme="dark"] .pra-result-hero,
html[data-theme="dark"] .pra-review-desk,
html[data-theme="dark"] .pra-review-row,
html[data-theme="dark"] .pra-scheme-bridge,
html[data-theme="dark"] .pra-sb-metrics,
html[data-theme="dark"] .pra-sb-metrics article,
html[data-theme="dark"] .pra-scope-card,
html[data-theme="dark"] .pra-basis-result article,
html[data-theme="dark"] .pra-industry-risk-preview,
html[data-theme="dark"] .pra-audit-response {
  background:#172235;
  border-color:#2d425a;
  box-shadow:none;
}
html[data-theme="dark"] .pra-result-hero h2,
html[data-theme="dark"] .prd-head h3,
html[data-theme="dark"] .prd-metrics b,
html[data-theme="dark"] .pra-review-row strong,
html[data-theme="dark"] .pra-sb-head h3,
html[data-theme="dark"] .pra-sb-metrics b,
html[data-theme="dark"] .pra-basis-collapsed summary,
html[data-theme="dark"] .pra-scope-card h4,
html[data-theme="dark"] .pra-score-row strong {
  color:#f1f5f9;
}
html[data-theme="dark"] .pra-result-hero p,
html[data-theme="dark"] .prd-head p,
html[data-theme="dark"] .prd-metrics small,
html[data-theme="dark"] .pra-review-row p,
html[data-theme="dark"] .pra-review-more,
html[data-theme="dark"] .pra-sb-head p,
html[data-theme="dark"] .pra-sb-metrics span,
html[data-theme="dark"] .pra-sb-actions span,
html[data-theme="dark"] .pra-basis-collapsed summary span,
html[data-theme="dark"] .pra-scope-card ul,
html[data-theme="dark"] .pra-basis-result article p,
html[data-theme="dark"] .pra-audit-response p,
html[data-theme="dark"] .pra-audit-response ul {
  color:#9fb0c7;
}
html[data-theme="dark"] .pra-basis-intro strong,
html[data-theme="dark"] .pra-audit-response h3,
html[data-theme="dark"] .pra-audit-response aside strong { color:#f1f5f9; }
html[data-theme="dark"] .pra-industry-risk-preview span { background:#1b2940; color:#d8e1ee; }
html[data-theme="dark"] .prd-metrics {
  background:#172235;
}
html[data-theme="dark"] .pra-scheme-bridge.is-generated {
  border-color:#166534;
  background:#10251d;
}
html[data-theme="dark"] .wf-assessment-context,
html[data-theme="dark"] .at-assessment-source { background:#172235; border-color:#4f7fea; }
html[data-theme="dark"] .wf-assessment-head strong,
html[data-theme="dark"] .wf-assessment-metrics strong,
html[data-theme="dark"] .wf-assessment-basis span,
html[data-theme="dark"] .wf-assessment-requirements span,
html[data-theme="dark"] .at-assessment-source h3,
html[data-theme="dark"] .at-assessment-source dd { color:#e2e8f0; }
html[data-theme="dark"] .wf-assessment-head p,
html[data-theme="dark"] .wf-assessment-basis p,
html[data-theme="dark"] .wf-assessment-requirements p,
html[data-theme="dark"] .at-assessment-source p { color:#9fb0c7; }
html[data-theme="dark"] .pra-score-row span {
  background:#1b2940;
  border-color:#314158;
  color:#9fb0c7;
}
@media(max-width:980px){
  .pra-result-hero{flex-direction:column}
  .prd-head,.pra-sb-head{flex-direction:column}
  .prd-metrics,.pra-sb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pra-scope-grid{grid-template-columns:1fr}
  .pra-score-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pra-audit-response{grid-template-columns:1fr}
  .pra-audit-response aside{padding:14px 0 0;border-left:0;border-top:1px solid #dce5f0}
  .at-assessment-source{grid-template-columns:1fr}
}
@media(max-width:640px){
  .pra-score-row{grid-template-columns:1fr}
  .prd-metrics,.pra-sb-metrics,.pra-review-row{grid-template-columns:1fr}
  .pra-review-row button{justify-self:start}
  .pra-sb-actions{align-items:flex-start;flex-direction:column}
  .pra-sb-actions .btn{width:100%}
  .pra-basis-collapsed summary{align-items:flex-start;flex-direction:column}
  .pra-basis-intro{align-items:flex-start;flex-direction:column}
  .pra-basis-result>div{grid-template-columns:1fr}
  .wf-assessment-head{flex-direction:column}
  .wf-assessment-metrics,.wf-assessment-basis,.wf-assessment-requirements,.at-assessment-source dl{grid-template-columns:1fr}
}

/* ===== 审计程序与测试工作台 ===== */
.at-shell{max-width:1480px;margin:0 auto;color:#172033;}
.at-topline{display:flex;justify-content:space-between;gap:28px;padding:4px 0 20px;border-bottom:1px solid #dce4ef;}
.at-topline>div:first-child{max-width:760px;}.at-topline>div:first-child>span,.at-workspace-title>div>span{display:block;color:#3566db;font-size:12px;font-weight:800;letter-spacing:1.3px;margin-bottom:7px;}
.at-topline h2{font-size:24px;line-height:1.2;margin:0 0 7px;color:#10243f;}.at-topline p{margin:0;color:#60718a;line-height:1.7;font-size:14px;}
.at-stats{display:grid;grid-template-columns:repeat(4,64px);align-content:start;border-left:1px solid #dce4ef;}.at-stats div{padding:5px 10px;text-align:center;}.at-stats b{display:block;font-size:21px;color:#19365e;line-height:1.1;}.at-stats span{display:block;margin-top:5px;font-size:11px;color:#73829a;white-space:nowrap;}
.at-layout{display:grid;grid-template-columns:265px minmax(0,1fr);min-height:640px;border:1px solid #dce4ef;border-top:0;background:#fff;}
.at-sidebar{background:#f7f9fc;border-right:1px solid #dce4ef;padding:12px;}.at-side-head{display:flex;align-items:center;justify-content:space-between;padding:8px 9px 7px;color:#697990;font-size:12px;font-weight:800;letter-spacing:.5px;}.at-side-head em{font-style:normal;background:#e8eef7;color:#51627a;border-radius:10px;padding:2px 7px;}.at-new-test{width:25px;height:25px;border:1px solid #b8c9e4;border-radius:5px;background:#fff;color:#2754b8;font-size:20px;line-height:20px;cursor:pointer;}
.at-type-nav{padding-bottom:12px;border-bottom:1px solid #dce4ef;}.at-type-item{display:flex;align-items:center;gap:9px;width:100%;border:0;border-left:3px solid transparent;background:transparent;padding:9px 8px;text-align:left;cursor:pointer;color:#54657d;}.at-type-item:hover{background:#eef3fb;}.at-type-item.active{background:#eaf1ff;border-left-color:#3566db;color:#102b58;}.at-type-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:5px;background:#e5ecf8;color:#3566db;font-size:15px;}.at-type-item.active .at-type-icon{background:#3566db;color:#fff;}.at-type-item strong,.at-type-item small{display:block;}.at-type-item strong{font-size:13px;line-height:1.3;}.at-type-item small{font-size:11px;line-height:1.35;color:#77879d;margin-top:1px;}
.at-test-list{padding-top:7px;}.at-started-records{margin-top:10px;border:1px solid #d8e5f3;border-radius:12px;background:#fff;overflow:hidden}.at-started-records>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;list-style:none;cursor:pointer;color:#475569;font-size:13px!important;font-weight:900;background:#f8fafc}.at-started-records>summary::-webkit-details-marker{display:none}.at-started-records>summary em{font-style:normal;background:#e8eef7;color:#51627a;border-radius:999px;padding:2px 8px}.at-started-records[open]>summary{border-bottom:1px solid #e2e8f0}.at-list-empty{padding:13px 9px;color:#8290a3;font-size:12px;line-height:1.6;}.at-test-row{position:relative;display:flex;align-items:flex-start;gap:8px;width:100%;padding:10px 8px;border:0;border-bottom:1px solid #e7edf5;background:transparent;text-align:left;cursor:pointer;color:#23344d;}.at-test-row:hover{background:#eef3fb;}.at-test-row.active{background:#fff;box-shadow:0 1px 3px rgba(21,45,78,.08);}.at-row-icon{display:grid;place-items:center;width:23px;height:23px;color:#6f56c7;background:#eeeafb;border-radius:4px;font-weight:700;}.at-row-copy{min-width:0;flex:1;}.at-row-copy strong,.at-row-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.at-row-copy strong{font-size:12px;line-height:1.45;}.at-row-copy small{margin-top:2px;font-size:11px;color:#7b8ca4;}.at-result-dot{width:7px;height:7px;margin-top:7px;border-radius:50%;background:#bec9d8;}.at-result-dot.exception{background:#d65a3a;}.at-result-dot.clean{background:#2e9d72;}
.at-workspace{padding:24px 28px 30px;min-width:0;}.at-workspace-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:18px;}.at-workspace-title h2{margin:0;color:#122949;font-size:22px;line-height:1.28;}.at-title-actions{display:flex;gap:8px;}.at-purpose{display:grid;grid-template-columns:1fr 1.6fr 1.6fr;border-top:1px solid #dce4ef;border-bottom:1px solid #dce4ef;margin-bottom:22px;}.at-purpose>div{padding:12px 16px;border-right:1px solid #dce4ef;}.at-purpose>div:first-child{padding-left:0;}.at-purpose>div:last-child{border-right:0;}.at-purpose span,.at-section-head span,.at-closeout span{display:block;color:#667893;font-size:11px;font-weight:800;letter-spacing:.8px;margin-bottom:5px;}.at-purpose p{margin:0;color:#53647c;font-size:12px;line-height:1.55;}
.at-section,.at-evidence-section{padding:20px 0;border-bottom:1px solid #dce4ef;}.at-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;}.at-section-head h3{margin:0;color:#1a3152;font-size:16px;}.at-section-head small{max-width:290px;color:#7b899b;font-size:12px;line-height:1.5;text-align:right;}.at-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}.at-field{display:block;min-width:0;}.at-field.wide{grid-column:1/-1;}.at-field>span{display:block;margin-bottom:6px;color:#445875;font-size:12px;font-weight:700;}.at-field input,.at-field select,.at-field textarea{box-sizing:border-box;width:100%;border:1px solid #cfd9e7;border-radius:5px;background:#fff;color:#1f324e;font:inherit;font-size:13px;padding:9px 10px;outline:none;resize:vertical;}.at-field input:focus,.at-field select:focus,.at-field textarea:focus{border-color:#396be0;box-shadow:0 0 0 3px rgba(57,107,224,.11);}
.at-steps{border-top:1px solid #e2e8f1;}.at-step{display:grid;grid-template-columns:28px minmax(0,1fr) 124px;gap:10px;padding:11px 0;border-bottom:1px solid #e2e8f1;align-items:start;}.at-step>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#edf2fa;color:#5372a1;font-size:11px;font-weight:800;}.at-step strong{display:block;font-size:13px;line-height:1.55;color:#2a3e5b;}.at-step textarea{box-sizing:border-box;width:100%;margin-top:5px;padding:6px 8px;border:1px solid #d3ddea;border-radius:4px;resize:vertical;font:inherit;font-size:12px;color:#425773;}.at-step select{width:100%;border:1px solid #d3ddea;border-radius:4px;background:#fff;padding:7px;font-size:12px;color:#344c6e;}
.at-evidence-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:28px;}.at-materials{margin-top:14px;border-top:1px solid #e2e8f1;padding-top:12px;}.at-materials>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;}.at-materials strong{font-size:12px;color:#435875;}.at-materials button{border:0;background:none;color:#2d62cf;font-size:12px;cursor:pointer;padding:3px 0;}.at-evidence-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}.at-evidence-options>p{grid-column:1/-1;margin:4px 0;color:#8290a3;font-size:12px;line-height:1.5;}.at-material-option{display:flex;align-items:center;gap:6px;min-width:0;padding:5px 6px;border:1px solid #e0e7f0;border-radius:4px;background:#fbfcfe;cursor:pointer;}.at-material-option input{margin:0;}.at-material-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;color:#52647d;font-size:12px;}.at-material-option small{color:#8896a8;font-size:10px;white-space:nowrap;}.at-conclusion{padding-left:22px;border-left:1px solid #dce4ef;}
.at-closeout{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px;}.at-closeout strong{display:block;color:#203958;font-size:15px;}.at-closeout p{margin:5px 0 0;color:#76869c;font-size:12px;}.at-closeout-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;}.btn.btn-warning{background:#c77922;color:#fff;border-color:#c77922;}.btn.btn-warning:disabled{opacity:.48;cursor:not-allowed;}.at-empty-workspace{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;max-width:620px;padding:70px 58px;}.at-empty-mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid #c9d8f1;background:#edf3ff;border-radius:6px;color:#315fc2;font-size:24px;}.at-empty-workspace>span{margin-top:18px;color:#3768d5;font-weight:800;font-size:12px;letter-spacing:1px;}.at-empty-workspace h2{margin:7px 0;color:#172d4b;font-size:23px;}.at-empty-workspace p{max-width:500px;margin:0 0 20px;color:#64758c;line-height:1.7;font-size:14px;}
html[data-theme="dark"] .at-shell{color:#d8e1ee;}html[data-theme="dark"] .at-layout{background:#101b2b;border-color:#314158;}html[data-theme="dark"] .at-sidebar{background:#131f31;border-color:#314158;}html[data-theme="dark"] .at-topline,html[data-theme="dark"] .at-purpose,html[data-theme="dark"] .at-section,html[data-theme="dark"] .at-evidence-section,html[data-theme="dark"] .at-step{border-color:#314158;}html[data-theme="dark"] .at-topline h2,html[data-theme="dark"] .at-workspace-title h2,html[data-theme="dark"] .at-section-head h3,html[data-theme="dark"] .at-closeout strong,html[data-theme="dark"] .at-empty-workspace h2{color:#e6edf7;}html[data-theme="dark"] .at-type-item.active,html[data-theme="dark"] .at-test-row.active{background:#1b2b43;}html[data-theme="dark"] .at-test-row{border-color:#29394f;color:#d8e1ee;}html[data-theme="dark"] .at-field input,html[data-theme="dark"] .at-field select,html[data-theme="dark"] .at-field textarea,html[data-theme="dark"] .at-step textarea,html[data-theme="dark"] .at-step select{background:#172235;color:#d8e1ee;border-color:#40526c;}html[data-theme="dark"] .at-material-option{background:#172235;border-color:#314158;}html[data-theme="dark"] .at-conclusion{border-color:#314158;}
@media(max-width:1100px){.at-topline{flex-direction:column;}.at-stats{border-left:0;border-top:1px solid #dce4ef;padding-top:12px;}.at-layout{grid-template-columns:220px minmax(0,1fr);}.at-workspace{padding:20px;}.at-purpose{grid-template-columns:1fr;}.at-purpose>div{padding:10px 0;border-right:0;border-bottom:1px solid #e2e8f1;}.at-evidence-grid{grid-template-columns:1fr;}.at-conclusion{padding:18px 0 0;border-left:0;border-top:1px solid #dce4ef;}}
@media(max-width:760px){.at-layout{grid-template-columns:1fr;}.at-sidebar{border-right:0;border-bottom:1px solid #dce4ef;}.at-type-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;}.at-type-nav .at-side-head{grid-column:1/-1;}.at-type-item{padding:7px 5px;}.at-test-list{max-height:260px;overflow:auto;}.at-form-grid,.at-evidence-options{grid-template-columns:1fr;}.at-workspace-title,.at-section-head,.at-closeout{flex-direction:column;}.at-section-head small{text-align:left;}.at-closeout-actions{justify-content:flex-start;}.at-step{grid-template-columns:24px minmax(0,1fr);}.at-step select{grid-column:2;}.at-stats{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;}.at-stats div{padding:5px;}}

.at-source-task{margin:7px 0 0;color:#61758f;font-size:12px;}
.wf-task-test-box{padding:11px 12px;border:1px solid #d6e0ef;border-radius:6px;background:#f8fbff;}
.wf-task-test-box p{margin:0 0 9px;color:#5d708a;font-size:.78rem;line-height:1.55;}

/* ====== Worktop redesign: project context + user area in one header ====== */
.project-toolbar {
  grid-column: 2;
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 12px 32px;
  color: #172033;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.9)), rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(213,224,239,.92);
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 10px 26px rgba(15,23,42,.04);
  backdrop-filter: blur(18px);
}
.project-bar-inner {
  display: grid;
  grid-template-columns: minmax(170px,.72fr) minmax(320px,1.25fr) auto minmax(260px,auto);
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1460px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
  font-size: .8rem;
}
.worktop-brand { display:flex; flex-direction:column; gap:2px; min-width:0; }
.worktop-kicker { color:#2563eb; font-size:.64rem; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.worktop-brand strong { color:#0f172a; font-size:.92rem; font-weight:800; letter-spacing:.02em; }
.project-context {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:7px 9px;
  border:1px solid #e2eaf5;
  border-radius:12px;
  background:rgba(248,250,252,.82);
}
.project-switch-trigger {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:310px;
  min-height:46px;
  padding:7px 10px 7px 12px;
  border:1px solid #d7e0ec;
  border-radius:9px;
  background:#fff;
  color:#172033;
  text-align:left;
  cursor:pointer;
}
.project-switch-trigger:hover,.project-switch-trigger[aria-expanded="true"] { border-color:#8eaae2; box-shadow:0 0 0 3px rgba(49,95,214,.08); }
.project-switch-trigger span,.project-switch-trigger strong,.project-switch-trigger small { display:block; min-width:0; }
.project-switch-trigger span { overflow:hidden; flex:1; }
.project-switch-trigger strong { overflow:hidden; font-size:.84rem; text-overflow:ellipsis; white-space:nowrap; }
.project-switch-trigger small { overflow:hidden; margin-top:3px; color:#6d7c91; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.project-switch-trigger em { flex:0 0 auto; padding:4px 7px; border-radius:5px; background:#eef4ff; color:#315fd6; font-size:.68rem; font-style:normal; font-weight:750; }
.project-switch-panel {
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:100;
  width:min(520px,calc(100vw - 36px));
  overflow:hidden;
  border:1px solid #cfdbea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,.16);
}
.project-switch-panel[hidden] { display:none; }
.project-switch-head { display:flex; justify-content:space-between; gap:16px; padding:15px 16px; border-bottom:1px solid #e5ebf2; background:#f8fafc; }
.project-switch-head strong,.project-switch-head span { display:block; }
.project-switch-head strong { color:#17243a; font-size:.9rem; }
.project-switch-head span { margin-top:3px; color:#6b7a90; font-size:.72rem; }
.project-switch-head>button { align-self:flex-start; border:0; background:transparent; color:#607087; font-size:.72rem; cursor:pointer; }
.project-switch-search { display:grid; gap:6px; padding:10px 12px; border-bottom:1px solid #edf2f7; background:#fff; color:#334155; font-size:.72rem; font-weight:800; }
.project-switch-search input { width:100%; min-height:38px; padding:8px 10px; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; color:#172033; font:inherit; font-size:.78rem; font-weight:600; }
.project-switch-search input:focus { border-color:#60a5fa; background:#fff; outline:0; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.project-switch-list { max-height:360px; overflow:auto; padding:8px; }
.project-switch-option { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; width:100%; min-height:78px; padding:11px; border:1px solid transparent; border-bottom-color:#edf1f6; background:#fff; color:inherit; text-align:left; cursor:pointer; }
.project-switch-option:hover { border-color:#c8d7ee; background:#f8fbff; }
.project-switch-option.is-current { border-color:#a9c0eb; background:#f1f6ff; }
.project-switch-option span,.project-switch-option strong,.project-switch-option small { display:block; min-width:0; }
.project-switch-option strong { overflow:hidden; color:#21334f; font-size:.84rem; text-overflow:ellipsis; white-space:nowrap; }
.project-switch-option small { margin-top:4px; color:#718096; font-size:.7rem; }
.project-switch-option .project-switch-next { display:block; overflow:hidden; margin-top:5px; color:#334155; font-size:.72rem; font-weight:800; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.project-switch-option em { color:#536987; font-size:.68rem; font-style:normal; font-weight:700; white-space:nowrap; }
.project-switch-empty { padding:22px 16px; }
.project-switch-empty strong,.project-switch-empty span { display:block; }
.project-switch-empty strong { color:#26364f; font-size:.86rem; }
.project-switch-empty span { margin-top:5px; color:#718096; font-size:.74rem; line-height:1.55; }
.project-switch-footer { display:flex; justify-content:flex-end; gap:8px; padding:11px 12px; border-top:1px solid #e5ebf2; background:#f8fafc; }
.pt-plan-pending { margin:10px 16px 14px; border:1px solid #e1d2b5; border-radius:12px; background:#fffaf1; overflow:hidden; }
.pt-plan-pending>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; cursor:pointer; list-style:none; }
.pt-plan-pending>summary::-webkit-details-marker { display:none; }
.pt-plan-pending[open]>summary { border-bottom:1px solid #eadfc9; }
.pt-plan-pending-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 14px; border-bottom:1px solid #eadfc9; }
.pt-plan-pending-head strong,.pt-plan-pending-head span { display:block; }
.pt-plan-pending-head strong,.pt-plan-pending>summary strong { color:#5d4522; font-size:.86rem; }
.pt-plan-pending-head span,.pt-plan-pending>summary span { display:block; margin-top:3px; color:#806b49; font-size:.72rem; }
.pt-plan-pending-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.pt-plan-pending-list article { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-height:68px; padding:11px 14px; border-right:1px solid #eee3cf; border-bottom:1px solid #eee3cf; background:#fff; }
.pt-plan-pending-list article span,.pt-plan-pending-list article strong,.pt-plan-pending-list article small { display:block; }
.pt-plan-pending-list article span { color:#9a670e; font-size:.66rem; font-weight:750; }
.pt-plan-pending-list article strong { margin-top:3px; color:#27364b; font-size:.82rem; }
.pt-plan-pending-list article small { margin-top:3px; color:#718096; font-size:.7rem; }
.pt-plan-pending-list article em { color:#8a5a18; font-size:.68rem; font-style:normal; font-weight:700; text-align:right; }
.ap-row-state-hint { display:inline-flex; align-items:center; min-height:28px; padding:3px 7px; border:1px solid #ead9b9; border-radius:5px; background:#fff8e8; color:#8a5a18; font-size:.68rem; font-weight:700; white-space:nowrap; }
html[data-theme="dark"] .pt-plan-pending,html[data-theme="dark"] .pt-plan-pending-list article { background:#2b261b; border-color:#57472f; }
html[data-theme="dark"] .pt-plan-pending-head { border-color:#57472f; }
html[data-theme="dark"] .pt-plan-pending-head strong,html[data-theme="dark"] .pt-plan-pending>summary strong,html[data-theme="dark"] .pt-plan-pending-list article strong { color:#f1e4c7; }
@media(max-width:760px){.pt-plan-pending-head,.pt-plan-pending>summary{align-items:stretch;flex-direction:column}.pt-plan-pending-list{grid-template-columns:1fr}.pt-plan-pending-list article{border-right:0}}
.project-label { flex:0 0 auto; color:#64748b; font-size:.72rem; font-weight:750; letter-spacing:.02em; white-space:nowrap; }
.project-toolbar select {
  min-width:190px;
  max-width:360px;
  height:34px;
  padding:0 36px 0 12px;
  border:1px solid #d7e0ec;
  border-radius:9px;
  background:#fff;
  color:#172033;
  font-size:.8rem;
  font-weight:650;
  box-shadow:inset 0 1px 0 rgba(15,23,42,.02);
}
#project-entity-name {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  max-width:260px;
  padding:0 10px;
  overflow:hidden;
  border-radius:999px;
  background:#eef6ff;
  color:#31567d;
  font-size:.72rem;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#project-entity-name:empty { display:none; }
#project-entity-name[hidden] { display:none; }
.project-archive-state {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border:1px solid #b8d8ca;
  border-radius:6px;
  background:#edf8f3;
  color:#166534;
  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
}
.project-archive-state[hidden] { display:none; }
html[data-theme="dark"] .project-archive-state { background:#123127; border-color:#285b47; color:#9de2c3; }
.project-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; white-space:nowrap; }
.project-toolbar .btn { min-height:34px; padding:0 12px; border-radius:9px; font-size:.74rem; }
.project-toolbar .btn-primary { border-color:transparent; background:#2563eb; color:#fff; box-shadow:0 6px 14px rgba(37,99,235,.16); }
.project-toolbar .btn-danger { border-color:#fecaca; background:#fff; color:#dc2626; box-shadow:none; }
.project-toolbar .btn-danger:hover { background:#fef2f2; }
.user-info-bar {
  position: static;
  z-index: auto;
  justify-self: end;
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
  padding:7px 8px 7px 10px;
  border:1px solid #e2eaf5;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
  transform:none;
  backdrop-filter:none;
}
.user-info-bar:hover { box-shadow:0 8px 18px rgba(15,23,42,.06); transform:none; }
.user-avatar {
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow:0 6px 14px rgba(37,99,235,.18);
}
.user-info-content { min-width:82px; }
.user-info-name { color:#172033; font-size:.78rem; font-weight:800; }
.user-info-role { color:#64748b; font-size:.66rem; }
.user-logout-btn { min-height:30px; padding:0 10px; border-radius:8px; background:#f8fafc; color:#64748b; }
.breadcrumb {
  max-width:1460px;
  min-height:30px;
  padding:10px 32px 0;
  color:#7b8aa0;
  font-size:.74rem;
}
.breadcrumb .bc-link { color:#64748b; }
.breadcrumb .bc-current { color:#172033; font-weight:750; }
.main-content { max-width:1460px; padding-top:14px; }
html[data-theme="dark"] .project-toolbar { background:rgba(15,23,42,.92); border-color:#26344a; color:#d8e1ee; box-shadow:none; }
html[data-theme="dark"] .worktop-brand strong,
html[data-theme="dark"] .breadcrumb .bc-current,
html[data-theme="dark"] .user-info-name { color:#f1f5f9; }
html[data-theme="dark"] .project-context,
html[data-theme="dark"] .user-info-bar,
html[data-theme="dark"] .project-toolbar select,
html[data-theme="dark"] .user-logout-btn { background:#172235; border-color:#314158; color:#d8e1ee; }
html[data-theme="dark"] .project-switch-trigger,html[data-theme="dark"] .project-switch-panel,html[data-theme="dark"] .project-switch-option,html[data-theme="dark"] .project-switch-search { background:#172235; border-color:#314158; color:#d8e1ee; }
html[data-theme="dark"] .project-switch-head,html[data-theme="dark"] .project-switch-footer { background:#132033; border-color:#314158; }
html[data-theme="dark"] .project-switch-search input { background:#101a2b; border-color:#314158; color:#e5edf8; }
html[data-theme="dark"] .project-switch-trigger strong,html[data-theme="dark"] .project-switch-head strong,html[data-theme="dark"] .project-switch-option strong { color:#f1f5f9; }
html[data-theme="dark"] #project-entity-name { background:#132b3d; color:#9dd6ef; }
html[data-theme="dark"] .project-label,
html[data-theme="dark"] .user-info-role,
html[data-theme="dark"] .breadcrumb .bc-link { color:#9fb0c7; }
@media (max-width:1400px) {
  .project-bar-inner { grid-template-columns:minmax(360px,1fr) auto minmax(220px,auto); gap:12px; }
  .worktop-brand { display:none; }
  /* Reserve a second row for an archived project's status. The sidebar
     reduces the usable toolbar width, so keeping this notice inline makes it
     overflow the project context and cover the controls that follow. */
  .project-context {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-areas:
      "label switch"
      ". archive";
    align-items:center;
    column-gap:10px;
    row-gap:6px;
  }
  .project-context .project-label { grid-area:label; }
  .project-context .project-switch-trigger {
    grid-area:switch;
    width:100%;
    min-width:0;
  }
  .project-context .project-archive-state {
    grid-area:archive;
    justify-self:start;
    max-width:100%;
    box-sizing:border-box;
  }
}
@media (max-width:1180px) {
  .project-bar-inner { grid-template-columns:minmax(160px,.8fr) minmax(280px,1fr) minmax(240px,auto); gap:12px; }
  .project-actions { grid-column:2; justify-content:flex-start; }
  .user-info-bar { grid-column:3; grid-row:1 / span 2; }
}
@media (max-width:768px) {
  .project-toolbar {
    grid-column:1 / -1;
    position:sticky;
    top:48px;
    min-height:0;
    margin-top:48px;
    padding:10px 14px;
  }
  .project-bar-inner { grid-template-columns:1fr; gap:10px; max-width:none; }
  .worktop-brand { display:none; }
  .project-context { flex-wrap:wrap; align-items:stretch; }
  .project-switch-trigger { width:100%; min-width:0; }
  .project-toolbar select { flex:1 1 190px; min-width:0; max-width:none; }
  #project-entity-name { max-width:none; }
  .project-actions { grid-column:auto; justify-content:flex-start; flex-wrap:wrap; }
  .user-info-bar { grid-column:auto; grid-row:auto; justify-self:stretch; justify-content:space-between; }
  .main-content { padding:16px; padding-top:14px; }
  .breadcrumb { padding:10px 16px 0; }
}

/* ── Data Export Buttons ── */
.data-export-excel-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.data-export-excel-btn:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}
.data-export-excel-btn:active {
  transform: translateY(0);
}
.dash-export-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  margin-right: 8px;
}
.dash-export-btn:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.dash-export-btn:active {
  transform: translateY(0);
}

/* ====== AuditNotify — 到期预警角标 ====== */
.notify-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #dc2626;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.4);
  animation: notifyPulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}
@keyframes notifyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ====== 底稿管理 UI ====== */
.wpm-stats-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
  padding: 12px 16px; background: var(--card-bg); border-radius: 8px;
  border: 1px solid var(--border-color);
}
.wpm-stat { text-align: center; min-width: 70px; flex: 1; }
.wpm-stat-num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.wpm-stat-label { display: block; font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; }

/* Formal project execution chain */
.at-execution-chain{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 18px;border:1px solid #dce4ef;background:#f8fafc;}
.at-execution-chain>div{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;align-items:center;min-height:58px;padding:9px 12px;border-right:1px solid #dce4ef;}
.at-execution-chain>div:last-child{border-right:0;}
.at-execution-chain>div>span{grid-row:1/3;display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:#64748b;font-size:.68rem;font-weight:900;}
.at-execution-chain>div>small{color:#8492a6;font-size:.62rem;line-height:1.2;}
.at-execution-chain>div>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569;font-size:.72rem;line-height:1.35;}
.at-execution-chain>div.is-done>span{border-color:#2563eb;background:#2563eb;color:#fff;}
.at-execution-chain>div.is-done>strong{color:#17365f;}
.at-review-notice{display:flex;gap:10px;align-items:flex-start;margin:-4px 0 18px;padding:10px 12px;border-left:3px solid #2563eb;background:#eff6ff;color:#3d5879;font-size:.72rem;line-height:1.55;}
.at-review-notice strong{flex:0 0 auto;color:#1d4ed8;}
.at-review-notice.is-returned{border-color:#c26b21;background:#fff7ed;color:#7c4a1d;}
.at-review-notice.is-returned strong{color:#a45116;}
.at-scheme-drift-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-2px 0 16px;padding:13px 14px;border:1px solid #fed7aa;border-left:4px solid #f97316;border-radius:14px;background:#fff7ed;color:#7c2d12}
.at-scheme-drift-notice span{display:block;color:#c2410c;font-size:13px;font-weight:950;letter-spacing:.06em}
.at-scheme-drift-notice strong{display:block;margin-top:3px;color:#7c2d12;font-size:16px;line-height:1.35}
.at-scheme-drift-notice p{margin:4px 0 0;color:#9a3412;font-size:14px;line-height:1.55}
.wf-task-derived-value{padding:10px 11px;border:1px solid #dbe3ef;background:#f8fafc;color:#334155;font-size:.78rem;line-height:1.55;white-space:pre-wrap;}
.wf-task-derived-note{display:block;margin-top:5px;color:#718096;font-size:.68rem;line-height:1.45;}
.wpm-execution-link{margin-top:6px;color:#526987;font-size:.72rem;line-height:1.45;}
.wpm-status-help{margin:5px 0 0;color:#718096;font-size:.7rem;line-height:1.45;}
html[data-theme="dark"] .at-execution-chain{border-color:#314158;background:#131f31;}
html[data-theme="dark"] .at-execution-chain>div{border-color:#314158;}
html[data-theme="dark"] .at-execution-chain>div>span{border-color:#52647d;background:#172235;color:#b4c1d3;}
html[data-theme="dark"] .at-execution-chain>div.is-done>span{border-color:#4f7fea;background:#3566db;color:#fff;}
html[data-theme="dark"] .at-execution-chain>div.is-done>strong,html[data-theme="dark"] .wf-task-derived-value{color:#e2e8f0;}
html[data-theme="dark"] .wf-task-derived-value{border-color:#40526c;background:#172235;}
html[data-theme="dark"] .at-review-notice{background:#172a46;color:#b8c7dc;}
html[data-theme="dark"] .at-review-notice.is-returned{background:#362718;color:#e5c49c;}
html[data-theme="dark"] .at-scheme-drift-notice{background:#362718;border-color:#9a3412;color:#fed7aa}
html[data-theme="dark"] .at-scheme-drift-notice strong{color:#ffedd5}
html[data-theme="dark"] .at-scheme-drift-notice p{color:#fed7aa}
@media(max-width:900px){.at-execution-chain{grid-template-columns:repeat(2,minmax(0,1fr));}.at-execution-chain>div{border-bottom:1px solid #dce4ef;}.at-execution-chain>div:nth-child(2n){border-right:0;}.at-execution-chain>div:last-child{grid-column:1/-1;border-bottom:0;}}
@media(max-width:520px){.at-execution-chain{grid-template-columns:1fr;}.at-execution-chain>div,.at-execution-chain>div:nth-child(2n){border-right:0;border-bottom:1px solid #dce4ef;}.at-execution-chain>div:last-child{grid-column:auto;}.at-review-notice,.at-scheme-drift-notice{flex-direction:column;align-items:flex-start;gap:8px;}}

/* ===== Project execution evidence chain ===== */
.at-project-context{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;padding:22px 24px;border:1px solid #cfe0f7;border-radius:16px;background:linear-gradient(120deg,#f8fbff,#eef6ff 58%,#f0fdfa);box-shadow:0 10px 28px rgba(30,64,175,.07)}
.at-project-context>div:first-child{min-width:0}.at-project-context>div:first-child>span{color:#0f766e;font-size:.68rem;font-weight:900;letter-spacing:.12em}.at-project-context h2{margin:5px 0 4px;color:#0f172a;font-size:1.35rem}.at-project-context p{margin:0;color:#52637a;font-size:.8rem;line-height:1.65}
.at-project-context-metrics{display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:8px;flex:0 0 auto}.at-project-context-metrics span{padding:10px 12px;border:1px solid rgba(191,219,254,.9);border-radius:10px;background:rgba(255,255,255,.82);color:#64748b;font-size:.68rem;text-align:center}.at-project-context-metrics strong{display:block;margin-bottom:2px;color:#17365f;font-size:1.08rem}
.at-execution-guide{display:grid;grid-template-columns:minmax(320px,1fr) auto auto;align-items:center;gap:18px;margin:0 0 16px;padding:18px 20px;border:1px solid #dbe7f4;border-radius:14px;background:#fff}
.at-execution-guide>div:first-child span{display:block;color:#2563eb;font-size:13px;font-weight:900;letter-spacing:.06em}.at-execution-guide h3{margin:4px 0;color:#172033;font-size:21px;line-height:1.3}.at-execution-guide p{margin:0;color:#64748b;font-size:15px;line-height:1.6}
.at-execution-guide-kpis{display:grid;grid-template-columns:repeat(3,minmax(86px,1fr));gap:8px}.at-execution-guide-kpis span{padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#64748b;font-size:13px;text-align:center;white-space:nowrap}.at-execution-guide-kpis strong{display:block;color:#172033;font-size:21px;line-height:1.1}
.at-scheme-programs{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #dce4ef}.at-scheme-task{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 8px;width:100%;padding:10px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#334155;text-align:left;cursor:pointer}.at-scheme-task:hover{border-color:#bfdbfe;background:#eff6ff}.at-scheme-task.active{border-color:#93c5fd;background:#eaf3ff;box-shadow:inset 3px 0 #2563eb}.at-scheme-task strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem}.at-scheme-task small{grid-column:2;color:#73839a;font-size:.64rem;line-height:1.35}.at-scheme-task b{grid-column:3;grid-row:1/3;align-self:center;color:#1d4ed8;font-size:.65rem}.at-scheme-state{align-self:start;padding:3px 6px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:.58rem;font-weight:900}.at-view-plan{width:100%;margin-top:8px;padding:8px;border:1px solid #bfdbfe;border-radius:7px;background:#fff;color:#1d4ed8;font-size:.7rem;font-weight:800;cursor:pointer}
.at-scheme-group{display:grid;gap:6px;margin:6px 0 12px}.at-scheme-group>span{padding:0 8px;color:#64748b;font-size:13px;font-weight:850}.at-scheme-task.is-pending{border-left:3px solid #94a3b8}.at-scheme-task.is-in-progress{border-left:3px solid #2563eb}.at-scheme-task.is-completed{border-left:3px solid #059669}
.at-exec-command{margin:0 0 18px;border:1px solid #bfd3ee;border-radius:16px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.06);overflow:hidden}
.at-execution-chain{grid-template-columns:repeat(7,minmax(0,1fr))}.at-execution-chain>div{padding:9px 8px}.at-execution-chain>div>strong{font-size:13px}.at-execution-chain>div>small{font-size:12px}
.at-plan-passport{margin:0 0 18px;border:1px solid #dbe7f4;border-radius:14px;background:#fff;overflow:hidden}.at-passport-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #e2e8f0;background:#f8fbff}.at-passport-head span{display:block;color:#2563eb;font-size:13px;font-weight:900}.at-passport-head h3{margin:4px 0;color:#172033;font-size:20px}.at-passport-head p{margin:0;color:#64748b;font-size:14px;line-height:1.55}
.at-passport-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.at-passport-grid>div{min-width:0;padding:15px 18px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.at-passport-grid>div:nth-child(3n){border-right:0}.at-passport-grid>div:nth-last-child(-n+3){border-bottom:0}.at-passport-grid span{display:block;color:#64748b;font-size:13px;font-weight:800}.at-passport-grid strong{display:block;margin-top:5px;color:#172033;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.at-passport-grid small{display:block;margin-top:4px;color:#64748b;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.at-method-boundary{margin:0 0 18px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff;overflow:hidden}.at-method-boundary>summary{padding:12px 15px;color:#334155;font-size:14px;font-weight:850;cursor:pointer}.at-method-boundary .at-purpose{margin:0;border-bottom:0;background:#fff}.at-method-boundary .at-purpose>div:first-child{padding-left:16px}

/* Findings are source-led; manual entry is an exception path. */
.ff-layout-source-first{grid-template-columns:1fr}.ff-layout-source-first .ff-list-panel{min-width:0}.ff-manual-entry{border:1px solid #dbe3ef;border-radius:16px;background:#f8fafc}.ff-manual-entry>summary{display:grid;grid-template-columns:auto 1fr;column-gap:10px;padding:14px 16px;cursor:pointer;list-style:none}.ff-manual-entry>summary::-webkit-details-marker{display:none}.ff-manual-entry>summary span{grid-row:1/3;align-self:center;padding:5px 8px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:.65rem;font-weight:900}.ff-manual-entry>summary strong{color:#334155;font-size:.8rem}.ff-manual-entry>summary small{margin-top:3px;color:#73839a;font-size:.7rem}.ff-manual-entry .ff-create-panel{position:static;margin:0;border:0;border-top:1px solid #dbe3ef;border-radius:0 0 16px 16px;box-shadow:none}

/* Current-project internal control testing; full evaluation remains a standalone project type. */
.ic-project-testing{display:flex;flex-direction:column;gap:16px}.ic-project-testing-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border:1px solid #cfe0f7;border-radius:16px;background:linear-gradient(120deg,#fff,#f3f8ff 65%,#f0fdfa)}.ic-project-testing-head>div:first-child>span{color:#0f766e;font-size:.65rem;font-weight:900;letter-spacing:.12em}.ic-project-testing-head h3{margin:5px 0;color:#0f172a;font-size:1.35rem}.ic-project-testing-head p{max-width:720px;margin:0;color:#52637a;font-size:.8rem;line-height:1.65}.ic-project-testing-metrics{display:grid;grid-template-columns:repeat(4,minmax(76px,1fr));gap:8px}.ic-project-testing-metrics span{padding:9px 10px;border:1px solid #dbeafe;border-radius:10px;background:#fff;color:#64748b;font-size:.66rem;text-align:center}.ic-project-testing-metrics strong{display:block;color:#1e3a5f;font-size:1.08rem}.ic-project-testing-metrics .is-danger strong{color:#b91c1c}
.ic-mode-boundary{display:flex;align-items:flex-start;gap:14px;padding:12px 14px;border-left:4px solid #2563eb;border-radius:0 10px 10px 0;background:#eff6ff}.ic-mode-boundary strong{flex:0 0 auto;color:#1d4ed8;font-size:.76rem}.ic-mode-boundary span{color:#475569;font-size:.74rem;line-height:1.6}.ic-project-scope-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:16px 18px;border:1px solid #dce6f2;border-radius:13px;background:#fff}.ic-project-scope-summary>div>span{display:block;color:#2563eb;font-size:.65rem;font-weight:900}.ic-project-scope-summary>div>strong{display:block;margin-top:4px;color:#0f172a;font-size:.92rem}.ic-project-scope-summary p{margin:4px 0 0;color:#64748b;font-size:.72rem}.ic-project-control-list{border:1px solid #dce6f2;border-radius:14px;background:#fff;overflow:hidden}.ic-project-control-list .ic-assurance-head{margin:0;padding:16px 18px;border-bottom:1px solid #e2e8f0}.ic-project-control-list .ic-assurance-table-wrap{border:0;border-radius:0;box-shadow:none}
.ic-project-method-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ic-project-method-guide article{padding:16px;border:1px solid #dbe7f5;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}.ic-project-method-guide span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#e8f2ff;color:#1d4ed8;font-size:.76rem;font-weight:900}.ic-project-method-guide strong{display:block;margin-top:10px;color:#0f172a;font-size:.96rem}.ic-project-method-guide p{margin:6px 0 0;color:#52637a;font-size:.78rem;line-height:1.65}.ic-project-map-boundary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px;border:1px solid #b7d7c7;border-radius:14px;background:linear-gradient(120deg,#f7fffb,#fff)}.ic-project-map-boundary strong{display:block;color:#0f766e;font-size:.94rem}.ic-project-map-boundary p{margin:5px 0 0;color:#4f6277;font-size:.78rem;line-height:1.65}.ic-project-empty-guide{padding:16px 18px;border:1px dashed #bcd0ea;border-radius:14px;background:#f8fbff}.ic-project-empty-guide strong{display:block;color:#1e3a5f;font-size:.92rem}.ic-project-empty-guide p{margin:5px 0 0;color:#64748b;font-size:.78rem;line-height:1.6}
.ic-project-action-board{display:grid;grid-template-columns:minmax(0,.95fr) minmax(440px,1.25fr);gap:16px;padding:20px;border:1px solid #c8dbf6;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 16px 34px rgba(15,23,42,.06)}.ic-pab-copy span,.ic-ema-head span{display:block;color:#2563eb;font-size:.68rem;font-weight:900;letter-spacing:.13em}.ic-pab-copy h3{margin:6px 0 8px;color:#0f172a;font-size:1.32rem;letter-spacing:-.02em}.ic-pab-copy p{margin:0;color:#52637a;font-size:.86rem;line-height:1.7}.ic-pab-primary{margin-top:15px;padding:13px 18px;border:0;border-radius:12px;background:#2563eb;color:#fff;font-size:.9rem;font-weight:900;cursor:pointer;box-shadow:0 14px 28px rgba(37,99,235,.24)}.ic-pab-primary:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(37,99,235,.28)}.ic-project-action-board.is-danger .ic-pab-primary{background:#dc2626}.ic-project-action-board.is-warn .ic-pab-primary{background:#d97706}.ic-project-action-board.is-ok .ic-pab-primary{background:#059669}.ic-pab-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ic-pab-steps article{padding:14px;border:1px solid #e1e9f4;border-radius:14px;background:#fff}.ic-pab-steps strong{display:block;color:#10233f;font-size:.86rem}.ic-pab-steps span{display:block;margin-top:6px;color:#64748b;font-size:.76rem;line-height:1.5}.ic-pab-foot{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;padding-top:2px}.ic-pab-foot span{padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.7rem;font-weight:800}.ic-embedded-map-assist{border:1px solid #d7e5f5;border-radius:16px;background:#fff;overflow:hidden}.ic-ema-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.44fr);gap:18px;align-items:end;padding:18px 20px;border-bottom:1px solid #e6edf5;background:linear-gradient(120deg,#fff,#f7fbff)}.ic-ema-head h3{margin:5px 0;color:#0f172a;font-size:1.12rem}.ic-ema-head p{margin:0;color:#52637a;font-size:.8rem;line-height:1.65}.ic-ema-head label{display:grid;gap:6px}.ic-ema-head label span{letter-spacing:0;color:#64748b;font-size:.72rem}.ic-ema-head input{height:42px;border:1px solid #cbd9eb;border-radius:999px;padding:0 14px;color:#0f172a;font:inherit;font-size:.84rem;outline:none}.ic-ema-head input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.ic-ema-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 16px}.ic-ema-card{display:grid;gap:5px;min-height:96px;padding:13px;border:1px solid #dce6f2;border-radius:14px;background:#f8fafc;text-align:left;cursor:pointer}.ic-ema-card:hover{border-color:#93c5fd;background:#eff6ff}.ic-ema-card strong{color:#0f172a;font-size:.88rem}.ic-ema-card small{color:#64748b;font-size:.72rem;line-height:1.45}.ic-ema-card.is-build-built{border-color:#bcebd6;background:#fbfffd}.ic-ema-card.is-build-building{border-color:#f4d39b;background:#fffaf2}.ic-ema-empty{grid-column:1/-1;margin:0;padding:14px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center}.ic-ema-actions{display:flex;gap:8px;justify-content:flex-end;padding:0 16px 16px}.ic-project-execution-table td{vertical-align:top}.ic-test-status{display:inline-flex;margin:0 0 7px;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#475569;font-size:.68rem;font-weight:900}.ic-test-status.is-ok{background:#dcfce7;color:#166534}.ic-test-status.is-danger{background:#fee2e2;color:#991b1b}.ic-test-status.is-warn{background:#fef3c7;color:#92400e}.ic-test-status.is-active{background:#dbeafe;color:#1d4ed8}.ic-row-next{display:block;color:#1e3a8a;font-size:.78rem;line-height:1.45}

/* Workpapers are collected from execution, not recreated at archive stage. */
.wpm-purpose{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;padding:20px 22px;border:1px solid #cfe0f7;border-radius:15px;background:linear-gradient(120deg,#f8fbff,#f0fdfa)}.wpm-purpose>div:first-child>span{color:#0f766e;font-size:.65rem;font-weight:900;letter-spacing:.12em}.wpm-purpose h3{margin:5px 0;color:#0f172a;font-size:1.15rem}.wpm-purpose p{margin:0;color:#52637a;font-size:.78rem;line-height:1.65}.wpm-purpose>div:last-child{flex:0 0 auto;min-width:110px;padding:12px;border:1px solid #bfdbfe;border-radius:11px;background:#fff;text-align:center}.wpm-purpose>div:last-child strong{display:block;color:#1d4ed8;font-size:1.35rem}.wpm-purpose>div:last-child span{color:#64748b;font-size:.66rem}
.wpm-dossier-index{margin:0 0 16px;border:1px solid #cfe0f7;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 14px 34px rgba(15,23,42,.05);overflow:hidden}
.wpm-dossier-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f8fbff,#eef6ff)}
.wpm-dossier-head span{display:block;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.1em}.wpm-dossier-head h3{margin:5px 0;color:#172033;font-size:24px;line-height:1.25}.wpm-dossier-head p{margin:0;max-width:860px;color:#536579;font-size:15px;line-height:1.65}.wpm-dossier-head b{flex:0 0 auto;padding:8px 12px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:14px}
.wpm-dossier-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:14px;background:#fbfdff;border-bottom:1px solid #e2e8f0}
.wpm-source-card{display:flex;min-height:148px;flex-direction:column;align-items:flex-start;gap:7px;padding:14px;border:1px solid #dbe7f4;border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s}
.wpm-source-card:hover,.wpm-source-card.active{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 14px 26px rgba(37,99,235,.1)}
.wpm-source-card span{font-size:24px}.wpm-source-card strong{color:#172033;font-size:16px;line-height:1.3}.wpm-source-card small{color:#64748b;font-size:13px;line-height:1.45}.wpm-source-card em{margin-top:auto;color:#2563eb;font-size:13px;font-style:normal;font-weight:900}
.wpm-closeout-check{display:grid;grid-template-columns:minmax(280px,1fr) minmax(360px,1.1fr) auto;gap:14px;align-items:center;padding:16px;background:#fff}
.wpm-closeout-check>div:first-child span{display:block;color:#0f766e;font-size:13px;font-weight:950}.wpm-closeout-check>div:first-child strong{display:block;margin-top:4px;color:#172033;font-size:18px}.wpm-closeout-check>div:first-child p{margin:5px 0 0;color:#536579;font-size:14px;line-height:1.55}
.wpm-closeout-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.wpm-closeout-kpis span{padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;color:#64748b;font-size:13px;text-align:center}.wpm-closeout-kpis strong{display:block;color:#1d4ed8;font-size:20px;line-height:1.1}
.wpm-closeout-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.wpm-active-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid #e2e8f0;background:#f8fafc;color:#475569;font-size:14px;font-weight:800}
.wpm-active-filter button{border:0;background:transparent;color:#2563eb;font-size:14px;font-weight:900;cursor:pointer}
.wpm-package-desk{margin:0 0 16px;border:1px solid #bfd7ff;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f4f9ff);box-shadow:0 18px 42px rgba(37,99,235,.07);overflow:hidden}
.wpm-package-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid #dbeafe;background:linear-gradient(135deg,#eff6ff,#ffffff)}
.wpm-package-head span{display:block;color:#1d4ed8;font-size:13px;font-weight:950;letter-spacing:.12em}.wpm-package-head h3{margin:5px 0;color:#102033;font-size:26px;line-height:1.22}.wpm-package-head p{margin:0;max-width:980px;color:#475569;font-size:15px;line-height:1.7}.wpm-package-head b{flex:0 0 auto;padding:9px 13px;border-radius:999px;background:#2563eb;color:#fff;font-size:14px;box-shadow:0 10px 24px rgba(37,99,235,.2)}
.wpm-package-blockers{display:flex;gap:10px;align-items:flex-start;margin:14px 16px 0;padding:13px 15px;border:1px solid #fed7aa;border-radius:13px;background:#fff7ed;color:#9a3412;font-size:14px;line-height:1.6}.wpm-package-blockers strong{flex:0 0 auto}.wpm-package-blockers span{min-width:0}
.wpm-package-rail{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:16px}
.wpm-package-item{display:grid;grid-template-rows:auto minmax(150px,1fr) auto;gap:10px;min-height:245px;padding:14px;border:1px solid #e2e8f0;border-radius:15px;background:#fff}
.wpm-package-item i{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eff6ff;color:#2563eb;font-style:normal;font-size:12px;font-weight:950}.wpm-package-item strong{display:block;color:#0f172a;font-size:16px;line-height:1.32}.wpm-package-item p{margin:7px 0;color:#536579;font-size:13px;line-height:1.55}.wpm-package-item em{display:block;margin-top:8px;color:#2563eb;font-size:13px;font-style:normal;font-weight:900}.wpm-package-item .btn{align-self:end;width:100%}
.wpm-package-item.is-done{border-color:#bbf7d0;background:linear-gradient(180deg,#f0fdf4,#fff)}.wpm-package-item.is-done i{background:#dcfce7;color:#047857}.wpm-package-item.is-done em{color:#047857}.wpm-package-item.is-todo{border-color:#bfdbfe;box-shadow:inset 0 3px 0 #2563eb}.wpm-package-item.is-empty{background:#f8fafc}.wpm-package-item.is-empty i{background:#e2e8f0;color:#64748b}.wpm-package-item.is-empty em{color:#64748b}
.wpm-package-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-top:1px solid #e2e8f0;background:#fbfdff;color:#475569;font-size:14px;font-weight:850}
.rpg-content-boundary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:13px 15px;border:1px solid #bfdbfe;border-radius:11px;background:#f8fbff}.rpg-content-boundary>div>span{display:block;color:#2563eb;font-size:.62rem;font-weight:900;letter-spacing:.1em}.rpg-content-boundary strong{display:block;margin-top:3px;color:#0f172a;font-size:.82rem}.rpg-content-boundary p{margin:4px 0 0;color:#52637a;font-size:.7rem;line-height:1.55}

html[data-theme="dark"] .at-project-context,html[data-theme="dark"] .ic-project-testing-head,html[data-theme="dark"] .wpm-purpose{border-color:#314158;background:linear-gradient(120deg,#172235,#132b3d)}html[data-theme="dark"] .at-project-context h2,html[data-theme="dark"] .ic-project-testing-head h3,html[data-theme="dark"] .wpm-purpose h3,html[data-theme="dark"] .rpg-content-boundary strong{color:#eef4ff}html[data-theme="dark"] .at-scheme-task,html[data-theme="dark"] .ic-project-scope-summary,html[data-theme="dark"] .ic-project-control-list,html[data-theme="dark"] .ff-manual-entry,html[data-theme="dark"] .rpg-content-boundary,html[data-theme="dark"] .ic-project-method-guide article,html[data-theme="dark"] .ic-project-map-boundary,html[data-theme="dark"] .ic-project-empty-guide,html[data-theme="dark"] .ic-project-action-board,html[data-theme="dark"] .ic-pab-steps article,html[data-theme="dark"] .ic-embedded-map-assist,html[data-theme="dark"] .ic-ema-card{background:#172235;border-color:#314158;color:#d8e1ee}
html[data-theme="dark"] .ic-pab-copy h3,html[data-theme="dark"] .ic-pab-steps strong,html[data-theme="dark"] .ic-ema-head h3,html[data-theme="dark"] .ic-ema-card strong,html[data-theme="dark"] .ic-row-next{color:#eef4ff}
html[data-theme="dark"] .ic-pab-copy p,html[data-theme="dark"] .ic-pab-steps span,html[data-theme="dark"] .ic-ema-head p,html[data-theme="dark"] .ic-ema-card small{color:#9fb0c7}
html[data-theme="dark"] .ic-ema-head{background:#1b2940;border-color:#314158}html[data-theme="dark"] .ic-ema-head input{background:#101a2b;border-color:#314158;color:#e2e8f0}
html[data-theme="dark"] .wpm-dossier-index,html[data-theme="dark"] .wpm-dossier-head,html[data-theme="dark"] .wpm-dossier-grid,html[data-theme="dark"] .wpm-source-card,html[data-theme="dark"] .wpm-closeout-check,html[data-theme="dark"] .wpm-closeout-kpis span,html[data-theme="dark"] .wpm-active-filter,html[data-theme="dark"] .wpm-package-desk,html[data-theme="dark"] .wpm-package-head,html[data-theme="dark"] .wpm-package-item,html[data-theme="dark"] .wpm-package-footer{background:#172235;border-color:#314158;box-shadow:none}
html[data-theme="dark"] .wpm-dossier-head h3,html[data-theme="dark"] .wpm-source-card strong,html[data-theme="dark"] .wpm-closeout-check>div:first-child strong,html[data-theme="dark"] .wpm-package-head h3,html[data-theme="dark"] .wpm-package-item strong{color:#eef4ff}
html[data-theme="dark"] .wpm-dossier-head p,html[data-theme="dark"] .wpm-source-card small,html[data-theme="dark"] .wpm-closeout-check>div:first-child p,html[data-theme="dark"] .wpm-package-head p,html[data-theme="dark"] .wpm-package-item p{color:#9fb0c7}
@media(max-width:1280px){.wpm-package-rail{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.at-project-context,.ic-project-testing-head{align-items:flex-start;flex-direction:column}.at-project-context-metrics,.ic-project-testing-metrics{width:100%}.ic-project-action-board{grid-template-columns:1fr}.ic-ema-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.wpm-dossier-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wpm-closeout-check{grid-template-columns:1fr}.wpm-closeout-actions{justify-content:flex-start}.wpm-package-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.at-execution-chain{grid-template-columns:repeat(4,minmax(0,1fr))}.at-execution-chain>div:nth-child(4){border-right:0}.at-execution-chain>div:nth-child(-n+4){border-bottom:1px solid #dce4ef}.at-execution-chain>div:last-child{grid-column:auto}}
@media(max-width:760px){.at-project-context-metrics,.ic-project-testing-metrics,.ic-project-method-guide,.ic-pab-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.ic-project-scope-summary,.ic-project-map-boundary,.ic-ema-head{grid-template-columns:1fr}.ic-project-scope-summary .btn,.ic-project-map-boundary .btn,.ic-ema-actions .btn{width:100%}.ic-ema-cards{grid-template-columns:1fr}.ic-ema-actions{flex-direction:column}.wpm-purpose,.wpm-dossier-head,.wpm-active-filter,.wpm-package-head,.wpm-package-footer,.rpg-content-boundary{align-items:flex-start;flex-direction:column}.wpm-dossier-grid,.wpm-closeout-kpis,.wpm-package-rail{grid-template-columns:1fr}.wpm-closeout-actions .btn,.wpm-package-footer .btn{width:100%}.at-execution-chain{grid-template-columns:repeat(2,minmax(0,1fr))}.at-execution-chain>div:nth-child(4){border-right:1px solid #dce4ef}.at-execution-chain>div:nth-child(2n){border-right:0}.at-execution-chain>div{border-bottom:1px solid #dce4ef}.at-execution-chain>div:last-child{grid-column:1/-1;border-bottom:0}}
@media(max-width:560px){.ic-pab-steps{grid-template-columns:1fr}.ic-pab-foot{display:grid}.ic-project-execution-table{min-width:820px}}

html[data-theme="dark"] .at-execution-guide,html[data-theme="dark"] .at-plan-passport,html[data-theme="dark"] .at-method-boundary,html[data-theme="dark"] .at-exec-command{border-color:#314158;background:#172235}
html[data-theme="dark"] .at-execution-guide h3,html[data-theme="dark"] .at-passport-head h3,html[data-theme="dark"] .at-passport-grid strong{color:#eef4ff}
html[data-theme="dark"] .at-passport-head,html[data-theme="dark"] .at-method-boundary .at-purpose{background:#132033;border-color:#314158}
@media(max-width:1100px){.at-execution-guide{grid-template-columns:1fr;align-items:stretch}.at-execution-guide-kpis{width:100%}.at-passport-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.at-passport-grid>div:nth-child(3n){border-right:1px solid #e2e8f0}.at-passport-grid>div:nth-child(2n){border-right:0}.at-passport-grid>div:nth-last-child(-n+3){border-bottom:1px solid #e2e8f0}.at-passport-grid>div:nth-last-child(-n+2){border-bottom:0}}
@media(max-width:760px){.at-execution-guide-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.at-passport-head{align-items:stretch;flex-direction:column}.at-passport-grid{grid-template-columns:1fr}.at-passport-grid>div,.at-passport-grid>div:nth-child(2n),.at-passport-grid>div:nth-child(3n),.at-passport-grid>div:nth-last-child(-n+2){border-right:0;border-bottom:1px solid #e2e8f0}.at-passport-grid>div:last-child{border-bottom:0}}

.wpm-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.wpm-toolbar-left, .wpm-toolbar-right { display: flex; align-items: center; gap: 8px; }
.wpm-filter-sel {
  padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 6px;
  font-size: 0.82rem; background: var(--card-bg); color: var(--text-primary);
}
.wpm-search {
  padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 6px;
  font-size: 0.82rem; width: 260px; background: var(--card-bg); color: var(--text-primary);
}
.wpm-search:focus, .wpm-filter-sel:focus { outline: none; border-color: var(--accent); }

.wpm-list { display: flex; flex-direction: column; gap: 8px; }
.wpm-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--card-bg); border-radius: 8px;
  border: 1px solid var(--border-color); cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.wpm-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-color: var(--accent); }
.wpm-card-left { flex: 1; }
.wpm-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wpm-card-cat {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 0.7rem; font-weight: 600;
}
.wpm-card-index {
  font-size: 0.7rem; color: var(--text-muted); background: #f1f5f9;
  padding: 1px 6px; border-radius: 4px; font-family: monospace;
}
.wpm-card-type {
  margin-left: 6px;
  color: #0f766e;
  background: #ecfdf5;
  font-family: inherit;
  font-weight: 700;
}
.wpm-card-status {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #64748b;
}
.wpm-status-submitted { background: #eff6ff; color: #2563eb; }
.wpm-status-reviewed { background: #ecfdf5; color: #059669; }
.wpm-status-returned { background: #fff7ed; color: #ea580c; }
.wpm-status-archived { background: #f5f3ff; color: #7c3aed; }
.wpm-card-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.wpm-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.72rem; color: var(--text-secondary); }
.wpm-card-actions { display: flex; gap: 4px; flex-shrink: 0; margin-left: 12px; }
.wpm-material-preview{margin:7px 0 8px;padding:8px 10px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff;color:#475569;font-size:.72rem;line-height:1.45;}
.wpm-material-summary{margin-bottom:5px;color:#1d4ed8;font-weight:800;}
.wpm-material-preview ul{margin:0;padding-left:17px;display:grid;gap:3px;}
.wpm-material-preview li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wpm-review-notice{margin:0 0 16px;padding:12px 14px;border:1px solid #bfdbfe;border-left:3px solid #2563eb;border-radius:8px;background:#f8fbff;color:#475569;}
.wpm-review-notice strong{display:block;color:#174ea6;font-size:.82rem;margin-bottom:5px;}
.wpm-review-notice p{margin:0;color:#475569;font-size:.74rem;line-height:1.55;}
.wpm-review-notice ul{margin:7px 0 0;padding-left:18px;display:grid;gap:3px;color:#64748b;font-size:.7rem;line-height:1.45;}
.wpm-tag {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: #eef2ff; color: #4f46e5; font-size: 0.65rem;
}

.wpm-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  background: var(--card-bg); border-radius: 8px; border: 1px dashed var(--border-color);
}

/* 编辑器遮罩 */
.wpm-editor-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.wpm-editor-panel {
  background: var(--card-bg); border-radius: 12px; width: 680px; max-width: 95vw;
  max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.wpm-editor-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border-color);
}
.wpm-editor-header h3 { margin: 0; font-size: 1.05rem; }
.wpm-editor-body { padding: 20px; overflow-y: auto; flex: 1; }
.wpm-readonly-notice { display:grid; gap:4px; margin-bottom:16px; padding:12px 14px; border:1px solid #bfdbfe; border-left:4px solid #2563eb; border-radius:8px; background:#eff6ff; }
.wpm-readonly-notice strong { color:#1e3a8a; font-size:.84rem; }
.wpm-readonly-notice span { color:#52677e; font-size:.74rem; line-height:1.5; }
.wpm-editor-overlay.is-readonly .wpm-input:disabled { background:#f1f5f9; color:#475569; cursor:default; opacity:1; }
.wpm-field { margin-bottom: 14px; }
.wpm-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.wpm-input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px;
  font-size: 0.85rem; background: var(--bg-page); color: var(--text-primary);
  box-sizing: border-box;
}
.wpm-input:focus { outline: none; border-color: var(--accent); background: var(--card-bg); }
.wpm-textarea { min-height: 180px; resize: vertical; font-family: inherit; line-height: 1.6; }
.wpm-file-input { margin-top: 6px; font-size: 0.8rem; }
.wpm-att-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid #f1f5f9; font-size: 0.82rem;
}
.wpm-att-item>span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpm-att-reference-label { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; background: #eef6ff; color: #2563eb; font-size: .68rem; font-weight: 800; }
.wpm-editor-footer {
  padding: 14px 20px; border-top: 1px solid var(--border-color);
  display: flex; gap: 8px;
}

/* ====== 风险模型中心 ====== */
.rm-page { display:flex; flex-direction:column; gap:16px; }
.rm-model-entry-note { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 16px; border:1px solid #bfdbfe; border-left:4px solid #2563eb; border-radius:9px; background:#f8fbff; }
.rm-model-entry-note strong,.rm-model-entry-note span { display:block; }
.rm-model-entry-note strong { color:#172033; font-size:.9rem; }
.rm-model-entry-note span { margin-top:4px; color:#52677e; font-size:.76rem; line-height:1.55; }
.rm-model-entry-note em { max-width:340px; color:#1d4ed8; font-size:.72rem; font-style:normal; font-weight:750; line-height:1.5; text-align:right; }
.rm-stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.rm-stat { padding:16px; border:1px solid var(--border-color); border-radius:8px; background:var(--card-bg); }
.rm-stat span { display:block; color:var(--text-secondary); font-size:.76rem; }
.rm-stat strong { display:block; margin-top:5px; color:var(--text-primary); font-size:1.55rem; }
.rm-stat small { display:block; margin-top:4px; color:var(--text-muted); font-size:.72rem; }
.rm-layout { display:grid; grid-template-columns:320px minmax(0, 1fr); gap:16px; align-items:start; }
.rm-sidebar, .rm-main, .rm-section { border:1px solid var(--border-color); border-radius:8px; background:var(--card-bg); }
.rm-sidebar { overflow:hidden; }
.rm-sidebar-head { display:flex; justify-content:space-between; align-items:flex-end; gap:8px; padding:14px 16px; border-bottom:1px solid var(--border-color); }
.rm-sidebar-head strong { color:var(--text-primary); font-size:.94rem; }
.rm-sidebar-head span { color:var(--text-muted); font-size:.7rem; }
.rm-model-list { display:flex; flex-direction:column; gap:8px; padding:10px; max-height:720px; overflow:auto; }
.rm-model-card { width:100%; text-align:left; padding:12px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); cursor:pointer; transition:border-color .15s, box-shadow .15s, background .15s; }
.rm-model-card:hover, .rm-model-card.active { border-color:var(--accent); background:#eff6ff; box-shadow:0 2px 10px rgba(59,109,240,.12); }
.rm-model-card div:first-child { display:flex; justify-content:space-between; gap:8px; align-items:flex-start; }
.rm-model-card strong { color:var(--text-primary); font-size:.86rem; line-height:1.35; }
.rm-model-card span { color:var(--text-secondary); font-size:.68rem; white-space:nowrap; }
.rm-model-card p { margin:7px 0 9px; color:var(--text-secondary); font-size:.73rem; line-height:1.5; }
.rm-model-card .rm-model-required { display:block; margin:-2px 0 9px; color:#334155; font-size:.66rem; line-height:1.45; white-space:normal; }
.rm-model-meta { display:flex; justify-content:space-between; align-items:center; }
.rm-model-meta b, .rm-model-meta em { padding:2px 7px; border-radius:999px; font-size:.64rem; font-style:normal; font-weight:650; }
.rm-source-builtin { background:#e0f2fe; color:#0369a1; }
.rm-source-custom { background:#ecfdf5; color:#047857; }
.rm-model-meta em { background:#f1f5f9; color:#64748b; }
.rm-main { padding:0; overflow:hidden; }
.rm-detail { display:flex; flex-direction:column; gap:14px; padding:16px; }
.rm-detail-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding-bottom:14px; border-bottom:1px solid var(--border-color); }
.rm-kicker { color:var(--accent); font-size:.7rem; font-weight:750; letter-spacing:.04em; }
.rm-detail h3 { margin:4px 0 7px; color:var(--text-primary); font-size:1.25rem; }
.rm-detail-head p { margin:0; max-width:760px; color:var(--text-secondary); font-size:.82rem; line-height:1.65; }
.rm-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.rm-section { padding:16px; }
.rm-section h4 { margin:0 0 12px; color:var(--text-primary); font-size:.94rem; }
.rm-section-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:12px; }
.rm-section-head h4 { margin:0; }
.rm-guide { background:#f8fbff; }
.rm-guide-grid { display:grid; grid-template-columns:1.1fr 1fr 1.1fr; gap:14px; }
.rm-guide-grid strong { display:block; margin-bottom:6px; color:var(--text-primary); font-size:.82rem; }
.rm-guide-grid p, .rm-guide-grid li { color:var(--text-secondary); font-size:.78rem; line-height:1.65; }
.rm-guide-grid p { margin:0; }
.rm-guide-grid ul { margin:0; padding-left:18px; }
.rm-data-run .rm-section-head p { margin:4px 0 0; color:var(--text-secondary); font-size:.76rem; line-height:1.55; }
.rm-required-fields { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid #bfdbfe; border-radius:8px; background:#f4f8ff; }
.rm-required-fields>strong { flex:0 0 auto; color:#1e3a8a; font-size:.74rem; }
.rm-required-fields>div { display:flex; gap:6px; flex-wrap:wrap; }
.rm-required-fields span { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:5px; background:#dbeafe; color:#1d4ed8; font-size:.68rem; font-weight:800; }
.rm-required-fields small { margin-left:auto; color:#64748b; font-size:.66rem; line-height:1.4; }
.rm-optional-fields { margin-top:8px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-page); }
.rm-optional-fields>summary { padding:9px 12px; color:#475569; font-size:.7rem; font-weight:800; cursor:pointer; }
.rm-optional-fields .rm-field-template { padding:0 10px 10px; }
.rm-field-template { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.rm-field-card { padding:11px 12px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-page); min-width:0; }
.rm-field-card.required { border-color:#bfdbfe; background:#eff6ff; }
.rm-field-card strong { display:block; color:var(--text-primary); font-size:.8rem; }
.rm-field-card span { display:inline-flex; margin-top:6px; padding:2px 7px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:.65rem; font-weight:750; }
.rm-field-card.required span { background:#dbeafe; color:#1d4ed8; }
.rm-field-card p { margin:7px 0 0; color:var(--text-muted); font-size:.7rem; line-height:1.45; word-break:break-word; }
.rm-field-card small { display:block; margin-top:7px; color:#52677e; font-size:.64rem; line-height:1.45; }
.rm-integration-blueprint { padding:0; overflow:hidden; }
.rm-integration-blueprint>summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 14px; cursor:pointer; list-style:none; }
.rm-integration-blueprint>summary::-webkit-details-marker { display:none; }
.rm-integration-blueprint>summary h4 { margin:0; color:var(--text-primary); font-size:.86rem; }
.rm-integration-blueprint>summary p { margin:4px 0 0; color:var(--text-secondary); font-size:.72rem; line-height:1.5; }
.rm-integration-blueprint>summary span { flex:0 0 auto; color:#2563eb; font-size:.68rem; font-weight:800; }
.rm-blueprint-body { display:grid; gap:12px; padding:0 14px 14px; border-top:1px solid var(--border-color); }
.rm-blueprint-grain { padding:10px 12px; border-left:3px solid #2563eb; background:#f6f9ff; }
.rm-blueprint-grain strong,.rm-blueprint-grain p { display:block; }
.rm-blueprint-grain strong { color:#24364d; font-size:.72rem; }
.rm-blueprint-grain p { margin:4px 0 0; color:#64748b; font-size:.7rem; line-height:1.55; }
.rm-blueprint-systems { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid var(--border-color); }
.rm-blueprint-systems article { min-width:0; padding:10px; border-right:1px solid var(--border-color); background:#fff; }
.rm-blueprint-systems article:last-child { border-right:0; }
.rm-blueprint-systems strong,.rm-blueprint-systems p,.rm-blueprint-systems small,.rm-blueprint-systems span { display:block; }
.rm-blueprint-systems strong { color:#172033; font-size:.72rem; }
.rm-blueprint-systems p { margin:5px 0; color:#475569; font-size:.66rem; line-height:1.45; }
.rm-blueprint-systems small { color:#718096; font-size:.6rem; line-height:1.4; }
.rm-blueprint-systems span { margin-top:6px; color:#52677e; font-size:.63rem; line-height:1.45; }
.rm-blueprint-lists { display:grid; grid-template-columns:1fr 1.4fr; gap:10px; }
.rm-blueprint-lists>div { padding:10px 12px; border:1px solid var(--border-color); background:var(--bg-page); }
.rm-blueprint-lists strong,.rm-blueprint-lists p { display:block; }
.rm-blueprint-lists strong { color:#334155; font-size:.7rem; }
.rm-blueprint-lists p { margin:5px 0 0; color:#64748b; font-size:.68rem; line-height:1.5; }
.rm-blueprint-steps { display:grid; gap:6px; padding:10px 12px; border:1px solid var(--border-color); background:#fbfcfe; }
.rm-blueprint-steps>strong { color:#334155; font-size:.7rem; }
.rm-blueprint-steps span { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:start; gap:8px; color:#64748b; font-size:.67rem; line-height:1.5; }
.rm-blueprint-steps b { display:grid; place-items:center; width:18px; height:18px; border-radius:4px; background:#e8f0ff; color:#1d4ed8; font-size:.58rem; }
.rm-upload-line { display:grid; grid-template-columns:minmax(260px, 420px) minmax(0, 1fr); gap:12px; align-items:stretch; margin-top:12px; }
.rm-upload-box { display:flex !important; flex-direction:column; justify-content:center; gap:5px !important; min-height:78px; padding:14px 16px; border:1px dashed #93c5fd; border-radius:8px; background:#eff6ff; cursor:pointer; }
.rm-upload-box strong { color:#1d4ed8; font-size:.88rem; }
.rm-upload-box span, .rm-upload-note { color:var(--text-secondary); font-size:.76rem; line-height:1.6; }
.rm-upload-note { display:flex; align-items:center; padding:12px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-page); }
.rm-financial-run-setting { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:10px; padding:10px 12px; border:1px solid #c9d8ef; border-radius:8px; background:#f7faff; }
.rm-financial-run-setting>div strong,.rm-financial-run-setting>div span { display:block; }
.rm-financial-run-setting>div strong { color:#17243a; font-size:.75rem; }
.rm-financial-run-setting>div span { margin-top:3px; color:#64748b; font-size:.68rem; line-height:1.45; }
.rm-financial-run-setting label { flex:0 0 auto; display:flex; align-items:center; gap:7px; color:#475569; font-size:.68rem; font-weight:750; }
.rm-financial-run-setting select { height:34px; min-width:76px; padding:0 24px 0 9px; border:1px solid #b9c9df; border-radius:6px; background:#fff; color:#17243a; font-size:.72rem; font-weight:800; }
.rm-bid-run-note{display:flex;align-items:flex-start;gap:14px;margin-top:10px;padding:12px 14px;border-left:3px solid #2563eb;background:#f7faff;color:#475569}
.rm-bid-run-note strong{flex:0 0 auto;color:#17243a;font-size:14px}.rm-bid-run-note span{font-size:14px;line-height:1.55}
.rm-data-profile { margin-top:12px; border:1px solid var(--border-color); border-radius:8px; overflow:hidden; background:var(--bg-page); }
.rm-data-profile-head { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:12px 14px; border-bottom:1px solid var(--border-color); }
.rm-data-profile-head strong { color:var(--text-primary); font-size:.86rem; }
.rm-data-profile-head span { color:var(--text-muted); font-size:.72rem; }
.rm-mapping-editor { padding:12px 14px; border-bottom:1px solid var(--border-color); background:var(--card-bg); }
.rm-mapping-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.rm-mapping-editor-head strong,.rm-mapping-editor-head span { display:block; }
.rm-mapping-editor-head strong { color:var(--text-primary); font-size:.8rem; }
.rm-mapping-editor-head span { margin-top:4px; color:var(--text-secondary); font-size:.68rem; line-height:1.45; }
.rm-mapping-editor-head b { flex:0 0 auto; padding:4px 7px; border-radius:5px; background:#eef4ff; color:#1d4ed8; font-size:.64rem; }
.rm-mapping-core,.rm-mapping-more>div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rm-mapping-row { display:grid; grid-template-columns:minmax(110px,.9fr) minmax(0,1.2fr); gap:8px; align-items:center; min-width:0; padding:8px 9px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.rm-mapping-row.required { border-color:#bfdbfe; background:#f8fbff; }
.rm-mapping-row span,.rm-mapping-row strong,.rm-mapping-row small { display:block; min-width:0; }
.rm-mapping-row strong { color:var(--text-primary); font-size:.7rem; line-height:1.35; }
.rm-mapping-row small { margin-top:2px; color:var(--text-muted); font-size:.6rem; }
.rm-mapping-row select { width:100%; min-width:0; height:34px; padding:0 7px; border:1px solid #cbd5e1; border-radius:6px; background:var(--card-bg); color:var(--text-primary); font-size:.68rem; outline:none; }
.rm-mapping-row select:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.1); }
.rm-mapping-more { margin-top:9px; }
.rm-mapping-more>summary,.rm-metric-more>summary { color:#2563eb; font-size:.68rem; font-weight:800; cursor:pointer; }
.rm-mapping-more>div { margin-top:8px; }
.rm-quality-panel { display:grid; grid-template-columns:260px minmax(0,1fr); gap:12px; padding:12px 14px; border-bottom:1px solid var(--border-color); background:#f8fafc; }
.rm-quality-panel.blocked { background:#fff5f5; }
.rm-quality-panel.warning { background:#fffbeb; }
.rm-quality-panel>div:first-child strong,.rm-quality-panel>div:first-child span { display:block; }
.rm-quality-panel>div:first-child strong { color:#172033; font-size:.76rem; }
.rm-quality-panel>div:first-child span { margin-top:5px; color:#64748b; font-size:.68rem; line-height:1.5; }
.rm-quality-panel>div:last-child { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rm-quality-panel article { padding:8px 9px; border:1px solid #dbe4ef; background:#fff; }
.rm-quality-panel article.blocked { border-color:#fecaca; }
.rm-quality-panel article.warning { border-color:#fde68a; }
.rm-quality-panel article.pass { border-color:#bbf7d0; }
.rm-quality-panel b,.rm-quality-panel p { display:block; }
.rm-quality-panel b { color:#334155; font-size:.66rem; }
.rm-quality-panel p { margin:4px 0 0; color:#64748b; font-size:.62rem; line-height:1.45; }
.rm-data-metrics { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; padding:12px; }
.rm-data-metrics div { padding:10px; border:1px solid var(--border-color); border-radius:7px; background:var(--card-bg); min-width:0; }
.rm-data-metrics span { display:block; color:var(--text-muted); font-size:.68rem; }
.rm-data-metrics strong { display:block; margin-top:5px; color:var(--text-primary); font-size:.92rem; word-break:break-word; }
.rm-data-metrics small { display:block; margin-top:5px; color:var(--text-secondary); font-size:.68rem; line-height:1.4; }
.rm-financial-summary { margin:12px; border:1px solid #cfdced; border-radius:8px; overflow:hidden; background:var(--card-bg); }
.rm-financial-summary>header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 12px; border-bottom:1px solid #e4ebf4; }
.rm-financial-summary>header strong,.rm-financial-summary>header span { display:block; }
.rm-financial-summary>header strong { color:#17243a; font-size:.78rem; }
.rm-financial-summary>header span { margin-top:3px; color:#64748b; font-size:.65rem; line-height:1.45; }
.rm-financial-summary>header>b { flex:0 0 auto; padding:5px 9px; border-radius:6px; background:#e9f2ff; color:#1d4ed8; font-size:.68rem; }
.rm-financial-summary-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr); min-height:190px; }
.rm-financial-trend { min-width:0; padding:11px 12px; border-right:1px solid #e5ebf3; }
.rm-financial-trend>strong { display:block; margin-bottom:9px; color:#334155; font-size:.69rem; }
.rm-financial-trend-bars { display:grid; gap:5px; }
.rm-financial-trend-bars>div { display:grid; grid-template-columns:58px minmax(0,1fr) 38px; align-items:center; gap:8px; min-width:0; }
.rm-financial-trend-bars span,.rm-financial-trend-bars em { color:#64748b; font-size:.6rem; font-style:normal; white-space:nowrap; }
.rm-financial-trend-bars em { text-align:right; }
.rm-financial-trend-bars i { height:8px; overflow:hidden; border-radius:2px; background:#e9eef5; }
.rm-financial-trend-bars i b { display:block; height:100%; border-radius:2px; background:#3b6de6; }
.rm-financial-trend-bars p { margin:24px 0; color:#7b8798; font-size:.66rem; text-align:center; }
.rm-financial-signal-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
.rm-financial-signal-list>div { min-width:0; padding:12px; border-right:1px solid #e7edf4; border-bottom:1px solid #e7edf4; }
.rm-financial-signal-list>div:nth-child(2n) { border-right:0; }
.rm-financial-signal-list>div:nth-last-child(-n+2) { border-bottom:0; }
.rm-financial-signal-list dt { color:#526176; font-size:.65rem; font-weight:800; }
.rm-financial-signal-list dd { margin:4px 0 0; color:#17243a; font-size:1.02rem; font-weight:850; }
.rm-financial-signal-list small { display:block; margin-top:3px; color:#7b8798; font-size:.59rem; line-height:1.35; }
.rm-financial-summary>footer { padding:8px 12px; border-top:1px solid #e4ebf4; background:#fbfcfe; color:#64748b; font-size:.63rem; line-height:1.5; }
.rm-bid-summary{margin:12px;border:1px solid #cfdced;border-radius:10px;overflow:hidden;background:var(--card-bg)}
.rm-bid-summary>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border-bottom:1px solid #e4ebf4}.rm-bid-summary>header strong,.rm-bid-summary>header span{display:block}.rm-bid-summary>header strong{color:#17243a;font-size:16px}.rm-bid-summary>header span{margin-top:4px;color:#64748b;font-size:14px;line-height:1.45}.rm-bid-summary>header>b{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#e9f2ff;color:#1d4ed8;font-size:14px}
.rm-bid-capability{display:flex;gap:8px;flex-wrap:wrap;padding:11px 14px;border-bottom:1px solid #edf1f6}.rm-bid-capability span{padding:5px 9px;border:1px solid #dce4ef;border-radius:999px;background:#f8fafc;color:#94a3b8;font-size:13px;font-weight:800}.rm-bid-capability span.ready{border-color:#b7e4cd;background:#effaf4;color:#137a4b}.rm-bid-capability span.ready:before{content:'✓ ';font-weight:950}
.rm-bid-signal-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;border-bottom:1px solid #e4ebf4}.rm-bid-signal-list div{padding:12px 14px;border-right:1px solid #e4ebf4}.rm-bid-signal-list div:last-child{border-right:0}.rm-bid-signal-list dt{color:#64748b;font-size:13px}.rm-bid-signal-list dd{margin:4px 0 0;color:#17243a;font-size:23px;font-weight:900}
.rm-bid-pairs{padding:13px 14px}.rm-bid-pairs>strong{display:block;margin-bottom:8px;color:#17243a;font-size:14px}.rm-bid-pairs article{display:grid;grid-template-columns:minmax(220px,.9fr) 70px minmax(280px,1.5fr);align-items:center;gap:12px;padding:10px 0;border-top:1px solid #edf1f6}.rm-bid-pairs article:first-of-type{border-top:0}.rm-bid-pairs article b,.rm-bid-pairs article span{display:block}.rm-bid-pairs article b{color:#17243a;font-size:14px}.rm-bid-pairs article span{margin-top:3px;color:#64748b;font-size:13px}.rm-bid-pairs article em{justify-self:start;padding:4px 8px;border-radius:999px;background:#fff3df;color:#9a5a00;font-size:13px;font-style:normal;font-weight:900}.rm-bid-pairs article p{margin:0;color:#475569;font-size:14px;line-height:1.5}
.rm-bid-empty{margin:14px;padding:14px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;font-size:14px}.rm-bid-summary>footer{padding:10px 14px;border-top:1px solid #e4ebf4;background:#fbfcfe;color:#64748b;font-size:13px;line-height:1.55}
.rm-metric-more { margin:0 12px 12px; }
.rm-metric-more .rm-data-metrics { margin-top:8px; padding:0; }
.rm-field-map { display:grid; grid-template-columns:1.2fr .8fr 1fr; gap:8px; padding:0 12px 12px; }
.rm-field-map div { padding:10px; border:1px solid var(--border-color); border-radius:7px; background:var(--card-bg); }
.rm-field-map strong { color:var(--text-primary); font-size:.75rem; }
.rm-field-map p { margin:5px 0 0; color:var(--text-secondary); font-size:.72rem; line-height:1.5; word-break:break-word; }
.rm-anomaly-preview { margin:0 12px 12px; border:1px solid #dbe5f1; border-radius:7px; overflow:hidden; background:var(--card-bg); }
.rm-anomaly-preview-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 11px; border-bottom:1px solid #e8eef5; }
.rm-anomaly-preview-head>div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.rm-anomaly-preview-head strong { color:var(--text-primary); font-size:.75rem; }
.rm-anomaly-preview-head span,.rm-anomaly-preview>small { color:var(--text-muted); font-size:.65rem; }
.rm-anomaly-preview>small { display:block; padding:8px 11px; border-top:1px solid #e8eef5; }
.rm-consolidation-note { display:flex; align-items:flex-start; gap:10px; padding:9px 11px; border-bottom:1px solid #dbeafe; background:#eff6ff; color:#334155; }
.rm-consolidation-note strong { flex:0 0 auto; color:#1d4ed8; font-size:.68rem; }
.rm-consolidation-note span { font-size:.66rem; line-height:1.5; }
.rm-anomaly-row { display:grid; grid-template-columns:42px minmax(0,1fr); gap:9px; align-items:start; padding:9px 11px; border-top:1px solid #eef2f7; }
.rm-anomaly-preview-head+.rm-anomaly-row { border-top:0; }
.rm-anomaly-row>span { display:inline-flex; justify-content:center; padding:3px 4px; border-radius:4px; background:#fff3df; color:#9a5a05; font-size:.62rem; font-weight:800; }
.rm-anomaly-row strong { display:block; color:var(--text-primary); font-size:.71rem; line-height:1.4; }
.rm-anomaly-row p { margin:3px 0 0; color:var(--text-secondary); font-size:.66rem; line-height:1.45; }
.rm-anomaly-row small { display:block; margin-top:4px; color:var(--text-muted); font-size:.62rem; }
.rm-anomaly-title { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.rm-anomaly-actions { display:flex; gap:6px; flex-shrink:0; }
.rm-anomaly-actions button,.rm-anomaly-preview-head button { border:1px solid #cbd5e1; background:#fff; color:#334155; border-radius:6px; padding:4px 8px; font-size:.64rem; font-weight:800; cursor:pointer; }
.rm-anomaly-actions button:hover,.rm-anomaly-preview-head button:hover { border-color:#2563eb; color:#1d4ed8; }
.rm-anomaly-actions button:disabled,.rm-anomaly-preview-head button:disabled { border-color:#e2e8f0; background:#f1f5f9; color:#94a3b8; cursor:not-allowed; }
.rm-anomaly-snapshot { margin-top:7px; border:1px dashed #cbd5e1; border-radius:7px; padding:6px 8px; background:#f8fafc; }
.rm-anomaly-snapshot summary { cursor:pointer; color:#475569; font-size:.64rem; font-weight:800; }
.rm-anomaly-snapshot dl { display:grid; grid-template-columns:100px minmax(0,1fr); gap:4px 8px; margin:7px 0 0; }
.rm-anomaly-snapshot dt { color:#64748b; font-size:.61rem; }
.rm-anomaly-snapshot dd { margin:0; color:#1e293b; font-size:.61rem; word-break:break-word; }
.rm-anomaly-signals { margin-top:7px; border:1px solid #dbe5f1; border-radius:7px; padding:6px 8px; background:#fbfdff; }
.rm-anomaly-signals summary { cursor:pointer; color:#1e4f91; font-size:.64rem; font-weight:800; }
.rm-anomaly-signals>div { display:grid; gap:5px; margin-top:7px; }
.rm-anomaly-signals p { display:grid; grid-template-columns:minmax(110px,.35fr) minmax(0,1fr); gap:8px; margin:0; }
.rm-anomaly-signals p b { color:#334155; font-size:.62rem; }
.rm-anomaly-signals p span { color:#475569; font-size:.62rem; line-height:1.4; }
.rm-anomaly-signals>small { padding-top:6px; border-top:1px dashed #dbe5f1; }
.rm-profile-notes { margin:0 12px 12px; padding:9px 10px; border-left:3px solid #e4a63a; background:#fff8e8; }
.rm-profile-notes>summary { color:#6f4a09; font-size:.68rem; font-weight:800; cursor:pointer; }
.rm-profile-notes strong { color:#6f4a09; font-size:.68rem; }
.rm-profile-notes p { margin:4px 0 0; color:#705b34; font-size:.64rem; line-height:1.45; }
.rm-methodology-summary { margin-bottom:14px; border-top:1px solid var(--border-color); border-bottom:1px solid var(--border-color); background:#f8fafc; }
.rm-methodology-title { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px 9px; }
.rm-methodology-title>div { display:grid; gap:3px; }
.rm-methodology-title span { color:#64748b; font-size:.62rem; font-weight:800; }
.rm-methodology-title strong { color:#172033; font-size:.78rem; }
.rm-methodology-title>b { padding:4px 7px; border:1px solid #f2c57c; border-radius:4px; background:#fff8e8; color:#8a5a0a; font-size:.62rem; }
.rm-methodology-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid #e7edf4; border-bottom:1px solid #e7edf4; }
.rm-methodology-metrics span { display:flex; align-items:baseline; gap:5px; padding:8px 14px; border-right:1px solid #e7edf4; color:#64748b; font-size:.63rem; }
.rm-methodology-metrics span:last-child { border-right:0; }
.rm-methodology-metrics strong { color:#1d4ed8; font-size:.9rem; }
.rm-methodology-boundary { margin:0; padding:10px 14px; color:#52627a; font-size:.68rem; line-height:1.6; }
.rm-methodology-detail { border-top:1px solid #e7edf4; }
.rm-methodology-detail summary { padding:9px 14px; color:#334155; font-size:.67rem; font-weight:800; cursor:pointer; }
.rm-methodology-columns { display:grid; grid-template-columns:1fr 1fr; gap:0; border-top:1px solid #e7edf4; }
.rm-methodology-columns section { padding:12px 14px; }
.rm-methodology-columns section+section { border-left:1px solid #e7edf4; }
.rm-methodology-detail h5 { margin:0 0 8px; color:#172033; font-size:.69rem; }
.rm-methodology-columns p { display:grid; grid-template-columns:30px minmax(0,1fr); gap:2px 7px; margin:0; padding:7px 0; border-top:1px solid #edf2f7; }
.rm-methodology-columns p b { grid-row:1/3; color:#2563eb; font-size:.61rem; }
.rm-methodology-columns p span { color:#334155; font-size:.67rem; font-weight:800; }
.rm-methodology-columns p small { color:#718096; font-size:.62rem; line-height:1.45; }
.rm-methodology-sources { padding:12px 14px; border-top:1px solid #e7edf4; }
.rm-source-warning { margin:0 0 8px; padding:8px 10px; border-left:3px solid #e4a63a; background:#fff8e8; color:#705b34; font-size:.63rem; line-height:1.5; }
.rm-methodology-sources article { display:grid; grid-template-columns:minmax(230px,.45fr) 1fr; gap:14px; padding:11px 0; border-top:1px solid #edf2f7; }
.rm-methodology-sources article>div { display:grid; grid-template-columns:36px 1fr; gap:3px 7px; align-content:start; }
.rm-methodology-sources article>div b { grid-row:1/3; color:#2563eb; font-size:.61rem; }
.rm-methodology-sources article>div a { color:#1d4ed8; font-size:.66rem; font-weight:800; line-height:1.4; text-decoration:none; }
.rm-methodology-sources article>div small { color:#718096; font-size:.6rem; line-height:1.4; }
.rm-methodology-sources dl { display:grid; grid-template-columns:60px 1fr; gap:4px 8px; margin:0; font-size:.61rem; line-height:1.45; }
.rm-methodology-sources dt { color:#475569; font-weight:800; }
.rm-methodology-sources dd { margin:0; color:#64748b; }
.rm-methodology-rules { padding:12px 14px; border-top:1px solid #e7edf4; }
.rm-methodology-rules article { display:grid; grid-template-columns:minmax(220px,.65fr) 1fr; gap:7px 14px; padding:10px 0; border-top:1px solid #e7edf4; }
.rm-methodology-rules article>div { display:grid; grid-template-columns:70px minmax(0,1fr); gap:3px 7px; align-content:start; }
.rm-methodology-rules article>div>b { color:#2563eb; font-size:.62rem; }
.rm-methodology-rules article>div>strong { color:#334155; font-size:.68rem; }
.rm-methodology-rules article>div>span { grid-column:2; justify-self:start; padding:3px 5px; border-radius:4px; font-size:.59rem; font-weight:800; }
.rm-methodology-rules article>div>span.ready { background:#eaf7ef; color:#187443; }
.rm-methodology-rules article>div>span.pending { background:#fff4df; color:#8a5a0a; }
.rm-methodology-rules article>p { margin:0; color:#52627a; font-size:.64rem; line-height:1.5; }
.rm-methodology-rules article>ul { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.rm-methodology-rules article>ul li { display:flex; gap:5px; align-items:center; padding:5px 7px; border:1px solid #dfe7f0; border-radius:5px; background:#fff; font-size:.6rem; }
.rm-methodology-rules article>ul li b { color:#475569; }
.rm-methodology-rules article>ul li span { color:#1d4ed8; font-weight:800; }
.rm-methodology-rules article>ul li small { color:#718096; }
.rm-methodology-rules article>small { grid-column:1/-1; color:#718096; font-size:.61rem; line-height:1.45; }
.rm-case-library { border-top:1px solid #e7edf4; }
.rm-case-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 14px; }
.rm-case-head>div { display:grid; gap:2px; }
.rm-case-head strong { color:#172033; font-size:.72rem; }
.rm-case-head span,.rm-case-head>b { color:#64748b; font-size:.62rem; }
.rm-case-head>b { padding:3px 6px; border-radius:4px; background:#eef3f8; }
.rm-case-coverage { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid #e7edf4; background:#f8fafc; }
.rm-case-coverage>div { display:grid; grid-template-columns:1fr auto; gap:2px 10px; padding:10px 14px; border-right:1px solid #e7edf4; }
.rm-case-coverage>div:last-child { border-right:0; }
.rm-case-coverage span { color:#64748b; font-size:.61rem; font-weight:800; }
.rm-case-coverage strong { grid-row:1/3; grid-column:2; color:#1d4ed8; font-size:.9rem; }
.rm-case-coverage small { color:#718096; font-size:.6rem; line-height:1.4; }
.rm-case-coverage .gap strong { color:#b45309; }
.rm-case-coverage .complete strong { color:#187443; }
.rm-case-boundary { margin:0; padding:8px 14px; border-top:1px solid #e7edf4; background:#fff8e8; color:#705b34; font-size:.62rem; line-height:1.5; }
.rm-case-bias { margin:0; padding:8px 14px; border-top:1px solid #f2d8b0; background:#fff4df; color:#7c4a03; font-size:.62rem; line-height:1.5; }
.rm-case-empty { margin:0; padding:0 14px 11px; color:#718096; font-size:.65rem; }
.rm-case-tools { display:grid; grid-template-columns:minmax(180px,.55fr) minmax(240px,1fr) auto; gap:10px; align-items:end; padding:10px 14px; border-top:1px solid #e7edf4; background:#f8fafc; }
.rm-case-tools label { display:grid; gap:4px; color:#475569; font-size:.62rem; font-weight:800; }
.rm-case-tools select,.rm-case-tools input { width:100%; height:34px; box-sizing:border-box; padding:0 9px; border:1px solid #d8e3ef; border-radius:5px; background:#fff; color:#172033; font:inherit; font-weight:500; }
.rm-case-tools>span { padding-bottom:8px; color:#64748b; font-size:.62rem; white-space:nowrap; }
.rm-case-list { border-top:1px solid #e7edf4; }
.rm-case-list article { border-top:1px solid #edf2f7; }
.rm-case-list article:first-child { border-top:0; }
.rm-case-list details>summary { display:grid; grid-template-columns:minmax(250px,.85fr) 1.15fr auto; gap:14px; align-items:start; padding:11px 14px; cursor:pointer; list-style:none; }
.rm-case-list details>summary::-webkit-details-marker { display:none; }
.rm-case-list details>summary>div { display:grid; grid-template-columns:34px 1fr; gap:2px 7px; }
.rm-case-list details>summary>div>b { grid-row:1/3; color:#2563eb; font-size:.61rem; }
.rm-case-list details>summary>div>strong { color:#273449; font-size:.69rem; line-height:1.45; }
.rm-case-list details>summary>div>span { color:#718096; font-size:.61rem; }
.rm-case-list details>summary>p { margin:0; color:#52627a; font-size:.64rem; line-height:1.5; }
.rm-case-open { color:#2563eb; font-size:.61rem; font-weight:800; white-space:nowrap; }
.rm-case-list details[open] .rm-case-open { color:#64748b; }
.rm-case-reasoning { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid #e7edf4; background:#fbfcfe; }
.rm-case-reasoning section { padding:11px 14px; border-bottom:1px solid #e7edf4; }
.rm-case-reasoning section:nth-child(odd) { border-right:1px solid #e7edf4; }
.rm-case-reasoning section strong { color:#334155; font-size:.63rem; }
.rm-case-reasoning section p { margin:4px 0 0; color:#52627a; font-size:.64rem; line-height:1.6; white-space:pre-wrap; }
.rm-case-source { grid-column:1/-1; display:flex; align-items:center; gap:10px; padding:10px 14px; color:#718096; font-size:.61rem; }
.rm-case-source span { margin-right:auto; }
.rm-case-source a,.rm-case-source button { border:0; padding:0; background:none; color:#1d4ed8; font:inherit; font-weight:800; text-decoration:none; cursor:pointer; }
.rm-case-source small { color:#64748b; }
.rm-case-review-form { grid-column:1/-1; display:grid; grid-template-columns:minmax(150px,.35fr) minmax(260px,1fr) auto; gap:10px; align-items:end; padding:11px 14px; border-top:1px solid #dbe5f0; background:#f4f7fa; }
.rm-case-review-form[hidden] { display:none; }
.rm-case-review-form label { display:grid; gap:4px; color:#475569; font-size:.62rem; font-weight:800; }
.rm-case-review-form input,.rm-case-review-form textarea { width:100%; box-sizing:border-box; padding:7px 8px; border:1px solid #d8e3ef; border-radius:5px; background:#fff; color:#172033; font:inherit; font-weight:500; resize:vertical; }
.rm-case-review-form input { height:34px; }
.rm-case-review-form>div { display:flex; gap:8px; }
.rm-case-review-form button { border:0; padding:7px 9px; border-radius:5px; background:#2563eb; color:#fff; font-size:.61rem; font-weight:800; cursor:pointer; white-space:nowrap; }
.rm-case-review-form button+button { background:#fff; color:#b45309; border:1px solid #e6bf84; }
.rm-case-no-result { margin:0; padding:18px 14px; border-top:1px solid #e7edf4; color:#718096; font-size:.65rem; text-align:center; }
.at-source-case { max-width:760px; margin:6px 0 0; padding:6px 8px; border-left:3px solid #e4a63a; background:#fff8e8; color:#705b34; font-size:.66rem; line-height:1.5; }
.at-case-capture { margin-top:14px; border:1px solid #d7e2ef; background:#fff; }
.at-case-capture>summary { padding:11px 14px; color:#334155; font-size:.68rem; font-weight:800; cursor:pointer; }
.at-case-capture-body { padding:12px 14px 14px; border-top:1px solid #e7edf4; }
.at-case-capture-body>p { margin:0 0 10px; color:#64748b; font-size:.65rem; line-height:1.55; }
.at-case-capture-action { display:flex; justify-content:flex-end; margin-top:10px; }
.at-applicability { border-color:#e5d1a7; }
.at-applicability-list { border-top:1px solid #eadbbd; }
.at-applicability-item { display:grid; grid-template-columns:minmax(260px,1fr) 150px minmax(260px,1fr); gap:12px; align-items:start; padding:12px 14px; border-top:1px solid #f0e5ce; background:#fffdf8; }
.at-applicability-item:first-child { border-top:0; }
.at-applicability-item>div strong { color:#273449; font-size:.68rem; }
.at-applicability-item>div p { margin:4px 0; color:#52627a; font-size:.65rem; line-height:1.5; }
.at-applicability-item>div small { color:#8a6a30; font-size:.59rem; }
.at-applicability-item>div small a { color:#1d4ed8; font-weight:800; text-decoration:none; }
.at-applicability-item label { display:grid; gap:4px; color:#475569; font-size:.62rem; font-weight:800; }
.at-applicability-item select,.at-applicability-item textarea { width:100%; box-sizing:border-box; padding:7px 8px; border:1px solid #d8e3ef; border-radius:5px; background:#fff; color:#172033; font:inherit; font-weight:500; resize:vertical; }
.at-applicability-item select { height:35px; }
@media(max-width:900px){.at-applicability-item{grid-template-columns:1fr;}}
.rm-case-create { border-top:1px solid #e7edf4; }
.rm-case-create summary { padding:9px 14px; color:#334155; font-size:.67rem; font-weight:800; cursor:pointer; }
.rm-case-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 14px 14px; border-top:1px solid #e7edf4; }
.rm-case-form label { display:grid; gap:5px; color:#475569; font-size:.64rem; font-weight:800; }
.rm-case-form label.wide { grid-column:1/-1; }
.rm-case-form input,.rm-case-form select,.rm-case-form textarea { width:100%; box-sizing:border-box; padding:8px 9px; border:1px solid #d8e3ef; border-radius:6px; background:#fff; color:#172033; font:inherit; font-weight:500; resize:vertical; }
.rm-case-form input,.rm-case-form select { height:35px; }
.rm-case-action { display:flex; align-items:end; justify-content:flex-end; }
.rm-policy-library { border-top:1px solid #e7edf4; }
.rm-policy-current { display:grid; grid-template-columns:auto minmax(180px,.7fr) 1fr; gap:5px 10px; align-items:center; padding:9px 14px 11px; border-top:1px solid #e7edf4; }
.rm-policy-current>b { padding:3px 6px; border-radius:4px; background:#eaf7ef; color:#187443; font-size:.6rem; }
.rm-policy-current>strong { color:#334155; font-size:.68rem; }
.rm-policy-current>span { color:#1d4ed8; font-size:.64rem; font-weight:800; }
.rm-policy-current>small { grid-column:2/-1; color:#718096; font-size:.61rem; }
.rm-policy-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 14px 14px; border-top:1px solid #e7edf4; }
.rm-policy-form label { display:grid; gap:5px; color:#475569; font-size:.64rem; font-weight:800; }
.rm-policy-form .wide { grid-column:1/-1; }
.rm-policy-form input,.rm-policy-form textarea { width:100%; box-sizing:border-box; padding:8px 9px; border:1px solid #d8e3ef; border-radius:6px; background:#fff; color:#172033; font:inherit; font-weight:500; resize:vertical; }
.rm-policy-form input { height:35px; }
.rm-policy-upload { grid-column:1/-1; padding:12px; border:1px dashed #9db8d7; border-radius:6px; background:#f8fbff; cursor:pointer; }
.rm-policy-upload input { display:none; }
.rm-policy-upload strong { color:#1d4ed8; font-size:.7rem; }
.rm-policy-upload span,.rm-policy-file-status { color:#64748b; font-size:.62rem; font-weight:500; }
.rm-policy-file-status { grid-column:1/-1; margin-top:-4px; }
.rm-prof-governance { margin:14px 0; border:1px solid #d7e2ef; border-radius:8px; overflow:hidden; background:#fff; }
.rm-prof-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:15px 17px 12px; }
.rm-prof-head>div>span { color:#2563eb; font-size:.6rem; font-weight:900; letter-spacing:0; }
.rm-prof-head h3 { margin:4px 0; color:#172033; font-size:.95rem; }
.rm-prof-head p { margin:0; color:#64748b; font-size:.68rem; line-height:1.5; }
.rm-prof-head>b { padding:5px 8px; border:1px solid #f0c373; border-radius:4px; background:#fff8e8; color:#8a5a0a; font-size:.63rem; }
.rm-prof-head>b.published { border-color:#9ed5b6; background:#eaf7ef; color:#187443; }
.rm-prof-toolbar { display:flex; align-items:end; gap:8px; padding:10px 17px; border-top:1px solid #e7edf4; background:#f8fafc; }
.rm-prof-toolbar label { display:grid; gap:4px; color:#475569; font-size:.62rem; font-weight:800; }
.rm-prof-toolbar input { width:190px; height:32px; box-sizing:border-box; padding:0 8px; border:1px solid #d8e3ef; border-radius:5px; background:#fff; color:#172033; font:inherit; }
.rm-prof-toolbar>div { display:flex; gap:6px; margin-left:auto; flex-wrap:wrap; }
.rm-prof-toolbar>div span { padding:5px 7px; border-radius:4px; background:#eef3f8; color:#52627a; font-size:.61rem; }
.rm-prof-table-wrap { overflow:auto; border-top:1px solid #e7edf4; }
.rm-prof-table { width:100%; min-width:1050px; border-collapse:collapse; font-size:.63rem; }
.rm-prof-table th { padding:8px 9px; background:#f4f7fa; color:#64748b; text-align:left; font-weight:800; white-space:nowrap; }
.rm-prof-table td { padding:8px 9px; border-top:1px solid #e9eef5; color:#52627a; vertical-align:top; }
.rm-prof-table td:first-child { display:grid; grid-template-columns:auto 1fr; gap:3px 6px; }
.rm-prof-table td:first-child b { grid-row:1/3; color:#2563eb; }
.rm-prof-table td:first-child span { color:#718096; }
.rm-prof-table td strong { color:#334155; }
.rm-prof-table td:nth-child(8) { display:grid; gap:3px; }
.rm-prof-review { justify-self:start; padding:3px 5px; border-radius:4px; background:#eef3f8; color:#64748b; font-weight:800; }
.rm-prof-review.approved { background:#eaf7ef; color:#187443; }
.rm-prof-review.changes-required { background:#fff0ed; color:#b63b28; }
.rm-prof-table td:last-child button { margin:0 5px 3px 0; padding:0; border:0; background:none; color:#2563eb; font-size:.61rem; font-weight:800; cursor:pointer; }
.rm-prof-table td:last-child button+button { color:#b45309; }
.rm-prof-publish { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 17px; border-top:1px solid #e7edf4; }
.rm-prof-publish strong { color:#334155; font-size:.69rem; }
.rm-prof-publish p { margin:3px 0 0; color:#718096; font-size:.63rem; line-height:1.45; }
.rm-prof-publish>span { color:#187443; font-size:.64rem; font-weight:800; }
@media(max-width:760px){.rm-methodology-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}.rm-methodology-columns,.rm-case-form,.rm-methodology-rules article,.rm-policy-form,.rm-case-tools,.rm-case-reasoning,.rm-case-coverage,.rm-case-review-form,.rm-methodology-sources article{grid-template-columns:1fr;}.rm-methodology-columns section+section{border-left:0;border-top:1px solid #e7edf4;}.rm-case-form label.wide,.rm-policy-form .wide{grid-column:auto;}.rm-case-list details>summary,.rm-policy-current{grid-template-columns:1fr;}.rm-case-reasoning section:nth-child(odd){border-right:0;}.rm-case-coverage>div{border-right:0;border-bottom:1px solid #e7edf4;}.rm-case-review-form>div{flex-direction:column;}.rm-policy-current>small{grid-column:auto;}.rm-case-action .btn{width:100%;}.rm-prof-head,.rm-prof-toolbar,.rm-prof-publish{align-items:stretch;flex-direction:column;}.rm-prof-toolbar>div{margin-left:0;}.rm-prof-toolbar input{width:100%;}.rm-required-fields{align-items:flex-start;flex-direction:column}.rm-required-fields small{margin-left:0}.rm-mapping-core,.rm-mapping-more>div,.rm-quality-panel,.rm-quality-panel>div:last-child{grid-template-columns:1fr}.rm-mapping-row{grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr)}.rm-mapping-confirm{align-items:stretch;flex-direction:column}.rm-mapping-confirm .btn{width:100%}}
.rm-question-list { display:flex; flex-direction:column; gap:14px; }
.rm-question { padding:14px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-page); }
.rm-question-head { display:flex; gap:10px; align-items:flex-start; margin-bottom:10px; }
.rm-question-head>span { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:999px; background:var(--accent); color:#fff; font-size:.72rem; font-weight:750; flex-shrink:0; }
.rm-question-head strong { display:block; color:var(--text-primary); font-size:.9rem; }
.rm-question-head p { margin:4px 0 0; color:var(--text-secondary); font-size:.76rem; line-height:1.55; }
.rm-evidence-types { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:8px 0 10px; color:var(--text-muted); font-size:.7rem; }
.rm-evidence-types b { padding:2px 7px; border-radius:999px; background:#e0f2fe; color:#0369a1; font-weight:650; }
.rm-option-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-bottom:10px; }
.rm-option { flex-direction:row !important; align-items:flex-start; gap:8px !important; padding:10px; border:1px solid var(--border-color); border-radius:7px; background:#fff; cursor:pointer; color:var(--text-primary) !important; font-weight:500 !important; }
.rm-option:hover { border-color:var(--accent); background:#eff6ff; }
.rm-option input { width:auto !important; margin-top:2px; }
.rm-option span { font-size:.8rem; line-height:1.45; }
.rm-evidence-note textarea { min-height:58px; }
.rm-advanced { border:1px solid var(--border-color); border-radius:8px; background:var(--card-bg); overflow:hidden; }
.rm-advanced>summary { padding:13px 16px; cursor:pointer; color:var(--text-primary); font-size:.86rem; font-weight:750; background:var(--bg-page); }
.rm-advanced .rm-section { border:none; border-top:1px solid var(--border-color); border-radius:0; }
.rm-threshold-grid, .rm-input-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.rm-edit-info { display:grid; grid-template-columns:1fr; gap:10px; }
.rm-section label { display:flex; flex-direction:column; gap:5px; color:var(--text-secondary); font-size:.75rem; font-weight:650; }
.rm-section label small { color:var(--text-muted); font-weight:500; }
.rm-section input, .rm-section select, .rm-section textarea { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-page); color:var(--text-primary); font-size:.82rem; }
.rm-section textarea { min-height:78px; resize:vertical; line-height:1.5; }
.rm-section input:disabled { color:#94a3b8; background:#f8fafc; }
.rm-note { margin:10px 0 0; color:var(--text-muted); font-size:.72rem; }
.rm-rule-list { display:flex; flex-direction:column; gap:8px; }
.rm-rule-row { display:grid; grid-template-columns:minmax(0, 1fr) 120px 100px; gap:10px; align-items:center; padding:10px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.rm-rule-main strong { display:block; color:var(--text-primary); font-size:.8rem; }
.rm-rule-main span { display:block; margin-top:3px; color:var(--text-muted); font-size:.7rem; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rm-result { display:grid; grid-template-columns:170px minmax(0, 1fr); gap:18px; }
.rm-result-score { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:150px; border:2px solid; border-radius:8px; background:var(--bg-page); }
.rm-result-score span { padding:3px 10px; border-radius:999px; color:#fff; font-size:.72rem; font-weight:750; }
.rm-result-score strong { margin-top:8px; color:var(--text-primary); font-size:2rem; }
.rm-result-score small { color:var(--text-muted); font-size:.72rem; }
.rm-result-body h4 { margin:0 0 8px; }
.rm-result-body p, .rm-result-body ul { margin:0 0 12px; color:var(--text-secondary); font-size:.82rem; line-height:1.7; }
.rm-result-body ul { padding-left:20px; }
.rm-result-actions { margin-top:14px; padding-top:12px; border-top:1px solid var(--border-light); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rm-result-actions span { color:var(--text-muted); font-size:.78rem; line-height:1.6; }
.rm-answer-list { display:flex; flex-direction:column; gap:8px; }
.rm-answer-list div { padding:9px 10px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.rm-answer-list strong { display:block; color:var(--text-primary); font-size:.78rem; }
.rm-answer-list span { display:block; margin-top:4px; color:#334155; font-size:.78rem; }
.rm-answer-list p { margin:4px 0 0; color:var(--text-muted); font-size:.74rem; }
.rm-ai-collab { margin-top:14px; border:1px solid #c7d2fe; border-radius:9px; background:#f8faff; overflow:hidden; }
.rm-ai-collab.is-off { border-color:var(--border-color); background:var(--bg-page); }
.rm-ai-collab-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; }
.rm-ai-collab-head>div { min-width:0; }
.rm-ai-collab-head span { display:block; color:#7c3aed; font-size:.66rem; font-weight:850; letter-spacing:.04em; }
.rm-ai-collab-head strong { display:block; margin-top:2px; color:var(--text-primary); font-size:.82rem; }
.rm-ai-collab-head small { display:block; margin-top:3px; color:var(--text-muted); font-size:.7rem; line-height:1.45; }
.rm-ai-collab-head em { flex:0 0 auto; padding:5px 8px; border-radius:5px; background:var(--card-bg); color:var(--text-muted); font-size:.68rem; font-style:normal; font-weight:750; }
.rm-ai-collab-off,.rm-ai-collab-empty { margin:0!important; padding:10px 14px!important; border-top:1px solid var(--border-light); color:var(--text-muted)!important; font-size:.74rem!important; }
.rm-ai-review-result { padding:0 14px 13px; border-top:1px solid #dbe4ff; }
.rm-ai-review-summary { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:9px; padding:11px 0; }
.rm-ai-review-summary b { padding:4px 7px; border-radius:5px; background:#ede9fe; color:#6d28d9; font-size:.65rem; white-space:nowrap; }
.rm-ai-review-summary p { margin:0!important; color:var(--text-primary)!important; font-size:.78rem!important; line-height:1.65!important; }
.rm-ai-review-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.rm-ai-review-grid section { min-width:0; padding:10px; border:1px solid #dbe4ff; border-radius:7px; background:var(--card-bg); }
.rm-ai-review-grid h5 { margin:0 0 7px; color:#4338ca; font-size:.72rem; }
.rm-ai-review-grid section>div { display:flex; flex-direction:column; gap:7px; }
.rm-ai-review-grid article+article { padding-top:7px; border-top:1px dashed var(--border-light); }
.rm-ai-review-grid article strong { display:block; color:var(--text-primary); font-size:.72rem; line-height:1.45; }
.rm-ai-review-grid article p { margin:3px 0 0!important; color:var(--text-secondary)!important; font-size:.69rem!important; line-height:1.5!important; }
.rm-ai-review-grid article small { display:block; margin-top:4px; color:var(--text-muted); font-size:.64rem; line-height:1.45; }
.rm-ai-limitations { margin-top:9px; border-top:1px solid var(--border-light); }
.rm-ai-limitations summary { padding:8px 0 2px; color:var(--text-secondary); font-size:.7rem; cursor:pointer; }
.rm-ai-limitations ul { margin:5px 0 0!important; color:var(--text-muted)!important; font-size:.68rem!important; }
.rm-ai-review-meta { display:block; margin-top:9px; color:var(--text-muted); font-size:.64rem; }
.rm-ai-review-feedback { display:flex; align-items:center; gap:8px; padding:9px 14px; border-top:1px solid var(--border-light); background:#eff6ff; color:#1e3a8a; font-size:.72rem; }
.rm-ai-review-feedback strong { flex:0 0 auto; }
.rm-ai-review-feedback span { flex:1 1 auto; line-height:1.5; }
.rm-ai-review-feedback small { color:var(--text-muted); white-space:nowrap; }
.rm-ai-review-feedback.is-failed { background:#fff7ed; color:#9a3412; }
.rm-ai-review-human-state,.rm-ai-review-decision { margin:0 14px 13px; padding:11px; border:1px solid #dbe4ff; border-radius:7px; background:var(--card-bg); }
.rm-ai-review-human-state strong,.rm-ai-review-human-state span,.rm-ai-review-human-state small { display:block; }
.rm-ai-review-human-state span,.rm-ai-review-human-state p { margin-top:5px; color:var(--text-secondary); font-size:.72rem; line-height:1.55; }
.rm-ai-review-human-state small { margin-top:6px; color:var(--text-muted); font-size:.65rem; }
.rm-ai-review-decision { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.rm-ai-review-decision>strong,.rm-ai-review-decision>small { grid-column:1/-1; }
.rm-ai-review-decision label { display:flex; flex-direction:column; gap:4px; color:var(--text-secondary); font-size:.68rem; }
.rm-ai-review-decision select,.rm-ai-review-decision textarea { width:100%; min-width:0; padding:7px 8px; border:1px solid var(--border-color); border-radius:6px; background:var(--input-bg,#fff); color:var(--text-primary); font:inherit; resize:vertical; }
.rm-ai-review-decision .btn { align-self:end; }
.rm-history { display:flex; flex-direction:column; gap:7px; }
.rm-history-row { display:grid; grid-template-columns:70px 60px minmax(0, 1fr); gap:10px; align-items:center; padding:8px 10px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-page); font-size:.78rem; }
.rm-history-row span { color:#fff; text-align:center; border-radius:999px; padding:2px 8px; font-weight:750; }
.rm-history-row strong { color:var(--text-primary); }
.rm-history-row em { color:var(--text-muted); font-style:normal; text-align:right; }
.rm-empty { padding:34px 18px; text-align:center; color:var(--text-muted); border:1px dashed var(--border-color); border-radius:8px; background:var(--bg-page); }
.rm-empty.small { padding:18px; font-size:.8rem; }
html[data-theme="dark"] .rm-model-card:hover,
html[data-theme="dark"] .rm-model-card.active { background:#12213a; }
html[data-theme="dark"] .rm-section input:disabled { background:#172235; color:#718199; }
html[data-theme="dark"] .rm-guide,
html[data-theme="dark"] .rm-question,
html[data-theme="dark"] .rm-option,
html[data-theme="dark"] .rm-answer-list div,
html[data-theme="dark"] .rm-ai-review-grid section,
html[data-theme="dark"] .rm-ai-collab-head em,
html[data-theme="dark"] .rm-field-card,
html[data-theme="dark"] .rm-upload-note,
html[data-theme="dark"] .rm-data-profile,
html[data-theme="dark"] .rm-data-metrics div,
html[data-theme="dark"] .rm-field-map div,
html[data-theme="dark"] .rm-blueprint-systems article,
html[data-theme="dark"] .rm-blueprint-lists>div,
html[data-theme="dark"] .rm-blueprint-steps,
html[data-theme="dark"] .rm-quality-panel article,
html[data-theme="dark"] .rm-anomaly-snapshot,
html[data-theme="dark"] .rm-financial-summary,
html[data-theme="dark"] .rm-financial-run-setting,
html[data-theme="dark"] .rm-bid-summary,
html[data-theme="dark"] .rm-bid-run-note { background:#172235; }
html[data-theme="dark"] .rm-financial-run-setting select { background:#101c2d; border-color:#40546e; color:#d8e1ee; }
html[data-theme="dark"] .rm-financial-trend-bars i { background:#27364b; }
html[data-theme="dark"] .rm-anomaly-actions button,
html[data-theme="dark"] .rm-anomaly-preview-head button { background:#172235; border-color:#334155; color:#cbd5e1; }
html[data-theme="dark"] .rm-anomaly-actions button:disabled,
html[data-theme="dark"] .rm-anomaly-preview-head button:disabled { background:#111c2e; border-color:#26364d; color:#65758c; }
html[data-theme="dark"] .rm-field-card.required,
html[data-theme="dark"] .rm-upload-box { background:#12213a; border-color:#31588f; }
html[data-theme="dark"] .rm-required-fields,
html[data-theme="dark"] .rm-mapping-row.required,
html[data-theme="dark"] .rm-mapping-editor-head b { background:#12213a; border-color:#31588f; }
html[data-theme="dark"] .rm-optional-fields,
html[data-theme="dark"] .rm-mapping-row { background:#172235; border-color:#314158; }
html[data-theme="dark"] .rm-mapping-row select { background:#101c2d; border-color:#40546e; color:#d8e1ee; }
html[data-theme="dark"] .rm-profile-notes { background:#30240e; }
html[data-theme="dark"] .rm-blueprint-grain,
html[data-theme="dark"] .rm-quality-panel { background:#13233b; border-color:#334155; }
html[data-theme="dark"] .rm-option:hover { background:#12213a; }
@media (max-width:1120px) {
  .rm-layout { grid-template-columns:1fr; }
  .rm-model-list { max-height:none; }
  .rm-threshold-grid, .rm-input-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rm-guide-grid, .rm-option-list, .rm-upload-line, .rm-field-map { grid-template-columns:1fr; }
  .rm-field-template, .rm-data-metrics { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rm-blueprint-systems { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rm-blueprint-systems article { border-bottom:1px solid var(--border-color); }
  .rm-blueprint-systems article:nth-child(2n) { border-right:0; }
  .rm-blueprint-systems article:nth-last-child(-n+2) { border-bottom:0; }
  .rm-blueprint-lists,.rm-quality-panel { grid-template-columns:1fr; }
  .rm-financial-summary-grid { grid-template-columns:1fr; }
  .rm-bid-signal-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rm-bid-signal-list div:nth-child(2) { border-right:0; }
  .rm-bid-pairs article { grid-template-columns:1fr auto; }
  .rm-bid-pairs article p { grid-column:1/-1; }
  .rm-financial-trend { border-right:0; border-bottom:1px solid #e5ebf3; }
  .rm-quality-panel>div:last-child { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rm-result { grid-template-columns:1fr; }
  .rm-ai-collab-head { align-items:stretch; flex-direction:column; }
  .rm-ai-collab-head .btn { width:100%; }
  .rm-ai-review-grid { grid-template-columns:1fr; }
  .rm-ai-review-decision { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .rm-model-entry-note { flex-direction:column; align-items:flex-start; }
  .rm-model-entry-note em { max-width:none; text-align:left; }
  .rm-stats, .rm-threshold-grid, .rm-input-grid, .rm-rule-row, .rm-field-template, .rm-data-metrics { grid-template-columns:1fr; }
  .rm-blueprint-systems,.rm-quality-panel>div:last-child { grid-template-columns:1fr; }
  .rm-blueprint-systems article { border-right:0; }
  .rm-blueprint-systems article:nth-last-child(-n+2) { border-bottom:1px solid var(--border-color); }
  .rm-blueprint-systems article:last-child { border-bottom:0; }
  .rm-detail-head { flex-direction:column; }
  .rm-financial-run-setting,.rm-financial-summary>header,.rm-bid-summary>header,.rm-bid-run-note { align-items:flex-start; flex-direction:column; }
  .rm-bid-signal-list { grid-template-columns:1fr; }
  .rm-bid-signal-list div { border-right:0; border-bottom:1px solid #e4ebf4; }
  .rm-bid-signal-list div:last-child { border-bottom:0; }
  .rm-bid-pairs article { grid-template-columns:1fr; }
  .rm-bid-pairs article p { grid-column:auto; }
  .rm-financial-signal-list { grid-template-columns:1fr; }
  .rm-financial-signal-list>div { border-right:0; border-bottom:1px solid #e7edf4; }
  .rm-financial-signal-list>div:nth-last-child(-n+2) { border-bottom:1px solid #e7edf4; }
  .rm-financial-signal-list>div:last-child { border-bottom:0; }
  .rm-actions { justify-content:flex-start; }
}

/* ====== 风险事件中心 ====== */
.re-page { display:flex; flex-direction:column; gap:16px; }
.re-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.re-stats { display:grid; grid-template-columns:repeat(4, minmax(110px, 1fr)); gap:10px; flex:1; }
.re-stat { padding:13px 14px; border:1px solid var(--border-color); border-radius:8px; background:var(--card-bg); }
.re-stat span { display:block; color:var(--text-secondary); font-size:.72rem; }
.re-stat strong { display:block; margin-top:4px; color:var(--text-primary); font-size:1.35rem; }
.re-actions { display:flex; gap:8px; }
.re-source-boundary { display:flex; flex-direction:column; gap:4px; max-width:390px; padding:10px 12px; border:1px solid #bfdbfe; border-radius:8px; background:#f8fbff; }
.re-source-boundary strong { color:#1d4ed8; font-size:.76rem; }
.re-source-boundary span { color:#52677e; font-size:.7rem; line-height:1.45; }
.re-review-flow { display:grid; gap:10px; padding:14px 16px; border:1px solid #c7d2fe; border-radius:10px; background:linear-gradient(135deg,#f8fbff 0%,#eef6ff 100%); }
.re-review-flow-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.re-review-flow-head span { display:block; color:#2563eb; font-size:.62rem; font-weight:950; letter-spacing:.12em; }
.re-review-flow-head strong { display:block; margin-top:3px; color:#0f172a; font-size:.94rem; }
.re-review-flow-head p { max-width:620px; margin:0; color:#52677e; font-size:.74rem; line-height:1.55; }
.re-review-flow-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.re-review-flow-steps article { display:grid; gap:5px; min-height:92px; padding:10px; border:1px solid #dbeafe; border-radius:9px; background:#fff; }
.re-review-flow-steps em { font-style:normal; color:#2563eb; font-size:.62rem; font-weight:950; }
.re-review-flow-steps b { color:#0f172a; font-size:.76rem; line-height:1.3; }
.re-review-flow-steps span { color:#64748b; font-size:.68rem; line-height:1.45; }
.re-layout { display:grid; grid-template-columns:340px minmax(0, 1fr); gap:16px; align-items:start; }
.re-list, .re-detail, .re-section { border:1px solid var(--border-color); border-radius:8px; background:var(--card-bg); }
.re-list { display:flex; flex-direction:column; gap:8px; padding:10px; max-height:760px; overflow:auto; }
.re-card { width:100%; text-align:left; padding:12px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); cursor:pointer; transition:border-color .15s, box-shadow .15s, background .15s; }
.re-card:hover, .re-card.active { border-color:var(--accent); background:#eff6ff; box-shadow:0 2px 10px rgba(59,109,240,.12); }
.re-card-top { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.re-card-top strong { color:var(--text-primary); font-size:.86rem; line-height:1.35; }
.re-card-top b { flex-shrink:0; color:#fff; border-radius:999px; padding:2px 8px; font-size:.64rem; font-weight:750; }
.re-card-top b.muted { background:#94a3b8; }
.re-card p { margin:7px 0 9px; color:var(--text-secondary); font-size:.73rem; line-height:1.5; }
.re-card-meta { display:flex; justify-content:space-between; gap:8px; color:var(--text-muted); font-size:.68rem; }
.re-card-meta em { font-style:normal; color:#64748b; }
.re-detail { padding:16px; display:flex; flex-direction:column; gap:14px; }
.re-detail-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding-bottom:14px; border-bottom:1px solid var(--border-color); }
.re-kicker { color:var(--accent); font-size:.7rem; font-weight:750; letter-spacing:.04em; }
.re-detail h3 { margin:4px 0 7px; color:var(--text-primary); font-size:1.22rem; }
.re-detail-head p { margin:0; color:var(--text-secondary); font-size:.82rem; line-height:1.6; }
.re-detail-actions { display:flex; gap:8px; }
.re-section { padding:16px; }
.re-section h4 { margin:0 0 12px; color:var(--text-primary); font-size:.94rem; }
.re-section-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:12px; }
.re-section-head h4 { margin:0; }
.re-info-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.re-info { padding:10px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.re-info span { display:block; color:var(--text-muted); font-size:.68rem; }
.re-info strong { display:block; margin-top:4px; color:var(--text-primary); font-size:.8rem; word-break:break-word; }
.re-run-row { display:grid; grid-template-columns:minmax(240px, 360px) minmax(0, 1fr); gap:12px; align-items:end; }
.re-section label { display:flex; flex-direction:column; gap:5px; color:var(--text-secondary); font-size:.75rem; font-weight:650; }
.re-section input, .re-section select, .re-section textarea, .re-modal input, .re-modal select, .re-modal textarea { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-page); color:var(--text-primary); font-size:.82rem; }
.re-run-row span { color:var(--text-muted); font-size:.76rem; line-height:1.5; }
.re-question-list { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
.re-question { padding:14px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-page); }
.re-question-head { display:flex; gap:10px; align-items:flex-start; margin-bottom:10px; }
.re-question-head>span { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:999px; background:var(--accent); color:#fff; font-size:.72rem; font-weight:750; flex-shrink:0; }
.re-question-head strong { display:block; color:var(--text-primary); font-size:.9rem; }
.re-question-head p { margin:4px 0 0; color:var(--text-secondary); font-size:.76rem; line-height:1.55; }
.re-evidence-types { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:8px 0 10px; color:var(--text-muted); font-size:.7rem; }
.re-evidence-types b { padding:2px 7px; border-radius:999px; background:#e0f2fe; color:#0369a1; font-weight:650; }
.re-option-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-bottom:10px; }
.re-option { flex-direction:row !important; align-items:flex-start; gap:8px !important; padding:10px; border:1px solid var(--border-color); border-radius:7px; background:#fff; cursor:pointer; color:var(--text-primary) !important; font-weight:500 !important; }
.re-option:hover { border-color:var(--accent); background:#eff6ff; }
.re-option input { width:auto !important; margin-top:2px; }
.re-option span { font-size:.8rem; line-height:1.45; }
.re-evidence-note textarea { min-height:58px; }
.re-run-result { display:grid; grid-template-columns:170px minmax(0, 1fr); gap:18px; }
.re-score { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:150px; border:2px solid; border-radius:8px; background:var(--bg-page); }
.re-score span { padding:3px 10px; border-radius:999px; color:#fff; font-size:.72rem; font-weight:750; }
.re-score strong { margin-top:8px; color:var(--text-primary); font-size:2rem; }
.re-score small { color:var(--text-muted); font-size:.72rem; text-align:center; }
.re-run-body p, .re-run-body ul { margin:0 0 12px; color:var(--text-secondary); font-size:.82rem; line-height:1.7; }
.re-run-body ul { padding-left:20px; }
.re-answer-list { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.re-answer-list div { padding:9px 10px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.re-answer-list strong { display:block; color:var(--text-primary); font-size:.78rem; }
.re-answer-list span { display:block; margin-top:4px; color:#334155; font-size:.78rem; }
.re-answer-list p { margin:4px 0 0; color:var(--text-muted); font-size:.74rem; }
.re-result-actions { margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }
.re-disposition { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:center; border-left:4px solid #94a3b8; }
.re-disposition-pending { border-left-color:#64748b; }
.re-disposition-low { border-left-color:#16a34a; }
.re-disposition-medium { border-left-color:#ca8a04; }
.re-disposition-high { border-left-color:#ea580c; }
.re-disposition-critical { border-left-color:#dc2626; }
.re-disposition-main span { display:block; color:var(--text-muted); font-size:.68rem; font-weight:750; }
.re-disposition-main strong { display:block; margin-top:3px; color:var(--text-primary); font-size:.92rem; }
.re-disposition-main p { margin:5px 0 0; color:var(--text-secondary); font-size:.78rem; line-height:1.6; }
.re-disposition-tags { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.re-disposition-tags b { padding:3px 8px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:.68rem; }
.re-disposition-actions { grid-column:1 / -1; display:flex; gap:8px; flex-wrap:wrap; }
.re-route-options { background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.re-route-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.re-route-card { min-width:0; display:flex; flex-direction:column; justify-content:space-between; gap:10px; padding:12px; border:1px solid #dbe4f0; border-left:4px solid #94a3b8; border-radius:8px; background:#fff; }
.re-route-card span { display:block; color:var(--text-primary); font-size:.82rem; font-weight:850; }
.re-route-card p { margin:5px 0 0; color:var(--text-secondary); font-size:.72rem; line-height:1.55; }
.re-route-card ul { margin:0; padding-left:17px; color:#9a3412; font-size:.68rem; line-height:1.45; }
.re-route-card button { align-self:flex-start; }
.re-route-info { border-left-color:#2563eb; }
.re-route-warning { border-left-color:#d97706; }
.re-route-high { border-left-color:#ea580c; }
.re-route-critical { border-left-color:#dc2626; }
.re-route-blocked { border-left-color:#94a3b8; }
.re-route-card.is-blocked { background:#f8fafc; opacity:.82; }
.re-route-card.is-blocked span { color:#64748b; }
.re-supplement-panel .re-section-head { align-items:center; }
.re-disposition-note { margin-bottom:10px; padding:10px 12px; border:1px solid #dbeafe; border-radius:7px; background:#f8fbff; }
.re-disposition-note span { display:block; color:#2563eb; font-size:.68rem; font-weight:800; }
.re-disposition-note p { margin:5px 0 0; color:var(--text-secondary); font-size:.78rem; line-height:1.6; }
.re-supplement-list { display:flex; flex-direction:column; gap:8px; }
.re-supplement-item { display:grid; grid-template-columns:minmax(0, 1fr) 138px; gap:10px; align-items:start; padding:11px 12px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.re-supplement-item strong { display:block; color:var(--text-primary); font-size:.82rem; line-height:1.45; }
.re-supplement-item p { margin:5px 0 0; color:var(--text-muted); font-size:.72rem; line-height:1.5; }
.re-supplement-item select { min-width:0; }
.re-supp-response { grid-column:1 / -1; padding-top:8px; border-top:1px dashed var(--border-color); color:var(--text-secondary) !important; }
.re-readiness { border-color:#dbe4f0; background:#fbfdff; }
.re-readiness.ready { border-color:#bbf7d0; background:#f7fef9; }
.re-readiness.blocked { border-color:#fed7aa; background:#fffaf5; }
.re-readiness-badge { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border-radius:999px; background:#eef2ff; color:#3658d8; font-size:.68rem; font-weight:850; white-space:nowrap; }
.re-readiness.ready .re-readiness-badge { background:#dcfce7; color:#166534; }
.re-readiness.blocked .re-readiness-badge { background:#ffedd5; color:#9a3412; }
.re-readiness-list { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; }
.re-readiness-list div { min-width:0; padding:10px; border:1px solid var(--border-color); border-radius:7px; background:var(--card-bg); }
.re-readiness-list div::before { content:'✓'; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:6px; border-radius:50%; background:#dcfce7; color:#166534; font-size:.7rem; font-weight:900; vertical-align:middle; }
.re-readiness-list div.missing::before { content:'!'; background:#fee2e2; color:#b91c1c; }
.re-readiness-list strong { display:inline; color:var(--text-primary); font-size:.75rem; line-height:1.4; }
.re-readiness-list p { margin:7px 0 0; color:var(--text-muted); font-size:.68rem; line-height:1.45; }
.re-readiness-warn { margin-top:10px; padding:9px 11px; border:1px solid #fde68a; border-radius:7px; background:#fffbeb; }
.re-readiness-warn p { margin:0; color:#92400e; font-size:.72rem; line-height:1.55; }
.re-readiness-warn p + p { margin-top:4px; }
.re-data-snapshot { border:1px solid var(--border-color); border-radius:8px; background:var(--card-bg); overflow:hidden; }
.re-data-snapshot>summary { padding:13px 16px; cursor:pointer; color:var(--text-primary); font-size:.86rem; font-weight:750; background:var(--bg-page); }
.re-data-snapshot .re-section { border:none; border-top:1px solid var(--border-color); border-radius:0; }
.re-data-table { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.re-data-table div { padding:9px 10px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-page); min-width:0; }
.re-data-table span { display:block; color:var(--text-muted); font-size:.67rem; word-break:break-word; }
.re-data-table strong { display:block; margin-top:3px; color:var(--text-primary); font-size:.78rem; word-break:break-word; }
.re-log-list { display:flex; flex-direction:column; gap:8px; }
.re-log { padding:10px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-page); }
.re-log span { color:var(--text-muted); font-size:.68rem; }
.re-log strong { margin-left:8px; color:var(--text-primary); font-size:.78rem; }
.re-log p { margin:5px 0 0; color:var(--text-secondary); font-size:.76rem; }
.re-empty { padding:34px 18px; text-align:center; color:var(--text-muted); border:1px dashed var(--border-color); border-radius:8px; background:var(--bg-page); }
.re-empty.small { padding:18px; font-size:.8rem; }
.re-empty strong,.re-empty span { display:block; }
.re-empty strong { color:var(--text-primary); font-size:.84rem; }
.re-empty span { margin-top:6px; color:var(--text-muted); font-size:.74rem; line-height:1.55; }
.re-modal-overlay { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; background:rgba(15,23,42,.42); padding:20px; }
.re-modal { width:640px; max-width:96vw; max-height:92vh; overflow:hidden; display:flex; flex-direction:column; border-radius:10px; background:var(--card-bg); box-shadow:0 18px 50px rgba(15,23,42,.22); }
.re-modal-head { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid var(--border-color); }
.re-modal-head h3 { margin:0; font-size:1rem; color:var(--text-primary); }
.re-modal-head button { border:none; background:transparent; color:var(--text-muted); font-size:1.4rem; cursor:pointer; }
.re-modal-body { padding:18px; overflow:auto; display:flex; flex-direction:column; gap:12px; }
.re-modal-body label { display:flex; flex-direction:column; gap:5px; color:var(--text-secondary); font-size:.78rem; font-weight:650; }
.re-modal textarea { min-height:90px; resize:vertical; }
.re-modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.re-modal-footer { display:flex; justify-content:flex-end; gap:8px; padding:14px 18px; border-top:1px solid var(--border-color); }
html[data-theme="dark"] .re-card:hover,
html[data-theme="dark"] .re-card.active { background:#12213a; }
html[data-theme="dark"] .re-question,
html[data-theme="dark"] .re-option,
html[data-theme="dark"] .re-answer-list div,
html[data-theme="dark"] .re-route-card { background:#172235; }
html[data-theme="dark"] .re-route-options { background:#111827; }
html[data-theme="dark"] .re-route-card.is-blocked { background:#101826; }
html[data-theme="dark"] .re-review-flow,
html[data-theme="dark"] .re-review-flow-steps article { background:#172235; border-color:#314158; }
html[data-theme="dark"] .re-review-flow-head strong,
html[data-theme="dark"] .re-review-flow-steps b { color:#e5edf8; }
html[data-theme="dark"] .re-review-flow-head p,
html[data-theme="dark"] .re-review-flow-steps span { color:#9fb0c7; }
html[data-theme="dark"] .re-option:hover { background:#12213a; }
@media (max-width:1020px) {
  .re-layout { grid-template-columns:1fr; }
  .re-list { max-height:none; }
  .re-info-grid, .re-data-table { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .re-route-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .re-review-flow-steps { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .re-run-result, .re-run-row, .re-option-list, .re-supplement-item, .re-readiness-list { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .re-stats, .re-info-grid, .re-data-table, .re-modal-grid { grid-template-columns:1fr; }
  .re-route-grid, .re-review-flow-steps { grid-template-columns:1fr; }
  .re-review-flow-head { flex-direction:column; }
  .re-detail-head, .re-toolbar { flex-direction:column; align-items:stretch; }
  .re-actions { justify-content:flex-start; flex-wrap:wrap; }
}

/* ===== Premium audit splash screen ===== */
.welcome-modal-overlay:has(.audit-splash) { align-items:stretch; justify-content:stretch; background:radial-gradient(circle at 78% 18%, rgba(37,99,235,.22), transparent 30%), radial-gradient(circle at 16% 76%, rgba(124,58,237,.18), transparent 34%), #07111f; backdrop-filter:none; padding:0; }
.welcome-modal-overlay:has(.audit-splash).welcome-modal-closing { animation:auditSplashExit .28s ease forwards; }
.audit-splash { position:relative; width:100vw; max-width:none; min-height:100vh; margin:0; padding:0; display:grid; grid-template-columns:44% 56%; gap:0; overflow:hidden; border-radius:0; color:#f8fafc; background:linear-gradient(120deg, rgba(8,15,30,.98), rgba(15,23,42,.94) 52%, rgba(17,24,39,.98)), #0b1220; box-shadow:none; animation:auditSplashIn .5s cubic-bezier(.16,1,.3,1); }
.audit-splash::before, .audit-splash::after { content:""; position:absolute; pointer-events:none; }
.audit-splash::before { inset:-45%; background:conic-gradient(from 90deg, transparent, rgba(34,211,238,.12), transparent, rgba(124,58,237,.12), transparent); animation:auditSlowSpin 16s linear infinite; }
.audit-splash::after { inset:0; background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.08) 44%, transparent 58%); transform:translateX(-120%); animation:auditScan 3.6s ease-in-out infinite; }
.audit-splash-grid { position:absolute; inset:0; opacity:.55; background-image:linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px); background-size:48px 48px; mask-image:linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.65), transparent); }
.audit-splash-glow { position:absolute; width:360px; height:360px; border-radius:50%; filter:blur(50px); opacity:.34; }
.audit-splash-glow-a { right:12%; top:10%; background:#2563eb; animation:auditFloat 6.5s ease-in-out infinite; }
.audit-splash-glow-b { left:5%; bottom:8%; background:#7c3aed; animation:auditFloat 7.2s ease-in-out infinite reverse; }
.audit-splash-close { position:absolute; right:28px; top:24px; z-index:5; width:40px; height:40px; border:1px solid rgba(148,163,184,.28); border-radius:14px; background:rgba(15,23,42,.52); color:#cbd5e1; font-size:1.35rem; line-height:1; cursor:pointer; transition:.18s ease; }
.audit-splash-close:hover { background:rgba(37,99,235,.28); color:#fff; transform:translateY(-1px); }
.audit-splash-copy { position:relative; z-index:2; align-self:center; padding:96px 0 96px clamp(48px,7vw,118px); max-width:680px; }
.audit-splash-kicker { display:inline-flex; align-items:center; gap:10px; color:#67e8f9; font-size:.78rem; font-weight:900; letter-spacing:.22em; }
.audit-splash-kicker::before { content:""; width:36px; height:2px; border-radius:999px; background:linear-gradient(90deg,#22d3ee,#7c3aed); }
.audit-splash h1 { margin:22px 0 16px; color:#fff; font-size:clamp(3.5rem,7vw,7rem); line-height:.95; font-weight:950; letter-spacing:-.08em; text-shadow:0 26px 70px rgba(37,99,235,.28); }
.audit-splash-lead { margin:0; max-width:560px; color:#dbeafe; font-size:1.34rem; line-height:1.65; letter-spacing:-.02em; }
.audit-splash-greeting { margin:18px 0 0; color:#94a3b8; font-size:.94rem; }
.audit-splash-values { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.audit-splash-values span { display:inline-flex; align-items:center; min-height:38px; padding:0 15px; border:1px solid rgba(148,163,184,.24); border-radius:999px; background:rgba(255,255,255,.07); color:#e0f2fe; font-size:.9rem; font-weight:800; box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.audit-splash-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:38px; }
.audit-splash-primary, .audit-splash-secondary, .audit-splash-link { min-height:48px; padding:0 22px; border-radius:16px; font-size:.94rem; font-weight:900; cursor:pointer; transition:.2s ease; }
.audit-splash-primary { border:0; color:#fff; background:linear-gradient(135deg,#2563eb,#7c3aed); box-shadow:0 18px 42px rgba(37,99,235,.36); }
.audit-splash-primary:hover { transform:translateY(-2px); box-shadow:0 22px 54px rgba(37,99,235,.46); }
.audit-splash-secondary, .audit-splash-link { border:1px solid rgba(148,163,184,.28); color:#dbeafe; background:rgba(255,255,255,.08); }
.audit-splash-secondary:hover, .audit-splash-link:hover { border-color:rgba(34,211,238,.55); background:rgba(34,211,238,.11); color:#fff; }
.audit-splash-link { color:#a7f3d0; }
.audit-splash-no-show { display:flex; align-items:center; gap:8px; margin-top:20px; color:#94a3b8; font-size:.86rem; cursor:pointer; user-select:none; }
.audit-splash-no-show input { width:15px; height:15px; accent-color:#22d3ee; }
.audit-splash-visual { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; padding:96px clamp(48px,6vw,92px) 72px 0; }
.audit-orbit { position:relative; width:min(620px,47vw); aspect-ratio:1; border-radius:50%; }
.audit-orbit-core { position:absolute; left:50%; top:50%; z-index:4; width:230px; min-height:160px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:26px; border:1px solid rgba(191,219,254,.28); border-radius:34px; background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); box-shadow:0 30px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.18); backdrop-filter:blur(18px); text-align:center; }
.audit-orbit-core span { color:#67e8f9; font-size:.68rem; font-weight:950; letter-spacing:.18em; }
.audit-orbit-core strong { margin-top:9px; color:#fff; font-size:1.66rem; letter-spacing:-.04em; }
.audit-orbit-core small { margin-top:10px; color:#b6c7dd; font-size:.8rem; line-height:1.6; }
.audit-orbit-ring { position:absolute; inset:8%; border-radius:50%; border:1px solid rgba(148,163,184,.18); }
.audit-ring-1 { box-shadow:0 0 0 1px rgba(34,211,238,.06), inset 0 0 44px rgba(37,99,235,.08); animation:auditPulseRing 3s ease-in-out infinite; }
.audit-ring-2 { inset:19%; border-style:dashed; border-color:rgba(34,211,238,.26); animation:auditSlowSpin 28s linear infinite reverse; }
.audit-orbit-node { position:absolute; z-index:5; width:132px; min-height:86px; padding:14px 16px; border:1px solid rgba(148,163,184,.24); border-radius:22px; background:rgba(15,23,42,.72); box-shadow:0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter:blur(18px); animation:auditNodePulse 3.2s ease-in-out infinite; }
.audit-orbit-node b { display:block; color:#22d3ee; font-size:.68rem; letter-spacing:.18em; }
.audit-orbit-node strong { display:block; margin-top:5px; color:#f8fafc; font-size:1rem; }
.audit-orbit-node small { display:block; margin-top:4px; color:#94a3b8; font-size:.68rem; line-height:1.45; }
.audit-node-1{left:50%;top:0;transform:translate(-50%,0);animation-delay:.05s}
.audit-node-2{right:4%;top:18%;animation-delay:.25s}
.audit-node-3{right:0;bottom:24%;animation-delay:.45s}
.audit-node-4{left:50%;bottom:0;transform:translate(-50%,0);animation-delay:.65s}
.audit-node-5{left:0;bottom:24%;animation-delay:.85s}
.audit-node-6{left:4%;top:18%;animation-delay:1.05s}
.audit-node-7{left:50%;top:44%;transform:translate(-50%,-50%) translateY(-210px);animation-delay:1.25s}
.audit-data-line { position:absolute; z-index:3; height:2px; width:42%; border-radius:999px; background:linear-gradient(90deg, transparent, #22d3ee, transparent); opacity:.68; filter:drop-shadow(0 0 10px rgba(34,211,238,.8)); animation:auditFlowLine 2.4s ease-in-out infinite; }
.audit-data-line-a { left:22%; top:31%; --line-rotate:23deg; transform:rotate(23deg); }
.audit-data-line-b { right:20%; bottom:30%; --line-rotate:203deg; transform:rotate(203deg); animation-delay:1.1s; }
.audit-splash-status { width:min(560px,44vw); margin-top:34px; padding:18px 20px; border:1px solid rgba(148,163,184,.22); border-radius:22px; background:rgba(15,23,42,.56); box-shadow:0 24px 70px rgba(0,0,0,.28); backdrop-filter:blur(18px); }
.audit-splash-status span, .audit-splash-status strong { display:block; }
.audit-splash-status span { color:#e0f2fe; font-size:.92rem; font-weight:900; }
.audit-splash-status strong { margin-top:5px; color:#94a3b8; font-size:.78rem; font-weight:700; }
.audit-splash-progress { overflow:hidden; height:8px; margin-top:14px; border-radius:999px; background:rgba(148,163,184,.18); }
.audit-splash-progress i { display:block; height:100%; width:82%; border-radius:inherit; background:linear-gradient(90deg,#2563eb,#22d3ee,#10b981); box-shadow:0 0 18px rgba(34,211,238,.46); animation:auditProgress 2.2s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes auditSplashIn { from { opacity:0; transform:scale(1.015); } to { opacity:1; transform:scale(1); } }
@keyframes auditSplashExit { from { opacity:1; } to { opacity:0; } }
@keyframes auditSlowSpin { to { transform:rotate(360deg); } }
@keyframes auditScan { 0%,45% { transform:translateX(-120%); opacity:0; } 55% { opacity:.7; } 100% { transform:translateX(120%); opacity:0; } }
@keyframes auditFloat { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(18px,-14px,0) scale(1.08); } }
@keyframes auditPulseRing { 0%,100% { opacity:.62; transform:scale(1); } 50% { opacity:1; transform:scale(1.025); } }
@keyframes auditNodePulse { 0%,100% { border-color:rgba(148,163,184,.22); box-shadow:0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.1); } 50% { border-color:rgba(34,211,238,.5); box-shadow:0 22px 54px rgba(34,211,238,.13), inset 0 1px 0 rgba(255,255,255,.16); } }
@keyframes auditFlowLine { 0%,100% { opacity:.16; transform:translateX(-18px) rotate(var(--line-rotate,23deg)); } 50% { opacity:.9; transform:translateX(18px) rotate(var(--line-rotate,23deg)); } }
@keyframes auditProgress { 0% { width:18%; filter:hue-rotate(0deg); } 58% { width:82%; } 100% { width:96%; filter:hue-rotate(24deg); } }
@media (max-width:980px) {
  .audit-splash { overflow:auto; }
  .audit-splash-copy { padding:86px 28px 24px; }
  .audit-splash-visual { padding:10px 28px 64px; }
  .audit-orbit, .audit-splash-status { width:min(680px,92vw); }
}

/* ===== Splash visual refinement from selected concept ===== */
.audit-splash {
  grid-template-columns:44% 56%;
  gap:0;
  border:1px solid rgba(148,190,255,.34);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
  background:
    radial-gradient(circle at 72% 30%, rgba(96,165,250,.32), transparent 31%),
    radial-gradient(circle at 13% 70%, rgba(124,58,237,.24), transparent 34%),
    linear-gradient(105deg,#081425 0%, #0d1c31 45%, #10213b 72%, #07111f 100%);
}

.audit-splash-copy {
  padding:78px 0 170px 86px;
  align-self:center;
}

.audit-brand-lockup {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:92px;
}

.audit-brand-mark {
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:16px;
  color:#dbeafe;
  font-weight:950;
  font-size:1.7rem;
  background:linear-gradient(145deg,#22d3ee 0%,#2563eb 48%,#7c3aed 100%);
  box-shadow:0 14px 36px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.22);
  transform:skewY(-8deg);
}

.audit-brand-lockup strong {
  display:block;
  color:#f8fafc;
  font-size:1.44rem;
  line-height:1.1;
  letter-spacing:.04em;
}

.audit-brand-lockup small {
  display:block;
  margin-top:5px;
  color:#b6c7dd;
  font-size:.64rem;
  letter-spacing:.18em;
}

.audit-splash h1 {
  margin:0 0 20px;
  font-size:clamp(4.45rem, 5.3vw, 6rem);
  line-height:1.02;
  letter-spacing:-.055em;
  max-width:720px;
  text-shadow:0 10px 0 rgba(255,255,255,.04), 0 22px 58px rgba(15,23,42,.45);
}

.audit-splash-lead {
  font-size:1.48rem;
  letter-spacing:.08em;
  color:#c7d8f1;
  line-height:1.45;
}

.audit-title-rule {
  display:block;
  width:92px;
  height:3px;
  margin:30px 0 34px;
  border-radius:999px;
  background:linear-gradient(90deg,#67e8f9,#7c3aed);
  box-shadow:0 0 18px rgba(103,232,249,.46);
}

.audit-splash-greeting {
  margin:0;
  font-size:1rem;
  color:#91a4c2;
}

.audit-splash-values {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:0;
  max-width:620px;
  margin-top:54px;
}

.audit-splash-values span {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  min-height:146px;
  padding:0 36px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.audit-splash-values span + span {
  padding-left:38px;
  border-left:1px solid rgba(148,163,184,.18);
}

.audit-splash-values b {
  display:grid;
  place-items:center;
  width:68px;
  height:68px;
  margin-bottom:18px;
  border:1px solid rgba(96,165,250,.26);
  border-radius:16px;
  color:#c9dcff;
  font-size:1.35rem;
  background:rgba(12,27,50,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 0 26px rgba(37,99,235,.18);
}

.audit-splash-values strong {
  color:#f8fafc;
  font-size:1.2rem;
  letter-spacing:.02em;
}

.audit-splash-values small {
  margin-top:10px;
  color:#90a4c3;
  font-size:.86rem;
  line-height:1.65;
}

.audit-splash-actions {
  margin-top:52px;
}

.audit-splash-primary,
.audit-splash-secondary,
.audit-splash-link {
  min-height:54px;
  border-radius:18px;
  font-size:1rem;
}

.audit-splash-primary {
  min-width:156px;
  background:linear-gradient(135deg,#3b82f6,#7c3aed);
}

.audit-splash-secondary {
  min-width:220px;
}

.audit-splash-no-show {
  margin-top:24px;
  color:#a8b7cf;
  font-size:.94rem;
}

.audit-splash-visual {
  padding:72px 82px 148px 12px;
  align-items:center;
}

.audit-radar {
  width:min(640px, 43vw);
  margin-top:4px;
}

.audit-radar::before {
  content:"";
  position:absolute;
  inset:20%;
  border-radius:50%;
  background:
    radial-gradient(circle, rgba(96,165,250,.22) 0 1px, transparent 2px),
    repeating-radial-gradient(circle, rgba(96,165,250,.22) 0 1px, transparent 1px 34px);
  background-size:18px 18px, auto;
  opacity:.72;
  animation:auditRadarBreath 3.5s ease-in-out infinite;
}

.audit-radar::after {
  content:"";
  position:absolute;
  inset:20%;
  border-radius:50%;
  background:conic-gradient(from 20deg, transparent 0 68%, rgba(34,211,238,.2), transparent 79% 100%);
  animation:auditSlowSpin 5.4s linear infinite;
  filter:blur(.2px);
}

.audit-ring-1 {
  inset:8%;
  border-color:rgba(96,165,250,.58);
  box-shadow:0 0 38px rgba(37,99,235,.18);
}

.audit-ring-2 {
  inset:25%;
  border-color:rgba(96,165,250,.32);
}

.audit-ring-3 {
  inset:35%;
  border-style:dotted;
  border-color:rgba(103,232,249,.32);
  animation:auditSlowSpin 18s linear infinite;
}

.audit-orbit-core {
  width:192px;
  min-height:192px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(219,234,254,.68), rgba(96,165,250,.22) 40%, rgba(15,23,42,.2) 72%),
    linear-gradient(180deg, rgba(147,197,253,.28), rgba(37,99,235,.12));
  border-color:rgba(191,219,254,.46);
  box-shadow:0 0 48px rgba(96,165,250,.42), inset 0 0 38px rgba(255,255,255,.16);
}

.audit-orbit-core::before {
  content:"";
  position:absolute;
  inset:32px;
  clip-path:polygon(50% 0, 86% 18%, 78% 76%, 50% 100%, 22% 76%, 14% 18%);
  background:linear-gradient(180deg, rgba(239,246,255,.56), rgba(96,165,250,.26));
  border:1px solid rgba(219,234,254,.52);
  filter:drop-shadow(0 0 18px rgba(147,197,253,.6));
}

.audit-orbit-core span {
  display:none;
}

.audit-orbit-core strong {
  position:relative;
  z-index:2;
  margin:0;
  font-size:1.5rem;
  letter-spacing:-.02em;
  text-shadow:0 0 18px rgba(96,165,250,.85);
}

.audit-orbit-core small {
  display:none;
}

.audit-orbit-core em {
  position:absolute;
  inset:-82px;
  border-radius:50%;
  border:1px solid rgba(96,165,250,.16);
}

.audit-risk-tag {
  position:absolute;
  z-index:4;
  min-width:72px;
  padding:6px 12px;
  border:1px solid rgba(96,165,250,.28);
  border-radius:6px;
  background:rgba(37,99,235,.26);
  color:#cfe4ff;
  font-size:.78rem;
  font-weight:800;
  text-align:center;
  box-shadow:0 0 18px rgba(37,99,235,.2);
}

.audit-risk-top { left:50%; top:28%; transform:translateX(-50%); }
.audit-risk-right { right:21%; top:48%; }
.audit-risk-bottom { left:50%; bottom:28%; transform:translateX(-50%); }
.audit-risk-left { left:21%; top:48%; }

.audit-orbit-node {
  display:grid;
  grid-template-columns:auto auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:12px;
  width:auto;
  min-width:116px;
  min-height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}

.audit-orbit-node i {
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border:2px solid rgba(103,232,249,.68);
  border-radius:50%;
  background:radial-gradient(circle at 44% 35%, rgba(125,211,252,.88), rgba(37,99,235,.28) 58%, rgba(15,23,42,.88));
  box-shadow:0 0 20px rgba(34,211,238,.42), inset 0 0 18px rgba(255,255,255,.16);
  animation:auditNodeGlow 2.6s ease-in-out infinite;
}

.audit-orbit-node i::before {
  color:#dbeafe;
  font-size:1.28rem;
  font-weight:900;
}

.audit-icon-file i::before{content:"▤"}
.audit-icon-calendar i::before{content:"▦"}
.audit-icon-chart i::before{content:"◔"}
.audit-icon-search i::before{content:"⌕"}
.audit-icon-bulb i::before{content:"◌"}
.audit-icon-check i::before{content:"✓"}
.audit-icon-doc i::before{content:"▣"}

.audit-orbit-node b {
  grid-column:2;
  color:#9ecbff;
  font-size:.9rem;
  letter-spacing:.05em;
}

.audit-orbit-node strong {
  grid-column:2;
  margin:2px 0 0;
  color:#f8fafc;
  font-size:1.28rem;
  white-space:nowrap;
}

.audit-orbit-node small {
  display:none;
}

.audit-node-1{left:2%;top:25%;transform:none}
.audit-node-2{right:4%;top:10%;transform:none}
.audit-node-3{right:-5%;top:30%;transform:none}
.audit-node-4{right:-7%;bottom:37%;transform:none}
.audit-node-5{right:1%;bottom:16%;transform:none}
.audit-node-6{left:53%;bottom:1%;transform:none}
.audit-node-7{left:8%;bottom:9%;transform:none}

.audit-node-6 i {
  border-color:rgba(216,180,254,.72);
  background:radial-gradient(circle at 44% 35%, rgba(216,180,254,.86), rgba(124,58,237,.38) 58%, rgba(15,23,42,.9));
  box-shadow:0 0 22px rgba(168,85,247,.52), inset 0 0 18px rgba(255,255,255,.16);
}

.audit-node-7 i {
  border-color:rgba(129,140,248,.7);
  background:radial-gradient(circle at 44% 35%, rgba(199,210,254,.86), rgba(79,70,229,.36) 58%, rgba(15,23,42,.9));
}

.audit-splash-status {
  position:absolute;
  left:86px;
  bottom:88px;
  z-index:4;
  width:520px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}

.audit-splash-status span {
  color:#f8fafc;
  font-size:1rem;
}

.audit-splash-status strong {
  margin-top:8px;
  color:#95a8c7;
  font-size:.84rem;
}

.audit-splash-progress {
  height:13px;
  margin-top:18px;
  border:1px solid rgba(96,165,250,.45);
  background:rgba(8,15,30,.62);
  box-shadow:inset 0 0 10px rgba(0,0,0,.45), 0 0 20px rgba(37,99,235,.14);
}

.audit-splash-progress i {
  position:relative;
  width:78%;
  background:linear-gradient(90deg,#4f46e5,#3b82f6,#22d3ee);
  animation:auditProgressFixed 2.6s ease-in-out infinite;
}

.audit-splash-progress i::after {
  content:"";
  position:absolute;
  right:-4px;
  top:50%;
  width:10px;
  height:22px;
  transform:translateY(-50%);
  border-radius:999px;
  background:#e0f2fe;
  box-shadow:0 0 18px #22d3ee, 0 0 34px #3b82f6;
}

.audit-splash-progress::after {
  content:"78%";
  position:absolute;
  left:calc(100% + 22px);
  top:-7px;
  color:#dbeafe;
  font-size:1rem;
  font-weight:800;
}

.audit-load-steps {
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:12px;
  margin-top:22px;
  color:#7387a8;
  font-size:.76rem;
}

.audit-load-steps span {
  position:relative;
  padding-top:15px;
  color:#7f91ad;
  font-weight:700;
}

.audit-load-steps span::before {
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:7px;
  height:7px;
  transform:translateX(-50%);
  border-radius:50%;
  background:#2563eb;
  box-shadow:0 0 14px rgba(37,99,235,.8);
}

.audit-load-steps span:nth-child(3)::before {
  background:#67e8f9;
  box-shadow:0 0 18px rgba(103,232,249,.9);
}

.audit-splash-wave {
  position:absolute;
  left:0;
  right:0;
  bottom:-22px;
  z-index:1;
  height:210px;
  overflow:hidden;
  opacity:.9;
}

.audit-splash-wave i {
  position:absolute;
  left:-12%;
  right:-12%;
  height:80px;
  border-top:2px solid rgba(96,165,250,.48);
  border-radius:50%;
  filter:drop-shadow(0 0 12px rgba(96,165,250,.58));
  animation:auditWaveMove 4.8s ease-in-out infinite;
}

.audit-splash-wave i:nth-child(1) {
  bottom:18px;
  transform:rotate(-2deg);
  border-color:rgba(34,211,238,.72);
}

.audit-splash-wave i:nth-child(2) {
  bottom:46px;
  animation-delay:.8s;
  border-color:rgba(124,58,237,.66);
}

.audit-splash-wave i:nth-child(3) {
  bottom:78px;
  animation-delay:1.5s;
  border-color:rgba(96,165,250,.45);
}

@keyframes auditRadarBreath {
  0%,100% { opacity:.48; transform:scale(.98); }
  50% { opacity:.88; transform:scale(1.02); }
}

@keyframes auditNodeGlow {
  0%,100% { transform:scale(1); filter:brightness(1); }
  50% { transform:scale(1.06); filter:brightness(1.22); }
}

@keyframes auditProgressFixed {
  0%,100% { width:62%; }
  50% { width:78%; }
}

@keyframes auditWaveMove {
  0%,100% { transform:translateX(-3%) rotate(-2deg); opacity:.5; }
  50% { transform:translateX(3%) rotate(1deg); opacity:1; }
}

@media (max-width:1100px) {
  .audit-splash { overflow:auto; }
  .audit-splash-copy { padding:70px 56px 48px; }
  .audit-brand-lockup { margin-bottom:46px; }
  .audit-splash-visual { padding:20px 56px 210px; }
  .audit-radar { width:min(640px,86vw); }
  .audit-splash-status { left:56px; right:56px; width:auto; }
}

/* ===== Final splash: reference-matched full opening screen ===== */
.welcome-modal-overlay:has(.audit-splash) {
  align-items:stretch!important;
  justify-content:stretch!important;
  padding:0!important;
  background:#06111f!important;
  backdrop-filter:none!important;
}

.audit-splash {
  position:relative!important;
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  max-height:none!important;
  min-height:100vh!important;
  display:grid!important;
  grid-template-columns:44% 56%!important;
  overflow:hidden!important;
  border-radius:0!important;
  border:1px solid rgba(148,190,255,.34)!important;
  background:
    radial-gradient(circle at 76% 18%, rgba(191,219,254,.38), transparent 23%),
    radial-gradient(circle at 77% 44%, rgba(37,99,235,.24), transparent 33%),
    radial-gradient(circle at 21% 76%, rgba(124,58,237,.24), transparent 33%),
    linear-gradient(105deg,#07111f 0%, #0a1729 43%, #10223d 70%, #07111f 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important;
}

.audit-splash-grid {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  opacity:.58!important;
  background-image:
    linear-gradient(rgba(148,190,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,190,255,.075) 1px, transparent 1px)!important;
  background-size:52px 52px!important;
  mask-image:none!important;
}

.audit-splash::before {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 92% 10%, rgba(34,211,238,.22) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 13%, rgba(96,165,250,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 16%, rgba(147,197,253,.16) 0 1px, transparent 2px)!important;
  background-size:18px 18px, 22px 22px, 26px 26px!important;
  opacity:.85!important;
  animation:auditStarTwinkle 2.8s ease-in-out infinite!important;
}

.audit-splash::after {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(105deg, transparent 0%, rgba(255,255,255,.055) 48%, transparent 62%)!important;
  transform:translateX(-120%)!important;
  animation:auditScan 3s ease-in-out 1!important;
}

.audit-splash-glow {
  display:block!important;
  position:absolute!important;
  border-radius:50%!important;
  filter:blur(58px)!important;
  pointer-events:none!important;
}

.audit-splash-glow-a {
  right:11%!important;
  top:10%!important;
  width:520px!important;
  height:520px!important;
  background:rgba(96,165,250,.33)!important;
}

.audit-splash-glow-b {
  left:8%!important;
  bottom:8%!important;
  width:520px!important;
  height:420px!important;
  background:rgba(124,58,237,.26)!important;
}

.audit-splash-copy {
  position:relative!important;
  z-index:5!important;
  grid-column:1!important;
  grid-row:1!important;
  padding:7.5vh 0 0 clamp(40px,5.5vw,80px)!important;
  max-width:none!important;
  width:auto!important;
}

.audit-brand-lockup {
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  margin:0 0 118px!important;
  padding:0!important;
}

.audit-brand-mark {
  position:relative!important;
  display:block!important;
  width:58px!important;
  height:58px!important;
  border-radius:14px!important;
  transform:rotate(-8deg)!important;
  background:linear-gradient(145deg,#5eead4 0%, #3b82f6 45%, #6d28d9 100%)!important;
  box-shadow:0 16px 36px rgba(37,99,235,.34), inset 0 1px 0 rgba(255,255,255,.3)!important;
}

.audit-brand-mark i {
  position:absolute!important;
  display:block!important;
  border-radius:4px!important;
  background:#dbeafe!important;
  box-shadow:0 0 12px rgba(219,234,254,.46)!important;
}

.audit-brand-mark i:nth-child(1) { left:18px!important; top:14px!important; width:24px!important; height:8px!important; transform:rotate(34deg)!important; }
.audit-brand-mark i:nth-child(2) { left:14px!important; top:23px!important; width:8px!important; height:24px!important; transform:rotate(34deg)!important; }
.audit-brand-mark i:nth-child(3) { right:14px!important; bottom:14px!important; width:24px!important; height:8px!important; transform:rotate(34deg)!important; background:#bfdbfe!important; }

.audit-brand-lockup strong {
  display:block!important;
  color:#f8fafc!important;
  font-size:1.55rem!important;
  line-height:1.05!important;
  letter-spacing:.02em!important;
}

.audit-brand-lockup small {
  display:block!important;
  margin-top:7px!important;
  color:#cbd5e1!important;
  font-size:.68rem!important;
  letter-spacing:.2em!important;
}

.audit-splash h1 {
  margin:0 0 20px!important;
  max-width:700px!important;
  color:#fff!important;
  font-size:clamp(4.8rem, 5.5vw, 6.35rem)!important;
  line-height:1.02!important;
  font-weight:950!important;
  letter-spacing:-.065em!important;
  text-shadow:0 12px 0 rgba(255,255,255,.04), 0 30px 60px rgba(15,23,42,.52)!important;
}

.audit-splash-lead {
  margin:0!important;
  color:#c8d8f3!important;
  font-size:1.4rem!important;
  line-height:1.45!important;
  letter-spacing:.08em!important;
}

.audit-title-rule {
  display:block!important;
  width:96px!important;
  height:3px!important;
  margin:30px 0 52px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#67e8f9,#7c3aed)!important;
  box-shadow:0 0 18px rgba(103,232,249,.46)!important;
}

.audit-splash-values {
  display:grid!important;
  grid-template-columns:repeat(3, minmax(0,1fr))!important;
  gap:0!important;
  max-width:640px!important;
  margin:0!important;
}

.audit-splash-values span {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-height:154px!important;
  padding:0 34px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.audit-splash-values span + span {
  padding-left:36px!important;
  border-left:1px solid rgba(148,163,184,.22)!important;
}

.audit-splash-values b {
  display:grid!important;
  place-items:center!important;
  width:68px!important;
  height:68px!important;
  margin:0 0 18px!important;
  border:1px solid rgba(96,165,250,.3)!important;
  border-radius:16px!important;
  color:#dbeafe!important;
  background:rgba(10,25,48,.78)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 0 28px rgba(37,99,235,.22)!important;
  font-size:1.4rem!important;
}

.audit-splash-values strong {
  color:#fff!important;
  font-size:1.22rem!important;
  line-height:1.2!important;
}

.audit-splash-values small {
  margin-top:10px!important;
  color:#91a6c7!important;
  font-size:.86rem!important;
  line-height:1.65!important;
}

.audit-splash-visual {
  position:relative!important;
  z-index:4!important;
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:0 clamp(20px,3vw,60px) 0 0!important;
}

.audit-radar {
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:min(650px, 43vw)!important;
  height:min(650px, 43vw)!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
}

.audit-radar::before {
  inset:20%!important;
  background:
    radial-gradient(circle, rgba(103,232,249,.52) 0 1px, transparent 2px),
    repeating-radial-gradient(circle, rgba(96,165,250,.2) 0 1px, transparent 1px 30px)!important;
  background-size:16px 16px, auto!important;
  opacity:.72!important;
}

.audit-radar::after {
  inset:20%!important;
  background:conic-gradient(from 20deg, transparent 0 68%, rgba(34,211,238,.24), transparent 79% 100%)!important;
  animation:auditSlowSpin 3.2s linear infinite!important;
}

.audit-ring-1 { inset:7%!important; border-color:rgba(96,165,250,.68)!important; box-shadow:0 0 36px rgba(37,99,235,.22)!important; }
.audit-ring-2 { inset:24%!important; border-color:rgba(96,165,250,.34)!important; }
.audit-ring-3 { inset:34%!important; border-color:rgba(103,232,249,.32)!important; }

.audit-orbit-core {
  width:184px!important;
  min-height:184px!important;
}

.audit-orbit-core strong {
  font-size:1.55rem!important;
}

.audit-risk-tag {
  font-size:.72rem!important;
  padding:5px 11px!important;
}

.audit-risk-top { left:50%!important; top:28%!important; transform:translateX(-50%)!important; }
.audit-risk-right { right:20%!important; top:48%!important; }
.audit-risk-bottom { left:50%!important; bottom:28%!important; transform:translateX(-50%)!important; }
.audit-risk-left { left:20%!important; top:48%!important; }

.audit-orbit-node {
  display:grid!important;
  grid-template-columns:auto auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:12px!important;
  width:auto!important;
  min-width:124px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.audit-orbit-node i {
  width:58px!important;
  height:58px!important;
}

.audit-orbit-node b {
  color:#a6ccff!important;
  font-size:.86rem!important;
}

.audit-orbit-node strong {
  color:#f8fafc!important;
  font-size:1.3rem!important;
}

.audit-node-1{left:1%!important;top:24%!important;transform:none!important}
.audit-node-2{right:3%!important;top:9%!important;transform:none!important}
.audit-node-3{right:-7%!important;top:31%!important;transform:none!important}
.audit-node-4{right:-8%!important;bottom:37%!important;transform:none!important}
.audit-node-5{right:0!important;bottom:15%!important;transform:none!important}
.audit-node-6{left:53%!important;bottom:0!important;transform:none!important}
.audit-node-7{left:7%!important;bottom:8%!important;transform:none!important}

.audit-splash-status {
  position:relative!important;
  z-index:6!important;
  grid-column:1!important;
  grid-row:2!important;
  width:auto!important;
  min-width:0!important;
  left:auto!important;
  bottom:auto!important;
  margin-top:2vh!important;
  padding:0 clamp(40px,5.5vw,80px)!important;
  max-width:560px!important;
}

.audit-splash-status span {
  color:#f8fafc!important;
  font-size:1.05rem!important;
  font-weight:850!important;
}

.audit-splash-progress {
  position:relative!important;
  width:100%!important;
  height:14px!important;
  margin:18px 0 0!important;
  overflow:visible!important;
  border:1px solid rgba(96,165,250,.5)!important;
  border-radius:999px!important;
  background:rgba(6,17,31,.75)!important;
  box-shadow:inset 0 0 12px rgba(0,0,0,.5), 0 0 18px rgba(37,99,235,.16)!important;
}

.audit-splash-progress i {
  position:relative!important;
  display:block!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#4f46e5,#3b82f6,#22d3ee)!important;
  box-shadow:0 0 18px rgba(34,211,238,.58)!important;
  transition:width .08s linear!important;
}

.audit-splash-progress i::after {
  content:""!important;
  position:absolute!important;
  right:-5px!important;
  top:50%!important;
  width:10px!important;
  height:24px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  background:#e0f2fe!important;
  box-shadow:0 0 20px #22d3ee, 0 0 38px #3b82f6!important;
}

.audit-splash-progress::after {
  content:"78%"!important;
  position:absolute!important;
  left:calc(100% + 22px)!important;
  top:-9px!important;
  color:#dbeafe!important;
  font-size:1.05rem!important;
  font-weight:900!important;
}

.audit-load-steps {
  display:grid!important;
  grid-template-columns:repeat(5,1fr)!important;
  gap:12px!important;
  margin-top:24px!important;
  color:#7387a8!important;
  font-size:.76rem!important;
}

.audit-splash-no-show {
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:max-content!important;
  margin-top:22px!important;
  color:#b7c5dc!important;
  font-size:.86rem!important;
  cursor:pointer!important;
  user-select:none!important;
}

.audit-splash-no-show input {
  width:15px!important;
  height:15px!important;
  accent-color:#67e8f9!important;
}

.audit-splash-wave {
  display:block!important;
  position:absolute!important;
  z-index:3!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:250px!important;
  opacity:1!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 50% 58%, rgba(147,197,253,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 58%, rgba(124,58,237,.85) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent, rgba(15,23,42,.72))!important;
  background-size:13px 13px, 19px 19px, auto!important;
  mask-image:linear-gradient(180deg, transparent 0%, #000 20%, #000 100%)!important;
  animation:auditGalaxyDrift 5.8s linear infinite!important;
}

.audit-splash-wave::before,
.audit-splash-wave::after {
  content:""!important;
  position:absolute!important;
  left:-10%!important;
  right:-10%!important;
  height:120px!important;
  border-top:2px solid rgba(96,165,250,.58)!important;
  border-radius:50%!important;
  filter:drop-shadow(0 0 16px rgba(96,165,250,.75))!important;
}

.audit-splash-wave::before {
  bottom:48px!important;
  transform:rotate(-2deg)!important;
  box-shadow:0 -14px 26px rgba(34,211,238,.18)!important;
  animation:auditGalaxyWave 4.2s ease-in-out infinite!important;
}

.audit-splash-wave::after {
  bottom:20px!important;
  border-color:rgba(167,139,250,.74)!important;
  transform:rotate(1deg)!important;
  animation:auditGalaxyWave 5.2s ease-in-out infinite reverse!important;
}

.audit-splash-wave i {
  position:absolute!important;
  left:-10%!important;
  right:-10%!important;
  height:74px!important;
  border-top:1px solid rgba(96,165,250,.35)!important;
  border-radius:50%!important;
  filter:drop-shadow(0 0 10px rgba(96,165,250,.5))!important;
  animation:auditGalaxyWave 4.8s ease-in-out infinite!important;
}

.audit-splash-wave i:nth-child(1){bottom:26px!important;border-color:rgba(34,211,238,.62)!important}
.audit-splash-wave i:nth-child(2){bottom:52px!important;border-color:rgba(96,165,250,.48)!important;animation-delay:.4s!important}
.audit-splash-wave i:nth-child(3){bottom:78px!important;border-color:rgba(167,139,250,.58)!important;animation-delay:.8s!important}
.audit-splash-wave i:nth-child(4){bottom:104px!important;border-color:rgba(147,197,253,.34)!important;animation-delay:1.2s!important}
.audit-splash-wave i:nth-child(5){bottom:132px!important;border-color:rgba(34,211,238,.24)!important;animation-delay:1.6s!important}

@keyframes auditLoadTo78 {
  0% { width:0; }
  20% { width:18%; }
  52% { width:46%; }
  78% { width:66%; }
  100% { width:78%; }
}

@keyframes auditGalaxyDrift {
  0% { background-position:0 0, 0 0, 0 0; }
  100% { background-position:80px 0, -120px 0, 0 0; }
}

@keyframes auditGalaxyWave {
  0%,100% { transform:translateX(-2%) rotate(-2deg); opacity:.58; }
  50% { transform:translateX(2%) rotate(1deg); opacity:1; }
}

@keyframes auditStarTwinkle {
  0%,100% { opacity:.52; }
  50% { opacity:1; }
}

@media (max-width:1100px) {
  .audit-splash-copy { left:6vw!important; top:6vh!important; width:88vw!important; }
  .audit-brand-lockup { margin-bottom:52px!important; }
  .audit-splash h1 { font-size:clamp(3.2rem, 9vw, 5rem)!important; }
  .audit-splash-visual { right:4vw!important; top:42vh!important; width:88vw!important; min-width:0!important; opacity:.72!important; }
  .audit-radar { width:min(560px, 82vw)!important; height:min(560px, 82vw)!important; }
  .audit-splash-status { left:6vw!important; bottom:9vh!important; width:min(520px, 78vw)!important; }
}

/* ===== Splash layout correction: fixed viewport composition ===== */
.audit-splash-copy {
  left:6vw!important;
  top:7vh!important;
  width:42vw!important;
}

.audit-brand-lockup {
  margin-bottom:10.8vh!important;
}

.audit-splash h1 {
  font-size:clamp(4.2rem, 5.15vw, 5.7rem)!important;
  line-height:1.02!important;
}

.audit-splash-lead {
  font-size:clamp(1.15rem, 1.32vw, 1.42rem)!important;
}

.audit-title-rule {
  margin:3vh 0 5.8vh!important;
}

.audit-splash-values {
  max-width:42vw!important;
}

.audit-splash-values span {
  min-height:136px!important;
}

.audit-splash-visual {
  right:4.2vw!important;
  top:6.4vh!important;
  width:50vw!important;
  height:69vh!important;
  min-width:600px!important;
  min-height:520px!important;
}

.audit-radar {
  left:50%!important;
  top:50%!important;
  width:clamp(500px, 39vw, 640px)!important;
  height:clamp(500px, 39vw, 640px)!important;
}

.audit-orbit-core {
  width:168px!important;
  min-height:168px!important;
}

.audit-orbit-core strong {
  font-size:1.38rem!important;
}

.audit-node-1{left:3%!important;top:24%!important}
.audit-node-2{right:8%!important;top:10%!important}
.audit-node-3{right:-1%!important;top:31%!important}
.audit-node-4{right:-2%!important;bottom:37%!important}
.audit-node-5{right:5%!important;bottom:16%!important}
.audit-node-6{left:53%!important;bottom:1%!important}
.audit-node-7{left:9%!important;bottom:9%!important}

.audit-splash-status {
  position:relative!important;
  grid-column:1!important;
  grid-row:2!important;
  width:auto!important;
  min-width:0!important;
  left:auto!important;
  bottom:auto!important;
  margin-top:2vh!important;
  padding:0 clamp(40px,5.5vw,80px)!important;
  max-width:560px!important;
}

.audit-splash-progress::after {
  left:calc(100% + 24px)!important;
}

.audit-splash-no-show {
  margin-top:18px!important;
}

.audit-splash-wave {
  height:29vh!important;
  max-height:260px!important;
  z-index:2!important;
}

@media (max-height:850px) and (min-width:1101px) {
  .audit-splash-copy {
    top:44px!important;
    left:5.2vw!important;
    width:43vw!important;
  }
  .audit-brand-lockup {
    margin-bottom:64px!important;
  }
  .audit-brand-mark {
    width:50px!important;
    height:50px!important;
  }
  .audit-brand-lockup strong {
    font-size:1.34rem!important;
  }
  .audit-brand-lockup small {
    font-size:.62rem!important;
  }
  .audit-splash h1 {
    font-size:clamp(3.5rem, 4.35vw, 4.85rem)!important;
  }
  .audit-splash-lead {
    font-size:1.16rem!important;
    letter-spacing:.06em!important;
  }
  .audit-title-rule {
    margin:22px 0 38px!important;
  }
  .audit-splash-values {
    max-width:41vw!important;
  }
  .audit-splash-values span {
    min-height:122px!important;
    padding-right:24px!important;
  }
  .audit-splash-values span + span {
    padding-left:28px!important;
  }
  .audit-splash-values b {
    width:54px!important;
    height:54px!important;
    margin-bottom:13px!important;
    border-radius:14px!important;
    font-size:1.12rem!important;
  }
  .audit-splash-values strong {
    font-size:1.03rem!important;
  }
  .audit-splash-values small {
    font-size:.76rem!important;
    line-height:1.5!important;
  }
  .audit-splash-visual {
    top:38px!important;
    right:3.6vw!important;
    width:49vw!important;
    height:560px!important;
    min-width:560px!important;
    min-height:560px!important;
  }
  .audit-radar {
    width:520px!important;
    height:520px!important;
  }
  .audit-orbit-node i {
    width:48px!important;
    height:48px!important;
  }
  .audit-orbit-node strong {
    font-size:1.06rem!important;
  }
  .audit-orbit-node b {
    font-size:.72rem!important;
  }
  .audit-risk-tag {
    transform:scale(.88)!important;
  }
  .audit-risk-top { transform:translateX(-50%) scale(.88)!important; }
  .audit-risk-bottom { transform:translateX(-50%) scale(.88)!important; }
  .audit-orbit-core {
    width:142px!important;
    min-height:142px!important;
  }
  .audit-orbit-core::before {
    inset:26px!important;
  }
  .audit-orbit-core strong {
    font-size:1.18rem!important;
  }
  .audit-splash-status {
    left:5.2vw!important;
    bottom:64px!important;
    width:520px!important;
  }
  .audit-splash-status span {
    font-size:.92rem!important;
  }
  .audit-splash-progress {
    height:11px!important;
    margin-top:12px!important;
  }
  .audit-load-steps {
    margin-top:18px!important;
    font-size:.68rem!important;
  }
  .audit-splash-no-show {
    margin-top:14px!important;
    font-size:.76rem!important;
  }
  .audit-splash-wave {
    height:210px!important;
  }
}

/* ===== Exact splash replication from approved visual ===== */
.welcome-modal-overlay:has(.audit-splash) {
  padding:0!important;
  background:#07111f!important;
}

.audit-splash {
  width:100vw!important;
  height:100vh!important;
  min-height:100vh!important;
  max-width:none!important;
  max-height:none!important;
  overflow:hidden!important;
  border-radius:0!important;
  background:#07111f url("../assets/splash-reference.png") center center / contain no-repeat!important;
}

.audit-splash-grid,
.audit-splash-glow,
.audit-splash-copy,
.audit-splash-visual,
.audit-splash-wave {
  display:none!important;
}

.audit-splash::before,
.audit-splash::after {
  display:none!important;
}

.audit-galaxy-canvas {
  display:block!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:3!important;
  width:100vw!important;
  height:24.6vh!important;
  opacity:.46!important;
  mix-blend-mode:screen!important;
  pointer-events:none!important;
}

.audit-splash::selection {
  background:transparent;
}

.audit-splash-loaded {
  animation:auditSplashHold .5s ease both!important;
}

@keyframes auditSplashHold {
  from { filter:brightness(1); }
  to { filter:brightness(1.06); }
}

/* ===== Living splash v2: animated layers instead of static poster ===== */
.audit-splash {
  background:
    radial-gradient(circle at 76% 18%, rgba(191,219,254,.34), transparent 23%),
    radial-gradient(circle at 77% 44%, rgba(37,99,235,.22), transparent 33%),
    radial-gradient(circle at 21% 76%, rgba(124,58,237,.24), transparent 33%),
    linear-gradient(105deg,#07111f 0%, #0a1729 43%, #10223d 70%, #07111f 100%)!important;
}

.audit-splash-grid,
.audit-splash-glow {
  display:block!important;
}
.audit-splash-copy {
  display:block!important;
}
.audit-splash-visual {
  display:flex!important;
}

.audit-splash-wave {
  display:none!important;
}

.audit-splash-grid {
  position:absolute!important;
  inset:0!important;
  opacity:.56!important;
  background-image:
    linear-gradient(rgba(148,190,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,190,255,.07) 1px, transparent 1px)!important;
  background-size:52px 52px!important;
}

.audit-splash::before,
.audit-splash::after {
  display:block!important;
  content:""!important;
  position:absolute!important;
  pointer-events:none!important;
}

.audit-splash::before {
  inset:8px!important;
  border:1px solid rgba(148,190,255,.35)!important;
  border-radius:10px!important;
  background:
    radial-gradient(circle at 93% 9%, rgba(34,211,238,.28) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 12%, rgba(96,165,250,.18) 0 1px, transparent 2px)!important;
  background-size:20px 20px, 24px 24px!important;
  opacity:.9!important;
  animation:auditStarTwinkle 2.8s ease-in-out infinite!important;
}

.audit-splash::after {
  inset:0!important;
  background:linear-gradient(105deg, transparent 0%, rgba(255,255,255,.055) 48%, transparent 62%)!important;
  transform:translateX(-120%)!important;
  animation:auditScan 3.6s ease-in-out infinite!important;
}

.audit-splash-copy {
  position:relative!important;
  z-index:5!important;
  grid-column:1!important;
  grid-row:1!important;
  padding:7.5vh 0 0 clamp(40px,5.5vw,80px)!important;
  max-width:none!important;
  width:auto!important;
  animation:auditIntroRise .75s cubic-bezier(.16,1,.3,1) both!important;
}

.audit-brand-lockup {
  margin:0 0 10.8vh!important;
  animation:auditIntroRise .65s cubic-bezier(.16,1,.3,1) both!important;
}

.audit-splash h1 {
  margin:0 0 20px!important;
  color:#fff!important;
  font-size:clamp(4.2rem, 5.15vw, 5.8rem)!important;
  line-height:1.02!important;
  font-weight:950!important;
  letter-spacing:-.06em!important;
}

.audit-splash-lead {
  margin:0!important;
  color:#c8d8f3!important;
  font-size:clamp(1.14rem, 1.32vw, 1.42rem)!important;
  line-height:1.45!important;
  letter-spacing:.08em!important;
}

.audit-title-rule {
  margin:3vh 0 5.8vh!important;
}

.audit-splash-values {
  display:grid!important;
  grid-template-columns:repeat(3, minmax(0,1fr))!important;
  gap:0!important;
  max-width:42vw!important;
  margin:0!important;
}

.audit-splash-values span {
  opacity:0;
  animation:auditIntroRise .55s cubic-bezier(.16,1,.3,1) both!important;
}

.audit-splash-values span:nth-child(1){animation-delay:.75s!important}
.audit-splash-values span:nth-child(2){animation-delay:.9s!important}
.audit-splash-values span:nth-child(3){animation-delay:1.05s!important}

.audit-splash-visual {
  position:relative!important;
  z-index:4!important;
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:0 clamp(20px,3vw,60px) 0 0!important;
}

.audit-radar {
  left:50%!important;
  top:50%!important;
  width:clamp(500px, 39vw, 640px)!important;
  height:clamp(500px, 39vw, 640px)!important;
  transform:translate(-50%,-50%)!important;
  animation:auditRadarEnter .9s cubic-bezier(.16,1,.3,1) .85s both!important;
}

.audit-ring-1 { animation:auditPulseRing 3.2s ease-in-out infinite!important; }
.audit-ring-2 { animation:auditSlowSpin 26s linear infinite reverse!important; }
.audit-ring-3 { animation:auditSlowSpin 18s linear infinite!important; }

.audit-orbit-core {
  animation:auditCoreBreath 2.7s ease-in-out infinite!important;
}

.audit-orbit-node {
  opacity:0;
  animation:auditNodeIgnite .6s cubic-bezier(.16,1,.3,1) both, auditNodePulse 3.2s ease-in-out infinite!important;
}

.audit-node-1{animation-delay:1.25s, 2.2s!important}
.audit-node-2{animation-delay:1.42s, 2.2s!important}
.audit-node-3{animation-delay:1.59s, 2.2s!important}
.audit-node-4{animation-delay:1.76s, 2.2s!important}
.audit-node-5{animation-delay:1.93s, 2.2s!important}
.audit-node-6{animation-delay:2.1s, 2.2s!important}
.audit-node-7{animation-delay:2.27s, 2.2s!important}

.audit-risk-tag {
  opacity:0;
  animation:auditTagFade .5s ease 1.4s both!important;
}

.audit-splash-status {
  position:relative!important;
  z-index:6!important;
  grid-column:1!important;
  grid-row:2!important;
  width:auto!important;
  min-width:0!important;
  left:auto!important;
  bottom:auto!important;
  margin-top:2vh!important;
  padding:0 clamp(40px,5.5vw,80px)!important;
  max-width:560px!important;
}

.audit-splash-progress i {
  min-width:8px!important;
}

.audit-splash-progress::after {
  content:none!important;
}

.audit-progress-percent {
  position:absolute!important;
  left:calc(100% + 22px)!important;
  top:-9px!important;
  color:#dbeafe!important;
  font-size:1.05rem!important;
  font-weight:900!important;
  line-height:1!important;
}

.audit-load-steps span {
  transition:color .25s ease, text-shadow .25s ease!important;
}

.audit-load-steps span::before {
  transition:background .25s ease, box-shadow .25s ease, transform .25s ease!important;
}

.audit-load-steps span.active {
  color:#dbeafe!important;
  text-shadow:0 0 12px rgba(96,165,250,.5)!important;
}

.audit-load-steps span.active::before {
  background:#67e8f9!important;
  transform:translateX(-50%) scale(1.35)!important;
  box-shadow:0 0 18px rgba(103,232,249,.95)!important;
}

.audit-galaxy-canvas {
  z-index:4!important;
  height:25.5vh!important;
  opacity:.88!important;
  mix-blend-mode:screen!important;
}

.audit-splash-complete .audit-orbit-core,
.audit-splash-loaded .audit-orbit-core {
  filter:brightness(1.18)!important;
}

@keyframes auditIntroRise {
  from { opacity:0; transform:translateY(18px); filter:blur(8px); }
  to { opacity:1; transform:translateY(0); filter:blur(0); }
}

@keyframes auditRadarEnter {
  from { opacity:0; transform:translate(-50%,-50%) scale(.92); filter:blur(8px); }
  to { opacity:1; transform:translate(-50%,-50%) scale(1); filter:blur(0); }
}

@keyframes auditNodeIgnite {
  from { opacity:0; transform:translateY(10px) scale(.9); filter:blur(5px); }
  to { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
}

@keyframes auditTagFade {
  from { opacity:0; transform:translateY(4px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes auditCoreBreath {
  0%,100% { filter:brightness(1); }
  50% { filter:brightness(1.22); }
}

/* ===== Splash final alignment: radar + live blue progress ===== */
.audit-splash-visual {
  position:relative!important;
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
}

.audit-radar {
  position:absolute!important;
  left:50%!important;
  top:48%!important;
  width:min(42vw, 66vh, 660px)!important;
  height:min(42vw, 66vh, 660px)!important;
  transform:translate(-50%,-50%)!important;
}

.audit-splash-status {
  left:6.2vw!important;
  bottom:8.2vh!important;
  width:min(620px, 36vw)!important;
  min-width:520px!important;
}

.audit-splash-progress {
  position:relative!important;
  overflow:visible!important;
  height:14px!important;
  border:1px solid rgba(96,165,250,.55)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg, rgba(8,18,35,.9), rgba(2,8,23,.88))!important;
  box-shadow:
    inset 0 0 14px rgba(0,0,0,.72),
    0 0 0 1px rgba(147,197,253,.08),
    0 0 22px rgba(37,99,235,.18)!important;
}

.audit-splash-progress i {
  display:block!important;
  position:relative!important;
  height:100%!important;
  min-width:8px!important;
  border-radius:999px!important;
  background:
    linear-gradient(90deg, #4f46e5 0%, #3b82f6 48%, #22d3ee 100%)!important;
  box-shadow:
    0 0 18px rgba(34,211,238,.78),
    inset 0 1px 0 rgba(255,255,255,.42)!important;
  transition:width .08s linear!important;
  animation:none!important;
}

.audit-splash-progress i::before {
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.52) 46%, transparent 62%)!important;
  animation:auditProgressSheen 1.15s linear infinite!important;
}

.audit-splash-progress i::after {
  content:""!important;
  position:absolute!important;
  right:-5px!important;
  top:50%!important;
  width:11px!important;
  height:24px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  background:#e0f2fe!important;
  box-shadow:0 0 20px #22d3ee, 0 0 42px #3b82f6!important;
}

.audit-progress-percent {
  left:calc(100% + 22px)!important;
  top:-8px!important;
  min-width:52px!important;
  text-align:left!important;
}

@keyframes auditProgressSheen {
  from { transform:translateX(-105%); }
  to { transform:translateX(105%); }
}

@media (max-height:850px) and (min-width:1101px) {
  .audit-splash-visual {
    right:2.4vw!important;
    top:5.6vh!important;
    width:53vw!important;
    height:67vh!important;
    min-width:570px!important;
  }
  .audit-radar {
    top:48%!important;
    width:min(41vw, 64vh, 600px)!important;
    height:min(41vw, 64vh, 600px)!important;
  }
  .audit-splash-status {
    left:5.4vw!important;
    bottom:7.2vh!important;
    width:500px!important;
    min-width:500px!important;
  }
}

/* ===== SPLASH LAYOUT FIX: resolve all conflicting rules ===== */
.audit-splash {
  display:grid!important;
  grid-template-columns:44% 56%!important;
  gap:0!important;
}

.audit-splash-copy {
  position:relative!important;
  z-index:5!important;
  grid-column:1!important;
  grid-row:1!important;
  padding:7.5vh 0 0 clamp(40px,5.5vw,80px)!important;
  max-width:none!important;
  width:auto!important;
}

.audit-splash-visual {
  position:relative!important;
  z-index:4!important;
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:0 clamp(20px,3vw,60px) 0 0!important;
}

.audit-splash-status {
  position:relative!important;
  z-index:6!important;
  width:100%!important;
  min-width:0!important;
  left:auto!important;
  bottom:auto!important;
  margin-top:3vh!important;
  padding:18px 20px!important;
  max-width:560px!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:22px!important;
  background:rgba(15,23,42,.56)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(18px)!important;
}

.audit-brand-lockup {
  margin:0 0 9vh!important;
}

.audit-splash h1 {
  font-size:clamp(3.2rem, 4.2vw, 4.8rem)!important;
  max-width:560px!important;
}

.audit-splash-lead {
  font-size:clamp(1rem, 1.15vw, 1.25rem)!important;
  max-width:520px!important;
}

.audit-splash-values {
  max-width:38vw!important;
}

.audit-radar {
  width:min(40vw, 62vh, 600px)!important;
  height:min(40vw, 62vh, 600px)!important;
}

/* ===== ORBIT NODE CIRCULAR LAYOUT: 7 nodes clockwise from top, icon center on outer ring ===== */
.audit-node-1 {
  left:50%!important;
  top:7%!important;
  transform:translate(calc(-50% + 29px),-29px)!important;
  right:auto!important;
  bottom:auto!important;
}
.audit-node-2 {
  left:83.6%!important;
  top:23.2%!important;
  transform:translate(calc(-50% + 29px),-50%)!important;
  right:auto!important;
  bottom:auto!important;
}
.audit-node-3 {
  left:91.9%!important;
  top:59.6%!important;
  transform:translate(calc(-50% + 29px),-50%)!important;
  right:auto!important;
  bottom:auto!important;
}
.audit-node-4 {
  left:68.7%!important;
  top:88.8%!important;
  transform:translate(calc(-50% + 29px),-50%)!important;
  right:auto!important;
  bottom:auto!important;
}
.audit-node-5 {
  left:31.3%!important;
  top:88.8%!important;
  transform:translate(calc(-50% + 29px),-50%)!important;
  right:auto!important;
  bottom:auto!important;
}
.audit-node-6 {
  left:8.1%!important;
  top:59.6%!important;
  transform:translate(calc(-50% + 29px),-50%)!important;
  right:auto!important;
  bottom:auto!important;
}
.audit-node-7 {
  left:16.4%!important;
  top:23.2%!important;
  transform:translate(calc(-50% + 29px),-50%)!important;
  right:auto!important;
  bottom:auto!important;
}

/* ===== FEATURE CARDS: even spacing + polished icons ===== */
.audit-splash-values {
  display:grid!important;
  grid-template-columns:repeat(3, minmax(0,1fr))!important;
  gap:16px!important;
  max-width:42vw!important;
  margin-top:36px!important;
}

.audit-splash-values span {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-height:140px!important;
  padding:16px 18px!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:18px!important;
  background:rgba(15,23,42,.52)!important;
  box-shadow:0 12px 36px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(14px)!important;
}

.audit-splash-values b {
  display:grid!important;
  place-items:center!important;
  width:52px!important;
  height:52px!important;
  margin-bottom:14px!important;
  border:2px solid rgba(103,232,249,.5)!important;
  border-radius:50%!important;
  color:#dbeafe!important;
  font-size:1.2rem!important;
  font-weight:900!important;
  background:radial-gradient(circle at 44% 35%, rgba(125,211,252,.6), rgba(37,99,235,.2) 58%, rgba(15,23,42,.85))!important;
  box-shadow:0 0 16px rgba(34,211,238,.3), inset 0 0 12px rgba(255,255,255,.1)!important;
}

.audit-splash-values strong {
  color:#f8fafc!important;
  font-size:1.05rem!important;
  margin-bottom:4px!important;
}

.audit-splash-values small {
  color:#94a3b8!important;
  font-size:.78rem!important;
  line-height:1.5!important;
}

/* ===== Splash small-screen safety net ===== */
.audit-splash-skip {
  position:fixed!important;
  right:20px!important;
  top:18px!important;
  z-index:20!important;
  min-width:68px!important;
  height:36px!important;
  padding:0 14px!important;
  border:1px solid rgba(191,219,254,.36)!important;
  border-radius:999px!important;
  background:rgba(8,18,35,.72)!important;
  color:#e0f2fe!important;
  font-size:.78rem!important;
  font-weight:900!important;
  letter-spacing:0!important;
  box-shadow:0 10px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(14px)!important;
  cursor:pointer!important;
}
.audit-splash,
.audit-splash *,
.audit-splash::before,
.audit-splash::after {
  box-sizing:border-box!important;
}
.audit-splash-skip:hover,
.audit-splash-skip:focus-visible {
  outline:none!important;
  border-color:rgba(103,232,249,.7)!important;
  background:rgba(37,99,235,.38)!important;
  color:#fff!important;
}

@media (max-width:980px), (max-height:720px) {
  .welcome-modal-overlay:has(.audit-splash) {
    overflow:hidden!important;
    background:#07111f!important;
  }
  .audit-splash {
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:1fr auto!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    padding:0!important;
    background:
      radial-gradient(circle at 78% 18%, rgba(96,165,250,.28), transparent 34%),
      radial-gradient(circle at 18% 78%, rgba(124,58,237,.2), transparent 38%),
      linear-gradient(135deg,#07111f 0%,#0b1a2e 58%,#07111f 100%)!important;
  }
  .audit-splash::before {
    inset:10px!important;
    border-radius:12px!important;
  }
  .audit-splash::after,
  .audit-galaxy-canvas,
  .audit-splash-visual,
  .audit-risk-tag,
  .audit-data-line {
    display:none!important;
  }
  .audit-splash-grid {
    opacity:.4!important;
    background-size:42px 42px!important;
  }
  .audit-splash-glow-a {
    right:-120px!important;
    top:-100px!important;
    width:320px!important;
    height:320px!important;
    opacity:.5!important;
  }
  .audit-splash-glow-b {
    left:-140px!important;
    bottom:-110px!important;
    width:360px!important;
    height:320px!important;
    opacity:.42!important;
  }
  .audit-splash-copy {
    display:flex!important;
    position:relative!important;
    left:auto!important;
    top:auto!important;
    grid-column:1!important;
    grid-row:1!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    padding:64px clamp(20px,5vw,40px) 16px!important;
    flex-direction:column!important;
    justify-content:center!important;
    animation:none!important;
  }
  .audit-brand-lockup {
    gap:12px!important;
    margin:0 0 28px!important;
    animation:none!important;
  }
  .audit-brand-mark {
    width:48px!important;
    height:48px!important;
    border-radius:13px!important;
  }
  .audit-brand-mark i:nth-child(1) { left:15px!important; top:12px!important; width:20px!important; height:7px!important; }
  .audit-brand-mark i:nth-child(2) { left:12px!important; top:20px!important; width:7px!important; height:20px!important; }
  .audit-brand-mark i:nth-child(3) { right:12px!important; bottom:12px!important; width:20px!important; height:7px!important; }
  .audit-brand-lockup strong {
    font-size:1.18rem!important;
    line-height:1.15!important;
  }
  .audit-brand-lockup small {
    margin-top:5px!important;
    font-size:.58rem!important;
    letter-spacing:.16em!important;
  }
  .audit-splash h1 {
    max-width:420px!important;
    margin:0 0 14px!important;
    font-size:clamp(2.4rem, 10vw, 4rem)!important;
    line-height:1.05!important;
    letter-spacing:0!important;
    text-shadow:0 18px 44px rgba(15,23,42,.5)!important;
  }
  .audit-splash-lead {
    max-width:500px!important;
    font-size:clamp(.92rem, 3.8vw, 1.16rem)!important;
    line-height:1.55!important;
    letter-spacing:.03em!important;
  }
  .audit-title-rule {
    width:82px!important;
    height:3px!important;
    margin:20px 0 22px!important;
  }
  .audit-splash-values {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    max-width:none!important;
    width:100%!important;
    margin-top:0!important;
  }
  .audit-splash-values span {
    min-height:88px!important;
    padding:10px!important;
    border-radius:12px!important;
    animation:none!important;
    opacity:1!important;
  }
  .audit-splash-values span + span {
    padding-left:10px!important;
    border-left:1px solid rgba(148,163,184,.18)!important;
  }
  .audit-splash-values b {
    width:30px!important;
    height:30px!important;
    margin-bottom:8px!important;
    font-size:.82rem!important;
  }
  .audit-splash-values strong {
    font-size:.8rem!important;
    line-height:1.2!important;
  }
  .audit-splash-values small {
    margin-top:4px!important;
    font-size:.62rem!important;
    line-height:1.35!important;
  }
  .audit-splash-status {
    grid-column:1!important;
    grid-row:2!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    left:0!important;
    right:auto!important;
    align-self:stretch!important;
    margin:0!important;
    padding:14px clamp(20px,5vw,40px) calc(16px + env(safe-area-inset-bottom, 0px))!important;
    border:0!important;
    border-top:1px solid rgba(148,163,184,.18)!important;
    border-radius:0!important;
    background:rgba(6,17,31,.78)!important;
    box-shadow:0 -14px 34px rgba(0,0,0,.22)!important;
    backdrop-filter:blur(18px)!important;
  }
  .audit-splash-status span {
    font-size:.82rem!important;
  }
  .audit-splash-progress {
    height:10px!important;
    margin-top:10px!important;
  }
  .audit-progress-percent {
    left:auto!important;
    right:0!important;
    top:-24px!important;
    min-width:auto!important;
    font-size:.78rem!important;
    text-align:right!important;
  }
  .audit-splash-no-show {
    width:auto!important;
    margin-top:12px!important;
    font-size:.72rem!important;
  }
  .audit-splash-skip {
    right:14px!important;
    top:14px!important;
    height:34px!important;
    min-width:62px!important;
    font-size:.72rem!important;
  }
}

@media (max-width:520px) {
  .audit-splash-copy {
    padding-top:56px!important;
  }
  .audit-brand-lockup {
    margin-bottom:20px!important;
  }
  .audit-brand-mark {
    width:42px!important;
    height:42px!important;
  }
  .audit-brand-lockup strong {
    font-size:1rem!important;
  }
  .audit-brand-lockup small {
    font-size:.52rem!important;
  }
  .audit-splash h1 {
    max-width:320px!important;
    font-size:clamp(2.1rem, 11vw, 3.2rem)!important;
  }
  .audit-splash-lead {
    max-width:330px!important;
    font-size:.92rem!important;
  }
  .audit-splash-values {
    grid-template-columns:1fr!important;
  }
  .audit-splash-values span {
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:10px!important;
    min-height:auto!important;
    padding:9px 10px!important;
  }
  .audit-splash-values b {
    grid-row:1 / span 2!important;
    margin:0!important;
  }
  .audit-splash-values strong,
  .audit-splash-values small {
    grid-column:2!important;
  }
  .audit-splash-values small br {
    display:none!important;
  }
}

@media (max-height:560px) {
  .audit-splash-copy {
    padding-top:46px!important;
  }
  .audit-brand-lockup {
    margin-bottom:16px!important;
  }
  .audit-splash h1 {
    font-size:clamp(2rem, 8vh, 3rem)!important;
    margin-bottom:8px!important;
  }
  .audit-splash-lead {
    font-size:.86rem!important;
  }
  .audit-title-rule {
    margin:12px 0 14px!important;
  }
  .audit-splash-values {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .audit-splash-values span {
    min-height:70px!important;
    padding:8px!important;
  }
  .audit-splash-values b {
    display:none!important;
  }
  .audit-splash-values small {
    display:none!important;
  }
  .audit-splash-status {
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  .audit-splash-no-show {
    display:none!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .audit-splash,
  .audit-splash *,
  .audit-splash::before,
  .audit-splash::after {
    animation:none!important;
    transition:none!important;
  }
}

/* ===== Splash visual polish: product-grade framing ===== */
html:has(.audit-splash),
body:has(.audit-splash) {
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.welcome-modal-overlay:has(.audit-splash) {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}
.audit-splash {
  isolation:isolate!important;
  width:100vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
}
.audit-splash::before {
  border-color:rgba(148,190,255,.16)!important;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.22)!important;
}
.audit-splash-grid {
  opacity:.38!important;
}
.audit-splash h1 {
  letter-spacing:0!important;
  text-wrap:balance!important;
}
.audit-splash-lead {
  letter-spacing:0!important;
}
.audit-splash-values strong,
.audit-splash-values small,
.audit-splash-status span,
.audit-splash-no-show {
  letter-spacing:0!important;
}
.audit-splash-values small {
  color:#afbdd1!important;
}
.audit-splash-status {
  background:rgba(8,18,35,.64)!important;
}

@media (min-width:981px) and (max-height:760px) {
  .audit-splash {
    grid-template-columns:1fr!important;
    grid-template-rows:1fr auto!important;
  }
  .audit-splash-visual,
  .audit-galaxy-canvas,
  .audit-risk-tag,
  .audit-data-line {
    display:none!important;
  }
  .audit-splash-copy {
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    padding:54px clamp(40px,6vw,88px) 18px!important;
    max-width:1040px!important;
  }
  .audit-brand-lockup {
    margin-bottom:32px!important;
  }
  .audit-splash h1 {
    max-width:720px!important;
    font-size:clamp(3.4rem,5vw,4.8rem)!important;
  }
  .audit-splash-lead {
    max-width:620px!important;
    font-size:1.12rem!important;
  }
  .audit-title-rule {
    margin:22px 0 24px!important;
  }
  .audit-splash-values {
    width:min(100%,1060px)!important;
    max-width:none!important;
    margin-top:0!important;
  }
  .audit-splash-values span {
    min-height:108px!important;
    padding:14px 16px!important;
  }
  .audit-splash-values b {
    width:40px!important;
    height:40px!important;
    margin-bottom:10px!important;
  }
  .audit-splash-status {
    width:auto!important;
    max-width:none!important;
    margin:0 clamp(40px,6vw,88px) 38px!important;
  }
}

@media (max-width:980px), (max-height:720px) {
  .audit-splash {
    overflow:hidden!important;
  }
  .audit-splash-copy {
    justify-content:center!important;
  }
  .audit-splash h1 {
    line-height:1.08!important;
  }
  .audit-splash-values small {
    color:#b6c4d8!important;
  }
}

@media (max-width:520px) {
  .audit-splash-copy {
    padding-right:18px!important;
    padding-left:18px!important;
  }
  .audit-splash h1 {
    max-width:none!important;
    font-size:clamp(2rem,10.4vw,2.8rem)!important;
  }
  .audit-splash-lead {
    max-width:none!important;
    font-size:.9rem!important;
  }
  .audit-splash-values {
    gap:7px!important;
  }
  .audit-splash-values span {
    border-color:rgba(148,163,184,.2)!important;
    background:rgba(10,24,43,.7)!important;
  }
  .audit-splash-values strong {
    font-size:.84rem!important;
  }
  .audit-splash-values small {
    font-size:.66rem!important;
    line-height:1.45!important;
  }
  .audit-splash-status {
    padding-right:18px!important;
    padding-left:18px!important;
  }
}

/* ===== Audit Toolbox ===== */
.nav-tool-child{display:none!important;}
.toolbox-page{display:grid;gap:14px;}
.toolbox-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  border:1px solid #d7e2f0;
  border-radius:12px;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 58%,#f2fbf8 100%);
  box-shadow:0 12px 30px rgba(15,23,42,.07);
}
.toolbox-hero span{
  display:block;
  color:#2563eb;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.14em;
}
.toolbox-hero h2{margin:6px 0 0;color:#0f172a;font-size:1.35rem;line-height:1.2;}
.toolbox-hero p{max-width:860px;margin:8px 0 0;color:#52637a;font-size:.8rem;line-height:1.65;}
.toolbox-shell{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.toolbox-category-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.toolbox-nav-title{padding:2px 4px 8px;border-bottom:1px solid #eef2f7;margin-bottom:4px;}
.toolbox-nav-title span{display:block;color:#64748b;font-size:.56rem;font-weight:950;letter-spacing:.15em;}
.toolbox-nav-title strong{display:block;margin-top:3px;color:#0f172a;font-size:.82rem;}
.toolbox-category-btn{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:10px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#334155;
  text-align:left;
  cursor:pointer;
  transition:background .15s,color .15s,border-color .15s,box-shadow .15s;
}
.toolbox-category-btn:hover{background:#f8fafc;color:#0f172a;border-color:#e2e8f0;}
.toolbox-category-btn.is-active{background:#f6f9ff;color:#174ea6;border-color:#bfdbfe;box-shadow:inset 3px 0 0 #2563eb;}
.toolbox-category-btn[data-tool-category="work"].is-active{background:#f4fbf8;color:#047857;border-color:#a7f3d0;box-shadow:inset 3px 0 0 #059669;}
.toolbox-category-btn[data-tool-category="special"].is-active{background:#fffaf3;color:#b45309;border-color:#fed7aa;box-shadow:inset 3px 0 0 #d97706;}
.toolbox-category-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:.66rem;
  font-weight:950;
}
.toolbox-category-btn[data-tool-category="work"] .toolbox-category-icon{background:#d1fae5;color:#047857;}
.toolbox-category-btn[data-tool-category="special"] .toolbox-category-icon{background:#ffedd5;color:#b45309;}
.toolbox-category-copy{display:grid;gap:2px;min-width:0;}
.toolbox-category-copy strong{font-size:.82rem;line-height:1.2;color:inherit;}
.toolbox-category-copy small{color:#64748b;font-size:.66rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.toolbox-category-btn em{font-style:normal;min-width:24px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.64rem;font-weight:900;}
.toolbox-category-btn.is-active em{background:#dbeafe;color:#1d4ed8;}
.toolbox-category-btn[data-tool-category="work"].is-active em{background:#d1fae5;color:#047857;}
.toolbox-category-btn[data-tool-category="special"].is-active em{background:#ffedd5;color:#b45309;}
.toolbox-category-detail{
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.toolbox-category-head{display:grid;grid-template-columns:minmax(180px,250px) minmax(0,1fr);gap:18px;padding-bottom:12px;border-bottom:1px solid #e2e8f0;}
.toolbox-category-head span{display:block;color:#2563eb;font-size:.58rem;font-weight:950;letter-spacing:.14em;}
.toolbox-category-head h2{margin:5px 0 0;color:#0f172a;font-size:1.08rem;line-height:1.25;}
.toolbox-category-head strong{display:inline-flex;margin-top:8px;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.64rem;}
.toolbox-category-head p{max-width:850px;margin:0;color:#64748b;font-size:.74rem;line-height:1.65;}
.toolbox-category-head p b{display:block;margin-bottom:3px;color:#0f172a;font-size:.78rem;}
.toolbox-outcome-map{display:grid;gap:10px;padding:12px;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(135deg,#f8fbff 0%,#f7fffb 100%);}
.toolbox-outcome-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;}
.toolbox-outcome-head span{display:block;color:#2563eb;font-size:.58rem;font-weight:950;letter-spacing:.14em;}
.toolbox-outcome-head strong{display:block;margin-top:3px;color:#0f172a;font-size:.9rem;}
.toolbox-outcome-head p{max-width:720px;margin:0;color:#52637a;font-size:.72rem;line-height:1.55;}
.toolbox-outcome-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.toolbox-outcome-grid article{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:flex-start;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.toolbox-outcome-grid i{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#eff6ff;color:#2563eb;}
.toolbox-outcome-grid b{display:block;color:#0f172a;font-size:.72rem;line-height:1.3;}
.toolbox-outcome-grid p{margin:3px 0 0;color:#64748b;font-size:.66rem;line-height:1.45;}
.toolbox-tool-list{display:grid;gap:8px;}
.toolbox-tool-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 72px;
  align-items:start;
  gap:12px;
  padding:13px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#fff;
  transition:border-color .15s,box-shadow .15s,transform .15s,background .15s;
}
.toolbox-tool-row:hover{background:#fbfdff;border-color:#bfdbfe;box-shadow:0 10px 22px rgba(37,99,235,.07);transform:translateY(-1px);}
.toolbox-tool-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:8px;
  background:#f1f5f9;
  color:#2563eb;
  font-size:.76rem;
  font-weight:950;
  box-shadow:inset 0 0 0 1px #dbe3ef;
}
.toolbox-tool-main{display:grid;gap:6px;min-width:0;}
.toolbox-tool-title{display:flex;align-items:center;gap:8px;min-width:0;}
.toolbox-tool-title h3{margin:0;color:#0f172a;font-size:.86rem;line-height:1.25;}
.toolbox-tool-title span{padding:3px 7px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.6rem;font-weight:900;white-space:nowrap;}
.toolbox-tool-main p{margin:0;color:#334155;font-size:.72rem;line-height:1.48;}
.toolbox-tool-main small{display:block;color:#64748b;font-size:.66rem;line-height:1.45;}
.toolbox-tool-meta{display:flex;gap:6px;flex-wrap:wrap;}
.toolbox-tool-meta span{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;background:#f8fafc;color:#475569;font-size:.62rem;font-weight:850;border:1px solid #e2e8f0;}
.toolbox-tool-action{display:flex;justify-content:flex-end;}
.toolbox-tool-use{width:64px;height:32px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-size:.72rem;font-weight:900;cursor:pointer;transition:background .15s,transform .15s;}
.toolbox-tool-use:hover{background:#1d4ed8;transform:translateY(-1px);}
.toolbox-tool-use.secondary{background:#fff;color:#334155;border:1px solid #cbd5e1;}
.toolbox-tool-use.secondary:hover{background:#f8fafc;color:#0f172a;}
.toolbox-workbench{
  min-height:0;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
  overflow:hidden;
}
.toolbox-workbench:empty{display:none;}
.tb-panel{display:grid;gap:14px;padding:18px;}
.tb-panel-wide{padding:18px;}
.tb-panel-head span,.tb-result-head span{display:block;color:#2563eb;font-size:.58rem;font-weight:950;letter-spacing:.14em;}
.tb-panel-head h3{margin:6px 0 0;color:#0f172a;font-size:1.05rem;}
.tb-panel-head p{max-width:920px;margin:6px 0 0;color:#64748b;font-size:.76rem;line-height:1.6;}
.tb-import-board{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:12px;}
.tb-file-drop{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  min-height:188px;
  padding:18px;
  border:1px dashed #93c5fd;
  border-radius:12px;
  background:linear-gradient(180deg,#eff6ff 0%,#fff 100%);
  cursor:pointer;
}
.tb-file-drop input{display:none;}
.tb-file-drop span{color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.12em;}
.tb-file-drop strong{color:#0f172a;font-size:1rem;line-height:1.3;}
.tb-file-drop small{max-width:420px;color:#64748b;font-size:.72rem;line-height:1.55;}
.tb-template-card{display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;}
.tb-template-card>b{color:#0f172a;font-size:.78rem;}
.tb-template-table{overflow:auto;border:1px solid #e2e8f0;border-radius:8px;background:#fff;}
.tb-template-table table{width:100%;border-collapse:collapse;min-width:560px;}
.tb-template-table th,.tb-template-table td{padding:8px 10px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:.68rem;color:#475569;line-height:1.45;}
.tb-template-table th{background:#f8fafc;color:#334155;font-weight:900;}
.tb-template-table tr:last-child td{border-bottom:0;}
.tb-template-table td strong{display:block;color:#0f172a;font-size:.72rem;}
.tb-template-table td small{display:block;margin-top:2px;color:#94a3b8;font-size:.62rem;}
.tb-file-status{padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.72rem;line-height:1.5;}
.tb-file-status.is-loading{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;}
.tb-file-status.is-ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
.tb-file-status.is-warning{border-color:#fde68a;background:#fffbeb;color:#92400e;}
.tb-file-status.is-error{border-color:#fecaca;background:#fef2f2;color:#991b1b;}
.tb-practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.tb-practice-grid>div{padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;}
.tb-practice-grid b{display:block;margin-bottom:6px;color:#0f172a;font-size:.72rem;}
.tb-practice-grid ul{margin:0;padding-left:18px;color:#475569;font-size:.7rem;line-height:1.55;}
.tb-tool-guidance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #d8e4f2;border-radius:8px;background:#fff;overflow:hidden;}
.tb-tool-guidance>div{min-width:0;padding:11px 12px;border-right:1px solid #e8eef7;}
.tb-tool-guidance>div:last-child{border-right:0;}
.tb-tool-guidance b{display:block;margin-bottom:4px;color:#0f172a;font-size:.68rem;font-weight:900;}
.tb-tool-guidance p{margin:0;color:#52637a;font-size:.68rem;line-height:1.5;}
.tb-data-area,.tb-work-grid{display:grid;gap:10px;}
.tb-data-area textarea,.tb-work-grid textarea,.tb-work-grid select,.tb-work-grid input,.tb-inline-controls input{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:10px;
  background:#fff;
  color:#172033;
  font-size:.72rem;
  outline:none;
}
.tb-raw-data{border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.tb-raw-data summary{padding:10px 12px;color:#334155;font-size:.72rem;font-weight:850;cursor:pointer;}
.tb-raw-data textarea{border:0;border-top:1px solid #e2e8f0;border-radius:0 0 10px 10px;}
.tb-data-area textarea{min-height:180px;padding:10px;font-family:Consolas,Menlo,monospace;line-height:1.45;resize:vertical;}
.tb-work-grid{grid-template-columns:260px minmax(0,1fr) minmax(0,1fr);align-items:stretch;}
.tb-work-grid textarea{min-height:118px;padding:10px;line-height:1.5;resize:vertical;}
.tb-work-grid input{height:36px;padding:0 10px;}
.tb-work-grid select{height:36px;padding:0 10px;}
.tb-work-grid label,.tb-inline-controls label{display:grid;gap:5px;color:#475569;font-size:.68rem;font-weight:850;}
.tb-work-grid-extended{grid-template-columns:220px 220px minmax(220px,1fr);}
.tb-work-grid .tb-wide{grid-column:span 2;}
.tb-basis-board{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:12px;padding:12px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;}
.tb-policy-drop{display:flex;flex-direction:column;justify-content:center;gap:7px;min-height:132px;padding:14px;border:1px dashed #93c5fd;border-radius:10px;background:#fff;cursor:pointer;}
.tb-policy-drop input{display:none;}
.tb-policy-drop span{color:#2563eb;font-size:.6rem;font-weight:950;letter-spacing:.12em;}
.tb-policy-drop strong{color:#0f172a;font-size:.88rem;line-height:1.3;}
.tb-policy-drop small{color:#64748b;font-size:.68rem;line-height:1.45;}
.tb-basis-board label{display:grid;gap:6px;color:#475569;font-size:.68rem;font-weight:850;}
.tb-basis-board textarea{width:100%;min-height:132px;padding:10px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#172033;font-size:.72rem;line-height:1.5;resize:vertical;outline:none;}
.tb-basis-board .tb-file-status{grid-column:1/-1;}
.tb-basis-note{padding:10px 12px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff;color:#334155;font-size:.7rem;line-height:1.55;}
.tb-basis-note b{display:block;margin-bottom:4px;color:#1d4ed8;font-size:.72rem;}
.tb-basis-note p{margin:0;}
.tb-inline-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:end;}
.tb-inline-controls label{width:112px;}
.tb-inline-controls input{height:32px;padding:0 8px;}
.tb-result{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:12px;}
.tb-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.tb-result-head strong{color:#0f172a;font-size:.86rem;}
.tb-result-head em{font-style:normal;color:#64748b;font-size:.68rem;font-weight:850;}
.tb-output-disposition{display:grid;gap:3px;margin:0 0 10px;padding:10px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a;}
.tb-output-disposition strong{font-size:.72rem;color:#0f172a;}
.tb-output-disposition span{font-size:.68rem;line-height:1.5;color:#475569;}
.tb-output-disposition-workpaper,.tb-output-disposition-workpaper-first{background:#f0fdf4;border-color:#bbf7d0;color:#166534;}
.tb-output-disposition-quality-gate{background:#fff7ed;border-color:#fed7aa;color:#9a3412;}
.tb-output-disposition-candidate-finding{background:#fef2f2;border-color:#fecaca;color:#991b1b;}
.tb-result ol{margin:0;padding-left:20px;color:#334155;font-size:.72rem;line-height:1.6;}
.tb-result li+li{margin-top:5px;}
.tb-result-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;}
.tb-waiting{margin:0;color:#64748b;font-size:.72rem;line-height:1.55;}
.tb-empty-result{padding:14px;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;}
.tb-empty-result strong{color:#0f172a;font-size:.82rem;}
.tb-empty-result p{margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.5;}
.tb-result-register{
  margin-top:12px;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.tb-result-register>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #e2e8f0;
  background:#f8fbff;
}
.tb-result-register>header span{
  display:block;
  color:#2563eb;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-result-register>header strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:.94rem;
}
.tb-result-register>header small{
  flex:0 0 auto;
  color:#64748b;
  font-size:.74rem;
  font-weight:900;
}
.tb-result-register .tb-transfer-hint{
  margin:10px 12px;
}
.tb-result-register .tb-finding-table{
  margin:0 12px 12px;
}
.tb-finding-table{overflow:auto;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.tb-finding-table table{width:100%;border-collapse:collapse;min-width:980px;}
.tb-finding-table th,.tb-finding-table td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;font-size:.7rem;line-height:1.45;}
.tb-finding-table th{background:#f8fafc;color:#475569;font-weight:900;}
.tb-finding-table td{color:#334155;}
.tb-finding-table th:first-child,.tb-finding-table td:first-child{width:112px;min-width:112px;text-align:center;}
.tb-finding-table th:nth-child(2),.tb-finding-table td:nth-child(2){min-width:280px;}
.tb-finding-table th:nth-child(3),.tb-finding-table td:nth-child(3){min-width:220px;}
.tb-finding-table th:nth-child(4),.tb-finding-table td:nth-child(4){min-width:220px;}
.tb-finding-table td strong{display:block;color:#0f172a;font-size:.74rem;}
.tb-finding-table td small{display:block;margin-top:4px;color:#64748b;font-size:.68rem;line-height:1.45;}
.tb-risk{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:26px;padding:5px 10px;border-radius:999px;color:#fff;font-size:.66rem;font-weight:900;line-height:1;white-space:nowrap;}
.tb-risk-critical{background:#b91c1c;}
.tb-risk-high{background:#ea580c;}
.tb-risk-medium{background:#ca8a04;}
.tb-risk-low{background:#16a34a;}
.tb-work-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.tb-work-result section{padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
.tb-work-result h4{margin:0 0 8px;color:#0f172a;font-size:.78rem;}
.tb-work-result ol{margin:0;padding-left:18px;}

/* Project material register */
.pmat-page{display:grid;gap:16px;max-width:1280px;}
.pmat-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 24px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;}
.pmat-header span,.pmat-editor-head span{display:block;color:#2563eb;font-size:.68rem;font-weight:900;letter-spacing:1.4px;}
.pmat-header h2{margin:6px 0 8px;color:#10233f;font-size:1.45rem;}
.pmat-header p{max-width:760px;margin:0;color:#64748b;font-size:.84rem;line-height:1.65;}
.pmat-header-actions,.pmat-editor-actions,.pmat-card-actions{display:flex;gap:8px;flex-wrap:wrap;}
.pmat-header-actions{flex-shrink:0;}
.pmat-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dbe3ef;border-radius:8px;background:#fff;overflow:hidden;}
.pmat-stats>div{padding:16px 20px;border-right:1px solid #e8eef7;}
.pmat-stats>div:last-child{border-right:0;}
.pmat-stats strong{display:block;color:#12233e;font-size:1.35rem;line-height:1.2;}
.pmat-stats span{display:block;margin-top:4px;color:#64748b;font-size:.72rem;}
.pmat-editor{padding:22px 24px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff;}
.pmat-editor-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px;}
.pmat-editor-head h3{margin:5px 0;color:#10233f;font-size:1.05rem;}
.pmat-editor-head p{margin:0;color:#64748b;font-size:.76rem;line-height:1.55;}
.pmat-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.pmat-field{display:grid;gap:6px;color:#475569;font-size:.72rem;font-weight:800;}
.pmat-field.pmat-wide{grid-column:1 / -1;}
.pmat-field input,.pmat-field select,.pmat-field textarea,.pmat-status-select{width:100%;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;outline:none;}
.pmat-field input,.pmat-field select{height:38px;padding:0 10px;}
.pmat-field textarea{min-height:86px;padding:10px;resize:vertical;line-height:1.55;}
.pmat-field input:focus,.pmat-field select:focus,.pmat-field textarea:focus,.pmat-status-select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}
.pmat-editor-actions{justify-content:flex-end;margin-top:16px;}
.pmat-list-head{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:4px 2px;}
.pmat-list-head strong{display:block;color:#10233f;font-size:1rem;}
.pmat-list-head span,.pmat-list-head small{display:block;margin-top:4px;color:#64748b;font-size:.73rem;line-height:1.5;}
.pmat-list-head small{margin:0;text-align:right;}
.pmat-list{display:grid;gap:10px;}
.pmat-card{padding:16px 18px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;}
.pmat-card-head{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;}
.pmat-title-wrap{display:flex;gap:9px;align-items:center;min-width:0;}
.pmat-title-wrap h3{margin:0;color:#14233c;font-size:.95rem;line-height:1.4;}
.pmat-priority{display:inline-flex;align-items:center;min-width:52px;height:23px;padding:0 7px;border-radius:999px;font-size:.62rem;font-weight:900;justify-content:center;white-space:nowrap;}
.pmat-priority.required{background:#fef2f2;color:#b91c1c;}
.pmat-priority.supporting{background:#f0fdf4;color:#15803d;}
.pmat-status-select{width:132px;min-width:132px;height:32px;padding:0 8px;font-size:.7rem;font-weight:800;}
.pmat-status-draft{color:#64748b;background:#f8fafc;}
.pmat-status-requested{color:#1d4ed8;background:#eff6ff;}
.pmat-status-partial{color:#a16207;background:#fefce8;}
.pmat-status-received{color:#0369a1;background:#f0f9ff;}
.pmat-status-missing{color:#b91c1c;background:#fef2f2;}
.pmat-status-verified{color:#047857;background:#ecfdf5;}
.pmat-status-na{color:#64748b;background:#f8fafc;}
.pmat-card-meta{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0;}
.pmat-card-meta span{padding:3px 7px;border-radius:4px;background:#f8fafc;color:#64748b;font-size:.66rem;}
.pmat-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 0;border-top:1px solid #edf2f7;}
.pmat-card-grid small{display:block;color:#94a3b8;font-size:.64rem;}
.pmat-card-grid strong{display:block;margin-top:4px;color:#334155;font-size:.73rem;line-height:1.4;word-break:break-word;}
.pmat-note{margin:2px 0 10px;padding:8px 10px;border-left:3px solid #bfdbfe;background:#f8fbff;color:#475569;font-size:.72rem;line-height:1.55;white-space:pre-wrap;}
.pmat-card-actions{padding-top:10px;border-top:1px solid #edf2f7;}
.pmat-upload-label{position:relative;overflow:hidden;cursor:pointer;}
.pmat-upload-label input{position:absolute;inset:0;opacity:0;cursor:pointer;}
.pmat-empty{display:grid;gap:8px;justify-items:start;padding:36px 28px;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;text-align:left;}
.pmat-empty strong{color:#334155;font-size:1rem;}
.pmat-empty span{max-width:560px;color:#64748b;font-size:.78rem;line-height:1.6;}
@media(max-width:900px){.pmat-header,.pmat-editor-head,.pmat-list-head{flex-direction:column;align-items:stretch;}.pmat-header-actions{width:100%;}.pmat-header-actions .btn{flex:1;}.pmat-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.pmat-stats>div:nth-child(2){border-right:0;}.pmat-stats>div:nth-child(-n+2){border-bottom:1px solid #e8eef7;}.pmat-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pmat-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.pmat-list-head small{text-align:left;}}
@media(max-width:560px){.pmat-header,.pmat-editor,.pmat-card{padding:16px;}.pmat-stats{grid-template-columns:1fr 1fr;}.pmat-form-grid{grid-template-columns:1fr;}.pmat-field.pmat-wide{grid-column:auto;}.pmat-card-head{flex-direction:column;}.pmat-status-select{width:100%;}.pmat-card-grid{grid-template-columns:1fr 1fr;}.pmat-card-actions .btn{flex:1;}.pmat-upload-label{display:inline-flex;align-items:center;justify-content:center;}}
.tb-transfer-hint{margin:0 0 8px;padding:8px 10px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff;color:#1e3a8a;font-size:.68rem;font-weight:800;line-height:1.45;}
.tb-transfer-check{display:inline-grid;place-items:center;cursor:pointer;}
.tb-transfer-check input{width:16px;height:16px;accent-color:#2563eb;cursor:pointer;}
.tb-transfer-summary{margin-top:8px;color:#475569;font-size:.68rem;font-weight:900;text-align:right;}
html[data-theme="dark"] .toolbox-hero,
html[data-theme="dark"] .toolbox-category-nav,
html[data-theme="dark"] .toolbox-category-detail,
html[data-theme="dark"] .toolbox-workbench{background:#172235;border-color:#314158;box-shadow:none;}
html[data-theme="dark"] .toolbox-hero{background:linear-gradient(135deg,#0f172a 0%,#13233d 58%,#12312f 100%);border-color:#314158;}
html[data-theme="dark"] .toolbox-hero h2,
html[data-theme="dark"] .toolbox-category-head h2,
html[data-theme="dark"] .toolbox-nav-title strong,
html[data-theme="dark"] .toolbox-tool-main h3,
html[data-theme="dark"] .tb-template-card>b,
html[data-theme="dark"] .tb-template-table td strong,
html[data-theme="dark"] .tb-practice-grid b,
html[data-theme="dark"] .tb-tool-guidance b,
html[data-theme="dark"] .tb-panel-head h3,
html[data-theme="dark"] .tb-result-head strong,
html[data-theme="dark"] .tb-result-workflow-main strong,
html[data-theme="dark"] .tb-work-result h4,
html[data-theme="dark"] .tb-finding-table td strong,
html[data-theme="dark"] .tb-empty-result strong{color:#f1f5f9;}
html[data-theme="dark"] .toolbox-hero p,
html[data-theme="dark"] .toolbox-category-head p,
html[data-theme="dark"] .toolbox-category-head p b,
html[data-theme="dark"] .toolbox-category-copy small,
html[data-theme="dark"] .toolbox-tool-main p,
html[data-theme="dark"] .toolbox-tool-main small,
html[data-theme="dark"] .tb-file-drop small,
html[data-theme="dark"] .tb-upload-note,
html[data-theme="dark"] .tb-field-meaning,
html[data-theme="dark"] .tb-panel-head p,
html[data-theme="dark"] .tb-practice-grid ul,
html[data-theme="dark"] .tb-tool-guidance p,
html[data-theme="dark"] .tb-result ol,
html[data-theme="dark"] .tb-result-workflow-main p,
html[data-theme="dark"] .tb-waiting,
html[data-theme="dark"] .tb-empty-result p,
html[data-theme="dark"] .tb-finding-table td,
html[data-theme="dark"] .tb-finding-table td small{color:#9fb0c7;}
html[data-theme="dark"] .toolbox-category-btn:hover,
html[data-theme="dark"] .toolbox-tool-row,
html[data-theme="dark"] .tb-upload-entry,
html[data-theme="dark"] .tb-file-drop,
html[data-theme="dark"] .tb-policy-drop,
html[data-theme="dark"] .tb-template-card,
html[data-theme="dark"] .tb-template-table,
html[data-theme="dark"] .tb-tool-guidance,
html[data-theme="dark"] .tb-template-table th,
html[data-theme="dark"] .tb-file-status,
html[data-theme="dark"] .tb-raw-data,
html[data-theme="dark"] .tb-result,
html[data-theme="dark"] .tb-result-workflow,
html[data-theme="dark"] .tb-result-workflow li,
html[data-theme="dark"] .tb-basis-board,
html[data-theme="dark"] .tb-basis-note,
html[data-theme="dark"] .toolbox-tool-meta span,
html[data-theme="dark"] .tb-practice-grid>div,
html[data-theme="dark"] .tb-tool-guidance>div,
html[data-theme="dark"] .tb-empty-result,
html[data-theme="dark"] .tb-work-result section,
html[data-theme="dark"] .tb-finding-table,
html[data-theme="dark"] .tb-finding-table th{background:#1b2940;border-color:#314158;}
html[data-theme="dark"] .toolbox-tool-list,
html[data-theme="dark"] .toolbox-tool-row,
html[data-theme="dark"] .toolbox-category-head,
html[data-theme="dark"] .toolbox-nav-title,
html[data-theme="dark"] .toolbox-tool-meta span,
html[data-theme="dark"] .tb-upload-entry,
html[data-theme="dark"] .tb-tool-guidance>div,
html[data-theme="dark"] .tb-template-table th,
html[data-theme="dark"] .tb-template-table td,
html[data-theme="dark"] .tb-raw-data textarea{border-color:#314158;}
html[data-theme="dark"] .tb-file-drop{background:#172235;}
html[data-theme="dark"] .tb-file-drop strong,
html[data-theme="dark"] .tb-policy-drop strong,
html[data-theme="dark"] .tb-raw-data summary{color:#d8e1ee;}
html[data-theme="dark"] .toolbox-tool-icon{background:#172235;border-color:#314158;box-shadow:inset 0 0 0 1px #314158;}
html[data-theme="dark"] .tb-data-area textarea,
html[data-theme="dark"] .tb-work-grid textarea,
html[data-theme="dark"] .tb-work-grid select,
html[data-theme="dark"] .tb-field-map-select,
html[data-theme="dark"] .tb-work-grid input,
html[data-theme="dark"] .tb-basis-board textarea,
html[data-theme="dark"] .tb-inline-controls input{background:#172235;color:#d8e1ee;border-color:#314158;}
html[data-theme="dark"] .toolbox-category-head strong,
html[data-theme="dark"] .toolbox-category-btn em{background:#172235;color:#9fb0c7;}
html[data-theme="dark"] .toolbox-tool-title span{background:#17345d;color:#93c5fd;}
html[data-theme="dark"] .toolbox-tool-use.secondary{background:#172235;color:#d8e1ee;border-color:#314158;}
@media(max-width:980px){
  .toolbox-hero{align-items:flex-start;flex-direction:column;}
  .toolbox-shell{grid-template-columns:1fr;}
  .toolbox-category-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
  .toolbox-nav-title{grid-column:1/-1;}
  .toolbox-category-head{grid-template-columns:1fr;}
  .toolbox-outcome-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .toolbox-tool-main dl,.tb-practice-grid,.tb-tool-guidance,.tb-work-result{grid-template-columns:repeat(2,minmax(0,1fr));}
  .toolbox-tool-row{grid-template-columns:38px minmax(0,1fr) 72px;}
  .toolbox-tool-action{grid-column:auto;justify-content:flex-end;}
  .tb-import-board{grid-template-columns:1fr;}
  .tb-basis-board{grid-template-columns:1fr;}
  .tb-work-grid{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .toolbox-category-nav{grid-template-columns:1fr;}
  .toolbox-tool-row{grid-template-columns:1fr;}
  .toolbox-tool-action{grid-column:auto;}
  .toolbox-tool-use{width:100%;}
  .toolbox-tool-title{align-items:flex-start;flex-direction:column;}
  .toolbox-outcome-head{flex-direction:column;}
  .toolbox-outcome-grid{grid-template-columns:1fr;}
  .toolbox-tool-main dl,.tb-practice-grid,.tb-tool-guidance,.tb-work-result{grid-template-columns:1fr;}
  .tb-tool-guidance>div{border-right:0;border-bottom:1px solid #e8eef7;}
  .tb-tool-guidance>div:last-child{border-bottom:0;}
  .tb-result-actions{flex-direction:column;}
}

/* Risk model assets and human interpretation */
.rm-ops-overview{margin-bottom:16px;border:1px solid #d8e4f2;border-radius:8px;background:#fff;overflow:hidden;}.rm-ops-head{padding:18px 20px 14px;border-bottom:1px solid #e8eef7;}.rm-ops-head span{display:block;color:#2563eb;font-size:.65rem;font-weight:900;letter-spacing:1.2px;}.rm-ops-head h3{margin:5px 0;color:#10233f;font-size:1.02rem;}.rm-ops-head p{max-width:820px;margin:0;color:#64748b;font-size:.75rem;line-height:1.55;}.rm-ops-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-bottom:1px solid #e8eef7;}.rm-ops-metrics>div{min-width:0;padding:12px 14px;border-right:1px solid #e8eef7;}.rm-ops-metrics>div:last-child{border-right:0;}.rm-ops-metrics span{display:block;color:#71819a;font-size:.64rem;line-height:1.35;}.rm-ops-metrics strong{display:block;margin-top:5px;color:#163760;font-size:1.1rem;line-height:1.1;}.rm-ops-metrics small{display:block;margin-top:4px;color:#94a3b8;font-size:.61rem;line-height:1.35;}.rm-ops-empty{padding:18px 20px;color:#64748b;font-size:.74rem;line-height:1.6;}.rm-ops-table-wrap{overflow:auto;}.rm-ops-table{width:100%;border-collapse:collapse;font-size:.7rem;white-space:nowrap;}.rm-ops-table th{padding:10px 12px;background:#f8fafc;border-bottom:1px solid #e8eef7;color:#64748b;font-size:.62rem;font-weight:900;text-align:left;}.rm-ops-table td{padding:10px 12px;border-bottom:1px solid #eef2f7;color:#475569;}.rm-ops-table tbody tr:last-child td{border-bottom:0;}.rm-ops-table td strong{color:#1e3554;font-size:.72rem;}.rm-ops-table td span{display:block;color:#64748b;}.rm-ops-table td em{display:block;margin-top:3px;color:#2563eb;font-size:.63rem;font-style:normal;}.rm-ops-foot{display:flex;gap:7px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #e8eef7;background:#fbfdff;}.rm-ops-foot span{padding:3px 7px;border-radius:4px;background:#eef3f8;color:#64748b;font-size:.64rem;}
.rm-asset-panel{border-color:#c7d8f6;background:#f8fbff;}.rm-asset-panel .rm-section-head{align-items:flex-start;}.rm-asset-panel .rm-section-head p{max-width:600px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-asset-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px;border:1px solid #d9e5f6;border-radius:6px;overflow:hidden;background:#fff;}.rm-asset-stats>div{padding:10px;border-right:1px solid #e5edf8;text-align:center;}.rm-asset-stats>div:last-child{border-right:0;}.rm-asset-stats strong{display:block;color:#1e3a65;font-size:1rem;}.rm-asset-stats span{display:block;margin-top:3px;color:#71819a;font-size:.66rem;white-space:nowrap;}.rm-asset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.rm-asset-grid .wide{grid-column:1/-1;}
.rm-source-basis-panel{border-color:#fde68a;background:#fffdf4;}.rm-source-basis-panel .rm-section-head{align-items:flex-start;}.rm-source-basis-panel .rm-section-head p{max-width:670px;margin:4px 0 0;color:#78716c;font-size:.76rem;line-height:1.55;}.rm-source-basis-count{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;background:#fef3c7;color:#a16207;font-size:.65rem;font-weight:900;white-space:nowrap;}.rm-source-basis-summary{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px;}.rm-source-basis-summary span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#fffbeb;color:#a16207;font-size:.64rem;font-weight:900;}.rm-source-basis-summary strong{font-size:.72rem;}.rm-source-basis-list{display:grid;gap:9px;}.rm-source-basis-card{padding:12px;border:1px solid #fde68a;border-radius:8px;background:#fff;}.rm-source-basis-card strong{display:block;color:#3f2f12;font-size:.8rem;line-height:1.35;}.rm-source-basis-card small{display:block;margin-top:3px;color:#a16207;font-size:.61rem;line-height:1.4;}.rm-source-basis-card p{margin:8px 0;color:#57534e;font-size:.69rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.rm-source-basis-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;}.rm-source-basis-card dl div{padding:8px 9px;border-left:2px solid #facc15;background:#fffbeb;}.rm-source-basis-card dt{margin:0;color:#a16207;font-size:.61rem;font-weight:900;}.rm-source-basis-card dd{margin:4px 0 0;color:#57534e;font-size:.66rem;line-height:1.45;}.rm-source-basis-foot{margin-top:10px;padding:8px 10px;border-left:3px solid #facc15;background:#fffbeb;color:#57534e;font-size:.68rem;line-height:1.5;}
.rm-factor-panel{border-color:#bfdbfe;background:#f8fbff;}.rm-factor-panel .rm-section-head{align-items:flex-start;}.rm-factor-panel .rm-section-head p{max-width:660px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-factor-count{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.65rem;font-weight:900;white-space:nowrap;}.rm-factor-summary{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px;}.rm-factor-summary span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:.64rem;font-weight:900;}.rm-factor-summary strong{font-size:.72rem;}.rm-factor-summary .model{background:#ecfdf5;color:#047857;}.rm-factor-summary .graph{background:#eef2ff;color:#4338ca;}.rm-factor-summary .governance{background:#fff7ed;color:#c2410c;}.rm-factor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.rm-factor-card{min-width:0;padding:12px;border:1px solid #dbeafe;border-radius:8px;background:#fff;}.rm-factor-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}.rm-factor-card-head strong{display:block;color:#172f52;font-size:.82rem;line-height:1.35;}.rm-factor-card-head small{display:block;margin-top:3px;color:#94a3b8;font-size:.61rem;}.rm-factor-card-head b{display:inline-flex;align-items:center;min-width:78px;justify-content:center;padding:4px 7px;border-radius:999px;font-size:.6rem;font-weight:900;white-space:nowrap;}.rm-factor-card-head b.model{background:#dcfce7;color:#047857;}.rm-factor-card-head b.graph{background:#e0e7ff;color:#3730a3;}.rm-factor-card-head b.governance{background:#ffedd5;color:#c2410c;}.rm-factor-card-head b.other{background:#f1f5f9;color:#64748b;}.rm-factor-card p{margin:8px 0;color:#475569;font-size:.7rem;line-height:1.52;}.rm-factor-fields,.rm-factor-action{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;margin-top:7px;color:#475569;font-size:.66rem;line-height:1.45;}.rm-factor-fields span,.rm-factor-action span{color:#2563eb;font-weight:900;}.rm-factor-fields em,.rm-factor-action em{font-style:normal;overflow-wrap:anywhere;}.rm-factor-source{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:9px;padding-top:8px;border-top:1px solid #e8eef7;color:#64748b;font-size:.62rem;}.rm-factor-source code{padding:2px 4px;border-radius:4px;background:#f1f5f9;color:#475569;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.58rem;}.rm-factor-foot{margin-top:10px;padding:8px 10px;border-left:3px solid #93c5fd;background:#f3f8ff;color:#475569;font-size:.68rem;line-height:1.5;}
.rm-factor-lane-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start;}.rm-factor-lane{min-width:0;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:rgba(255,255,255,.72);}.rm-factor-lane header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid #e8eef7;}.rm-factor-lane header strong{color:#172f52;font-size:.78rem;}.rm-factor-lane header span{align-self:start;padding:2px 7px;border-radius:999px;font-size:.6rem;font-weight:900;}.rm-factor-lane header p{grid-column:1/-1;margin:0;color:#64748b;font-size:.64rem;line-height:1.45;}.rm-factor-lane .rm-factor-card+.rm-factor-card{margin-top:8px;}.rm-factor-lane.model{border-color:#bbf7d0;background:#f0fdf4;}.rm-factor-lane.model header span{background:#dcfce7;color:#047857;}.rm-factor-lane.graph{border-color:#c7d2fe;background:#f5f7ff;}.rm-factor-lane.graph header span{background:#e0e7ff;color:#3730a3;}.rm-factor-lane.governance{border-color:#fed7aa;background:#fff7ed;}.rm-factor-lane.governance header span{background:#ffedd5;color:#c2410c;}.rm-factor-lane-empty{padding:12px;border:1px dashed #cbd5e1;border-radius:8px;background:rgba(255,255,255,.65);color:#64748b;font-size:.66rem;line-height:1.45;}
.re-interpretation-panel{border-color:#c7d8f6;background:#f8fbff;}.re-interpretation-panel .re-section-head{align-items:flex-start;}.re-interpretation-panel .re-section-head p{max-width:620px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.re-interpretation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.re-interpretation-grid textarea{min-height:92px;resize:vertical;}
.rm-effect-review{border-color:#c7d2fe;background:#f8faff;}.rm-effect-review .rm-section-head{align-items:flex-start;}.rm-effect-review .rm-section-head p{max-width:700px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-effect-badge{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.64rem;font-weight:900;white-space:nowrap;}.rm-effect-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:12px 0;border:1px solid #dbe4ff;border-radius:8px;overflow:hidden;background:#fff;}.rm-effect-metrics>div{min-width:0;padding:10px 11px;border-right:1px solid #e5eaff;}.rm-effect-metrics>div:last-child{border-right:0;}.rm-effect-metrics span{display:block;color:#64748b;font-size:.62rem;font-weight:900;line-height:1.35;}.rm-effect-metrics strong{display:block;margin-top:5px;color:#1e3a8a;font-size:1.05rem;line-height:1.1;}.rm-effect-metrics small{display:block;margin-top:4px;color:#94a3b8;font-size:.6rem;line-height:1.35;}.rm-effect-body{display:grid;grid-template-columns:1.05fr .95fr;gap:12px;align-items:start;}.rm-effect-advice,.rm-effect-samples{display:grid;gap:8px;}.rm-effect-advice>strong,.rm-effect-samples>strong{color:#273c66;font-size:.74rem;}.rm-effect-advice article,.rm-effect-samples article{padding:10px;border:1px solid #dbe4ff;border-radius:8px;background:#fff;}.rm-effect-advice article{border-left-width:3px;}.rm-effect-advice article.neutral{border-left-color:#94a3b8;}.rm-effect-advice article.warning{border-left-color:#f59e0b;}.rm-effect-advice article.tune{border-left-color:#6366f1;}.rm-effect-advice article.positive{border-left-color:#10b981;}.rm-effect-advice b,.rm-effect-samples b{display:block;color:#172f52;font-size:.73rem;line-height:1.35;}.rm-effect-advice p,.rm-effect-samples p,.rm-effect-empty{margin:5px 0 0;color:#64748b;font-size:.69rem;line-height:1.52;}.rm-effect-samples article div{display:flex;justify-content:space-between;gap:8px;align-items:center;}.rm-effect-samples article span{color:#94a3b8;font-size:.61rem;white-space:nowrap;}.rm-effect-boundary{margin-top:12px;padding:9px 10px;border-left:3px solid #6366f1;background:#eef2ff;color:#475569;font-size:.68rem;line-height:1.5;}
.rm-feedback-panel{border-color:#d8e4f2;background:#fff;}.rm-feedback-panel .rm-section-head{align-items:flex-start;}.rm-feedback-panel .rm-section-head p{max-width:620px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-feedback-list{display:grid;gap:10px;}.rm-feedback-item{padding:14px;border:1px solid #dbe5f1;border-radius:7px;background:#fbfdff;}.rm-feedback-item-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}.rm-feedback-item-head strong{color:#172f52;font-size:.88rem;}.rm-feedback-item-head p,.rm-feedback-proposal p{margin:5px 0 0;color:#64748b;font-size:.74rem;line-height:1.55;}.rm-feedback-status{display:inline-flex;align-items:center;min-width:74px;height:24px;padding:0 8px;border-radius:999px;font-size:.64rem;font-weight:900;justify-content:center;white-space:nowrap;}.rm-feedback-pending{background:#eff6ff;color:#1d4ed8;}.rm-feedback-planned{background:#fef3c7;color:#a16207;}.rm-feedback-implemented{background:#ecfdf5;color:#047857;}.rm-feedback-dismissed{background:#f1f5f9;color:#64748b;}.rm-feedback-proposal{margin-top:10px;padding:9px 10px;border-left:3px solid #93c5fd;background:#f5f9ff;}.rm-feedback-proposal span{color:#2563eb;font-size:.66rem;font-weight:900;}.rm-feedback-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px;}.rm-feedback-meta span{padding:3px 6px;border-radius:4px;background:#eef3f8;color:#64748b;font-size:.64rem;}.rm-feedback-controls{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf5;}.rm-feedback-controls label{display:grid;gap:5px;color:#475569;font-size:.67rem;font-weight:800;}.rm-feedback-controls select,.rm-feedback-controls textarea{width:100%;box-sizing:border-box;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;outline:none;}.rm-feedback-controls select{height:34px;padding:0 8px;}.rm-feedback-controls textarea{min-height:54px;padding:8px;resize:vertical;line-height:1.45;}.rm-feedback-controls select:focus,.rm-feedback-controls textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}
.rm-governance-panel{border-color:#c7d8f6;background:#f8fbff;}.rm-governance-panel .rm-section-head{align-items:flex-start;}.rm-governance-panel .rm-section-head p{max-width:630px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-governance-status{display:inline-flex;align-items:center;min-width:66px;height:24px;padding:0 8px;border-radius:999px;font-size:.64rem;font-weight:900;justify-content:center;white-space:nowrap;}.rm-governance-draft{background:#eff6ff;color:#1d4ed8;}.rm-governance-review{background:#fef3c7;color:#a16207;}.rm-governance-active{background:#ecfdf5;color:#047857;}.rm-governance-disabled{background:#f1f5f9;color:#64748b;}.rm-governance-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-top:12px;border:1px solid #d9e5f6;border-radius:6px;overflow:hidden;background:#d9e5f6;}.rm-governance-meta>div{min-width:0;padding:9px 10px;background:#fff;}.rm-governance-meta span{display:block;color:#71819a;font-size:.64rem;}.rm-governance-meta strong{display:block;margin-top:4px;color:#1e3a65;font-size:.72rem;line-height:1.35;overflow-wrap:anywhere;}.rm-governance-action{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #dbe6f4;}.rm-governance-action label{display:grid;flex:1;gap:5px;color:#475569;font-size:.67rem;font-weight:800;}.rm-governance-action textarea{width:100%;min-height:52px;box-sizing:border-box;padding:8px;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;line-height:1.45;resize:vertical;outline:none;}.rm-governance-action textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}.rm-governance-action>div{display:flex;gap:8px;flex-wrap:wrap;}.rm-governance-action>p{margin:0;color:#64748b;font-size:.73rem;line-height:1.55;}.rm-governance-log{display:grid;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #dbe6f4;}.rm-governance-log>strong{color:#334155;font-size:.72rem;}.rm-governance-log>span{color:#94a3b8;font-size:.7rem;}.rm-governance-log>div{display:grid;grid-template-columns:140px 120px minmax(0,1fr);gap:8px;padding:7px 0;border-top:1px solid #e8eef7;color:#64748b;font-size:.66rem;line-height:1.45;}.rm-governance-log>div span{color:#94a3b8;}.rm-governance-log>div b{color:#334155;}.rm-governance-log>div p{margin:0;}
.rm-candidate-panel{border-color:#d7e5f4;background:#fff;}.rm-candidate-panel .rm-section-head{align-items:flex-start;}.rm-candidate-panel .rm-section-head p{max-width:650px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-candidate-count{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.65rem;font-weight:900;white-space:nowrap;}.rm-candidate-list{display:grid;gap:10px;}.rm-candidate-item{padding:14px;border:1px solid #dbe5f1;border-radius:7px;background:#fbfdff;}.rm-candidate-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}.rm-candidate-head strong{color:#172f52;font-size:.87rem;}.rm-candidate-head p{margin:4px 0 0;color:#64748b;font-size:.68rem;line-height:1.45;}.rm-candidate-status{display:inline-flex;align-items:center;min-width:78px;height:24px;padding:0 8px;border-radius:999px;font-size:.63rem;font-weight:900;justify-content:center;white-space:nowrap;}.rm-candidate-pendingReview{background:#eff6ff;color:#1d4ed8;}.rm-candidate-planned{background:#fef3c7;color:#a16207;}.rm-candidate-implemented{background:#ecfdf5;color:#047857;}.rm-candidate-dismissed{background:#f1f5f9;color:#64748b;}.rm-candidate-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;}.rm-candidate-body>div{padding:8px 9px;border-left:2px solid #bfdbfe;background:#f6f9fd;}.rm-candidate-body span{display:block;color:#2563eb;font-size:.62rem;font-weight:900;}.rm-candidate-body p{margin:4px 0 0;color:#475569;font-size:.7rem;line-height:1.5;white-space:pre-wrap;}.rm-candidate-controls{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf5;}.rm-candidate-controls label{display:grid;gap:5px;color:#475569;font-size:.67rem;font-weight:800;}.rm-candidate-controls select,.rm-candidate-controls textarea{width:100%;box-sizing:border-box;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;outline:none;}.rm-candidate-controls select{height:34px;padding:0 8px;}.rm-candidate-controls textarea{min-height:54px;padding:8px;resize:vertical;line-height:1.45;}.rm-candidate-controls select:focus,.rm-candidate-controls textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}
.rm-rule-draft{margin-top:12px;padding-top:12px;border-top:1px solid #e6edf5;}.rm-rule-draft-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;}.rm-rule-draft-head>div strong{display:block;color:#233c5c;font-size:.76rem;}.rm-rule-draft-head>div span{display:block;margin-top:3px;color:#71819a;font-size:.64rem;}.rm-rule-validation{display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:999px;font-size:.62rem;font-weight:900;white-space:nowrap;}.rm-rule-validation.pending{background:#f1f5f9;color:#64748b;}.rm-rule-validation.passed{background:#ecfdf5;color:#047857;}.rm-rule-validation.failed{background:#fef2f2;color:#b91c1c;}.rm-rule-draft-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}.rm-rule-draft-grid label{display:grid;gap:5px;color:#475569;font-size:.65rem;font-weight:800;}.rm-rule-draft-grid label.wide{grid-column:1/-1;}.rm-rule-draft-grid input,.rm-rule-draft-grid select{width:100%;height:34px;box-sizing:border-box;padding:0 8px;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;outline:none;}.rm-rule-draft-grid input:focus,.rm-rule-draft-grid select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}.rm-rule-draft-grid small{color:#94a3b8;font-size:.59rem;font-weight:500;}.rm-rule-draft-errors{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px;}.rm-rule-draft-errors span{padding:4px 7px;border-radius:4px;background:#fef2f2;color:#b91c1c;font-size:.62rem;}.rm-rule-draft-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;}.rm-rule-draft-actions>span{color:#047857;font-size:.65rem;font-weight:800;}
.rm-run-plan{border-color:#d7e5f4;background:#fff;}.rm-run-plan .rm-section-head{align-items:flex-start;}.rm-run-plan .rm-section-head p{max-width:650px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.rm-plan-tabs{display:flex;gap:7px;overflow:auto;margin-bottom:12px;padding-bottom:2px;}.rm-plan-tabs button{display:grid;gap:3px;min-width:170px;padding:8px 10px;border:1px solid #dbe5f1;border-radius:6px;background:#fff;text-align:left;cursor:pointer;}.rm-plan-tabs button:hover,.rm-plan-tabs button.active{border-color:#93c5fd;background:#f3f8ff;}.rm-plan-tabs strong{color:#334155;font-size:.7rem;}.rm-plan-tabs span{color:#71819a;font-size:.61rem;}.rm-plan-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}.rm-plan-form label{display:grid;gap:5px;color:#475569;font-size:.67rem;font-weight:800;}.rm-plan-form label.wide{grid-column:1/-1;}.rm-plan-form input,.rm-plan-form select{width:100%;height:36px;box-sizing:border-box;padding:0 9px;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;outline:none;}.rm-plan-form input:focus,.rm-plan-form select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}.rm-plan-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e6edf5;}.rm-plan-actions>div{display:flex;gap:8px;flex-wrap:wrap;}.rm-plan-actions>div:first-child span{padding:4px 7px;border-radius:4px;background:#eef3f8;color:#64748b;font-size:.63rem;}.rm-plan-history{margin-top:12px;border-top:1px solid #e6edf5;}.rm-plan-history summary{padding-top:10px;color:#475569;font-size:.68rem;font-weight:900;cursor:pointer;}.rm-plan-history>div{margin-top:8px;}.rm-plan-history p{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:9px;margin:0;padding:7px 0;border-top:1px solid #eef2f7;color:#64748b;font-size:.64rem;line-height:1.4;}.rm-plan-history p strong{color:#334155;}.rm-plan-history p b{color:#2563eb;font-weight:800;}.rm-run-plan-select{display:grid;grid-template-columns:130px minmax(0,360px);gap:10px;align-items:center;margin-bottom:12px;color:#475569;font-size:.68rem;font-weight:900;}.rm-run-plan-select select{height:36px;padding:0 9px;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;outline:none;}.rm-mapping-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:9px 10px;border:1px solid #bfdbfe;border-radius:6px;background:#f3f8ff;}.rm-mapping-confirm span{color:#475569;font-size:.66rem;line-height:1.45;}
.re-rule-candidate{border-color:#d7e5f4;background:#fbfdff;}.re-rule-candidate .re-section-head{align-items:flex-start;}.re-rule-candidate .re-section-head p{max-width:650px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.re-rule-candidate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.re-rule-candidate-grid .wide{grid-column:1/-1;}.re-rule-candidate-grid textarea{min-height:76px;resize:vertical;}.re-rule-candidate-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #e4ebf4;}.re-rule-candidate-action span{color:#64748b;font-size:.69rem;line-height:1.45;}
.re-professional-panel{border-color:#f3d39b;background:#fffbeb;}.re-professional-panel .re-section-head{align-items:flex-start;}.re-professional-panel .re-section-head p{max-width:700px;margin:4px 0 0;color:#80621c;font-size:.76rem;line-height:1.55;}.re-professional-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.re-professional-card{border:1px solid #f1d99d;border-radius:10px;background:#fffdf7;padding:12px;box-shadow:0 8px 18px rgba(146,103,18,.05);}.re-professional-card-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;}.re-professional-card-head span{display:inline-grid;place-items:center;min-width:28px;height:24px;border-radius:999px;background:#92400e;color:#fff;font-size:.68rem;font-weight:900;}.re-professional-card-head strong{color:#92400e;font-size:.72rem;}.re-professional-card h5{margin:0 0 7px;color:#172033;font-size:.86rem;line-height:1.45;}.re-professional-card p{margin:0 0 8px;color:#475569;font-size:.75rem;line-height:1.55;}.re-professional-card dl{display:grid;gap:5px;margin:0;}.re-professional-card dl div{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;}.re-professional-card dt{color:#9a6a13;font-size:.66rem;font-weight:900;}.re-professional-card dd{margin:0;color:#475569;font-size:.7rem;line-height:1.45;}.re-professional-factor .re-professional-card-head span{background:#2563eb;}.re-professional-case .re-professional-card-head span{background:#047857;}
.dash-drill-rehearsal{margin-top:14px;border:1px solid #d9e6f6;border-radius:14px;background:#f8fbff;overflow:hidden;}.dash-drill-rehearsal summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:13px 14px;list-style:none;}.dash-drill-rehearsal summary::-webkit-details-marker{display:none;}.dash-drill-rehearsal summary span{color:#172033;font-weight:900;}.dash-drill-rehearsal summary small{color:#64748b;font-size:.74rem;}.dash-rehearsal-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 14px 14px;}.dash-rehearsal-steps button{text-align:left;border:1px solid #d9e6f6;border-radius:12px;background:#fff;color:#172033;padding:12px;cursor:pointer;transition:all .18s ease;}.dash-rehearsal-steps button:hover{border-color:#2563eb;transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,99,235,.1);}.dash-rehearsal-steps b{display:inline-grid;place-items:center;width:30px;height:24px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:.7rem;margin-bottom:8px;}.dash-rehearsal-steps strong{display:block;font-size:.86rem;margin-bottom:5px;}.dash-rehearsal-steps small{display:block;color:#64748b;font-size:.72rem;line-height:1.48;}
html[data-theme="dark"] .rm-asset-panel,html[data-theme="dark"] .rm-factor-panel,html[data-theme="dark"] .rm-source-basis-panel,html[data-theme="dark"] .re-interpretation-panel{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-asset-stats{background:#172235;border-color:#314e75;}html[data-theme="dark"] .rm-asset-stats>div{border-color:#314158;}html[data-theme="dark"] .rm-asset-stats strong{color:#bfdbfe;}html[data-theme="dark"] .rm-factor-card,html[data-theme="dark"] .rm-source-basis-card{background:#172235;border-color:#314158;}html[data-theme="dark"] .rm-factor-card-head strong,html[data-theme="dark"] .rm-source-basis-card strong{color:#dbeafe;}html[data-theme="dark"] .rm-factor-card p,html[data-theme="dark"] .rm-factor-fields,html[data-theme="dark"] .rm-factor-action,html[data-theme="dark"] .rm-factor-source,html[data-theme="dark"] .rm-factor-foot,html[data-theme="dark"] .rm-source-basis-panel .rm-section-head p,html[data-theme="dark"] .rm-source-basis-card p,html[data-theme="dark"] .rm-source-basis-card dd,html[data-theme="dark"] .rm-source-basis-foot{color:#a8b7ca;}html[data-theme="dark"] .rm-factor-source{border-color:#314158;}html[data-theme="dark"] .rm-factor-source code{background:#1c304d;color:#a8b7ca;}html[data-theme="dark"] .rm-factor-foot{background:#172a45;border-color:#60a5fa;}html[data-theme="dark"] .rm-source-basis-card dl div,html[data-theme="dark"] .rm-source-basis-foot{background:#2b2534;border-color:#facc15;}
html[data-theme="dark"] .rm-ops-overview{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-ops-head,html[data-theme="dark"] .rm-ops-metrics,html[data-theme="dark"] .rm-ops-metrics>div,html[data-theme="dark"] .rm-ops-table th,html[data-theme="dark"] .rm-ops-table td,html[data-theme="dark"] .rm-ops-foot{border-color:#314158;}html[data-theme="dark"] .rm-ops-head h3,html[data-theme="dark"] .rm-ops-table td strong{color:#dbeafe;}html[data-theme="dark"] .rm-ops-head p,html[data-theme="dark"] .rm-ops-metrics span,html[data-theme="dark"] .rm-ops-table td{color:#a8b7ca;}html[data-theme="dark"] .rm-ops-metrics strong{color:#bfdbfe;}html[data-theme="dark"] .rm-ops-table th{background:#172235;color:#9fb0c7;}html[data-theme="dark"] .rm-ops-foot{background:#172235;}html[data-theme="dark"] .rm-ops-foot span{background:#1c304d;color:#a8b7ca;}
html[data-theme="dark"] .rm-effect-review{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-effect-review .rm-section-head p,html[data-theme="dark"] .rm-effect-advice p,html[data-theme="dark"] .rm-effect-samples p,html[data-theme="dark"] .rm-effect-empty,html[data-theme="dark"] .rm-effect-boundary{color:#a8b7ca;}html[data-theme="dark"] .rm-effect-metrics{background:#172235;border-color:#314e75;}html[data-theme="dark"] .rm-effect-metrics>div{border-color:#314158;}html[data-theme="dark"] .rm-effect-metrics span,html[data-theme="dark"] .rm-effect-metrics small,html[data-theme="dark"] .rm-effect-samples article span{color:#9fb0c7;}html[data-theme="dark"] .rm-effect-metrics strong{color:#bfdbfe;}html[data-theme="dark"] .rm-effect-advice>strong,html[data-theme="dark"] .rm-effect-samples>strong,html[data-theme="dark"] .rm-effect-advice b,html[data-theme="dark"] .rm-effect-samples b{color:#dbeafe;}html[data-theme="dark"] .rm-effect-advice article,html[data-theme="dark"] .rm-effect-samples article{background:#172235;border-color:#314158;}html[data-theme="dark"] .rm-effect-boundary{background:#172a45;border-color:#818cf8;}
html[data-theme="dark"] .rm-feedback-panel,html[data-theme="dark"] .rm-feedback-item{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-feedback-item-head strong{color:#dbeafe;}html[data-theme="dark"] .rm-feedback-item-head p,html[data-theme="dark"] .rm-feedback-proposal p{color:#a8b7ca;}html[data-theme="dark"] .rm-feedback-proposal{background:#172a45;border-color:#60a5fa;}html[data-theme="dark"] .rm-feedback-meta span{background:#1c304d;color:#a8b7ca;}html[data-theme="dark"] .rm-feedback-controls{border-color:#314158;}html[data-theme="dark"] .rm-feedback-controls select,html[data-theme="dark"] .rm-feedback-controls textarea{background:#172235;color:#d8e1ee;border-color:#314158;}
html[data-theme="dark"] .rm-governance-panel{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-governance-meta{background:#314e75;border-color:#314e75;}html[data-theme="dark"] .rm-governance-meta>div{background:#172235;}html[data-theme="dark"] .rm-governance-meta strong{color:#bfdbfe;}html[data-theme="dark"] .rm-governance-action,html[data-theme="dark"] .rm-governance-log{border-color:#314158;}html[data-theme="dark"] .rm-governance-action textarea{background:#172235;color:#d8e1ee;border-color:#314158;}html[data-theme="dark"] .rm-governance-log>div{border-color:#314158;}html[data-theme="dark"] .rm-governance-log>div b,html[data-theme="dark"] .rm-governance-log>strong{color:#d8e1ee;}
html[data-theme="dark"] .rm-candidate-panel,html[data-theme="dark"] .rm-candidate-item,html[data-theme="dark"] .re-rule-candidate{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-candidate-head strong{color:#dbeafe;}html[data-theme="dark"] .rm-candidate-head p,html[data-theme="dark"] .rm-candidate-body p,html[data-theme="dark"] .re-rule-candidate .re-section-head p{color:#a8b7ca;}html[data-theme="dark"] .rm-candidate-body>div{background:#172a45;border-color:#60a5fa;}html[data-theme="dark"] .rm-candidate-controls{border-color:#314158;}html[data-theme="dark"] .rm-candidate-controls select,html[data-theme="dark"] .rm-candidate-controls textarea{background:#172235;color:#d8e1ee;border-color:#314158;}html[data-theme="dark"] .re-rule-candidate-action{border-color:#314158;}html[data-theme="dark"] .re-rule-candidate-action span{color:#a8b7ca;}html[data-theme="dark"] .re-professional-panel{background:#30240e;border-color:#8a641b;}html[data-theme="dark"] .re-professional-panel .re-section-head p{color:#d6bd7f;}html[data-theme="dark"] .re-professional-card{background:#1f2937;border-color:#7c5f25;}html[data-theme="dark"] .re-professional-card h5{color:#f8fafc;}html[data-theme="dark"] .re-professional-card p,html[data-theme="dark"] .re-professional-card dd{color:#cbd5e1;}html[data-theme="dark"] .dash-drill-rehearsal{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .dash-drill-rehearsal summary span,html[data-theme="dark"] .dash-rehearsal-steps strong{color:#e5eefb;}html[data-theme="dark"] .dash-rehearsal-steps button{background:#172235;border-color:#314158;color:#e5eefb;}
html[data-theme="dark"] .rm-rule-draft{border-color:#314158;}html[data-theme="dark"] .rm-rule-draft-head>div strong{color:#dbeafe;}html[data-theme="dark"] .rm-rule-draft-head>div span{color:#9fb0c7;}html[data-theme="dark"] .rm-rule-draft-grid label{color:#a8b7ca;}html[data-theme="dark"] .rm-rule-draft-grid input,html[data-theme="dark"] .rm-rule-draft-grid select{background:#172235;color:#d8e1ee;border-color:#314158;}
html[data-theme="dark"] .rm-run-plan{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-plan-tabs button{background:#172235;border-color:#314158;}html[data-theme="dark"] .rm-plan-tabs button:hover,html[data-theme="dark"] .rm-plan-tabs button.active{background:#172a45;border-color:#60a5fa;}html[data-theme="dark"] .rm-plan-tabs strong,html[data-theme="dark"] .rm-plan-history p strong{color:#dbeafe;}html[data-theme="dark"] .rm-plan-tabs span,html[data-theme="dark"] .rm-plan-history p{color:#9fb0c7;}html[data-theme="dark"] .rm-plan-form input,html[data-theme="dark"] .rm-plan-form select,html[data-theme="dark"] .rm-run-plan-select select{background:#172235;color:#d8e1ee;border-color:#314158;}html[data-theme="dark"] .rm-plan-actions,html[data-theme="dark"] .rm-plan-history,html[data-theme="dark"] .rm-plan-history p{border-color:#314158;}html[data-theme="dark"] .rm-plan-actions>div:first-child span{background:#1c304d;color:#a8b7ca;}html[data-theme="dark"] .rm-mapping-confirm{background:#172a45;border-color:#314e75;}html[data-theme="dark"] .rm-mapping-confirm span{color:#a8b7ca;}
@media(max-width:760px){.rm-ops-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}.rm-ops-metrics>div:nth-child(3){border-right:0;}.rm-ops-metrics>div:nth-child(-n+3){border-bottom:1px solid #e8eef7;}.rm-asset-stats{grid-template-columns:repeat(3,minmax(0,1fr));}.rm-asset-stats>div:nth-child(3){border-right:0;}.rm-effect-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}.rm-effect-metrics>div{border-bottom:1px solid #e5eaff;}.rm-effect-metrics>div:nth-child(2n){border-right:0;}.rm-effect-metrics>div:nth-last-child(-n+2){border-bottom:0;}.rm-asset-grid,.rm-factor-list,.rm-source-basis-card dl,.re-interpretation-grid,.rm-effect-body,.re-rule-candidate-grid,.re-professional-grid,.dash-rehearsal-steps{grid-template-columns:1fr;}.rm-asset-grid .wide,.re-rule-candidate-grid .wide{grid-column:auto;}.rm-asset-panel .rm-section-head,.rm-factor-panel .rm-section-head,.rm-source-basis-panel .rm-section-head,.re-interpretation-panel .re-section-head,.rm-effect-review .rm-section-head,.re-professional-panel .re-section-head,.rm-feedback-panel .rm-section-head,.rm-governance-panel .rm-section-head,.rm-candidate-panel .rm-section-head,.rm-run-plan .rm-section-head{flex-direction:column;}.rm-asset-panel .btn,.re-interpretation-panel .btn,.rm-feedback-panel .btn{width:100%;}.rm-feedback-item-head,.rm-candidate-head,.rm-rule-draft-head{flex-direction:column;}.rm-feedback-controls,.rm-candidate-controls,.rm-rule-draft-grid,.rm-plan-form{grid-template-columns:1fr;}.rm-rule-draft-grid label.wide,.rm-plan-form label.wide{grid-column:auto;}.rm-feedback-controls .btn,.rm-candidate-controls .btn{width:100%;}.rm-governance-meta{grid-template-columns:repeat(2,minmax(0,1fr));}.rm-governance-action,.rm-plan-actions,.rm-mapping-confirm{align-items:stretch;flex-direction:column;}.rm-governance-action>div .btn{flex:1;}.rm-governance-log>div,.rm-plan-history p{grid-template-columns:1fr;gap:2px;}.rm-run-plan-select{grid-template-columns:1fr;}.re-rule-candidate-action{align-items:stretch;flex-direction:column;}.re-rule-candidate-action .btn{width:100%;}}

/* Model operation queue and risk event assignment */
.rm-run-queue{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:12px 14px;border-bottom:1px solid #e8eef7;background:#fbfdff;}.rm-run-queue>div:first-child strong{display:block;color:#334155;font-size:.72rem;}.rm-run-queue>div:first-child span{display:block;margin-top:4px;color:#64748b;font-size:.63rem;}.rm-run-queue>div:last-child{display:flex;gap:7px;overflow:auto;}.rm-run-queue button{display:grid;gap:3px;min-width:165px;padding:7px 9px;border:1px solid #dbe5f1;border-radius:6px;background:#fff;text-align:left;cursor:pointer;}.rm-run-queue button:hover{border-color:#93c5fd;}.rm-run-queue button.overdue{border-color:#fecaca;background:#fff7f7;}.rm-run-queue button.dueToday,.rm-run-queue button.dueSoon{border-color:#fde68a;background:#fffdf4;}.rm-run-queue button strong{color:#334155;font-size:.67rem;}.rm-run-queue button span{color:#71819a;font-size:.59rem;}
.rm-plan-history p{grid-template-columns:150px minmax(0,1fr) auto auto;}.rm-plan-history p strong small{display:block;margin-top:3px;color:#b91c1c;font-weight:500;}.rm-plan-history p.failed b{color:#b91c1c;}.rm-plan-history p button{padding:3px 6px;border:1px solid #fecaca;border-radius:4px;background:#fff;color:#b91c1c;font:inherit;font-weight:800;cursor:pointer;}
.re-stats{grid-template-columns:repeat(6,minmax(92px,1fr));}.re-card-meta em.overdue{color:#b91c1c;font-weight:900;}.re-assignment{border-color:#d7e5f4;background:#fbfdff;}.re-assignment .re-section-head{align-items:flex-start;}.re-assignment .re-section-head p{max-width:620px;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55;}.re-assignment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}.re-assignment-grid label{display:grid;gap:5px;color:#475569;font-size:.67rem;font-weight:800;}.re-assignment-grid label.wide{grid-column:1/-1;}.re-assignment-grid input,.re-assignment-grid select,.re-assignment-grid textarea{width:100%;box-sizing:border-box;border:1px solid #d8e3ef;border-radius:6px;background:#fff;color:#172033;font:inherit;font-weight:500;outline:none;}.re-assignment-grid input,.re-assignment-grid select{height:36px;padding:0 9px;}.re-assignment-grid textarea{min-height:58px;padding:8px;resize:vertical;line-height:1.45;}.re-assignment-grid input:focus,.re-assignment-grid select:focus,.re-assignment-grid textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1);}
html[data-theme="dark"] .rm-run-queue{background:#172235;border-color:#314158;}html[data-theme="dark"] .rm-run-queue button,html[data-theme="dark"] .rm-run-queue button.overdue,html[data-theme="dark"] .rm-run-queue button.dueToday,html[data-theme="dark"] .rm-run-queue button.dueSoon{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .rm-run-queue button strong,html[data-theme="dark"] .rm-run-queue>div:first-child strong{color:#dbeafe;}html[data-theme="dark"] .re-assignment{background:#13233b;border-color:#314e75;}html[data-theme="dark"] .re-assignment-grid input,html[data-theme="dark"] .re-assignment-grid select,html[data-theme="dark"] .re-assignment-grid textarea{background:#172235;color:#d8e1ee;border-color:#314158;}
@media(max-width:760px){.rm-run-queue{grid-template-columns:1fr;}.rm-plan-history p{grid-template-columns:1fr;gap:2px;}.re-assignment .re-section-head{flex-direction:column;}.re-assignment-grid{grid-template-columns:1fr;}.re-assignment-grid label.wide{grid-column:auto;}.re-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Project-level internal-control assurance register */
#view-ictest > .ic-intro-box { display: none; }
.ic-project-assurance { margin: 12px 0 24px; border-top: 3px solid #173f5f; border-bottom: 1px solid #dbe3ec; background: #fff; }
.ic-workbench { border-bottom: 1px solid #dbe5ef; background: linear-gradient(135deg,#f8fbff 0%,#fff 58%,#f7fbf8 100%); }
.ic-workbench-hero { display: block; padding: 22px 22px 12px; }
.ic-workbench-hero span { display: block; margin-bottom: 6px; color: #315f87; font-size: .66rem; font-weight: 900; letter-spacing: .13em; }
.ic-workbench-hero h3 { margin: 0; color: #10263a; font-size: 1.18rem; letter-spacing: 0; }
.ic-workbench-hero p { max-width: 900px; margin: 8px 0 0; color: #5f7286; font-size: .8rem; line-height: 1.65; }
.ic-workbench-next { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.55fr); gap: 16px; margin: 0 22px 16px; border: 2px solid #bdd3ff; background: #fff; box-shadow: 0 18px 44px rgba(36,84,184,.12); }
.ic-workbench-next>div { padding: 16px 18px; border-left: 4px solid #3568e8; }
.ic-workbench-next em { display: inline-flex; margin-bottom: 7px; padding: 3px 7px; background: #edf3ff; color: #2855bd; font-size: .58rem; font-style: normal; font-weight: 900; }
.ic-workbench-next strong { display: block; color: #162d42; font-size: .96rem; }
.ic-workbench-next p { margin: 7px 0 0; color: #5f7286; font-size: .76rem; line-height: 1.6; }
.ic-workbench-next ul { margin: 0; padding: 14px 18px 14px 32px; border-left: 1px solid #e5edf5; background: #fbfdff; color: #53687d; font-size: .7rem; line-height: 1.55; }
.ic-workbench-primary-action { display: inline-grid; gap: 2px; min-width: 210px; margin-top: 14px; padding: 13px 18px; border: 0; border-radius: 10px; background: linear-gradient(135deg,#2557d6,#0b74c9); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 12px 24px rgba(37,87,214,.24); }
.ic-workbench-primary-action:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(37,87,214,.3); }
.ic-workbench-primary-action span { color: rgba(255,255,255,.78); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.ic-workbench-primary-action b { font-size: .92rem; letter-spacing: .02em; }
.ic-workbench-stages { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; margin: 0 22px; border: 1px solid #dbe5ef; background: #fff; }
.ic-workbench-stages span { position: relative; min-width: 0; padding: 11px 10px 12px; border-right: 1px solid #e3ebf3; color: #718296; font-size: .65rem; font-weight: 800; text-align: center; }
.ic-workbench-stages span:last-child { border-right: 0; }
.ic-workbench-stages span:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #d7e0ea; }
.ic-workbench-stages .is-done { color: #0b7357; background: #f2fbf7; }
.ic-workbench-stages .is-done:after { background: #16a06f; }
.ic-workbench-stages .is-active { color: #183f9b; background: #eef4ff; }
.ic-workbench-stages .is-active:after { background: #3568e8; }
.ic-workbench-map-nav { margin: 14px 22px 0; border: 1px solid #dbe5ef; background: #fff; }
.ic-workbench-map-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 16px; align-items: end; padding: 14px 16px; border-bottom: 1px solid #e4ebf2; background: #fbfdff; }
.ic-workbench-map-head span { display: block; color: #315f87; font-size: .6rem; font-weight: 900; letter-spacing: .11em; }
.ic-workbench-map-head strong { display: block; margin-top: 3px; color: #153149; font-size: .86rem; }
.ic-workbench-map-head small { display: block; margin-top: 4px; color: #607286; font-size: .68rem; line-height: 1.45; }
.ic-workbench-map-head label { display: grid; gap: 5px; margin: 0; }
.ic-workbench-map-head input { min-height: 36px; box-sizing: border-box; border: 1px solid #cad8e6; border-radius: 999px; padding: 0 13px; background: #fff; color: #15283b; font: inherit; font-size: .72rem; outline: none; }
.ic-workbench-map-head input:focus { border-color: #3568e8; box-shadow: 0 0 0 3px rgba(53,104,232,.12); }
.ic-workbench-map-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 9px; padding: 12px 16px; }
.ic-workbench-map-card { display: grid; gap: 6px; min-height: 86px; padding: 11px 12px; border: 1px solid #dce5ef; border-left: 4px solid #94a3b8; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.ic-workbench-map-card:hover { border-color: #8fb6e8; box-shadow: 0 8px 18px rgba(53,104,232,.09); }
.ic-workbench-map-card.is-build-built { border-left-color: #16a06f; background: linear-gradient(90deg,rgba(22,160,111,.06),#fff 48%); }
.ic-workbench-map-card.is-build-building { border-left-color: #d88413; background: linear-gradient(90deg,rgba(216,132,19,.08),#fff 48%); }
.ic-workbench-map-card.is-build-unbuilt { border-left-color: #94a3b8; background: linear-gradient(90deg,rgba(148,163,184,.08),#fff 48%); }
.ic-workbench-map-card strong { color: #173047; font-size: .76rem; }
.ic-workbench-map-card small { color: #708398; font-size: .62rem; line-height: 1.45; }
.ic-workbench-map-more { display: block; width: calc(100% - 32px); margin: 0 16px 14px; padding: 10px 12px; border: 1px dashed #b9c9da; border-radius: 10px; background: #f8fafc; color: #315f87; font-size: .72rem; font-weight: 900; cursor: pointer; }
.ic-workbench-map-more:hover { border-color: #3568e8; background: #f2f7ff; }
.ic-workbench-map-empty { grid-column: 1/-1; margin: 0; padding: 14px; border: 1px dashed #cbd8e6; border-radius: 10px; background: #f8fafc; color: #607286; font-size: .72rem; text-align: center; }
.ic-workbench-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin-top: 14px; border-top: 1px solid #e4ebf2; background: rgba(255,255,255,.72); }
.ic-workbench-kpis span { padding: 11px 14px; border-right: 1px solid #e4ebf2; color: #66798c; font-size: .64rem; }
.ic-workbench-kpis span:last-child { border-right: 0; }
.ic-workbench-kpis strong { display: block; margin-bottom: 2px; color: #153149; font-size: .94rem; }
.ic-flow-tools { border-top: 1px solid #dbe5ef; background: #fff; }
.ic-flow-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 16px 22px; border: 0; border-bottom: 1px solid #e4ebf2; background: #f8fafc; text-align: left; cursor: pointer; }
.ic-flow-tools-head:hover { background: #f0f6fb; }
.ic-flow-tools-head span { display: block; margin-bottom: 4px; color: #42617d; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.ic-flow-tools-head strong { display: block; color: #183249; font-size: .86rem; }
.ic-flow-tools-head p { margin: 5px 0 0; color: #66798c; font-size: .7rem; line-height: 1.5; }
.ic-flow-tools-head em { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #eaf1ff; color: #2855bd; font-size: .66rem; font-style: normal; font-weight: 900; }
.ic-flow-tools-collapsed { display: grid; gap: 4px; margin: 16px 22px 20px; padding: 18px; border: 1px dashed #c7d6e6; background: #fbfdff; color: #63778a; }
.ic-flow-tools-collapsed strong { color: #1f3a53; font-size: .82rem; }
.ic-flow-tools-collapsed span,.ic-flow-tools-collapsed small { font-size: .7rem; }
.ic-flow-tools-body { animation: icToolReveal .18s ease-out; }
@keyframes icToolReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ic-enterprise-map { border-bottom: 1px solid #d9e2ea; background: #fff; }
.ic-enterprise-map-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.72fr); gap: 22px; padding: 20px 22px 16px; border-bottom: 1px solid #e2e8ef; background: linear-gradient(112deg,#fff,#f7fbff); }
.ic-enterprise-map-head span { display: block; margin-bottom: 6px; color: #42617d; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.ic-enterprise-map-head h3 { margin: 0; color: #13263a; font-size: 1.08rem; letter-spacing: 0; }
.ic-enterprise-map-head p { max-width: 900px; margin: 7px 0 0; color: #607286; font-size: .78rem; line-height: 1.65; }
.ic-map-role-notes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ic-map-role-notes span { margin: 0; padding: 4px 7px; border: 1px solid #dce5ef; border-radius: 999px; background: #fff; color: #526b82; font-size: .6rem; letter-spacing: 0; }
.ic-enterprise-map-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-self: stretch; border: 1px solid #dce5ef; background: #fff; }
.ic-enterprise-map-metrics span { display: grid; align-content: center; gap: 3px; min-width: 0; margin: 0; padding: 10px 11px; border-left: 1px solid #dce5ef; color: #66778a; font-size: .62rem; letter-spacing: 0; }
.ic-enterprise-map-metrics span:first-child { border-left: 0; }
.ic-enterprise-map-metrics strong { color: #173047; font-size: 1rem; }
.ic-enterprise-map-metrics .is-danger strong { color: #b4232b; }
.ic-enterprise-map-groups { display: grid; gap: 0; }
.ic-map-group { display: grid; grid-template-columns: 190px minmax(0,1fr); border-bottom: 1px solid #e4ebf2; }
.ic-map-group:last-child { border-bottom: 0; }
.ic-map-group-head { padding: 15px 18px; border-right: 1px solid #e4ebf2; background: #f7fafc; }
.ic-map-group-head strong,.ic-map-group-head span { display: block; }
.ic-map-group-head strong { color: #173047; font-size: .76rem; }
.ic-map-group-head span { margin-top: 5px; color: #718397; font-size: .63rem; }
.ic-map-domains { min-width: 0; }
.ic-map-domain { display: grid; grid-template-columns: minmax(220px,.82fr) minmax(310px,.92fr) minmax(300px,1.08fr); align-items: stretch; border-bottom: 1px solid #edf1f5; }
.ic-map-domain:last-child { border-bottom: 0; }
.ic-map-domain.is-map-focus { box-shadow: inset 4px 0 #3568e8; background: #f5f8ff; }
.ic-map-domain-main { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 12px 14px; border: 0; border-left: 3px solid #94a3b8; background: transparent; text-align: left; cursor: pointer; }
.ic-map-domain-main:hover { background: #f4f8fb; }
.ic-map-domain-main span { width: max-content; max-width: 100%; padding: 3px 7px; background: #eef2f6; color: #5c6f82; font-size: .58rem; font-weight: 800; }
.ic-map-domain-main strong { color: #1a344b; font-size: .74rem; }
.ic-map-domain-main small { overflow: hidden; color: #708398; font-size: .62rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.ic-map-domain.is-in-scope .ic-map-domain-main,.ic-map-domain.is-in-progress .ic-map-domain-main { border-left-color: #315f87; }
.ic-map-domain.is-has-deficiency .ic-map-domain-main { border-left-color: #b4232b; }
.ic-map-domain.is-evidence-gap .ic-map-domain-main { border-left-color: #b7791f; }
.ic-map-domain.is-model-alert .ic-map-domain-main { border-left-color: #c2410c; background: #fff7ed; }
.ic-map-domain-meta { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-left: 1px solid #edf1f5; border-right: 1px solid #edf1f5; }
.ic-map-domain-meta span { display: grid; align-content: center; padding: 0 10px; border-left: 1px solid #edf1f5; color: #687b8f; font-size: .62rem; }
.ic-map-domain-meta span:first-child { border-left: 0; }
.ic-map-controls { display: flex; gap: 6px; align-items: center; min-width: 0; padding: 9px 12px; overflow-x: auto; }
.ic-map-control { flex: 0 0 138px; min-height: 46px; padding: 7px 9px; border: 1px solid #dce5ef; border-left: 3px solid #9aa8b6; background: #fff; text-align: left; cursor: pointer; }
.ic-map-control:hover,.ic-map-control.is-map-focus { border-color: #8fb6e8; border-left-color: #3568e8; background: #f5f9ff; }
.ic-map-control.is-effective { border-left-color: #16836b; }
.ic-map-control.is-design-deficiency,.ic-map-control.is-operating-deficiency,.ic-map-control.is-dual-deficiency { border-left-color: #b4232b; }
.ic-map-control.is-evidence-gap { border-left-color: #b7791f; }
.ic-map-control.is-model-alert { border-left-color: #c2410c; background: #fff8f1; }
.ic-map-control strong,.ic-map-control small,.ic-map-control em { display: block; }
.ic-map-control strong { overflow: hidden; color: #233d54; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.ic-map-control small { margin-top: 4px; color: #7b8b9c; font-size: .56rem; }
.ic-map-control em { margin-top: 3px; overflow: hidden; color: #8a9aab; font-size: .52rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ic-map-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e4ebf2; background: #fbfdff; }
.ic-map-search { display: grid; gap: 5px; min-width: 0; }
.ic-map-search span { color: #42617d; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.ic-map-search input { width: 100%; min-height: 38px; box-sizing: border-box; border: 1px solid #cad8e6; border-radius: 999px; padding: 0 14px; background: #fff; color: #15283b; font: inherit; font-size: .72rem; outline: none; }
.ic-map-search input:focus { border-color: #3568e8; box-shadow: 0 0 0 3px rgba(53,104,232,.12); }
.ic-map-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ic-map-legend { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dce5ef; background: #fff; color: #5f7184; font-size: .6rem; font-weight: 800; }
.ic-map-legend:before,.ic-map-build-dot { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #94a3b8; }
.ic-map-legend.is-built:before,.ic-map-control.is-build-built .ic-map-build-dot { background: #16a06f; }
.ic-map-legend.is-building:before,.ic-map-control.is-build-building .ic-map-build-dot { background: #d88413; }
.ic-map-legend.is-unbuilt:before,.ic-map-control.is-build-unbuilt .ic-map-build-dot { background: #94a3b8; }
.ic-map-tree { display: block; }
.ic-map-tree .ic-map-group { display: block; border-bottom: 1px solid #e4ebf2; }
.ic-map-tree .ic-map-group-head { display: grid; grid-template-columns: 18px minmax(120px,220px) minmax(0,1fr); gap: 9px; align-items: center; width: 100%; box-sizing: border-box; padding: 12px 18px; border: 0; border-right: 0; background: #f7fafc; text-align: left; cursor: pointer; }
.ic-map-tree .ic-map-group-head:hover { background: #eef5fb; }
.ic-map-chevron { color: #58708a; font-size: .8rem; font-weight: 900; }
.ic-map-tree .ic-map-domains { padding: 0 0 0 18px; border-top: 1px solid #e8eef5; background: #fff; }
.ic-map-tree .ic-map-domain { display: block; border-bottom: 1px solid #edf1f5; }
.ic-map-domain-row { display: grid; grid-template-columns: 34px minmax(260px,.9fr) minmax(320px,1.1fr); align-items: stretch; min-width: 0; }
.ic-map-node-toggle { display: grid; place-items: center; border: 0; border-right: 1px solid #edf1f5; background: #fbfcfe; cursor: pointer; }
.ic-map-node-toggle:hover { background: #eef5fb; }
.ic-map-tree .ic-map-domain-main { border-left-width: 4px; }
.ic-map-domain.is-build-built .ic-map-domain-main { border-left-color: #16a06f; background: linear-gradient(90deg,rgba(22,160,111,.08),transparent 42%); }
.ic-map-domain.is-build-building .ic-map-domain-main { border-left-color: #d88413; background: linear-gradient(90deg,rgba(216,132,19,.1),transparent 42%); }
.ic-map-domain.is-build-unbuilt .ic-map-domain-main { border-left-color: #94a3b8; background: linear-gradient(90deg,rgba(148,163,184,.1),transparent 42%); }
.ic-map-build-badge,.ic-map-risk-badge { display: inline-flex !important; width: max-content; max-width: 100%; padding: 3px 7px; font-size: .56rem; font-weight: 900; }
.ic-map-build-badge.is-built { background: #e8f8f0 !important; color: #08704e !important; }
.ic-map-build-badge.is-building { background: #fff4df !important; color: #95540a !important; }
.ic-map-build-badge.is-unbuilt { background: #eef2f6 !important; color: #5c6f82 !important; }
.ic-map-risk-badge { margin-left: 4px; background: #edf3ff !important; color: #2855bd !important; }
.ic-map-tree-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 8px; padding: 10px 12px 12px 46px; overflow: visible; background: #fbfcfe; }
.ic-map-tree-controls .ic-map-control { display: grid; grid-template-columns: 10px minmax(0,1fr); column-gap: 7px; row-gap: 2px; align-items: start; flex: initial; min-height: 62px; border-left-width: 3px; }
.ic-map-tree-controls .ic-map-build-dot { grid-row: 1 / 4; margin-top: 4px; }
.ic-map-control.is-build-built { border-color: #bcebd6; background: #fbfffd; }
.ic-map-control.is-build-building { border-color: #f4d39b; background: #fffaf2; }
.ic-map-control.is-build-unbuilt { border-color: #dce5ef; background: #f8fafc; }
.ic-map-control.is-build-built:hover,.ic-map-control.is-build-built.is-map-focus { border-color: #16a06f; background: #f0fbf6; }
.ic-map-control.is-build-building:hover,.ic-map-control.is-build-building.is-map-focus { border-color: #d88413; background: #fff6e7; }
.ic-map-empty { margin: 14px 18px; padding: 18px; border: 1px dashed #cbd8e6; background: #f8fafc; color: #607286; font-size: .72rem; text-align: center; }
.ic-enterprise-map-boundary { margin: 0; padding: 10px 22px 13px; color: #63778a; font-size: .66rem; line-height: 1.55; background: #fbfcfe; }
.ic-tower-drilldown { margin: 0; border-top: 1px solid #dce5ef; background: #fff; }
.ic-tower-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 22px 14px; border-bottom: 1px solid #e4ebf2; background: #fbfdff; }
.ic-tower-head span { display: block; margin-bottom: 5px; color: #42617d; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.ic-tower-head h4 { margin: 0; color: #13263a; font-size: .9rem; letter-spacing: 0; }
.ic-tower-head p { max-width: 820px; margin: 6px 0 0; color: #64748b; font-size: .72rem; line-height: 1.55; }
.ic-tower-head em { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #cfe0f5; background: #eef6ff; color: #2855bd; font-size: .62rem; font-style: normal; font-weight: 800; }
.ic-tower-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr .62fr; border-bottom: 1px solid #e7edf4; }
.ic-tower-grid>div { min-width: 0; padding: 13px 16px; border-left: 1px solid #e7edf4; }
.ic-tower-grid>div:first-child { border-left: 0; }
.ic-tower-grid strong,.ic-tower-events>strong,.ic-tower-actions>strong { display: block; margin-bottom: 6px; color: #20384f; font-size: .68rem; }
.ic-tower-grid p,.ic-tower-events p { margin: 0; color: #5e7186; font-size: .68rem; line-height: 1.55; }
.ic-tower-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-tower-pills span,.ic-tower-empty { display: inline-flex; max-width: 100%; padding: 4px 7px; border: 1px solid #dbe5ef; background: #f7fafc; color: #53677c; font-size: .6rem; font-weight: 700; }
.ic-tower-events { padding: 13px 16px; border-bottom: 1px solid #e7edf4; }
.ic-tower-events article { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f6; }
.ic-tower-events article:first-of-type { border-top: 0; }
.ic-tower-events article span { align-self: start; padding: 3px 6px; background: #eef2f6; color: #52667b; font-size: .58rem; font-weight: 800; text-align: center; }
.ic-tower-events b,.ic-tower-events small { display: block; }
.ic-tower-events b { color: #1f354c; font-size: .68rem; }
.ic-tower-events small { margin-top: 3px; color: #6b7e92; font-size: .62rem; line-height: 1.45; }
.ic-tower-actions { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 13px 16px; background: #fbfcfe; }
.ic-tower-actions ul { margin: 0; padding-left: 16px; color: #52667b; font-size: .66rem; line-height: 1.6; }
.ic-tower-actions div { display: flex; gap: 8px; }
.ic-assurance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 22px 16px; }
.ic-assurance-head span,.ic-auxiliary-head>span { display: block; margin-bottom: 6px; color: #42617d; font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.ic-assurance-head h3,.ic-auxiliary-head h3 { margin: 0; color: #13263a; font-size: 1.08rem; letter-spacing: 0; }
.ic-assurance-head p,.ic-auxiliary-head p { max-width: 880px; margin: 7px 0 0; color: #607286; font-size: .8rem; line-height: 1.65; }
.ic-assurance-empty { margin: 0 22px 22px; padding: 18px 0; border-top: 1px solid #e4eaf0; }
.ic-assurance-empty strong { color: #1d3348; }
.ic-assurance-empty p { margin: 6px 0 14px; color: #687a8d; font-size: .8rem; }
.ic-scope-gate { display: flex; align-items: center; gap: 12px; margin: 0 22px 14px; padding: 10px 12px; border-left: 3px solid #b7791f; background: #fff8e8; }
.ic-scope-gate strong { flex: 0 0 auto; color: #765213; font-size: .72rem; }
.ic-scope-gate span { color: #775f35; font-size: .68rem; line-height: 1.5; }
.ic-scope-type { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 16px 0; border: 1px solid #d8e1ec; background: #fff; }
.ic-scope-type label { display: grid; grid-template-columns: 20px minmax(0,1fr); column-gap: 10px; row-gap: 3px; padding: 14px 16px; cursor: pointer; }
.ic-scope-type label + label { border-left: 1px solid #d8e1ec; }
.ic-scope-type label.active { background: #f1f6ff; box-shadow: inset 0 -3px #3568e8; }
.ic-scope-type input { grid-row: 1 / 3; margin-top: 3px; accent-color: #3568e8; }
.ic-scope-type strong { color: #12213a; font-size: .76rem; }
.ic-scope-type span { color: #68778f; font-size: .66rem; line-height: 1.45; }
.ic-context-check { margin: 0 0 18px; border: 1px solid #d7e0ea; background: #fff; }
.ic-context-check-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e4eaf1; }
.ic-context-check-head div { display: grid; gap: 4px; }
.ic-context-check-head strong { color: #11213a; font-size: .88rem; }
.ic-context-check-head span { color: #68778f; font-size: .68rem; }
.ic-context-check-head em { padding: 4px 8px; color: #2855bd; background: #edf3ff; font-size: .62rem; font-style: normal; }
.ic-context-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 16px 18px; }
.ic-context-grid label { display: grid; gap: 6px; }
.ic-context-grid label.wide { grid-column: 1 / -1; }
.ic-context-grid label > span { color: #46566f; font-size: .7rem; font-weight: 700; }
.ic-context-grid input,.ic-context-grid select,.ic-context-grid textarea { width: 100%; min-width: 0; border: 1px solid #ccd7e4; border-radius: 4px; background: #fff; color: #17233a; font: inherit; }
.ic-context-grid input,.ic-context-grid select { min-height: 40px; padding: 0 10px; }
.ic-context-grid textarea { padding: 10px; resize: vertical; }
.ic-method-template { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px 14px; border: 1px solid #d7e2f0; border-radius: 8px; background: #f8fbff; }
.ic-method-template.is-selected { border-color: #8fb2ff; box-shadow: inset 3px 0 0 #3568e8; }
.ic-method-template-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ic-method-template-head > div { display: grid; gap: 2px; }
.ic-method-template-head span { color: #3568e8; font-size: .72rem; font-weight: 800; }
.ic-method-template-head strong { color: #17233a; font-size: .9rem; }
.ic-method-template-head small { color: #718096; font-size: .72rem; }
.ic-method-template-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.ic-method-template-grid fieldset { display: grid; align-content: start; gap: 6px; margin: 0; padding: 9px 10px; border: 1px solid #dbe4ef; border-radius: 6px; background: #fff; }
.ic-method-template-grid legend { padding: 0 4px; color: #41526b; font-size: .76rem; font-weight: 800; }
.ic-method-template-grid label { display: flex; align-items: flex-start; gap: 7px; color: #3f4f66; font-size: .76rem; line-height: 1.45; }
.ic-method-template-grid input { width: 14px; min-height: 14px; margin-top: 2px; accent-color: #3568e8; }
.ic-method-template details { color: #53627a; font-size: .74rem; }
.ic-method-template details summary { cursor: pointer; font-weight: 800; }
.ic-method-template details p { margin: 7px 0 0; line-height: 1.55; }
.ic-method-template-points { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ic-method-template-points span { padding: 3px 7px; border-radius: 999px; color: #3159a9; background: #eaf1ff; }
.ic-method-template-boundary { margin: 0; color: #75839a; font-size: .7rem; line-height: 1.5; }
.ic-context-sources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 14px; margin: 0; padding: 12px; border: 1px solid #d8e1ec; }
.ic-context-sources legend { padding: 0 5px; color: #46566f; font-size: .7rem; font-weight: 700; }
.ic-context-sources label { display: flex; align-items: flex-start; gap: 7px; color: #43536c; font-size: .67rem; line-height: 1.4; }
.ic-context-sources input { width: 15px; min-height: 15px; margin-top: 1px; accent-color: #3568e8; }
.ic-context-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid #e4eaf1; background: #f8fafc; }
.ic-context-actions p { margin: 0; color: #68778f; font-size: .67rem; line-height: 1.55; }
.ic-context-result { margin: 0 18px 16px; padding: 12px 14px; border-left: 3px solid #3568e8; background: #f2f6ff; }
.ic-context-result strong { color: #183f9b; font-size: .76rem; }
.ic-context-result p { margin: 5px 0; color: #43536c; font-size: .69rem; line-height: 1.55; }
.ic-context-result span { color: #6b7890; font-size: .63rem; }
.ic-source-workbench { margin: 0 0 18px; border-top: 3px solid #315f87; border-bottom: 1px solid #d7e0ea; background: #fff; }
.ic-source-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 18px 14px; border-bottom: 1px solid #e4eaf1; }
.ic-source-head span { display: block; margin-bottom: 4px; color: #42617d; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.ic-source-head h4 { margin: 0; color: #13263a; font-size: .94rem; letter-spacing: 0; }
.ic-source-head p { max-width: 800px; margin: 6px 0 0; color: #68778f; font-size: .7rem; line-height: 1.55; }
.ic-source-head dl { display: flex; gap: 18px; margin: 0; }
.ic-source-head dl div { min-width: 70px; text-align: right; }
.ic-source-head dt { color: #718296; font-size: .61rem; }
.ic-source-head dd { margin: 3px 0 0; color: #183f64; font-size: 1rem; font-weight: 800; }
.ic-source-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 420px; }
.ic-source-layout aside { padding: 10px; border-right: 1px solid #e1e7ee; background: #f7f9fb; }
.ic-source-layout aside button { width: 100%; border: 0; border-bottom: 1px solid #e1e7ee; background: transparent; color: #233d54; text-align: left; cursor: pointer; }
.ic-source-new { padding: 11px 10px; color: #2855bd !important; font-size: .7rem; font-weight: 800; }
.ic-source-item { display: grid; gap: 4px; padding: 11px 10px; }
.ic-source-item strong { overflow: hidden; color: #21384e; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.ic-source-item small,.ic-source-item span { color: #748599; font-size: .6rem; line-height: 1.35; }
.ic-source-layout aside button:hover,.ic-source-layout aside button.active { background: #eaf1f8; box-shadow: inset 3px 0 #315f87; }
.ic-source-layout main { min-width: 0; }
.ic-source-upload { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #e4eaf1; background: #fbfcfe; }
.ic-source-upload input { display: none; }
.ic-source-upload div { display: grid; gap: 3px; }
.ic-source-upload strong { color: #243b52; font-size: .73rem; }
.ic-source-upload span { color: #748599; font-size: .63rem; line-height: 1.45; }
.ic-source-form,.ic-source-extraction { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; padding: 16px 18px; }
.ic-source-form label,.ic-source-extraction label { display: grid; gap: 5px; }
.ic-source-form .wide,.ic-source-extraction .wide { grid-column: 1/-1; }
.ic-source-form label>span,.ic-source-extraction label>span { color: #46566f; font-size: .67rem; font-weight: 700; }
.ic-source-form input,.ic-source-form select,.ic-source-form textarea,.ic-source-extraction input,.ic-source-extraction textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #ccd7e4; border-radius: 4px; background: #fff; color: #17233a; font: inherit; }
.ic-source-form input,.ic-source-form select,.ic-source-extraction input { min-height: 38px; padding: 0 9px; }
.ic-source-form textarea,.ic-source-extraction textarea { padding: 9px; resize: vertical; line-height: 1.5; }
.ic-source-mapping { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 2px 0 0; padding: 12px; border: 1px solid #d8e1ec; }
.ic-source-mapping legend { padding: 0 5px; color: #46566f; font-size: .67rem; font-weight: 700; }
.ic-source-mapping label { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 7px; padding: 7px; background: #f8fafc; }
.ic-source-mapping input { width: 15px; min-height: 15px; margin-top: 2px; accent-color: #3568e8; }
.ic-source-mapping strong,.ic-source-mapping small { display: block; }
.ic-source-mapping strong { color: #33485d; font-size: .65rem; }
.ic-source-mapping small { margin-top: 3px; color: #7a8999; font-size: .59rem; line-height: 1.35; }
.ic-source-extraction { border-top: 1px solid #e4eaf1; background: #fbfcfe; }
.ic-source-extraction>div:first-child { grid-column: 1/-1; }
.ic-source-extraction>div:first-child strong,.ic-source-extraction>div:first-child span { display: block; }
.ic-source-extraction>div:first-child strong { color: #20384f; font-size: .76rem; }
.ic-source-extraction>div:first-child span { margin-top: 4px; color: #748599; font-size: .63rem; }
.ic-source-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 18px; border-top: 1px solid #e4eaf1; }
.ic-source-actions>span { margin-right: auto; color: #5f7184; font-size: .65rem; }
@media(max-width:760px){.ic-source-head{flex-direction:column;}.ic-source-head dl{width:100%;}.ic-source-head dl div{flex:1;text-align:left;}.ic-source-layout{grid-template-columns:1fr;}.ic-source-layout aside{display:flex;gap:6px;overflow:auto;border-right:0;border-bottom:1px solid #e1e7ee;}.ic-source-layout aside button{min-width:170px;border:1px solid #e1e7ee;}.ic-source-upload{grid-template-columns:1fr;}.ic-source-upload .btn{width:100%;}.ic-source-form,.ic-source-extraction,.ic-source-mapping{grid-template-columns:1fr;}.ic-source-form .wide,.ic-source-extraction .wide{grid-column:auto;}.ic-source-actions{align-items:stretch;flex-direction:column;}.ic-source-actions .btn{width:100%;}.ic-source-actions>span{margin-right:0;}}
@media(max-width:900px){.ic-workbench-next{grid-template-columns:1fr}.ic-workbench-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.ic-workbench-map-head,.ic-enterprise-map-head,.ic-map-toolbar,.ic-map-domain-row{grid-template-columns:1fr}.ic-map-domain-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.ic-map-tree-controls{padding-left:12px}.ic-tower-grid,.ic-tower-actions{grid-template-columns:1fr}.ic-tower-actions div{flex-direction:column}.ic-workbench-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ic-eval-link:disabled { color: #97a4b1; cursor: not-allowed; text-decoration: none; }
.ic-panorama { padding: 4px 22px 20px; border-top: 1px solid #e4eaf0; }
.ic-panorama-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 15px 0 13px; }
.ic-panorama-heading span { display: block; margin-bottom: 4px; color: #42617d; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
.ic-panorama-heading h4 { margin: 0; color: #193249; font-size: .92rem; letter-spacing: 0; }
.ic-panorama-heading small { color: #718296; font-size: .7rem; }
.ic-enterprise-panorama { border-top: 1px solid #dce4eb; }
.ic-panorama-domain { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid #e6ebf0; }
.ic-panorama-domain-name { display: grid; grid-template-columns: 28px minmax(0,1fr); align-content: start; gap: 2px 8px; padding: 5px 0; }
.ic-panorama-domain-name>span { grid-row: 1 / 3; color: #7890a5; font-size: .68rem; font-weight: 700; }
.ic-panorama-domain-name strong { color: #193249; font-size: .78rem; }
.ic-panorama-domain-name small { color: #8292a1; font-size: .64rem; }
.ic-panorama-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ic-panorama-control { min-height: 52px; padding: 8px 11px; border: 1px solid #d8e1e9; border-left: 3px solid #9aabb9; background: #fff; color: #233d54; text-align: left; cursor: pointer; }
.ic-panorama-control strong,.ic-panorama-control small { display: block; }
.ic-panorama-control strong { font-size: .72rem; }
.ic-panorama-control small { margin-top: 4px; color: #738598; font-size: .63rem; }
.ic-panorama-control:hover,.ic-panorama-control.active { border-color: #315f87; border-left-color: #173f5f; background: #f4f8fb; }
.ic-panorama-control.is-effective { border-left-color: #16836b; }
.ic-panorama-control.is-design-deficiency,.ic-panorama-control.is-operating-deficiency,.ic-panorama-control.is-dual-deficiency { border-left-color: #b84a45; }
.ic-panorama-control.is-evidence-gap { border-left-color: #b7791f; }
.ic-control-flow { display: flex; align-items: stretch; min-width: 850px; }
.ic-flow-connector { position: relative; flex: 0 0 24px; }
.ic-flow-connector::before { content: ''; position: absolute; top: 27px; left: 4px; right: 4px; border-top: 1px solid #9fb0c0; }
.ic-flow-connector::after { content: ''; position: absolute; top: 24px; right: 3px; width: 5px; height: 5px; border-top: 1px solid #6f8497; border-right: 1px solid #6f8497; transform: rotate(45deg); }
.ic-flow-node { position: relative; flex: 1 1 0; min-width: 130px; min-height: 82px; padding: 12px 10px 10px 13px; border: 1px solid #ced8e2; border-top: 3px solid #8796a5; background: #fff; color: #1d3449; text-align: left; cursor: pointer; }
.ic-flow-node:hover,.ic-flow-node.active { border-color: #315f87; border-top-color: #173f5f; background: #f4f8fb; }
.ic-flow-node.active { box-shadow: inset 0 0 0 1px #315f87; }
.ic-flow-node.is-design-deficiency,.ic-flow-node.is-dual-deficiency { border-top-color: #c7352b; }
.ic-flow-node.is-operating-deficiency { border-top-color: #d47700; }
.ic-flow-node.is-evidence-gap { border-top-color: #6d7690; }
.ic-flow-node.is-effective { border-top-color: #16836b; }
.ic-flow-index { display: block; margin-bottom: 8px; color: #77899b; font: 700 .64rem/1 monospace; }
.ic-flow-node strong { display: block; min-height: 32px; color: inherit; font-size: .76rem; line-height: 1.4; }
.ic-flow-node small { display: block; margin-top: 6px; color: #718296; font-size: .66rem; }
.ic-control-detail { margin: 0 22px 20px; border-top: 2px solid #315f87; border-bottom: 1px solid #cfd9e3; background: #f8fafc; outline: none; }
.ic-control-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid #dde5ed; }
.ic-control-detail-head>div>span { display: block; margin-bottom: 4px; color: #45627c; font-size: .66rem; font-weight: 700; }
.ic-control-detail-head h4 { margin: 0; color: #142b40; font-size: .98rem; letter-spacing: 0; }
.ic-control-detail-head p { max-width: 860px; margin: 6px 0 0; color: #627589; font-size: .75rem; line-height: 1.55; }
.ic-control-detail-grid { display: grid; grid-template-columns: .9fr 1.2fr 1fr; }
.ic-control-detail-grid>div { padding: 15px 18px; border-right: 1px solid #dde5ed; }
.ic-control-detail-grid>div:last-child { border-right: 0; }
.ic-control-detail h5 { margin: 0 0 8px; color: #344e66; font-size: .72rem; letter-spacing: 0; }
.ic-control-detail ul { margin: 0; padding-left: 17px; color: #4f6478; font-size: .71rem; line-height: 1.6; }
.ic-control-none { margin: 0; color: #8794a2; font-size: .71rem; }
.ic-control-meta { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dde5ed; }
.ic-control-meta span { padding: 11px 18px; color: #556a7e; font-size: .71rem; }
.ic-control-meta span:first-child { border-right: 1px solid #dde5ed; }
.ic-control-meta strong { margin-right: 8px; color: #263f56; }
.ic-control-evaluations { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dde5ed; background: #fff; }
.ic-control-evaluations>div { min-height: 64px; padding: 12px 18px; }
.ic-control-evaluations>div:first-child { border-right: 1px solid #dde5ed; }
.ic-compensating { border-top: 1px solid #dce4ec; background: #fbfcfe; }
.ic-compensating-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.ic-compensating-head div { display: grid; gap: 4px; }
.ic-compensating-head strong { color: #172f46; font-size: .76rem; }
.ic-compensating-head span { color: #687b8e; font-size: .64rem; line-height: 1.5; }
.ic-compensating-head em { padding: 5px 8px; border-left: 3px solid #9aa9b7; background: #eef2f6; color: #5f7081; font-size: .62rem; font-style: normal; font-weight: 700; }
.ic-compensating-head em.is-tested-effective { border-left-color: #16836b; background: #edf8f4; color: #12624f; }
.ic-compensating-head em.is-tested-ineffective { border-left-color: #c84444; background: #fff1f1; color: #9f2f2f; }
.ic-compensating-list { border-top: 1px solid #e2e8ef; }
.ic-compensating-list article { display: grid; grid-template-columns: minmax(240px,1.5fr) minmax(180px,1fr) minmax(180px,1fr); gap: 0; border-bottom: 1px solid #e2e8ef; }
.ic-compensating-list article > div { min-width: 0; padding: 12px 14px; }
.ic-compensating-list article > div + div { border-left: 1px solid #e2e8ef; }
.ic-compensating-list article > div > span { display: block; margin-bottom: 6px; color: #6d7e90; font-size: .62rem; font-weight: 700; }
.ic-compensating-description strong { color: #1b344b; font-size: .72rem; }
.ic-compensating-description p { margin: 4px 0; color: #52667a; font-size: .66rem; line-height: 1.45; }
.ic-compensating-description small { color: #7b8998; font-size: .61rem; }
.ic-compensating-create { padding: 12px 16px 16px; }
.ic-compensating-create summary { width: fit-content; color: #2855bd; font-size: .68rem; font-weight: 700; cursor: pointer; }
.ic-compensating-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; padding-top: 14px; }
.ic-compensating-form label { display: grid; gap: 5px; }
.ic-compensating-form label.wide { grid-column: 1 / -1; }
.ic-compensating-form label > span { color: #465a6e; font-size: .67rem; font-weight: 700; }
.ic-compensating-form input,.ic-compensating-form textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #ccd7e4; border-radius: 4px; background: #fff; color: #17233a; font: inherit; }
.ic-compensating-form textarea { resize: vertical; }
.ic-compensating-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
.ic-control-evaluations>div>span { display: block; margin-bottom: 6px; color: #536a7f; font-size: .68rem; font-weight: 700; }
.ic-control-row-link { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.ic-control-row-link strong { display: block; color: #162b3f; font-size: .8rem; }
.ic-control-row-link small { display: block; margin-top: 4px; color: #738396; font-size: .7rem; line-height: 1.5; }
.ic-assurance-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-top: 1px solid #e4eaf0; border-bottom: 1px solid #e4eaf0; background: #f7f9fb; }
.ic-assurance-metrics span { padding: 13px 16px; border-right: 1px solid #e4eaf0; color: #65778a; font-size: .72rem; }
.ic-assurance-metrics span:last-child { border-right: 0; }
.ic-assurance-metrics strong { display: block; margin-bottom: 2px; color: #1b3349; font-size: 1.12rem; }
.ic-assurance-metrics .is-danger strong { color: #b42318; }
.ic-assurance-metrics .is-warning strong { color: #a15c00; }
.ic-assurance-metrics .is-success strong { color: #087a62; }
.ic-assurance-table-wrap { overflow-x: auto; }
.ic-assurance-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
.ic-assurance-table th { padding: 11px 14px; border-bottom: 1px solid #dce4ec; background: #eef3f7; color: #496177; font-size: .72rem; text-align: left; }
.ic-assurance-table th:first-child { width: 36%; }
.ic-assurance-table th:nth-child(2),.ic-assurance-table th:nth-child(3) { width: 20%; }
.ic-assurance-table td { padding: 13px 14px; border-bottom: 1px solid #e6ebf0; color: #263d52; font-size: .77rem; vertical-align: top; }
.ic-assurance-table td>strong { display: block; color: #162b3f; font-size: .8rem; }
.ic-assurance-table td>small { display: block; margin-top: 4px; color: #738396; line-height: 1.5; }
.ic-eval-empty { display: block; margin-bottom: 6px; color: #8996a5; }
.ic-eval-link { padding: 0; border: 0; background: transparent; color: #245ab5; font-weight: 600; cursor: pointer; }
.ic-eval-result { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.ic-eval-result strong { display: block; color: #23435f; font-size: .77rem; }
.ic-eval-result small { display: block; margin-top: 4px; color: #7a8999; }
.ic-eval-result.is-draft strong { color: #926100; }
.ic-overall-status { display: inline-block; padding: 4px 7px; border-left: 3px solid #8796a5; background: #f3f5f7; color: #4e6071; font-size: .72rem; font-weight: 600; }
.ic-overall-status.is-design-deficiency,.ic-overall-status.is-dual-deficiency { border-color: #c7352b; background: #fff2f0; color: #9e2720; }
.ic-overall-status.is-operating-deficiency { border-color: #d47700; background: #fff7e8; color: #8c5100; }
.ic-overall-status.is-evidence-gap { border-color: #6d7690; background: #f2f3f7; color: #4f586e; }
.ic-overall-status.is-effective { border-color: #16836b; background: #edf9f5; color: #0b6d58; }
.ic-assurance-boundary { margin: 0; padding: 12px 18px; background: #fffaf0; color: #7a5a24; font-size: .72rem; line-height: 1.55; }
.ic-deficiency-panel { border-top: 4px solid #263e55; background: #fff; }
.ic-deficiency-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 22px 15px; border-bottom: 1px solid #dce4ec; }
.ic-deficiency-head>div:first-child>span { display: block; margin-bottom: 5px; color: #526b82; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
.ic-deficiency-head h4 { margin: 0; color: #172e43; font-size: .96rem; letter-spacing: 0; }
.ic-deficiency-head p { max-width: 800px; margin: 6px 0 0; color: #687b8e; font-size: .74rem; line-height: 1.55; }
.ic-deficiency-head>div:last-child { white-space: nowrap; color: #6c7e90; font-size: .7rem; }
.ic-deficiency-head>div:last-child strong { margin-left: 10px; color: #1b3a55; font-size: .92rem; }
.ic-deficiency-head>div:last-child strong:first-child { margin-left: 0; }
.ic-deficiency-empty,.ic-deficiency-select-hint { margin: 0; padding: 18px 22px; color: #718296; font-size: .75rem; }
.ic-deficiency-list { display: flex; overflow-x: auto; border-bottom: 1px solid #dce4ec; background: #f6f8fa; }
.ic-deficiency-item { flex: 0 0 220px; padding: 12px 14px; border: 0; border-right: 1px solid #dce4ec; border-bottom: 3px solid transparent; background: transparent; color: #304b63; text-align: left; cursor: pointer; }
.ic-deficiency-item:hover,.ic-deficiency-item.active { border-bottom-color: #315f87; background: #fff; }
.ic-deficiency-item span,.ic-deficiency-item strong,.ic-deficiency-item small { display: block; }
.ic-deficiency-item span { color: #6a7e91; font-size: .65rem; }
.ic-deficiency-item strong { margin-top: 5px; color: #213b52; font-size: .76rem; }
.ic-deficiency-item small { margin-top: 5px; color: #9a5a00; font-size: .66rem; }
.ic-deficiency-workspace { background: #fff; }
.ic-deficiency-source { padding: 15px 22px; border-bottom: 1px solid #dce4ec; background: #f8fafc; }
.ic-deficiency-source strong { display: block; color: #1a344b; font-size: .82rem; }
.ic-deficiency-source span { display: block; margin-top: 4px; color: #5f7488; font-size: .68rem; }
.ic-deficiency-source p { margin: 7px 0 0; color: #536a7f; font-size: .73rem; line-height: 1.5; }
.ic-deficiency-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px 22px; }
.ic-deficiency-form>label,.ic-deficiency-review label { display: flex; flex-direction: column; gap: 6px; color: #405970; font-size: .7rem; font-weight: 600; }
.ic-deficiency-form .wide,.ic-deficiency-review label.wide { grid-column: 1/-1; }
.ic-deficiency-form input,.ic-deficiency-form select,.ic-deficiency-form textarea,.ic-deficiency-review input,.ic-deficiency-review select,.ic-deficiency-review textarea { width: 100%; border: 1px solid #cfd9e3; border-radius: 4px; background: #fff; color: #21394f; font: inherit; font-weight: 400; padding: 8px 9px; }
.ic-deficiency-form textarea,.ic-deficiency-review textarea { resize: vertical; line-height: 1.5; }
.ic-deficiency-form :disabled,.ic-deficiency-review :disabled { background: #f2f4f6; color: #5f6f7e; opacity: 1; }
.ic-deficiency-calibration { border: 1px solid #cfdbe6; border-left: 3px solid #3269c8; background: #f8fafc; padding: 14px; }
.ic-deficiency-calibration-head { display: grid; gap: 3px; margin-bottom: 12px; }
.ic-deficiency-calibration-head strong { color: #1d374d; font-size: .76rem; }
.ic-deficiency-calibration-head span { color: #66798b; font-size: .64rem; line-height: 1.5; }
.ic-deficiency-calibration-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 14px; }
.ic-deficiency-calibration-grid>label { display: flex; flex-direction: column; gap: 6px; color: #405970; font-size: .7rem; font-weight: 600; }
.ic-impact-dimensions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 10px 12px 12px; border: 1px solid #d6e0e9; }
.ic-impact-dimensions legend { padding: 0 5px; color: #405970; font-size: .68rem; font-weight: 700; }
.ic-impact-dimensions label { display: inline-flex; align-items: center; gap: 6px; color: #405970; font-size: .67rem; font-weight: 500; }
.ic-impact-dimensions input { width: 15px; height: 15px; margin: 0; }
.ic-standard-criteria-previews { min-width: 0; }
.ic-standard-criteria-preview { padding: 12px 14px; border: 1px solid #d7e0e9; background: #fff; }
.ic-standard-criteria-preview>strong { display: block; margin-bottom: 9px; color: #24364e; font-size: .7rem; }
.ic-standard-criteria-preview>p { margin: 0; color: #66798b; font-size: .65rem; line-height: 1.55; }
.ic-standard-criteria-preview dl { display: grid; gap: 0; margin: 0; }
.ic-standard-criteria-preview dl>div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #e5eaf0; }
.ic-standard-criteria-preview dl>div:first-child { border-top: 0; }
.ic-standard-criteria-preview dt { color: #50657a; font-size: .63rem; font-weight: 700; }
.ic-standard-criteria-preview dd { margin: 0; color: #24364e; font-size: .65rem; line-height: 1.55; white-space: pre-wrap; }
html[data-theme="dark"] .ic-map-role-notes span { background: #172235; border-color: #314158; }
html[data-theme="dark"] .ic-standard-criteria-preview { background: #172235; border-color: #3a4a61; }
html[data-theme="dark"] .ic-standard-criteria-preview>strong,html[data-theme="dark"] .ic-standard-criteria-preview dd { color: #e7edf8; }
.ic-calibration-warning { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #b7791f; background: #fff8e8; color: #765019; font-size: .65rem; line-height: 1.55; }
.ic-calibration-warning ul { margin: 5px 0 0; padding-left: 18px; }
.ic-deviation-analysis { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 16px; padding: 14px; border: 1px solid #d7e0e9; border-left: 3px solid #4e6f8e; background: #f8fafc; }
.ic-deviation-analysis>div:first-child { display: grid; gap: 4px; }
.ic-deviation-analysis>div:first-child strong { color: #1d374d; font-size: .75rem; }
.ic-deviation-analysis>div:first-child span { color: #66798b; font-size: .64rem; line-height: 1.5; }
.ic-deviation-analysis>em { align-self: start; padding: 5px 8px; border-left: 3px solid #94a3b1; background: #edf1f5; color: #536577; font-size: .61rem; font-style: normal; font-weight: 700; }
.ic-deviation-analysis>em.is-completed-no-additional-exception { border-left-color: #17806b; background: #edf8f4; color: #12624f; }
.ic-deviation-analysis>em.is-completed-additional-exception,.ic-deviation-analysis>em.is-completed-inconclusive { border-left-color: #c64545; background: #fff1f1; color: #9f3030; }
.ic-deviation-grid { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.ic-deviation-grid label { min-width: 0; }
.ic-deviation-grid label.wide { grid-column: 1/-1; }
.ic-deviation-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; }
.ic-aggregation-panel { margin-top: 20px; border-top: 2px solid #4c6072; background: #fff; }
.ic-aggregation-panel.is-not-required { padding: 16px 22px; border-top-width: 1px; }
.ic-aggregation-panel.is-not-required>div { display: grid; gap: 4px; }
.ic-aggregation-panel.is-not-required span,.ic-aggregation-head span { color: #60768a; font-size: .6rem; font-weight: 800; }
.ic-aggregation-panel.is-not-required strong { color: #203a50; font-size: .78rem; }
.ic-aggregation-panel.is-not-required p { margin: 0; color: #718294; font-size: .65rem; }
.ic-aggregation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 22px 14px; border-bottom: 1px solid #dce4ec; }
.ic-aggregation-head>div { display: grid; gap: 5px; }
.ic-aggregation-head h4 { margin: 0; color: #173047; font-size: .92rem; }
.ic-aggregation-head p { margin: 0; color: #687b8d; font-size: .66rem; line-height: 1.5; }
.ic-aggregation-head em { padding: 5px 8px; border-left: 3px solid #9aa8b5; background: #eef2f5; color: #536577; font-size: .61rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.ic-aggregation-head em.is-reviewed { border-left-color: #16806a; background: #edf8f4; color: #125f4e; }
.ic-aggregation-head em.is-draft { border-left-color: #c08a20; background: #fff8e8; color: #866014; }
.ic-aggregation-stale { display: flex; gap: 12px; padding: 10px 22px; border-left: 3px solid #c24646; background: #fff3f3; }
.ic-aggregation-stale strong,.ic-aggregation-stale span { font-size: .64rem; }
.ic-aggregation-stale strong { color: #812f2f; }
.ic-aggregation-stale span { color: #6f5656; }
.ic-aggregation-signals { padding: 13px 22px; background: #f8fafc; border-bottom: 1px solid #dce4ec; }
.ic-aggregation-signals>strong { color: #29465e; font-size: .68rem; }
.ic-aggregation-signals>div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ic-aggregation-signals>div span { padding: 4px 7px; border-left: 2px solid #607b91; background: #eaf0f5; color: #405970; font-size: .61rem; }
.ic-aggregation-signals p { margin: 7px 0 0; color: #778797; font-size: .6rem; }
.ic-aggregation-deficiencies { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dce4ec; }
.ic-aggregation-deficiencies>label { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; padding: 13px 16px; border-right: 1px solid #e2e8ef; border-bottom: 1px solid #e2e8ef; cursor: pointer; }
.ic-aggregation-deficiencies input { width: 15px; height: 15px; margin: 2px 0 0; }
.ic-aggregation-deficiencies strong,.ic-aggregation-deficiencies small { display: block; }
.ic-aggregation-deficiencies strong { color: #20384d; font-size: .69rem; }
.ic-aggregation-deficiencies small { margin-top: 3px; color: #6f8193; font-size: .6rem; }
.ic-aggregation-deficiencies p { margin: 5px 0 0; color: #52677a; font-size: .63rem; line-height: 1.45; }
.ic-aggregation-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; padding: 16px 22px; }
.ic-aggregation-form label { display: grid; gap: 6px; color: #405970; font-size: .68rem; font-weight: 700; }
.ic-aggregation-form label.wide { grid-column: 1/-1; }
.ic-aggregation-form input,.ic-aggregation-form select,.ic-aggregation-form textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cfd9e3; border-radius: 4px; background: #fff; color: #21394f; font: inherit; font-weight: 400; }
.ic-aggregation-form :disabled { background: #f2f4f6; color: #5f6f7e; opacity: 1; }
.ic-aggregation-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 18px; }
.ic-conclusion-panel { margin-top: 20px; border-top: 2px solid #17354d; background: #fff; }
.ic-conclusion-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid #dce4ec; }
.ic-conclusion-head>div { display: grid; gap: 5px; }
.ic-conclusion-head span { color: #53708a; font-size: .61rem; font-weight: 800; letter-spacing: 0; }
.ic-conclusion-head h4 { margin: 0; color: #132d43; font-size: 1rem; }
.ic-conclusion-head p { margin: 0; color: #687a8c; font-size: .68rem; line-height: 1.5; }
.ic-conclusion-head em { padding: 6px 9px; border-left: 3px solid #8c9caa; background: #eef2f5; color: #536577; font-size: .63rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.ic-conclusion-head em.is-pending-review { border-left-color: #c08a20; background: #fff8e8; color: #866014; }
.ic-conclusion-head em.is-finalized { border-left-color: #16806a; background: #edf8f4; color: #125f4e; }
.ic-conclusion-readiness { display: grid; gap: 12px; padding: 16px 22px; background: #f8fafc; border-bottom: 1px solid #dce4ec; }
.ic-conclusion-readiness>div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ic-conclusion-readiness>div:first-child strong { color: #1c374e; font-size: .76rem; }
.ic-conclusion-readiness>div:first-child span { color: #48657e; font-size: .66rem; font-weight: 700; }
.ic-conclusion-readiness-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #dce4ec; background: #fff; }
.ic-conclusion-readiness-counts span { padding: 9px 12px; color: #66788a; font-size: .62rem; }
.ic-conclusion-readiness-counts span+span { border-left: 1px solid #dce4ec; }
.ic-conclusion-readiness-counts b { margin-right: 5px; color: #1e3c55; font-size: .76rem; }
.ic-conclusion-issues { padding: 12px 14px; border-left: 3px solid #c24646; background: #fff3f3; }
.ic-conclusion-issues.is-gap { border-left-color: #be8b24; background: #fff9ec; }
.ic-conclusion-issues strong { color: #7b3030; font-size: .68rem; }
.ic-conclusion-issues.is-gap strong { color: #795b1e; }
.ic-conclusion-issues ul { margin: 6px 0 0; padding-left: 18px; color: #586b7d; font-size: .64rem; line-height: 1.6; }
.ic-conclusion-issues p { margin: 6px 0 0; color: #6f6247; font-size: .62rem; }
.ic-conclusion-ready { display: grid; gap: 3px; padding: 11px 13px; border-left: 3px solid #17806b; background: #edf8f4; }
.ic-conclusion-ready strong { color: #125f4e; font-size: .69rem; }
.ic-conclusion-ready span { color: #526f68; font-size: .63rem; }
.ic-conclusion-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px 22px; }
.ic-conclusion-form label { display: grid; gap: 6px; color: #405970; font-size: .68rem; font-weight: 700; }
.ic-conclusion-form label.wide { grid-column: 1/-1; }
.ic-conclusion-form input,.ic-conclusion-form select,.ic-conclusion-form textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #cfd9e3; border-radius: 4px; background: #fff; color: #21394f; font: inherit; font-weight: 400; }
.ic-conclusion-form :disabled { background: #f2f4f6; color: #5f6f7e; opacity: 1; }
.ic-conclusion-review { padding-top: 14px; border-top: 1px solid #dce4ec; }
.ic-conclusion-review h5 { margin: 0 0 10px; color: #213b52; font-size: .75rem; }
.ic-conclusion-review>div { display: grid; grid-template-columns: minmax(180px,.6fr) minmax(0,1.4fr); gap: 14px 18px; }
.ic-conclusion-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 0 22px 20px; }
.ic-deficiency-review { padding-top: 14px; border-top: 1px solid #dce4ec; }
.ic-deficiency-review h5 { margin: 0 0 12px; color: #213b52; font-size: .77rem; }
.ic-deficiency-review>div { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px 18px; }
.ic-deficiency-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 18px; }
.ft-remediation-gate { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border-left: 3px solid #b7791f; background: #fff8e8; color: #73551f; }
.ft-remediation-gate strong { flex: 0 0 auto; color: #684814; font-size: .72rem; }
.ft-remediation-gate span { font-size: .7rem; line-height: 1.45; }
.ic-auxiliary-head { margin: 4px 0 12px; padding: 0 2px 12px; border-bottom: 1px solid #dfe6ed; }
.ic-scenario-strip { display: grid; grid-template-columns: minmax(280px,.86fr) minmax(0,1.14fr); gap: 16px; padding: 18px 22px; border-bottom: 1px solid #d9e2ea; background: linear-gradient(112deg,#fff,#f7fbff); }
.ic-scenario-strip>div:first-child span { display: block; margin-bottom: 5px; color: #526d83; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.ic-scenario-strip>div:first-child strong { display: block; color: #173047; font-size: .9rem; }
.ic-scenario-strip>div:first-child p { margin: 6px 0 0; color: #65798b; font-size: .7rem; line-height: 1.6; }
.ic-scenario-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.ic-scenario-cards button { display: grid; align-content: start; gap: 5px; min-height: 86px; padding: 11px 12px; border: 1px solid #dce6ef; border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.ic-scenario-cards button:hover { border-color: #8fb6e8; background: #f5f9ff; }
.ic-scenario-cards b { color: #1b354d; font-size: .72rem; }
.ic-scenario-cards small { color: #6f8193; font-size: .62rem; line-height: 1.45; }
.ic-matrix-library { margin: 0 22px 18px; border-top: 2px solid #315f87; border-bottom: 1px solid #d9e2ea; background: #f8fafc; }
.ic-matrix-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid #dfe6ed; }
.ic-matrix-library-head strong,.ic-matrix-library-head span { display: block; }
.ic-matrix-library-head strong { color: #173047; font-size: .82rem; }
.ic-matrix-library-head span,.ic-matrix-library-head small { margin-top: 4px; color: #6b7e91; font-size: .7rem; }
.ic-scope-status { flex: 0 0 auto; padding: 5px 8px; border-left: 3px solid #9aaaB8; background: #eef2f6; font-weight: 700; }
.ic-scope-status.is-approved { border-left-color: #16836b; background: #edf8f4; color: #12624f; }
.ic-scope-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 16px; padding: 16px; background: #fff; border-bottom: 1px solid #dfe6ed; }
.ic-scope-fields label,.ic-scope-exclusion { display: block; }
.ic-scope-fields label.wide { grid-column: 1 / -1; }
.ic-scope-fields label>span,.ic-scope-exclusion>span { display: block; margin-bottom: 6px; color: #3d566d; font-size: .68rem; font-weight: 700; }
.ic-scope-fields input,.ic-scope-fields textarea,.ic-scope-exclusion textarea { width: 100%; padding: 9px 10px; border: 1px solid #ccd8e3; border-radius: 4px; background: #fff; color: #1d3449; font: inherit; font-size: .72rem; box-sizing: border-box; }
.ic-scope-fields input:disabled,.ic-scope-fields textarea:disabled,.ic-scope-exclusion textarea:disabled { background: #f3f6f8; color: #607286; }
.ic-scope-map { background: #fff; }
.ic-scope-group { border-bottom: 1px solid #dfe6ed; }
.ic-scope-group-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; background: #f1f5f8; }
.ic-scope-group-head strong { color: #29465e; font-size: .72rem; }
.ic-scope-group-head span { color: #738598; font-size: .64rem; }
.ic-scope-row { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border-top: 1px solid #edf1f4; cursor: pointer; }
.ic-scope-row:hover { background: #f8fafc; }
.ic-scope-row.active { box-shadow: inset 3px 0 #16836b; background: #f5faf8; }
.ic-scope-package.active > .ic-scope-row { box-shadow: inset 3px 0 #16836b; background: #f5faf8; }
.ic-scope-package.is-map-focus > .ic-scope-row { outline: 2px solid rgba(53,104,232,.28); outline-offset: -2px; background: #f5f8ff; }
.ic-scope-row>input { position: absolute; opacity: 0; pointer-events: none; }
.ic-scope-check { width: 15px; height: 15px; border: 1px solid #9aabba; background: #fff; }
.ic-scope-row.active .ic-scope-check,.ic-scope-package.active > .ic-scope-row .ic-scope-check { border-color: #16836b; background: #16836b; box-shadow: inset 0 0 0 3px #fff; }
.ic-scope-row-main strong,.ic-scope-row-main small { display: block; }
.ic-scope-row-main strong { color: #1c354c; font-size: .74rem; }
.ic-scope-row-main small { margin-top: 3px; overflow: hidden; color: #718397; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.ic-scope-maturity { padding-left: 10px; border-left: 2px solid #a6b3bf; color: #687b8e; font-size: .62rem; }
.ic-scope-maturity.is-professional { border-left-color: #315f87; color: #234e70; font-weight: 700; }
.ic-scope-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 16px 10px 44px; background: #fff; }
.ic-scope-control { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 9px; padding: 10px 12px; border: 1px solid #e2e8ef; cursor: pointer; }
.ic-scope-control:nth-child(even) { border-left: 0; }
.ic-scope-control input { position: absolute; opacity: 0; pointer-events: none; }
.ic-scope-control > span { width: 13px; height: 13px; margin-top: 2px; border: 1px solid #9aabba; background: #fff; }
.ic-scope-control.active { background: #f4f8ff; }
.ic-scope-control.is-map-focus { border-color: #8fb6e8; box-shadow: inset 3px 0 #3568e8; background: #f5f8ff; }
.ic-scope-control.active > span { border-color: #3568e8; background: #3568e8; box-shadow: inset 0 0 0 3px #fff; }
.ic-scope-control:has(input:disabled) { cursor: default; opacity: .55; }
.ic-scope-control strong,.ic-scope-control small { display: block; }
.ic-scope-control strong { color: #1c354c; font-size: .69rem; }
.ic-scope-control small { margin-top: 3px; color: #718397; font-size: .62rem; line-height: 1.45; }
.ic-scope-exclusion { padding: 14px 16px; background: #fff; border-bottom: 1px solid #dfe6ed; }
.ic-scope-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 16px; background: #fff; }
.ic-scope-actions p { margin: 0 auto 0 0; color: #6c7e90; font-size: .66rem; }
.ic-matrix-packages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.ic-matrix-package { padding: 15px 16px; border-right: 1px solid #dfe6ed; border-bottom: 1px solid #dfe6ed; background: #fff; }
.ic-matrix-package:nth-child(even) { border-right: 0; }
.ic-matrix-package.active { box-shadow: inset 3px 0 #16836b; background: #f6fbf9; }
.ic-matrix-package-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ic-matrix-package-head span,.ic-matrix-package-head strong { display: block; }
.ic-matrix-package-head span { margin-bottom: 4px; color: #6f8294; font-size: .65rem; }
.ic-matrix-package-head strong { color: #183249; font-size: .8rem; }
.ic-matrix-package>p,.ic-matrix-boundary,.ic-matrix-empty { margin: 10px 0 0; color: #63778a; font-size: .7rem; line-height: 1.55; }
.ic-matrix-domain-list { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 10px; }
.ic-matrix-domain-list span { color: #3d586f; font-size: .68rem; }
.ic-matrix-domain-list span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 6px 2px 0; background: #7590a7; }
.ic-matrix-boundary,.ic-matrix-empty { margin: 0; padding: 11px 16px; background: #fffaf0; color: #765c2c; }
.ic-precheck-boundary { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid #b7791f; background: #fff9ea; color: #72551f; }
.ic-precheck-boundary strong { flex: 0 0 auto; font-size: .72rem; }
.ic-precheck-boundary span { font-size: .7rem; line-height: 1.55; }
.rm-prof-disclosure { margin-bottom: 18px; border: 1px solid #d8e1e9; background: #fff; }
.rm-prof-disclosure>summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #29445d; cursor: pointer; list-style-position: inside; }
.rm-prof-disclosure>summary span { font-size: .78rem; font-weight: 700; }
.rm-prof-disclosure>summary small { color: #718396; font-size: .68rem; font-weight: 400; }
.rm-prof-disclosure>.rm-prof-governance { margin: 0; border: 0; border-top: 1px solid #d8e1e9; }
.wf-risk-coverage { margin: 0 0 20px; border: 1px solid #d7e0e8; border-top: 3px solid #284b67; background: #fff; }
.wf-coverage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px 20px 14px; border-bottom: 1px solid #dfe6ec; }
.wf-coverage-head span { display: block; margin-bottom: 4px; color: #526d83; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.wf-coverage-head h3 { margin: 0; color: #172f43; font-size: .96rem; letter-spacing: 0; }
.wf-coverage-head p { max-width: 900px; margin: 6px 0 0; color: #65798b; font-size: .72rem; line-height: 1.55; }
.wf-coverage-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 1px solid #dfe6ec; background: #f6f8fa; }
.wf-coverage-stats span { padding: 11px 15px; border-right: 1px solid #dfe6ec; color: #607487; font-size: .68rem; }
.wf-coverage-stats span:last-child { border-right: 0; }
.wf-coverage-stats strong { margin-right: 6px; color: #17364f; font-size: 1rem; }
.wf-coverage-table-wrap { overflow-x: auto; }
.wf-coverage-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.wf-coverage-table th { padding: 10px 12px; border-bottom: 1px solid #d9e2ea; background: #eef3f6; color: #4c6377; font-size: .68rem; text-align: left; }
.wf-coverage-table th:first-child { width: 21%; }
.wf-coverage-table th:nth-child(2) { width: 20%; }
.wf-coverage-table th:nth-child(3) { width: 16%; }
.wf-coverage-table th:nth-child(4) { width: 16%; }
.wf-coverage-table th:nth-child(5) { width: 11%; }
.wf-coverage-table th:last-child { width: 16%; }
.wf-coverage-table td { padding: 12px; border-bottom: 1px solid #e5eaef; color: #30495f; font-size: .72rem; line-height: 1.45; vertical-align: top; overflow-wrap: anywhere; }
.wf-coverage-table tbody tr:last-child td { border-bottom: 0; }
.wf-coverage-table tbody tr:hover { background: #f9fbfc; }
.wf-coverage-table td strong,.wf-coverage-table td small,.wf-coverage-table td em { display: block; }
.wf-coverage-table td strong { color: #18334a; font-size: .74rem; }
.wf-coverage-table td small { margin-top: 4px; color: #748596; font-size: .66rem; line-height: 1.45; }
.wf-coverage-table td em { margin-top: 7px; color: #536d82; font-size: .63rem; font-style: normal; }
.wf-coverage-missing { color: #9a5b13; font-size: .7rem; }
.wf-coverage-status { display: inline-block; padding: 3px 7px; border-left: 3px solid #73879a; background: #f1f4f6; color: #455b6d; font-size: .65rem; font-weight: 700; }
.wf-coverage-status.is-danger { border-color: #c43b32; background: #fff1ef; color: #9d2922; }
.wf-coverage-status.is-warning { border-color: #c17b12; background: #fff8e8; color: #84570f; }
.wf-coverage-status.is-info { border-color: #3971a5; background: #eef6fc; color: #285c89; }
.wf-coverage-status.is-success { border-color: #188069; background: #edf8f4; color: #0c6855; }
.wf-coverage-action { margin-top: 7px; padding: 0; border: 0; background: transparent; color: #245f94; font-size: .66rem; font-weight: 700; cursor: pointer; }
.wf-coverage-action:hover { text-decoration: underline; }
.wf-coverage-empty { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; color: #6d7f90; font-size: .72rem; }
.wf-coverage-empty strong { color: #263f55; font-size: .78rem; }
@media (max-width: 900px) {
  .main-content,#view-ictest,#ictest-content,.ic-project-assurance { min-width: 0; max-width: 100%; }
  .ic-workbench-hero,.ic-workbench-next { grid-template-columns: 1fr; }
  .ic-workbench-hero .btn { width: max-content; }
  .ic-workbench-stages { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ic-workbench-stages span:nth-child(4) { border-right: 0; }
  .ic-workbench-stages span:nth-child(-n+4) { border-bottom: 1px solid #e3ebf3; }
  .ic-workbench-map-head { grid-template-columns: 1fr; }
  .ic-workbench-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ic-enterprise-map-head { grid-template-columns: 1fr; }
  .ic-enterprise-map-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ic-enterprise-map-metrics span:nth-child(4) { border-left: 0; border-top: 1px solid #dce5ef; }
  .ic-enterprise-map-metrics span:nth-child(5) { border-top: 1px solid #dce5ef; }
  .ic-map-toolbar { grid-template-columns: 1fr; }
  .ic-map-tools { justify-content: flex-start; }
  .ic-map-group { grid-template-columns: 1fr; }
  .ic-map-group-head { border-right: 0; border-bottom: 1px solid #e4ebf2; }
  .ic-map-tree .ic-map-group-head { grid-template-columns: 18px minmax(90px,180px) minmax(0,1fr); }
  .ic-map-domain-row { grid-template-columns: 34px minmax(220px,.85fr) minmax(0,1.15fr); }
  .ic-map-domain { grid-template-columns: minmax(220px,.9fr) minmax(0,1.1fr); }
  .ic-map-domain-meta { grid-column: 1/-1; grid-row: 2; border-top: 1px solid #edf1f5; border-left: 0; border-right: 0; }
  .ic-map-domain-meta span { min-height: 34px; }
  .ic-assurance-head { flex-direction: column; gap: 12px; }
  .ic-panorama { overflow-x: auto; }
  .ic-control-detail-grid { grid-template-columns: 1fr; }
  .ic-control-detail-grid>div { border-right: 0; border-bottom: 1px solid #dde5ed; }
  .ic-control-detail-grid>div:last-child { border-bottom: 0; }
  .ic-deficiency-head { flex-direction: column; gap: 10px; }
  .ic-deficiency-review>div { grid-template-columns: 1fr 1fr; }
  .ic-deviation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ic-conclusion-readiness-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ic-conclusion-readiness-counts span:nth-child(3) { border-left: 0; border-top: 1px solid #dce4ec; }
  .ic-conclusion-readiness-counts span:nth-child(4) { border-top: 1px solid #dce4ec; }
  .ic-assurance-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ic-assurance-metrics span:nth-child(3) { border-right: 0; }
  .ic-assurance-metrics span:nth-child(-n+3) { border-bottom: 1px solid #e4eaf0; }
  .ic-matrix-packages { grid-template-columns: 1fr; }
  .ic-matrix-package { border-right: 0; }
  .wf-coverage-head { flex-direction: column; }
  .wf-coverage-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wf-coverage-stats span { border-bottom: 1px solid #dfe6ec; }
  .wf-coverage-table-wrap { overflow-x: visible; padding: 12px; background: #f6f8fa; }
  .wf-coverage-table { min-width: 0; display: block; border-collapse: separate; }
  .wf-coverage-table thead { display: none; }
  .wf-coverage-table tbody { display: grid; gap: 10px; }
  .wf-coverage-table tr { display: grid; gap: 0; border: 1px solid #d9e2ea; border-radius: 10px; background: #fff; overflow: hidden; }
  .wf-coverage-table td { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid #edf1f5; }
  .wf-coverage-table td:last-child { border-bottom: 0; }
  .wf-coverage-table td:before { color: #64748b; font-size: .62rem; font-weight: 900; letter-spacing: .04em; }
  .wf-coverage-table td:nth-child(1):before { content: '重要风险'; }
  .wf-coverage-table td:nth-child(2):before { content: '项目程序'; }
  .wf-coverage-table td:nth-child(3):before { content: '测试'; }
  .wf-coverage-table td:nth-child(4):before { content: '证据底稿'; }
  .wf-coverage-table td:nth-child(5):before { content: '结论'; }
  .wf-coverage-table td:nth-child(6):before { content: '下一步'; }
}
@media (max-width: 560px) {
  .ic-assurance-head { padding: 16px; }
  .ic-workbench-hero { padding: 16px; }
  .ic-workbench-hero .btn { width: 100%; }
  .ic-workbench-next,.ic-workbench-stages { margin-left: 16px; margin-right: 16px; }
  .ic-workbench-map-nav { margin-left: 16px; margin-right: 16px; }
  .ic-workbench-stages { grid-template-columns: 1fr; }
  .ic-workbench-stages span { border-right: 0; border-bottom: 1px solid #e3ebf3; }
  .ic-workbench-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ic-workbench-kpis span:nth-child(even) { border-right: 0; }
  .ic-enterprise-map-head { padding: 16px; }
  .ic-enterprise-map-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ic-enterprise-map-metrics span:nth-child(3),.ic-enterprise-map-metrics span:nth-child(5) { border-left: 0; border-top: 1px solid #dce5ef; }
  .ic-enterprise-map-metrics span:nth-child(4) { border-top: 1px solid #dce5ef; }
  .ic-map-toolbar { padding: 12px 14px; }
  .ic-map-tree .ic-map-domains { padding-left: 8px; }
  .ic-map-tree .ic-map-group-head,.ic-map-domain-row { grid-template-columns: 1fr; }
  .ic-map-tree .ic-map-group-head .ic-map-chevron { display: none; }
  .ic-map-node-toggle { min-height: 30px; border-right: 0; border-bottom: 1px solid #edf1f5; }
  .ic-map-domain { grid-template-columns: 1fr; }
  .ic-map-domain-meta { grid-row: auto; }
  .ic-map-controls { align-items: stretch; flex-direction: column; overflow: visible; }
  .ic-map-tree-controls { display: flex; padding: 9px; }
  .ic-map-control { flex: none; width: 100%; box-sizing: border-box; }
  .ic-tower-head { flex-direction: column; padding: 14px 16px; }
  .ic-tower-grid { grid-template-columns: 1fr; }
  .ic-tower-grid>div { border-left: 0; border-top: 1px solid #e7edf4; }
  .ic-tower-grid>div:first-child { border-top: 0; }
  .ic-tower-actions { grid-template-columns: 1fr; }
  .ic-tower-actions div { flex-direction: column; }
  .ic-tower-actions .btn { width: 100%; }
  .ic-enterprise-map-boundary { padding: 10px 16px 13px; }
  .ic-assurance-empty { margin: 0 16px 16px; }
  .ic-panorama { padding-right: 16px; padding-left: 16px; }
  .ic-panorama-heading { align-items: flex-start; flex-direction: column; }
  .ic-panorama-domain { grid-template-columns: 1fr; gap: 6px; }
  .ic-panorama-controls { grid-template-columns: 1fr; }
  .ic-scope-fields { grid-template-columns: 1fr; }
  .ic-scope-fields label.wide { grid-column: auto; }
  .ic-scope-row { grid-template-columns: 18px minmax(0,1fr); }
  .ic-scope-controls { grid-template-columns: 1fr; padding-left: 24px; }
  .ic-scope-control:nth-child(even) { border-left: 1px solid #e2e8ef; }
  .ic-scope-maturity { grid-column: 2; justify-self: start; }
  .ic-scope-actions { align-items: stretch; flex-direction: column; }
  .ic-scope-actions p { margin: 0 0 4px; }
  .ic-scope-gate { align-items: flex-start; flex-direction: column; margin-right: 16px; margin-left: 16px; }
  .ic-scope-type { grid-template-columns: 1fr; }
  .ic-scope-type label + label { border-top: 1px solid #d8e1ec; border-left: 0; }
  .ic-context-grid { grid-template-columns: 1fr; }
  .ic-context-grid label.wide { grid-column: auto; }
  .ic-method-template { grid-column: auto; }
  .ic-method-template-head { align-items: stretch; flex-direction: column; }
  .ic-method-template-grid { grid-template-columns: 1fr; }
  .ic-context-sources { grid-template-columns: 1fr; }
  .ic-context-actions { align-items: stretch; flex-direction: column; }
  .ic-control-detail { margin: 0 16px 16px; }
  .ic-control-detail-head,.ic-control-meta,.ic-control-evaluations { grid-template-columns: 1fr; }
  .ic-control-detail-head { flex-direction: column; }
  .ic-control-meta span:first-child,.ic-control-evaluations>div:first-child { border-right: 0; border-bottom: 1px solid #dde5ed; }
  .ic-compensating-head { align-items: flex-start; flex-direction: column; }
  .ic-compensating-list article { grid-template-columns: 1fr; }
  .ic-compensating-list article > div + div { border-top: 1px solid #e2e8ef; border-left: 0; }
  .ic-compensating-form { grid-template-columns: 1fr; }
  .ic-compensating-form label.wide { grid-column: auto; }
  .ic-deficiency-form,.ic-deficiency-review>div,.ic-deficiency-calibration-grid { grid-template-columns: 1fr; }
  .ic-standard-criteria-preview dl>div { grid-template-columns: 1fr; gap: 4px; }
  .ic-aggregation-head { flex-direction: column; }
  .ic-aggregation-deficiencies,.ic-aggregation-form { grid-template-columns: 1fr; }
  .ic-aggregation-form label.wide { grid-column: auto; }
  .ic-aggregation-actions { justify-content: stretch; padding: 0 16px 16px; }
  .ic-aggregation-actions .btn { flex: 1; }
  .ic-deviation-analysis { grid-template-columns: 1fr; }
  .ic-deviation-analysis>em { justify-self: start; }
  .ic-deviation-grid { grid-template-columns: 1fr; }
  .ic-deviation-grid label.wide { grid-column: auto; }
  .ic-conclusion-head,.ic-conclusion-readiness>div:first-child { align-items: flex-start; flex-direction: column; }
  .ic-conclusion-form,.ic-conclusion-review>div { grid-template-columns: 1fr; }
  .ic-conclusion-form label.wide { grid-column: auto; }
  .ic-conclusion-actions { justify-content: stretch; padding: 0 16px 16px; }
  .ic-conclusion-actions .btn { flex: 1; }
  .ic-deficiency-form { padding: 16px; }
  .ic-deficiency-actions { justify-content: stretch; padding: 0 16px 16px; }
  .ic-deficiency-actions .btn { flex: 1; }
  .ic-assurance-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ic-assurance-metrics span:nth-child(3) { border-right: 1px solid #e4eaf0; }
  .ic-assurance-metrics span:nth-child(even) { border-right: 0; }
  .ic-assurance-metrics span:nth-child(-n+4) { border-bottom: 1px solid #e4eaf0; }
  .ic-matrix-library { margin: 0 16px 16px; }
  .ic-matrix-library-head,.ic-matrix-package-head { flex-direction: column; }
}

/* ===== Product structure v2: compact audit workbench ===== */
@media (min-width:769px) {
  .app-layout { grid-template-columns:236px minmax(0,1fr); background:#f5f7fa; }
  .sidebar { width:236px; }
}
.sidebar {
  overflow:hidden;
  background:#111827;
  border-right:1px solid #243044;
}
.sidebar-brand {
  flex:0 0 auto;
  gap:10px;
  padding:17px 16px 13px;
  border-bottom:0;
}
.brand-mark {
  width:30px;
  height:30px;
  border-radius:6px;
  background:#2563eb;
  box-shadow:none;
  color:#fff;
}
.sidebar-brand h1 { font-size:.88rem; letter-spacing:0; }
.sidebar-brand p { margin-top:2px; color:#7f8da3; font-size:.6rem; letter-spacing:0; }
.sidebar-nav {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  padding:1px 8px 12px;
  scrollbar-width:thin;
  scrollbar-color:#334155 transparent;
}
.nav-group-label {
  margin:0;
  padding:12px 10px 4px;
  color:#66758b;
  font-size:.58rem;
  font-weight:700;
  letter-spacing:0;
}
.nav-item {
  min-height:34px;
  margin:1px 0;
  padding:7px 10px;
  gap:9px;
  border-radius:5px;
  color:#a7b3c4;
  font-size:.74rem;
}
.nav-item:hover { background:#1b2639; color:#f1f5f9; }
.nav-item.active {
  background:#203250;
  box-shadow:inset 2px 0 0 #60a5fa;
  color:#fff;
}
.nav-collapse {
  margin:5px 0 0;
}
.nav-collapse summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:30px;
  padding:6px 10px;
  border-radius:5px;
  color:#7f8da3;
  font-size:.65rem;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.nav-collapse summary::-webkit-details-marker { display:none; }
.nav-collapse summary:after {
  content:'›';
  color:#64748b;
  font-size:.95rem;
  line-height:1;
  transition:transform .16s ease;
}
.nav-collapse[open] summary:after { transform:rotate(90deg); }
.nav-collapse summary:hover { background:#172235; color:#dbe7f5; }
.nav-collapse summary span {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nav-collapse summary small {
  flex:0 0 auto;
  color:#64748b;
  font-size:.55rem;
  font-weight:700;
}
.nav-collapse .nav-item {
  margin-left:8px;
  padding-left:12px;
  border-left:1px solid #26364f;
}
.project-nav-stage { margin:3px 0 8px; }
.project-nav-stage-title {
  display:flex;
  align-items:center;
  padding:8px 12px 5px 18px;
  color:#8fa3bc;
}
.project-nav-stage-title strong { font-size:14px; font-weight:850; line-height:1.3; }
.project-nav-stage:has(.nav-item.active) .project-nav-stage-title { color:#bfdbfe; }
.current-project-nav .project-nav-stage .nav-item { margin-left:18px; padding-left:10px; }
.current-project-nav .project-nav-stage .nav-item span { font-size:14px !important; }
.project-danger-zone {
  margin:0 0 14px;
  border:1px dashed #fecaca;
  border-radius:10px;
  background:#fff7f7;
}
.project-danger-zone summary {
  padding:10px 13px;
  color:#991b1b;
  font-size:.72rem;
  font-weight:900;
  cursor:pointer;
}
.project-danger-zone>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 13px 12px;
}
.project-danger-zone span {
  color:#7f1d1d;
  font-size:.7rem;
  line-height:1.5;
}
.nav-icon {
  display:grid;
  flex:0 0 17px;
  place-items:center;
  width:17px;
  height:17px;
  filter:none;
}
.nav-icon svg { width:16px; height:16px; stroke-width:1.8; }
.sidebar-footer {
  flex:0 0 auto;
  margin:0;
  padding:8px 14px 10px;
  border:0;
  border-top:1px solid #253147;
  border-radius:0;
  background:#111827;
  box-shadow:none;
}
.sf-version { margin:0; color:#66758b; font-size:.58rem; text-align:left; }

.app-page-hero.unified-page-heading,
.unified-page-heading.app-page-hero {
  display:block;
  min-height:0;
  margin:0 0 14px;
  padding:4px 0 15px;
  border:0;
  border-bottom:1px solid #d9e1ea;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.app-page-hero.unified-page-heading::before { display:none; }
.app-page-hero.unified-page-heading .page-eyebrow {
  margin:0 0 5px;
  color:#47739e;
  font-size:.59rem;
  letter-spacing:.08em;
}
.app-page-hero.unified-page-heading h2 {
  color:#172033;
  font-size:1.36rem;
  line-height:1.3;
  letter-spacing:0;
}
.app-page-hero.unified-page-heading p {
  max-width:960px;
  margin:4px 0 0;
  color:#64748b;
  font-size:.78rem;
  line-height:1.55;
}

.sys-card,.sys-ai-card { border-radius:8px; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.sys-action,.sys-theme-btn,.sys-note { border-radius:6px; }

html[data-theme="dark"] .app-page-hero.unified-page-heading { border-color:#334155; background:transparent; }
@media (max-width:768px) {
  .app-layout { display:block; min-width:0; }
  .mobile-header { display:flex; }
  .sidebar { width:236px; }
  .project-toolbar,.breadcrumb,.main-content { grid-column:1!important; width:100%; min-width:0; }
}

/* ===== Product structure v2: core workspaces ===== */
#view-qa.qa-redesigned { max-width:none; }
#view-qa.qa-redesigned .prompt-panel,
#view-qa.qa-redesigned .qa-chat-container,
#view-qa.qa-redesigned .qa-kb-card { border-radius:8px; box-shadow:0 1px 2px rgba(15,23,42,.04); }
#view-qa.qa-redesigned .prompt-header { min-height:42px; padding:10px 14px; background:#f7f9fb; }
#view-qa.qa-redesigned .prompt-body { padding:11px 13px 13px; }
#view-qa.qa-redesigned .prompt-cat,
#view-qa.qa-redesigned .qa-hint-btn,
#view-qa.qa-redesigned .qa-source-toggle,
#view-qa.qa-redesigned .qa-context-chip { border-radius:5px; box-shadow:none; }
.qa-mode-badge { border-radius:4px!important; }
.toolbox-hero.page-heading { margin-bottom:14px; }

.rm-workspace-tabs {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:14px;
  border:1px solid #d9e1ea;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}
.rm-workspace-tab {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:64px;
  padding:11px 14px;
  border:0;
  border-right:1px solid #e2e8f0;
  background:#fff;
  color:#64748b;
  text-align:left;
  cursor:pointer;
}
.rm-workspace-tab:last-child { border-right:0; }
.rm-workspace-tab:hover { background:#f8fafc; }
.rm-workspace-tab.active { box-shadow:inset 0 -3px 0 #2563eb; background:#f6f9fd; }
.rm-workspace-tab span,.rm-workspace-tab strong,.rm-workspace-tab small { display:block; }
.rm-workspace-tab strong { color:#24364d; font-size:.75rem; }
.rm-workspace-tab small { margin-top:3px; color:#7b8a9d; font-size:.62rem; }
.rm-workspace-tab b { display:grid; flex:0 0 24px; place-items:center; width:24px; height:24px; border-radius:4px; background:#eaf0f7; color:#52677e; font-size:.65rem; }
.rm-workspace-tab.active b { background:#dbeafe; color:#1d4ed8; }
.rm-library-summary { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:12px; padding:9px 12px; border-left:3px solid #6b86a2; background:#f7f9fb; color:#64748b; font-size:.66rem; }
.rm-library-summary span { white-space:nowrap; }
.rm-library-summary strong { margin-left:4px; color:#24364d; }
.rm-library-summary small { flex:1 1 360px; color:#6f7f91; line-height:1.5; }
html[data-theme="dark"] .rm-workspace-tabs,html[data-theme="dark"] .rm-workspace-tab { background:#172235; border-color:#314158; }
html[data-theme="dark"] .rm-workspace-tab.active,html[data-theme="dark"] .rm-library-summary { background:#1b2940; }
html[data-theme="dark"] .rm-workspace-tab strong,html[data-theme="dark"] .rm-library-summary strong { color:#e2e8f0; }
@media(max-width:760px){
  .rm-workspace-tabs { grid-template-columns:1fr; }
  .rm-workspace-tab { min-height:54px; border-right:0; border-bottom:1px solid #e2e8f0; }
  .rm-workspace-tab:last-child { border-bottom:0; }
  .rm-workspace-tab.active { box-shadow:inset 3px 0 0 #2563eb; }
}
.rm-source-drawer{margin:0 0 14px;border:1px solid #d8e5f3;border-radius:14px;background:#fff;overflow:hidden}
.rm-source-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:10px 13px;list-style:none;cursor:pointer;background:#f8fafc}
.rm-source-drawer>summary::-webkit-details-marker{display:none}
.rm-source-drawer>summary span{display:block;color:#2563eb;font-size:13px;font-weight:950}
.rm-source-drawer>summary strong{display:block;margin-top:3px;color:#0f172a;font-size:16px}
.rm-source-drawer>summary small{display:block;margin-top:3px;color:#64748b;font-size:13px;line-height:1.45}
.rm-source-drawer>summary b{white-space:nowrap;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px}
.rm-source-drawer[open]>summary{border-bottom:1px solid #e2e8f0}
.rm-source-drawer-actions{padding:10px 13px;background:#fff}
html[data-theme="dark"] .rm-source-drawer,html[data-theme="dark"] .rm-source-drawer-actions{background:#172235;border-color:#314158}
html[data-theme="dark"] .rm-source-drawer>summary{background:#13233b}
html[data-theme="dark"] .rm-source-drawer>summary strong{color:#e2e8f0}
html[data-theme="dark"] .rm-source-drawer>summary small{color:#a8b7ca}

/* Risk model center: data source -> run -> lead -> human disposition. */
.rm-pipeline-note { display:flex; align-items:center; gap:9px; flex-wrap:wrap; min-height:42px; padding:8px 12px; border-top:1px solid #d9e1ea; border-bottom:1px solid #d9e1ea; background:#f8fafc; color:#52677e; font-size:.68rem; }
.rm-pipeline-note strong { color:#24364d; font-size:.72rem; }
.rm-pipeline-note span { color:#334155; font-weight:750; }
.rm-pipeline-note i { color:#94a3b8; font-style:normal; }
.rm-pipeline-note small { margin-left:auto; color:#6f7f91; line-height:1.45; }
.rm-source-workspace,.rm-run-workspace,.rm-lead-workspace { border:1px solid #d9e1ea; border-radius:8px; background:#fff; overflow:hidden; }
.rm-workspace-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:17px 19px 14px; border-bottom:1px solid #e5ebf2; }
.rm-workspace-head>div>span { display:block; color:#2563eb; font-size:.63rem; font-weight:900; letter-spacing:1px; }
.rm-workspace-head h3 { margin:4px 0 5px; color:#172b46; font-size:1rem; }
.rm-workspace-head p { max-width:820px; margin:0; color:#64748b; font-size:.74rem; line-height:1.6; }
.rm-source-summary,.rm-run-summary { display:flex; align-items:center; gap:18px; flex-wrap:wrap; min-height:42px; padding:8px 18px; border-bottom:1px solid #e5ebf2; background:#f8fafc; color:#64748b; font-size:.67rem; }
.rm-source-summary span,.rm-run-summary span { white-space:nowrap; }
.rm-source-summary strong,.rm-run-summary strong { margin-left:4px; color:#1e3554; font-size:.82rem; }
.rm-source-summary small { flex:1 1 360px; color:#718096; line-height:1.5; }
.rm-source-empty { padding:30px 22px; text-align:center; }
.rm-source-empty strong { display:block; color:#263b56; font-size:.9rem; }
.rm-source-empty p { max-width:720px; margin:7px auto 13px; color:#718096; font-size:.74rem; line-height:1.65; }
.rm-source-form { margin:14px 18px; border:1px solid #cbd9e8; background:#fbfdff; }
.rm-source-form-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid #dce6f0; }
.rm-source-form-head>div { display:grid; gap:3px; }
.rm-source-form-head strong { color:#203650; font-size:.78rem; }
.rm-source-form-head span { color:#718096; font-size:.65rem; line-height:1.45; }
.rm-source-form-head>button { width:28px; height:28px; border:0; background:transparent; color:#64748b; font-size:1.2rem; cursor:pointer; }
.rm-source-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; padding:14px; }
.rm-source-form-grid label { display:grid; gap:5px; min-width:0; color:#475569; font-size:.66rem; font-weight:800; }
.rm-source-form-grid label.wide,.rm-source-form-grid fieldset.wide { grid-column:1/-1; }
.rm-source-form-grid input,.rm-source-form-grid select,.rm-source-form-grid textarea { width:100%; box-sizing:border-box; border:1px solid #d5e0eb; border-radius:5px; background:#fff; color:#172033; font:inherit; font-weight:500; }
.rm-source-form-grid input,.rm-source-form-grid select { height:35px; padding:0 9px; }
.rm-source-form-grid textarea { padding:8px 9px; resize:vertical; }
.rm-source-form-grid fieldset { margin:0; padding:10px 12px 12px; border:1px solid #dce5ef; }
.rm-source-form-grid legend { padding:0 5px; color:#475569; font-size:.66rem; font-weight:800; }
.rm-interface-spec>p { margin:0 0 10px; color:#718096; font-size:.64rem; line-height:1.55; }
.rm-interface-spec.is-collapsed { display:none; }
.rm-interface-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; }
.rm-interface-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:10px; }
.rm-interface-checks>div { display:grid; gap:7px; padding:10px; border:1px solid #e0e7ef; background:#fff; }
.rm-interface-checks strong { color:#334155; font-size:.66rem; }
.rm-source-form-grid label.rm-interface-check { display:flex; flex-direction:row; align-items:center; gap:7px; min-height:24px; color:#475569; font-size:.64rem; font-weight:700; }
.rm-interface-check input { flex:0 0 auto; width:14px; height:14px; margin:0; accent-color:#2563eb; }
.rm-build-package { margin:14px 0; border:1px solid #d8e1ea; background:#fff; }
.rm-build-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; padding:15px 16px; border-bottom:1px solid #e2e8f0; }
.rm-build-head span { display:block; color:#2563eb; font-size:.58rem; font-weight:900; letter-spacing:.14em; }
.rm-build-head strong { display:block; margin-top:4px; color:#0f172a; font-size:.92rem; }
.rm-build-head p { margin:5px 0 0; color:#64748b; font-size:.7rem; line-height:1.55; }
.rm-build-head-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.rm-build-head button { min-width:28px; height:28px; border:1px solid #d8e1ea; background:#fff; color:#64748b; cursor:pointer; font-size:.66rem; font-weight:800; }
#rm-source-package-export { padding:0 10px; color:#1d4ed8; }
#rm-source-package-close { width:28px; padding:0; font-size:1rem; }
.rm-build-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.rm-build-summary span { padding:10px 12px; border-right:1px solid #e2e8f0; color:#64748b; font-size:.66rem; }
.rm-build-summary span:last-child { border-right:0; }
.rm-build-summary strong { display:block; margin-top:3px; color:#0f172a; font-size:.78rem; }
.rm-build-warning { margin:12px 14px 0; padding:9px 10px; border:1px solid #fed7aa; background:#fff7ed; color:#9a3412; font-size:.68rem; }
.rm-build-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:14px; }
.rm-build-grid section,.rm-build-models,.rm-build-actions { border:1px solid #e2e8f0; background:#fff; padding:11px; }
.rm-build-grid h4,.rm-build-models h4,.rm-build-actions h4 { margin:0 0 8px; color:#334155; font-size:.68rem; }
.rm-build-grid p { display:grid; gap:3px; margin:0 0 7px; padding:8px; border-left:3px solid #cbd5e1; background:#f8fafc; }
.rm-build-grid p.done { border-left-color:#16a34a; background:#f7fef9; }
.rm-build-grid p.pending { border-left-color:#f97316; background:#fffaf5; }
.rm-build-grid b { color:#475569; font-size:.58rem; }
.rm-build-grid span { color:#0f172a; font-size:.68rem; font-weight:800; }
.rm-build-grid small { color:#64748b; font-size:.62rem; line-height:1.45; }
.rm-build-models { margin:0 14px 14px; }
.rm-build-models article { padding:9px 0; border-top:1px solid #eef2f7; }
.rm-build-models article:first-of-type { border-top:0; padding-top:0; }
.rm-build-models strong { color:#0f172a; font-size:.74rem; }
.rm-build-models p { margin:4px 0 0; color:#475569; font-size:.66rem; line-height:1.45; }
.rm-build-models small { display:block; margin-top:4px; color:#64748b; font-size:.62rem; }
.rm-build-actions { margin:0 14px 14px; background:#f8fafc; }
.rm-build-actions p { margin:5px 0 0; color:#475569; font-size:.68rem; line-height:1.5; }
.rm-source-models { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rm-source-models label { display:flex; align-items:flex-start; gap:8px; padding:8px 9px; border:1px solid #e0e7ef; background:#fff; cursor:pointer; }
.rm-source-models input { flex:0 0 auto; width:14px; height:14px; margin:2px 0 0; }
.rm-source-models span { min-width:0; }
.rm-source-models strong,.rm-source-models small { display:block; }
.rm-source-models strong { color:#334155; font-size:.68rem; }
.rm-source-models small { margin-top:2px; color:#8492a6; font-size:.59rem; }
.rm-source-form-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 14px; border-top:1px solid #dce6f0; background:#f5f8fb; }
.rm-source-form-actions>span { color:#64748b; font-size:.64rem; line-height:1.45; }
.rm-source-form-actions>div { display:flex; gap:8px; flex-shrink:0; }
.rm-source-table-wrap,.rm-run-table-wrap,.rm-lead-table-wrap { overflow:auto; }
.rm-source-table,.rm-run-table,.rm-lead-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.rm-source-table th,.rm-run-table th,.rm-lead-table th { padding:9px 11px; border-bottom:1px solid #dfe7f0; background:#f5f8fb; color:#64748b; font-size:.61rem; font-weight:900; text-align:left; }
.rm-source-table td,.rm-run-table td,.rm-lead-table td { padding:10px 11px; border-bottom:1px solid #e9eef4; color:#475569; font-size:.66rem; vertical-align:top; overflow-wrap:anywhere; }
.rm-source-table tbody tr:last-child td,.rm-run-table tbody tr:last-child td,.rm-lead-table tbody tr:last-child td { border-bottom:0; }
.rm-source-table strong,.rm-run-table strong,.rm-lead-table strong { display:block; color:#253a55; font-size:.69rem; line-height:1.4; }
.rm-source-table span,.rm-source-table small,.rm-source-table p,.rm-run-table span,.rm-run-table small,.rm-lead-table span,.rm-lead-table small { display:block; }
.rm-source-table small,.rm-run-table small,.rm-lead-table small { margin-top:3px; color:#7b8a9d; font-size:.6rem; line-height:1.4; }
.rm-source-table p { margin:4px 0 0; color:#718096; font-size:.61rem; line-height:1.45; }
.rm-source-table td:nth-child(1) { width:20%; }.rm-source-table td:nth-child(2) { width:14%; }.rm-source-table td:nth-child(3) { width:18%; }
.rm-source-status,.rm-run-table em,.rm-lead-table em { display:inline-block; color:#52677e; font-size:.62rem; font-style:normal; font-weight:850; }
.rm-source-status.ready,.rm-run-table em.ok { color:#187443; }.rm-source-status.planned,.rm-run-table em.warn { color:#a16207; }.rm-source-status.paused { color:#64748b; }
.rm-table-actions { display:flex; gap:7px; flex-wrap:wrap; }
.rm-table-actions button { border:0; padding:0; background:transparent; color:#1d4ed8; font:inherit; font-size:.62rem; font-weight:850; cursor:pointer; }
.rm-table-actions button:last-child { color:#64748b; }
.rm-source-boundary { display:grid; grid-template-columns:86px minmax(0,1fr); gap:10px; padding:10px 18px; border-top:1px solid #e5ebf2; background:#fbfcfe; }
.rm-source-boundary strong { color:#475569; font-size:.66rem; }
.rm-source-boundary p { margin:0; color:#718096; font-size:.64rem; line-height:1.5; }
.rm-run-table b,.rm-lead-table b { display:inline-block; font-size:.63rem; }
.rm-level-low { color:#15803d; }.rm-level-medium { color:#a16207; }.rm-level-high { color:#c2410c; }.rm-level-critical { color:#b91c1c; }
.rm-model-operational { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid #dce5ef; background:#f8fafc; }
.rm-model-operational>div { min-width:0; padding:10px 12px; border-right:1px solid #e2e8f0; }
.rm-model-operational>div:last-child { border-right:0; }
.rm-model-operational span,.rm-model-operational small { display:block; color:#718096; font-size:.61rem; line-height:1.4; }
.rm-model-operational strong { display:block; margin:3px 0; color:#203650; font-size:.82rem; }
.rm-guide-grid small { display:block; margin-top:5px; color:#7b8a9d; font-size:.68rem; line-height:1.5; }
.rm-model-governance { border:1px solid #dce5ef; background:#fff; }
.rm-model-governance>summary { padding:12px 14px; color:#334155; font-size:.72rem; font-weight:850; cursor:pointer; }
.rm-model-governance-body { display:flex; flex-direction:column; gap:12px; padding:0 14px 14px; border-top:1px solid #e5ebf2; }
.rm-model-governance-body>.rm-section { margin-top:12px; }
.rm-professional-link { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid #dce5ef; background:#f8fafc; }
.rm-professional-link>div { display:grid; gap:3px; }
.rm-professional-link strong { color:#334155; font-size:.7rem; }
.rm-professional-link span { color:#718096; font-size:.63rem; line-height:1.45; }
.rm-advanced-boundary { margin:0; padding:10px 14px; border-bottom:1px solid #e5ebf2; background:#fff8e8; color:#705b34; font-size:.65rem; line-height:1.5; }
.rm-questionnaire .rm-section-head p { margin:4px 0 0; color:#718096; font-size:.66rem; line-height:1.45; }
html[data-theme="dark"] .rm-pipeline-note,html[data-theme="dark"] .rm-source-summary,html[data-theme="dark"] .rm-run-summary,html[data-theme="dark"] .rm-source-form-actions,html[data-theme="dark"] .rm-model-operational,html[data-theme="dark"] .rm-professional-link,html[data-theme="dark"] .rm-interface-checks>div,html[data-theme="dark"] .rm-build-summary,html[data-theme="dark"] .rm-build-actions { background:#172235; border-color:#314158; }
html[data-theme="dark"] .rm-source-workspace,html[data-theme="dark"] .rm-run-workspace,html[data-theme="dark"] .rm-lead-workspace,html[data-theme="dark"] .rm-source-form,html[data-theme="dark"] .rm-model-governance,html[data-theme="dark"] .rm-build-package,html[data-theme="dark"] .rm-build-grid section,html[data-theme="dark"] .rm-build-models { background:#13233b; border-color:#314e75; }
html[data-theme="dark"] .rm-workspace-head,html[data-theme="dark"] .rm-source-summary,html[data-theme="dark"] .rm-run-summary,html[data-theme="dark"] .rm-source-table td,html[data-theme="dark"] .rm-run-table td,html[data-theme="dark"] .rm-lead-table td,html[data-theme="dark"] .rm-build-head { border-color:#314158; }
html[data-theme="dark"] .rm-workspace-head h3,html[data-theme="dark"] .rm-source-table strong,html[data-theme="dark"] .rm-run-table strong,html[data-theme="dark"] .rm-lead-table strong,html[data-theme="dark"] .rm-model-operational strong,html[data-theme="dark"] .rm-build-head strong,html[data-theme="dark"] .rm-build-summary strong,html[data-theme="dark"] .rm-build-grid span,html[data-theme="dark"] .rm-build-models strong { color:#dbeafe; }
html[data-theme="dark"] .rm-build-grid p { background:#172235; }
html[data-theme="dark"] .rm-build-grid p.done { background:#10251d; }
html[data-theme="dark"] .rm-build-grid p.pending { background:#2c2115; }
@media(max-width:920px){.rm-source-form-grid,.rm-source-models,.rm-interface-grid,.rm-build-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.rm-build-summary{grid-template-columns:repeat(2,minmax(0,1fr));}.rm-model-operational{grid-template-columns:repeat(2,minmax(0,1fr));}.rm-model-operational>div:nth-child(2){border-right:0;}.rm-model-operational>div:nth-child(-n+2){border-bottom:1px solid #e2e8f0;}.rm-pipeline-note small{flex:1 1 100%;margin-left:0;}}
@media(max-width:760px){.rm-workspace-head,.rm-source-form-actions,.rm-professional-link,.rm-build-head{align-items:stretch;flex-direction:column;}.rm-source-form-grid,.rm-source-models,.rm-interface-grid,.rm-interface-checks,.rm-build-grid,.rm-build-summary{grid-template-columns:1fr;}.rm-build-summary span{border-right:0;border-bottom:1px solid #e2e8f0;}.rm-build-summary span:last-child{border-bottom:0;}.rm-source-form-grid label.wide,.rm-source-form-grid fieldset.wide{grid-column:auto;}.rm-source-form-actions>div{justify-content:flex-end;}.rm-source-boundary{grid-template-columns:1fr;gap:4px;}.rm-pipeline-note i{display:none;}.rm-pipeline-note span{flex:1 1 42%;}.rm-source-table,.rm-run-table,.rm-lead-table{min-width:960px;}}

.pmat-toolbar { margin-bottom:14px; align-items:center; }
.pmat-toolbar > div:first-child { max-width:760px; }
.pmat-toolbar > div:first-child > strong { display:block; margin-bottom:4px; color:#172033; font-size:.86rem; }
.pmat-toolbar p { margin:0; }
.pmat-generator { margin:0 0 16px; overflow:hidden; border:1px solid #bfd3ef; border-radius:12px; background:#f8fbff; box-shadow:0 10px 28px rgba(37,99,235,.08); }
.pmat-generator[hidden] { display:none!important; }
.pmat-generator > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:16px 18px; border-bottom:1px solid #dbe7f5; background:#fff; }
.pmat-generator > header div { display:grid; gap:3px; }
.pmat-generator > header span { color:#2563eb; font-size:12px; font-weight:850; }
.pmat-generator > header strong { color:#172033; font-size:18px; }
.pmat-generator > header p { margin:0; color:#64748b; font-size:14px; }
.pmat-generator-host { padding:16px; }
.pmat-generator-host .tb-panel { margin:0; box-shadow:none; }
.pmat-generator-host .tb-panel-head { padding-top:0; }
html[data-theme="dark"] .pmat-generator,html[data-theme="dark"] .pmat-generator > header { background:#172235; border-color:#314158; }
html[data-theme="dark"] .pmat-generator > header strong { color:#e2e8f0; }

/* 资料计划与台账：正式清单 + 参考资料库 */
.pmat-page{max-width:none;}
.pmat-work-guide{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;}
.pmat-work-guide strong,.pmat-work-guide span{display:block;}
.pmat-work-guide strong{color:#1e3a8a;font-size:17px;}
.pmat-work-guide span{margin-top:5px;color:#334155;font-size:14px;line-height:1.65;}
.pmat-work-guide .btn{flex:0 0 auto;}
.pmat-toolbar{flex-wrap:wrap;align-items:center;}
.pmat-toolbar>div:first-child{flex:1 1 560px;max-width:none;}
.pmat-toolbar .pmat-header-actions{flex:1 1 420px;justify-content:flex-end;}
.pmat-workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.7fr);gap:18px;align-items:start;}
.pmat-ledger,.pmat-reference{min-width:0;border:1px solid #dbe3ef;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);}
.pmat-ledger{overflow:hidden;}
.pmat-ledger.is-drop-ready{outline:2px dashed #93c5fd;outline-offset:4px;}
.pmat-ledger.is-drag-over{border-color:#2563eb;background:#f8fbff;box-shadow:0 0 0 4px rgba(37,99,235,.1);}
.pmat-ledger .pmat-list-head{padding:18px 20px 12px;border-bottom:1px solid #edf2f7;align-items:center;}
.pmat-ledger-filters,.pmat-reference-filters{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px;padding:12px 20px;border-bottom:1px solid #edf2f7;background:#f8fafc;}
.pmat-reference-filters{grid-template-columns:1fr 1fr;padding:14px 16px;}
.pmat-ledger-filters label,.pmat-reference-filters label{display:grid;gap:5px;color:#475569;font-size:14px;font-weight:800;}
.pmat-reference-filters .is-wide{grid-column:1/-1;}
.pmat-ledger-filters input,.pmat-ledger-filters select,.pmat-reference-filters input,.pmat-reference-filters select{width:100%;height:40px;padding:0 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font:500 14px inherit;outline:none;}
.pmat-table-wrap{overflow:auto;max-height:680px;}
.pmat-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;font-size:14px;}
.pmat-table th{position:sticky;top:0;z-index:2;padding:11px 12px;border-bottom:1px solid #dbe3ef;background:#f1f5f9;color:#475569;font-size:13px;font-weight:900;text-align:left;white-space:nowrap;}
.pmat-table td{padding:12px;border-bottom:1px solid #edf2f7;color:#334155;vertical-align:top;}
.pmat-table tbody tr:hover td{background:#f8fbff;}
.pmat-table td>strong,.pmat-table td>small{display:block;}
.pmat-table td>strong{font-size:14px;line-height:1.45;}
.pmat-table td>small{margin-top:4px;color:#64748b;font-size:13px;line-height:1.4;}
.pmat-compact-table{min-width:760px;}
.pmat-compact-table th:nth-child(1){width:56%;}
.pmat-compact-table th:nth-child(2){width:140px;}
.pmat-compact-table th:nth-child(3){width:270px;}
.pmat-compact-table th:nth-child(4){width:88px;}
.pmat-compact-table .pmat-name-cell small{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;}
.pmat-compact-table .pmat-name-cell small b{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800;line-height:1.25;}
.pmat-follow-cell small{display:block;margin-top:3px;color:#64748b;font-size:12px;line-height:1.35;}
.pmat-name-cell{display:flex;gap:9px;min-width:270px;align-items:flex-start;}
.pmat-name-cell>div{min-width:0;}
.pmat-name-cell strong{display:block;color:#172033;font-size:15px;line-height:1.45;}
.pmat-name-cell small{display:-webkit-box;margin-top:4px;overflow:hidden;color:#64748b;font-size:13px;line-height:1.4;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.pmat-row-actions{width:84px;}
.pmat-row-actions details{position:relative;}
.pmat-row-actions summary{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:14px;font-weight:800;cursor:pointer;list-style:none;}
.pmat-row-actions details[open] summary{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;}
.pmat-row-actions details>div{position:absolute;right:0;z-index:10;display:grid;width:168px;padding:6px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(15,23,42,.16);}
.pmat-row-actions button,.pmat-row-actions .pmat-upload-label{display:flex;align-items:center;width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:6px;background:#fff;color:#334155;font:700 13px inherit;text-align:left;cursor:pointer;}
.pmat-row-actions button:hover,.pmat-row-actions .pmat-upload-label:hover{background:#f1f5f9;}
.pmat-row-actions button.is-danger{color:#b91c1c;}
.pmat-reference{position:sticky;top:86px;overflow:hidden;max-height:calc(100vh - 110px);}
.pmat-reference-head{display:grid;grid-template-columns:1fr;gap:12px;padding:18px 16px 14px;border-bottom:1px solid #edf2f7;}
.pmat-reference-head .btn{justify-self:start;}
.pmat-reference-head span{display:block;color:#0f766e;font-size:13px;font-weight:900;letter-spacing:.08em;}
.pmat-reference-head h3{margin:4px 0 6px;color:#172033;font-size:18px;line-height:1.35;}
.pmat-reference-head p{margin:0;color:#64748b;font-size:14px;line-height:1.55;}
.pmat-reference-count{padding:10px 16px;border-bottom:1px solid #edf2f7;background:#fff;color:#64748b;font-size:13px;line-height:1.45;}
.pmat-reference-list{max-height:470px;overflow:auto;padding:10px 12px;}
.pmat-reference-list section+section{margin-top:12px;padding-top:12px;border-top:1px solid #edf2f7;}
.pmat-reference-list section>header{display:flex;justify-content:space-between;gap:10px;padding:0 4px 8px;}
.pmat-reference-list section>header strong{color:#334155;font-size:14px;}
.pmat-reference-list section>header span{color:#64748b;font-size:13px;}
.pmat-reference-item{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:start;padding:9px 7px;border-radius:8px;color:#334155;font-size:14px;line-height:1.48;cursor:pointer;}
.pmat-reference-item:hover{background:#f8fafc;}
.pmat-reference-item[draggable="true"]{cursor:grab;}
.pmat-reference-item.is-dragging{opacity:.55;background:#eff6ff;}
.pmat-reference-item input{margin-top:3px;accent-color:#2563eb;}
.pmat-reference-item button{min-height:28px;padding:4px 8px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:#1d4ed8;font:800 13px inherit;cursor:pointer;}
.pmat-reference-empty{padding:24px;color:#64748b;font-size:14px;line-height:1.6;}
.pmat-advanced-reference{padding:12px 16px;border-top:1px solid #edf2f7;background:#f8fafc;}
.pmat-advanced-reference summary{color:#334155;font-size:14px;font-weight:800;cursor:pointer;}
.pmat-advanced-reference p{margin:8px 0;color:#64748b;font-size:13px;line-height:1.5;}
@media(max-width:1180px){.pmat-workspace{grid-template-columns:1fr;}.pmat-reference{position:static;max-height:none;}.pmat-reference-list{max-height:520px;}}
@media(max-width:720px){.pmat-work-guide{align-items:stretch;flex-direction:column;}.pmat-work-guide .btn{width:100%;}.pmat-ledger-filters,.pmat-reference-filters{grid-template-columns:1fr;}.pmat-reference-filters .is-wide{grid-column:auto;}.pmat-reference-head{flex-direction:column;}.pmat-table-wrap{max-height:none;}}

/* 可读性基线：业务页面不再使用难以阅读的小字号 */
.sidebar-brand h1{font-size:16px!important;}
.sidebar-brand p{font-size:13px!important;}
.nav-group-label{font-size:13px!important;font-weight:800!important;color:#8fa1ba!important;}
.nav-item{font-size:15px!important;}
.main-content input,.main-content select,.main-content textarea,.main-content button{font-size:14px;}
.main-content small{font-size:13px;line-height:1.45;}
.main-content .page-eyebrow,.main-content [class*="kicker"]{font-size:13px!important;}

/* 风险评估：先人工判断，再看程序建议 */
.pra-existing-assessment{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:11px 12px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;}
.pra-existing-assessment strong{color:#1e3a8a;font-size:14px;}
.pra-existing-assessment small{color:#64748b;font-size:13px;line-height:1.45;}
.pra-candidate-instruction{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:11px 12px;border-left:4px solid #3b82f6;background:#eff6ff;}
.pra-candidate-instruction strong{flex:0 0 auto;color:#1e3a8a;font-size:14px;}
.pra-candidate-instruction span{color:#475569;font-size:14px;line-height:1.5;}
.dr-item.is-action-focus{outline:3px solid rgba(37,99,235,.38);box-shadow:0 0 0 6px rgba(37,99,235,.10);}
.pra-primary-action #pra-input-hint{font-size:14px;line-height:1.55;color:#64748b;}
.pra-primary-action #pra-input-hint.is-ready{color:#0f766e;font-weight:750;}
.pra-worktable-anchor{padding:16px 18px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;}
.pra-worktable-anchor strong{display:block;color:#1e3a8a;font-size:18px;}
.pra-worktable-anchor p{margin:7px 0 10px;color:#334155;font-size:15px;line-height:1.65;}
.pra-worktable-anchor ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;}
.pra-worktable-anchor li{padding:9px 10px;border:1px solid #dbeafe;border-radius:9px;background:#fff;color:#334155;font-size:14px;font-weight:750;line-height:1.4;}
.rwp-step-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px;}
.rwp-step-guide span{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dbeafe;border-radius:8px;background:#fff;color:#334155;font-size:13px;font-weight:800;}
.rwp-step-guide b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#2563eb;color:#fff;font-size:12px;}
@media(max-width:1100px){.pra-worktable-anchor ol{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:860px){.rwp-step-guide{grid-template-columns:repeat(2,minmax(0,1fr));}.pra-existing-assessment{align-items:flex-start;flex-direction:column;}.pra-worktable-anchor ol{grid-template-columns:1fr;}}

.wf-header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* 项目审计方案：完整方案在前，风险承接检查作为其中一项 */
.wf-page-kicker { display:block; margin-bottom:4px; color:#2563eb; font-size:13px; font-weight:800; letter-spacing:.06em; }
.wf-page-desc { margin:5px 0 0; color:#64748b; font-size:14px; line-height:1.65; }
.wf-current-scheme{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:14px 0 14px;padding:20px 22px;border:1px solid #cddbeb;border-radius:14px;background:linear-gradient(135deg,#fff,#f7fbff);box-shadow:0 12px 28px rgba(15,23,42,.05)}
.wf-current-scheme span{display:block;color:#2563eb;font-size:13px;font-weight:850}
.wf-current-scheme h3{margin:5px 0;color:#172033;font-size:24px;line-height:1.25}
.wf-current-scheme p{margin:0;color:#64748b;font-size:15px;line-height:1.6}
.wf-current-scheme-meta{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:10px 12px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff}
.wf-current-scheme-meta strong{font-size:22px;color:#1d4ed8;line-height:1}
.wf-current-scheme-meta small{font-size:13px;color:#475569;white-space:nowrap}
.wf-current-scheme.is-empty{border-style:dashed;background:#fbfdff}
.wf-scheme-readiness{display:grid;grid-template-columns:180px minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 18px;padding:16px 18px;border:1px solid #dbe7f4;border-radius:14px;background:#fff}
.wf-readiness-main span{display:block;color:#64748b;font-size:13px;font-weight:800}
.wf-readiness-main strong{display:block;margin-top:3px;color:#172033;font-size:28px;line-height:1}
.wf-readiness-main p{margin:6px 0 0;color:#64748b;font-size:14px;line-height:1.5}
.wf-readiness-checks{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.wf-readiness-checks span{padding:7px 10px;border-radius:999px;font-size:14px;font-weight:750;line-height:1.25}
.wf-readiness-checks span.ok{background:#ecfdf5;color:#047857}
.wf-readiness-checks span.todo{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}
.wf-command-center{margin:0 0 18px;border:1px solid #bfd3ee;border-radius:16px;background:linear-gradient(135deg,#f8fbff 0%,#ffffff 52%,#eff6ff 100%);box-shadow:0 16px 38px rgba(15,23,42,.07);overflow:hidden}
.wf-command-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid #dbe7f4}
.wf-command-head span{display:block;color:#2563eb;font-size:13px;font-weight:900;letter-spacing:.06em}
.wf-command-head h3{margin:6px 0;color:#172033;font-size:25px;line-height:1.25}
.wf-command-head p{margin:0;max-width:880px;color:#536579;font-size:16px;line-height:1.65}
.wf-command-status{flex:0 0 auto;min-width:150px;padding:12px 14px;border:1px solid #dbeafe;border-radius:12px;background:#fff;text-align:center}
.wf-command-status small{display:block;color:#64748b;font-size:13px;font-weight:800}
.wf-command-status strong{display:block;margin-top:4px;color:#172033;font-size:18px}
.wf-command-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
.wf-command-card{display:flex;min-height:188px;flex-direction:column;gap:8px;padding:20px 18px;border-right:1px solid #e2e8f0;background:#fff}
.wf-command-card:last-child{border-right:0}
.wf-command-card span{color:#2563eb;font-size:14px;font-weight:900}
.wf-command-card strong{color:#172033;font-size:20px;line-height:1.35}
.wf-command-card p{flex:1;margin:0;color:#536579;font-size:15px;line-height:1.55}
.wf-command-card button{align-self:flex-start;min-height:38px;padding:0 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:15px;font-weight:850;cursor:pointer}
.wf-command-card button:hover{background:#dbeafe}
.wf-command-card.is-ok{box-shadow:inset 0 4px 0 #22c55e}
.wf-command-card.is-warn{box-shadow:inset 0 4px 0 #f59e0b}
.wf-command-card.is-warn button{border-color:#fed7aa;background:#fff7ed;color:#b45309}
.wf-grid-secondary{margin-top:12px}
.wf-scheme-brief { margin:0 0 18px; border:1px solid #cddbeb; border-radius:14px; background:#fff; overflow:hidden; }
.wf-scheme-brief-head { display:flex; justify-content:space-between; gap:24px; padding:20px 22px; background:linear-gradient(135deg,#f8fbff,#eef6ff); border-bottom:1px solid #dbe7f4; }
.wf-scheme-brief-head span { color:#2563eb; font-size:13px; font-weight:800; }
.wf-scheme-brief-head h3 { margin:5px 0; color:#172033; font-size:21px; }
.wf-scheme-brief-head p { margin:0; max-width:760px; color:#64748b; font-size:14px; line-height:1.65; }
.wf-scheme-brief-actions { display:flex; align-items:flex-start; gap:10px; flex-shrink:0; }
.wf-scheme-status { display:inline-flex; padding:7px 10px; border-radius:999px; background:#fff7ed; color:#9a3412!important; font-size:13px!important; }
.wf-scheme-status.is-ready { background:#eff6ff; color:#1d4ed8!important; }
.wf-scheme-status.is-approved { background:#ecfdf5; color:#047857!important; }
.wf-scheme-core { display:grid; grid-template-columns:1fr 1.15fr 1.15fr 1fr; }
.wf-scheme-core>div,.wf-scheme-field { min-width:0; padding:18px 20px; border:0; border-right:1px solid #e2e8f0; background:#fff; text-align:left; font-family:inherit; cursor:pointer; }
.wf-scheme-core>div:last-child,.wf-scheme-field:last-child { border-right:0; }
.wf-scheme-core span,.wf-scheme-support span,.wf-scheme-field span { display:block; margin-bottom:7px; color:#64748b; font-size:13px; font-weight:700; }
.wf-scheme-core strong,.wf-scheme-support strong,.wf-scheme-field strong { display:block; color:#172033; font-size:15px; line-height:1.55; white-space:normal; }
.wf-scheme-core small,.wf-scheme-support small,.wf-scheme-field small { display:block; margin-top:6px; color:#64748b; font-size:13px; line-height:1.5; }
.wf-scheme-field em { display:inline-flex; margin-top:8px; color:#2563eb; font-size:13px; font-style:normal; font-weight:900; }
.wf-scheme-field:hover { background:#f8fbff; box-shadow:inset 0 0 0 1px #bfdbfe; }
.wf-scheme-support { display:grid; grid-template-columns:1fr 1fr 1fr; background:#fbfdff; border-top:1px solid #e2e8f0; }
.wf-scheme-support p { margin:0; padding:16px 20px; border-right:1px solid #e2e8f0; }
.wf-scheme-support p:last-child { border-right:0; }
.wf-scheme-modal { width:min(880px,94vw); }
.wf-scheme-modal-title { margin-bottom:18px; }
.wf-scheme-modal-title>span { color:#2563eb; font-size:13px; font-weight:800; }
.wf-scheme-modal-title h3 { margin:4px 0; font-size:22px; }
.wf-scheme-modal-title p { margin:0; color:#64748b; font-size:14px; }
.wf-scheme-form { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.wf-scheme-form .wf-form-group { display:block; }
.wf-scheme-full { grid-column:1/-1; }
.wf-form-label b { color:#dc2626; }
.wf-scheme-error { margin:8px 0; padding:10px 12px; border-radius:8px; background:#fff1f2; color:#be123c; font-size:14px; }
.wf-program-ledger{margin:0 0 18px;border:1px solid #cddbeb;border-radius:14px;background:#fff;overflow:hidden}
.wf-program-ledger.is-action-focus,.wf-risk-coverage.is-action-focus{box-shadow:0 0 0 4px rgba(37,99,235,.14),0 18px 42px rgba(37,99,235,.12);border-color:#60a5fa}
.wf-program-ledger-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #e2e8f0;background:#fbfdff}
.wf-program-ledger-head span{display:block;color:#2563eb;font-size:13px;font-weight:850}
.wf-program-ledger-head h3{margin:5px 0;color:#172033;font-size:21px}
.wf-program-ledger-head p{margin:0;max-width:850px;color:#64748b;font-size:15px;line-height:1.6}
.wf-program-empty{display:grid;gap:5px;padding:22px;color:#64748b}
.wf-program-empty strong{color:#172033;font-size:17px}
.wf-program-empty span{font-size:15px}
.wf-program-table{display:grid}
.wf-program-row{display:grid;grid-template-columns:minmax(210px,1.1fr) minmax(260px,1.3fr) minmax(220px,1.1fr) minmax(150px,.75fr) 90px 74px;align-items:center;gap:14px;min-height:68px;padding:12px 18px;border-top:1px solid #edf2f7}
.wf-program-row:first-child{border-top:0}
.wf-program-row.is-head{min-height:38px;background:#f8fafc;color:#64748b;font-size:13px;font-weight:850}
.wf-program-row>span{min-width:0}
.wf-program-row strong,.wf-program-row small{display:block;min-width:0}
.wf-program-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:15px}
.wf-program-row small{margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:13px;line-height:1.45}
.wf-program-status{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-style:normal;font-size:13px;font-weight:800}
.wf-program-status.is-in-progress{background:#eff6ff;color:#1d4ed8}
.wf-program-status.is-completed{background:#ecfdf5;color:#047857}
.wf-program-status.is-blocked{background:#fef2f2;color:#b91c1c}
.wf-program-open{border:1px solid #bfdbfe;border-radius:8px;background:#fff;color:#1d4ed8;font-size:14px;font-weight:800;min-height:34px;padding:0 10px;cursor:pointer}
.wf-program-open:hover{background:#eff6ff}
.wf-program-save{border:1px solid #bfdbfe;border-radius:8px;background:#2563eb;color:#fff;font-size:13px;font-weight:850;min-height:34px;padding:0 10px;cursor:pointer}
.wf-program-save:hover{background:#1d4ed8}
.wf-program-save:disabled{opacity:.6;cursor:wait}
.at-shell{width:100%;max-width:none;margin:0;color:#172033;}
.at-layout{grid-template-columns:320px minmax(0,1fr);}
.at-scheme-task strong{font-size:14px;}
.at-scheme-task small{font-size:12px;line-height:1.4;}
.at-scheme-task b{font-size:12px;}
.at-scheme-state{font-size:11px;}
.at-view-plan{font-size:13px;}
.rp-quality-controls{margin:18px 0;border:1px solid #d6e1ed;border-radius:12px;background:#fff;overflow:hidden;}
.rp-quality-controls>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;cursor:pointer;background:#f8fbff;list-style:none;}
.rp-quality-controls>summary::-webkit-details-marker{display:none;}
.rp-quality-controls>summary span{color:#1e3a5f;font-size:15px;font-weight:800;}
.rp-quality-controls>summary strong{color:#64748b;font-size:13px;font-weight:600;}
.rp-quality-controls-body{padding:16px;}
.rp-report-assembly{margin:0 0 18px;border:1px solid #c9ddf4;border-radius:18px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 18px 42px rgba(15,23,42,.06);overflow:hidden}
.rpa2-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #dbe7f4;background:linear-gradient(135deg,#f8fbff,#eef6ff)}
.rpa2-head span,.rpa2-panel-head span,.rpa2-rule span{display:block;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.1em}.rpa2-head strong{display:block;margin-top:5px;color:#172033;font-size:25px;line-height:1.2}.rpa2-head p{margin:6px 0 0;max-width:880px;color:#536579;font-size:15px;line-height:1.65}.rpa2-head .btn{flex:0 0 auto}
.rpa2-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e2e8f0}.rpa2-metrics article{padding:17px 18px;border-right:1px solid #e2e8f0;background:#fff}.rpa2-metrics article:last-child{border-right:0}.rpa2-metrics strong{display:block;color:#1d4ed8;font-size:27px;line-height:1}.rpa2-metrics span{display:block;margin-top:6px;color:#64748b;font-size:13px;font-weight:800}
.rpa-section-checklist{padding:16px;border-bottom:1px solid #e2e8f0;background:#fff}
.rpsc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}
.rpsc-head span{display:block;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.1em}.rpsc-head strong{display:block;margin-top:4px;color:#172033;font-size:18px}.rpsc-head p{margin:5px 0 0;max-width:880px;color:#536579;font-size:14px;line-height:1.6}.rpsc-head b{flex:0 0 auto;padding:7px 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px}
.rpsc-table{display:grid;gap:8px}.rpsc-row{display:grid;grid-template-columns:minmax(240px,1.2fr) minmax(110px,.45fr) minmax(280px,1.3fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff}.rpsc-row.is-head{min-height:38px;padding:8px 12px;background:#f8fafc;color:#64748b;font-size:13px;font-weight:900}.rpsc-row.is-ready{border-color:#bbf7d0;background:#f7fef9}.rpsc-row.is-warn{border-color:#fed7aa;background:#fffaf5}.rpsc-row.is-excluded{border-color:#cbd5e1;background:#f8fafc}.rpsc-row.is-pending{border-color:#dbeafe;background:#f8fbff}.rpsc-row strong{display:block;color:#172033;font-size:15px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpsc-row small{display:block;margin-top:4px;color:#64748b;font-size:12px;line-height:1.35}.rpsc-row mark{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:12px;font-weight:850}.rpsc-checks{display:flex;gap:6px;flex-wrap:wrap}.rpsc-checks span{padding:4px 8px;border-radius:999px;font-size:12px;font-weight:850}.rpsc-checks .ok{background:#dcfce7;color:#15803d}.rpsc-checks .miss{background:#fff7ed;color:#c2410c}.rpsc-actions{text-align:right}.rpsc-empty,.rpsc-more{padding:12px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;font-size:14px;line-height:1.55}
.rpa2-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;background:#fbfdff}.rpa2-panel{border:1px solid #dbe7f4;border-radius:14px;background:#fff;overflow:hidden}.rpa2-panel-head{padding:14px 16px;border-bottom:1px solid #e2e8f0;background:#f8fbff}.rpa2-panel-head strong{display:block;margin-top:4px;color:#172033;font-size:17px}
.rpa2-list{display:grid;gap:9px;padding:12px}.rpa2-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.rpa2-list article.ready{border-color:#bbf7d0;background:#f7fef9}.rpa2-list article.pending{border-color:#fed7aa;background:#fffaf5}.rpa2-list article div{min-width:0}.rpa2-list strong{display:block;color:#172033;font-size:15px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rpa2-list span{display:block;margin-top:4px;color:#64748b;font-size:13px;line-height:1.45}.rpa2-list .btn{flex:0 0 auto}.rpa2-more{display:block;padding:0 12px 12px;color:#64748b;font-size:13px}.rpa2-empty{padding:18px;color:#64748b;font-size:14px;line-height:1.6}.rpa2-empty.ok{color:#047857;background:#f0fdf4}
.rpa2-rule{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 16px 16px;padding:15px 16px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}.rpa2-rule strong{display:block;margin-top:4px;color:#172033;font-size:16px}.rpa2-rule p{margin:5px 0 0;max-width:780px;color:#536579;font-size:14px;line-height:1.6}.rpa2-rule>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rp-generate.is-action-focus{box-shadow:0 0 0 4px rgba(37,99,235,.14),0 20px 48px rgba(37,99,235,.12);border-color:#93c5fd}
html[data-theme="dark"] .rp-report-assembly{border-color:#314158;background:linear-gradient(135deg,#111827,#172235);box-shadow:none}
html[data-theme="dark"] .rpa2-head{border-bottom-color:#314158;background:linear-gradient(135deg,#172235,#1e293b)}
html[data-theme="dark"] .rpa2-head strong,html[data-theme="dark"] .rpa2-panel-head strong,html[data-theme="dark"] .rpa2-list strong,html[data-theme="dark"] .rpa2-rule strong{color:#e2e8f0}
html[data-theme="dark"] .rpa2-head p,html[data-theme="dark"] .rpa2-list span,html[data-theme="dark"] .rpa2-empty,html[data-theme="dark"] .rpa2-rule p,html[data-theme="dark"] .rpa2-more{color:#94a3b8}
html[data-theme="dark"] .rpa2-metrics,html[data-theme="dark"] .rpa2-metrics article,html[data-theme="dark"] .rpa-section-checklist,html[data-theme="dark"] .rpsc-row,html[data-theme="dark"] .rpsc-empty,html[data-theme="dark"] .rpsc-more,html[data-theme="dark"] .rpa2-grid,html[data-theme="dark"] .rpa2-panel,html[data-theme="dark"] .rpa2-panel-head,html[data-theme="dark"] .rpa2-rule{border-color:#314158;background:#172235}
html[data-theme="dark"] .rpsc-head strong,html[data-theme="dark"] .rpsc-row strong{color:#e2e8f0}
html[data-theme="dark"] .rpsc-head p,html[data-theme="dark"] .rpsc-row small,html[data-theme="dark"] .rpsc-empty,html[data-theme="dark"] .rpsc-more{color:#94a3b8}
html[data-theme="dark"] .rpsc-row.is-ready{border-color:#166534;background:#102118}html[data-theme="dark"] .rpsc-row.is-warn{border-color:#9a3412;background:#21150f}html[data-theme="dark"] .rpsc-row.is-excluded{background:#111827}
html[data-theme="dark"] .rpa2-list article{border-color:#314158;background:#111827}
html[data-theme="dark"] .rpa2-list article.ready{border-color:#166534;background:#102118}
html[data-theme="dark"] .rpa2-list article.pending{border-color:#9a3412;background:#21150f}
html[data-theme="dark"] .rpa2-empty.ok{color:#86efac;background:#102118}
@media (max-width:1100px) {
  .rpa2-grid{grid-template-columns:1fr}
  .rpsc-row{grid-template-columns:1fr}
  .rpsc-actions{text-align:left}
  .rpa2-rule{align-items:flex-start;flex-direction:column}
  .rpa2-rule>div:last-child{justify-content:flex-start}
}
@media (max-width:720px) {
  .rpa2-head{align-items:stretch;flex-direction:column;padding:18px}
  .rpa2-head strong{font-size:22px}
  .rpa2-head .btn{width:100%;justify-content:center}
  .rpa2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rpa2-metrics article:nth-child(2n){border-right:0}
  .rpa2-metrics article:nth-child(n+3){border-top:1px solid #e2e8f0}
  .rpa2-list article{align-items:stretch;flex-direction:column}
  .rpa2-list strong{white-space:normal}
  .rpa2-list .btn{width:100%;justify-content:center}
}
.ai-advanced{margin:4px 0 14px;border:1px solid #dbe4ef;border-radius:9px;background:#f8fafc;overflow:hidden;}
.ai-advanced>summary{padding:12px 14px;cursor:pointer;color:#475569;font-size:14px;font-weight:800;}
.ai-advanced[open]>summary{border-bottom:1px solid #dbe4ef;}
.ai-advanced>.ai-form-row,.ai-advanced>.ai-form-group{margin:14px;}
.rp-quality-controls-body>.rp-version-card,.rp-quality-controls-body>.rp-snapshot-card,.rp-quality-controls-body>.rp-final-gate,.rp-quality-controls-body>.rp-archive-panel{margin-bottom:14px;}
@media (max-width:1100px) {
  .wf-scheme-readiness{grid-template-columns:1fr}
  .wf-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wf-command-card{border-right:1px solid #e2e8f0;border-top:1px solid #e2e8f0}
  .wf-command-card:nth-child(-n+2){border-top:0}
  .wf-command-card:nth-child(2n){border-right:0}
  .wf-program-row{grid-template-columns:minmax(220px,1fr) minmax(260px,1.2fr) minmax(180px,1fr) 90px 70px}
  .wf-program-row>span:nth-child(4){display:none}
  .wf-scheme-core { grid-template-columns:1fr 1fr; }
  .wf-scheme-core>div:nth-child(2) { border-right:0; }
  .wf-scheme-core>div:nth-child(-n+2) { border-bottom:1px solid #e2e8f0; }
  .wf-scheme-support { grid-template-columns:1fr; }
  .wf-scheme-support p { border-right:0; border-bottom:1px solid #e2e8f0; }
}
@media (max-width:720px) {
  .wf-current-scheme,.wf-program-ledger-head{align-items:stretch;flex-direction:column}
  .wf-command-head{flex-direction:column;padding:18px}
  .wf-command-head h3{font-size:22px}
  .wf-command-grid{grid-template-columns:1fr}
  .wf-command-card{min-height:auto;border-right:0!important;border-top:1px solid #e2e8f0!important}
  .wf-command-card:first-child{border-top:0!important}
  .wf-command-card button{width:100%;justify-content:center}
  .wf-scheme-brief-head { flex-direction:column; }
  .wf-scheme-core,.wf-scheme-form { grid-template-columns:1fr; }
  .wf-scheme-core>div { border-right:0; border-bottom:1px solid #e2e8f0; }
  .wf-scheme-full { grid-column:auto; }
  .wf-program-table{padding:12px;background:#f8fafc;gap:10px}
  .wf-program-row,.wf-program-row.is-head{display:grid;grid-template-columns:1fr;gap:7px;min-height:0;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
  .wf-program-row.is-head{display:none}
  .wf-program-row strong{white-space:normal}
  .wf-program-row small{white-space:normal}
  .wf-program-open{width:100%}
}
.project-context-tool { margin:16px 0 22px; overflow:hidden; border:1px solid #b9cfee; border-radius:14px; background:#f8fbff; box-shadow:0 12px 30px rgba(37,99,235,.08); }
.project-context-tool[hidden] { display:none!important; }
.project-context-tool-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:17px 20px; border-bottom:1px solid #d9e6f5; background:#fff; }
.project-context-tool-head > div { display:grid; gap:4px; }
.project-context-tool-head span { color:#2563eb; font-size:13px; font-weight:850; }
.project-context-tool-head strong { color:#172033; font-size:19px; line-height:1.35; }
.project-context-tool-head p { margin:0; color:#607089; font-size:15px; line-height:1.55; }
.project-context-tool > [data-program-tool-host],
.project-context-tool > [data-execution-tool-host],
.project-context-tool > [data-finding-tool-host] { padding:16px; }
.project-context-tool .tb-panel { margin:0; box-shadow:none; background:#fff; }
.project-context-tool .tb-panel-head span,.project-context-tool .tb-result-head span { font-size:12px; }
.project-context-tool .tb-panel-head h3 { font-size:19px; }
.project-context-tool .tb-panel-head p,.project-context-tool .tb-work-grid label,.project-context-tool .tb-result { font-size:14px; }
.project-context-tool .tb-work-grid input,.project-context-tool .tb-work-grid select,.project-context-tool .tb-work-grid textarea { font-size:15px!important; }
.finding-card .project-context-tool { margin:14px 0; }
html[data-theme="dark"] .project-context-tool,html[data-theme="dark"] .project-context-tool-head,html[data-theme="dark"] .project-context-tool .tb-panel { background:#172235; border-color:#314158; }
html[data-theme="dark"] .project-context-tool-head strong { color:#e2e8f0; }
.hist-page-actions { justify-content:flex-end; }
/* ===== Public purchase check: lightweight trial shell ===== */
body.pmvp-public-shell { background:#f5f7fa; }
body.pmvp-public-shell .mobile-header,
body.pmvp-public-shell .sidebar,
body.pmvp-public-shell .sidebar-overlay,
body.pmvp-public-shell .project-toolbar,
body.pmvp-public-shell .breadcrumb { display:none!important; }
body.pmvp-public-shell .app-layout { display:block; min-width:0; }
body.pmvp-public-shell .main-content {
  width:min(100%,1200px);
  max-width:1200px;
  min-width:0;
  margin:0 auto;
  padding:20px 24px 40px;
}
.pmvp-public-shell .pmvp-page { gap:12px; }
.pmvp-public-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:48px;
  padding:6px 2px 10px;
  border-bottom:1px solid #dfe5ec;
}
.pmvp-public-header>div { display:grid; grid-template-columns:30px auto; column-gap:9px; align-items:center; }
.pmvp-public-header>div>span {
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:6px;
  background:#2563eb;
  color:#fff;
  font-size:.68rem;
  font-weight:900;
}
.pmvp-public-header strong { color:#172033; font-size:.84rem; }
.pmvp-public-header small { color:#718096; font-size:.64rem; }
.pmvp-public-shell .pmvp-hero { padding:20px; border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.05); }
.pmvp-public-shell .pmvp-hero h2 { font-size:1.45rem; }
.pmvp-public-shell .pmvp-hero-actions .btn { white-space:nowrap; }
.pmvp-public-shell .pmvp-quick-steps { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:720px; }
.pmvp-public-shell .pmvp-step { min-height:84px; border-radius:8px; }
.pmvp-public-shell .pmvp-card { min-width:0; border-radius:8px; box-shadow:0 1px 3px rgba(15,23,42,.04); }
.pmvp-data-privacy {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
  padding:11px 12px;
  border:1px solid #bfdbfe;
  border-radius:7px;
  background:#f5f9ff;
}
.pmvp-data-privacy strong { display:block; color:#1e3a8a; font-size:.76rem; }
.pmvp-data-privacy span { display:block; margin-top:3px; color:#52657d; font-size:.72rem; line-height:1.5; }
.pmvp-data-privacy .btn { flex:0 0 auto; }
.pmvp-pilot-pack-collapsed { padding:0; overflow:hidden; }
.pmvp-pilot-pack-collapsed>summary { display:flex; align-items:center; gap:12px; padding:12px 14px; cursor:pointer; list-style:none; }
.pmvp-pilot-pack-collapsed>summary::-webkit-details-marker { display:none; }
.pmvp-pilot-pack-collapsed>summary span { flex:0 0 auto; color:#2563eb; font-size:.68rem; font-weight:900; }
.pmvp-pilot-pack-collapsed>summary strong { color:#475569; font-size:.72rem; font-weight:700; }
.pmvp-pilot-pack-collapsed>summary::after { content:'+'; margin-left:auto; color:#64748b; font-size:1rem; }
.pmvp-pilot-pack-collapsed[open]>summary::after { content:'−'; }
.pmvp-pilot-pack-body { padding:0 14px 14px; border-top:1px solid #e2e8f0; }
.pmvp-pilot-funnel {
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(360px,1.6fr) auto;
  align-items:center;
  gap:14px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e2e8f0;
}
.pmvp-pilot-funnel>div:first-child>span { display:block; color:#2563eb; font-size:.62rem; font-weight:900; }
.pmvp-pilot-funnel>div:first-child>strong { display:block; margin-top:3px; color:#24364d; font-size:.76rem; }
.pmvp-pilot-funnel>div:first-child>p { margin:3px 0 0; color:#64748b; font-size:.68rem; line-height:1.45; }
.pmvp-pilot-funnel-stages { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid #dbe3ec; border-radius:6px; overflow:hidden; }
.pmvp-pilot-funnel-stages>div { min-width:0; padding:8px 6px; border-right:1px solid #e2e8f0; background:#fff; text-align:center; }
.pmvp-pilot-funnel-stages>div:last-child { border-right:0; }
.pmvp-pilot-funnel-stages span,.pmvp-pilot-funnel-stages strong,.pmvp-pilot-funnel-stages small { display:block; }
.pmvp-pilot-funnel-stages span { overflow:hidden; color:#64748b; font-size:.62rem; text-overflow:ellipsis; white-space:nowrap; }
.pmvp-pilot-funnel-stages strong { margin-top:3px; color:#172033; font-size:.82rem; }
.pmvp-pilot-funnel-stages small { margin-top:1px; color:#16765a; font-size:.62rem; }
.pmvp-model-settings { margin:10px 0; border:1px solid #dbe3ef; border-radius:6px; background:#f8fafc; }
.pmvp-model-settings>summary { padding:8px 10px; color:#475569; font-size:.7rem; font-weight:850; cursor:pointer; }
.pmvp-model-settings .pmvp-model-params { margin:0; border:0; border-top:1px solid #e2e8f0; border-radius:0; }
.pmvp-public-shell .pmvp-event-layout { grid-template-columns:minmax(0,1fr) minmax(300px,360px); }
.pmvp-public-shell .pmvp-event-table table { min-width:680px; }

@media(max-width:1050px){
  .pmvp-public-shell .pmvp-event-layout { grid-template-columns:1fr; }
}

@media(max-width:720px){
  body.pmvp-public-shell .main-content { width:100%; padding:10px 10px 28px; }
  .pmvp-public-header { padding:4px 2px 9px; }
  .pmvp-public-header .btn { min-height:32px; padding:5px 9px; font-size:.68rem; }
  .pmvp-public-shell .pmvp-hero { gap:14px; padding:16px; }
  .pmvp-public-shell .pmvp-hero h2 { font-size:1.25rem; }
  .pmvp-public-shell .pmvp-hero p { font-size:.78rem; line-height:1.55; }
  .pmvp-public-shell .pmvp-quick-steps { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:none; gap:6px; }
  .pmvp-public-shell .pmvp-step { min-height:76px; padding:9px; }
  .pmvp-public-shell .pmvp-step strong { margin-top:7px; font-size:.76rem; }
  .pmvp-public-shell .pmvp-step small { display:none; }
  .pmvp-public-shell .pmvp-card { padding:14px; }
  .pmvp-data-privacy { align-items:stretch; flex-direction:column; gap:9px; }
  .pmvp-data-privacy .btn { width:100%; }
  .pmvp-pilot-funnel { grid-template-columns:1fr; align-items:stretch; }
  .pmvp-pilot-funnel-stages { grid-template-columns:repeat(5,minmax(54px,1fr)); overflow-x:auto; }
  .pmvp-pilot-funnel>.btn { width:100%; }
  .pmvp-public-shell .pmvp-event-table table { min-width:0; table-layout:fixed; font-size:.7rem; }
  .pmvp-public-shell .pmvp-event-table th,
  .pmvp-public-shell .pmvp-event-table td { padding:8px 6px; overflow-wrap:anywhere; }
  .pmvp-public-shell .pmvp-event-table th:nth-child(4),
  .pmvp-public-shell .pmvp-event-table td:nth-child(4),
  .pmvp-public-shell .pmvp-event-table th:nth-child(6),
  .pmvp-public-shell .pmvp-event-table td:nth-child(6) { display:none; }
  .pmvp-public-shell .pmvp-event-table th:nth-child(1),
  .pmvp-public-shell .pmvp-event-table td:nth-child(1) { width:22%; }
  .pmvp-public-shell .pmvp-event-table th:nth-child(2),
  .pmvp-public-shell .pmvp-event-table td:nth-child(2) { width:40%; }
  .pmvp-public-shell .pmvp-event-table th:nth-child(3),
  .pmvp-public-shell .pmvp-event-table td:nth-child(3) { width:16%; }
  .pmvp-public-shell .pmvp-event-table th:nth-child(5),
  .pmvp-public-shell .pmvp-event-table td:nth-child(5) { width:22%; }
}

/* 整改闭环：业务动作驱动状态，表单保持紧凑。 */
.ft-flow-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#172033}.ft-flow-head strong{font-size:.84rem}.ft-flow-head span{color:#718096;font-size:.68rem}.ft-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:12px 0;border-top:1px solid #edf1f6}.ft-step-index{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd5e1;border-radius:50%;color:#64748b;background:#fff;font-size:.66rem;font-weight:800}.ft-step.is-current .ft-step-index{border-color:#2563eb;background:#2563eb;color:#fff}.ft-step.is-done .ft-step-index{border-color:#15803d;background:#f0fdf4;color:#15803d}.ft-step-body{min-width:0}.ft-step-title{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px}.ft-step-title strong{font-size:.76rem;color:#172033}.ft-step-title span{font-size:.64rem;font-weight:700;color:#64748b}.ft-record{margin-top:7px;padding:8px 10px;border-left:3px solid #cbd5e1;background:#f8fafc}.ft-record p{margin:0;color:#334155;font-size:.72rem;line-height:1.6;white-space:pre-wrap}.ft-record span{display:block;margin-top:4px;color:#718096;font-size:.62rem}.ft-editor,.ft-risk-accept{margin-top:8px}.ft-editor>summary,.ft-risk-accept>summary{color:#2563eb;font-size:.68rem;font-weight:700;cursor:pointer}.ft-plan-form,.ft-completion-form,.ft-verify-form,.ft-risk-form{display:grid;gap:8px;margin-top:8px;padding:10px;border:1px solid #dfe7f1;border-radius:6px;background:#fbfcfe}.ft-plan-form label,.ft-completion-form label,.ft-verify-form label,.ft-risk-form label{display:grid;gap:4px;color:#475569;font-size:.64rem;font-weight:700}.ft-plan-form input,.ft-plan-form textarea,.ft-completion-form textarea,.ft-verify-form input,.ft-verify-form select,.ft-verify-form textarea,.ft-risk-form input,.ft-risk-form textarea{width:100%;box-sizing:border-box;border:1px solid #d7e0ec;border-radius:5px;background:#fff;color:#172033;padding:7px 8px;font:500 .7rem inherit}.ft-plan-form textarea,.ft-completion-form textarea,.ft-verify-form textarea,.ft-risk-form textarea{resize:vertical}.ft-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ft-upload-row{display:flex;align-items:center;gap:10px}.ft-upload-row span{color:#718096;font-size:.62rem}.ft-att-upload-label{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 10px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#334155;font-size:.67rem;font-weight:700;cursor:pointer}.ft-att-list{display:grid;gap:5px;margin-top:8px}.ft-att-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:6px 8px;border:1px solid #e2e8f0;border-radius:5px;background:#fff}.ft-att-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334155;font-size:.68rem}.ft-att-size{color:#94a3b8;font-size:.6rem}.ft-risk-accept{padding-top:8px;border-top:1px dashed #dbe3ed}.ft-risk-accept>summary{color:#64748b}.ft-remediation-gate{display:grid;gap:3px;margin-bottom:10px;padding:9px 10px;border-left:3px solid #d97706;background:#fffbeb;color:#92400e}.ft-remediation-gate strong{font-size:.72rem}.ft-remediation-gate span{font-size:.64rem;line-height:1.5}
.ft-att-actions{position:relative}.ft-att-actions>summary{list-style:none;color:#64748b;font-size:.64rem;font-weight:700;cursor:pointer}.ft-att-actions>summary::-webkit-details-marker{display:none}.ft-att-actions[open] .ft-att-download{margin-top:5px;white-space:nowrap}.ft-inline-notice{margin:0 0 10px;padding:9px 11px;border-left:3px solid #2563eb;background:#eff6ff;color:#1e3a8a;font-size:.7rem;line-height:1.5}.ft-inline-notice-error{border-left-color:#dc2626;background:#fef2f2;color:#991b1b}.ft-inline-notice-warning{border-left-color:#d97706;background:#fffbeb;color:#92400e}
@media(max-width:700px){.ft-flow-head{align-items:flex-start;flex-direction:column}.ft-form-row{grid-template-columns:1fr}.ft-step{grid-template-columns:24px minmax(0,1fr);gap:8px}.ft-plan-form,.ft-completion-form,.ft-verify-form,.ft-risk-form{padding:8px}}

/* 跨项目整改监督队列 */
.dash-rem-worklist{margin-top:14px;border:1px solid #dfe6ef;border-radius:8px;background:#fff;overflow:hidden}.dash-rem-work-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #e8edf3}.dash-rem-work-head>div{display:grid;gap:3px}.dash-rem-work-head span{color:#2563eb;font-size:.58rem;font-weight:900;letter-spacing:.08em}.dash-rem-work-head strong{color:#172033;font-size:.88rem}.dash-rem-work-head p{margin:0;color:#64748b;font-size:.68rem}.dash-rem-work-head button,.dash-rem-open{border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#334155;font:700 .66rem inherit;cursor:pointer}.dash-rem-work-head button{min-height:32px;padding:0 11px}.dash-rem-open{min-height:28px;padding:0 9px}.dash-rem-work-head button:hover,.dash-rem-open:hover{border-color:#2563eb;color:#1d4ed8}.dash-rem-work-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e8edf3;background:#f8fafc}.dash-rem-work-metrics span{display:flex;align-items:center;gap:7px;padding:9px 14px;border-right:1px solid #e8edf3;color:#64748b;font-size:.64rem}.dash-rem-work-metrics span:last-child{border-right:0}.dash-rem-work-metrics b{color:#172033;font-size:.84rem}.dash-rem-work-empty{display:grid;gap:3px;padding:18px 16px}.dash-rem-work-empty strong{color:#334155;font-size:.72rem}.dash-rem-work-empty span{color:#718096;font-size:.64rem}.dash-rem-work-table{display:grid}.dash-rem-work-row{display:grid;grid-template-columns:150px minmax(240px,1.5fr) minmax(150px,.8fr) 62px;align-items:center;gap:12px;min-height:54px;padding:8px 14px;border-bottom:1px solid #edf1f5}.dash-rem-work-row:last-child{border-bottom:0}.dash-rem-work-row>span{display:grid;gap:2px;min-width:0}.dash-rem-work-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334155;font-size:.69rem}.dash-rem-work-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718096;font-size:.59rem}.dash-rem-work-row em{width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:3px 6px;border-radius:4px;background:#f1f5f9;color:#475569;font-style:normal;font-size:.6rem;font-weight:800;white-space:nowrap}.dash-rem-work-row.tone-overdue em,.dash-rem-work-row.tone-risk-review em{background:#fef2f2;color:#b91c1c}.dash-rem-work-row.tone-verification em{background:#eff6ff;color:#1d4ed8}.dash-rem-work-row.tone-returned em{background:#fff7ed;color:#c2410c}.dash-rem-work-row.tone-due-soon em{background:#fffbeb;color:#a16207}.dash-rem-work-row.is-head{min-height:34px;background:#fbfcfe;color:#64748b;font-size:.6rem;font-weight:800}.dash-rem-work-row.is-head span{display:block}.dash-rem-work-row.is-head+div:hover{background:#fbfdff}
@media(max-width:760px){.dash-rem-work-head{align-items:stretch;flex-direction:column}.dash-rem-work-head button{align-self:flex-start}.dash-rem-work-metrics{grid-template-columns:repeat(2,1fr)}.dash-rem-work-metrics span:nth-child(2){border-right:0}.dash-rem-work-row{grid-template-columns:1fr auto;gap:6px 10px;padding:10px 12px}.dash-rem-work-row.is-head{display:none}.dash-rem-work-row>span:nth-child(2){grid-column:1;grid-row:1}.dash-rem-work-row>span:nth-child(1){grid-column:1;grid-row:2}.dash-rem-work-row>span:nth-child(3){grid-column:1;grid-row:3}.dash-rem-work-row>span:nth-child(4){grid-column:2;grid-row:1/4}}
.dash-rem-work-row:not(.is-head):hover{background:#fbfdff}
.dash-risk-worklist{border-color:#dbeafe;background:linear-gradient(180deg,#fff,#f8fbff)}
.dash-risk-worklist .dash-rem-work-head span{color:#4f46e5}
.dash-risk-work-metrics span:first-child b{color:#d97706}.dash-risk-work-metrics span:nth-child(2) b{color:#dc2626}.dash-risk-work-metrics span:nth-child(3) b{color:#2563eb}.dash-risk-work-metrics span:nth-child(4) b{color:#7c3aed}
.dash-risk-work-row.tone-risk-overdue em{background:#fef2f2;color:#b91c1c}.dash-risk-work-row.tone-risk-supplement em{background:#fffbeb;color:#a16207}.dash-risk-work-row.tone-risk-finding em{background:#fef2f2;color:#dc2626}.dash-risk-work-row.tone-risk-judgment em{background:#eff6ff;color:#1d4ed8}.dash-risk-work-row.tone-risk-assignment em{background:#f5f3ff;color:#6d28d9}.dash-risk-work-row.tone-risk-model em{background:#f1f5f9;color:#475569}.dash-risk-work-row.tone-risk-workpaper em{background:#ecfdf5;color:#047857}
html[data-theme="dark"] .dash-risk-worklist{border-color:#314158;background:#172235}
.dash-management-detail-grid .dash-risk-worklist{grid-column:1/-1;margin-top:0}
.ft-plan-form label.ft-inline-check{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 9px;border:1px solid #d7e0ec;border-radius:5px;background:#fff}.ft-plan-form label.ft-inline-check input{width:15px;height:15px;margin:0;accent-color:#2563eb}.dash-rem-work-actions{display:flex;align-items:center;gap:7px}.dash-rem-analysis{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e8edf3}.dash-rem-analysis>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-height:42px;padding:8px 14px;border-right:1px solid #e8edf3}.dash-rem-analysis>div:last-child{border-right:0}.dash-rem-analysis strong{color:#334155;font-size:.65rem}.dash-rem-analysis span{color:#64748b;font-size:.61rem}.dash-rem-analysis b{color:#172033;font-size:.68rem}
@media(max-width:760px){.dash-rem-work-actions{align-items:stretch;flex-direction:column}.dash-rem-work-actions button{width:100%}.dash-rem-analysis{grid-template-columns:1fr}.dash-rem-analysis>div{border-right:0;border-bottom:1px solid #e8edf3}.dash-rem-analysis>div:last-child{border-bottom:0}}
.project-quality-content{margin:0 0 18px}.pq-summary{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:center;gap:18px;padding:16px 18px;border:1px solid #d9e2ef;border-left:4px solid #d18b20;background:#fff}.pq-state-blocked{border-left-color:#c33f3f}.pq-state-ready{border-left-color:#21835b}.pq-summary-main{display:flex;align-items:center;gap:14px;min-width:0}.pq-kicker{font-size:10px;font-weight:800;color:#315fd6;letter-spacing:1.4px;white-space:nowrap}.pq-summary-main strong{font-size:16px;color:#13213a}.pq-summary-main p{margin:3px 0 0;color:#66758d;font-size:13px}.pq-counts{display:flex;align-items:center;gap:14px;white-space:nowrap}.pq-counts span{font-size:12px;color:#617088}.pq-counts b{font-size:17px;margin-right:3px}.pq-counts .fail b{color:#b83232}.pq-counts .warning b{color:#b67512}.pq-counts .pass b{color:#16734d}.pq-actions{display:flex;gap:8px}.pq-groups{border:1px solid #d9e2ef;border-top:0;background:#fff}.pq-group{display:grid;grid-template-columns:150px minmax(0,1fr);border-top:1px solid #e7edf5}.pq-group:first-child{border-top:0}.pq-group h3{margin:0;padding:17px 18px;font-size:13px;color:#41516b;background:#f7f9fc}.pq-checks{min-width:0}.pq-check{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px 16px;border-bottom:1px solid #edf1f6}.pq-check:last-child{border-bottom:0}.pq-badge{display:inline-flex;justify-content:center;align-items:center;min-height:24px;padding:2px 7px;border-radius:4px;font-size:11px;font-weight:700}.pq-fail .pq-badge{color:#a52929;background:#fde8e8}.pq-warning .pq-badge{color:#94610b;background:#fff2d8}.pq-pass .pq-badge{color:#126744;background:#e5f6ed}.pq-check-copy{min-width:0}.pq-check-copy strong{display:block;color:#17243a;font-size:14px}.pq-check-copy p{margin:4px 0 0;color:#65748b;font-size:13px;line-height:1.55}.pq-check-copy small{display:block;margin-top:5px;color:#3f4f68;font-size:12px}.pq-go{border:0;background:transparent;color:#315fd6;font-size:12px;font-weight:700;cursor:pointer;padding:4px 0}.pq-go:hover{text-decoration:underline}.pq-all-clear,.pq-empty{padding:16px 18px;border:1px solid #d9e2ef;border-top:0;background:#fff;color:#52627a;font-size:13px}@media(max-width:900px){.pq-summary{grid-template-columns:1fr}.pq-counts{justify-content:flex-start}.pq-actions{justify-content:flex-start}.pq-group{grid-template-columns:1fr}.pq-group h3{padding:11px 16px}.pq-check{grid-template-columns:48px minmax(0,1fr)}.pq-go{grid-column:2;justify-self:start}}
.pq-review{display:grid;grid-template-columns:130px minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 18px;border:1px solid #d9e2ef;border-top:0;background:#f9fbfd}.pq-review-state span{display:block;color:#718198;font-size:11px}.pq-review-state strong{display:block;margin-top:2px;color:#26364f;font-size:14px}.pq-review-approved .pq-review-state strong{color:#16734d}.pq-review-conditional .pq-review-state strong,.pq-review-pending .pq-review-state strong{color:#9a670e}.pq-review-returned .pq-review-state strong,.pq-review-stale .pq-review-state strong{color:#b83232}.pq-review-detail{min-width:0}.pq-review-detail span,.pq-review-detail small{display:block;color:#607087;font-size:12px;line-height:1.5}.pq-review-detail small{margin-top:2px;color:#3f4f68}.pq-review-actions{display:flex;align-items:center;gap:10px}.pq-review-actions>small{color:#7b899d;font-size:11px;white-space:nowrap}.pq-sign-box{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(280px,1.2fr) auto;gap:16px;align-items:center;padding:15px 18px;border:1px solid #cbd7e6;border-top:0;background:#f4f7fb}.pq-sign-box strong{font-size:13px;color:#1c2b42}.pq-sign-box p{margin:4px 0 0;color:#65748b;font-size:12px;line-height:1.45}.pq-sign-box textarea{width:100%;min-height:66px;resize:vertical;border:1px solid #cbd5e1;border-radius:4px;padding:9px 10px;font:inherit;font-size:12px;background:#fff}.pq-sign-actions{display:flex;gap:8px}@media(max-width:900px){.pq-review{grid-template-columns:1fr}.pq-review-actions{justify-content:space-between}.pq-sign-box,.pq-handoff-desk{grid-template-columns:1fr}.pq-handoff-list{border-right:0;border-bottom:1px solid #dbeafe}.pq-handoff-current dl{grid-template-columns:repeat(2,minmax(0,1fr))}.pq-sign-actions{justify-content:flex-end}}
.pq-decision{display:grid;grid-template-columns:minmax(300px,1fr) auto;gap:16px;padding:18px;border:1px solid #d9e2ef;border-top:0;background:linear-gradient(135deg,#fff,#f8fbff)}.pq-decision-main span{display:block;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.08em}.pq-decision-main h3{margin:5px 0;color:#102033;font-size:22px;line-height:1.28}.pq-decision-main p{margin:0;color:#52637a;font-size:15px;line-height:1.65}.pq-decision-side{display:grid;align-content:start;justify-items:end;gap:10px}.pq-decision-side b{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px}.pq-decision-blocked .pq-decision-side b{background:#fef2f2;color:#b91c1c}.pq-decision-attention .pq-decision-side b{background:#fffbeb;color:#a16207}.pq-decision-archive .pq-decision-side b,.pq-decision-archived .pq-decision-side b{background:#ecfdf5;color:#047857}.pq-decision-rail{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pq-decision-rail article{padding:13px 14px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.pq-decision-rail i{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eff6ff;color:#2563eb;font-style:normal;font-size:11px;font-weight:950}.pq-decision-rail strong{display:block;margin-top:8px;color:#0f172a;font-size:15px}.pq-decision-rail small{display:block;margin-top:5px;color:#64748b;font-size:13px;line-height:1.45}.pq-decision-worklist{grid-column:1/-1;display:grid;grid-template-columns:170px repeat(4,minmax(0,1fr));gap:8px;align-items:stretch}.pq-decision-worklist>strong{display:grid;align-items:center;padding:10px 12px;border-radius:11px;background:#f1f5f9;color:#334155;font-size:13px}.pq-decision-worklist button{display:grid;gap:4px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;text-align:left;cursor:pointer}.pq-decision-worklist span{color:#b45309;font-size:12px;font-weight:900}.pq-decision-worklist em{color:#172033;font-size:13px;font-style:normal;font-weight:800;line-height:1.35}
.pq-handoff-desk{grid-column:1/-1;display:grid;grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);border:1px solid #dbeafe;border-radius:16px;background:#fff;overflow:hidden}.pq-handoff-list{display:grid;align-content:start;gap:8px;padding:13px;border-right:1px solid #dbeafe;background:#f8fbff}.pq-handoff-list>span,.pq-handoff-current span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.08em}.pq-handoff-list>strong{color:#0f172a;font-size:18px;line-height:1.25}.pq-handoff-item{display:grid;gap:4px;width:100%;padding:10px 11px;border:1px solid #e2e8f0;border-left:4px solid #f59e0b;border-radius:12px;background:#fff;text-align:left;cursor:pointer;font-family:inherit}.pq-handoff-item:hover{border-color:#93c5fd;box-shadow:0 8px 18px rgba(37,99,235,.08)}.pq-handoff-item.active{background:#eff6ff;border-color:#2563eb}.pq-handoff-item.fail{border-left-color:#dc2626}.pq-handoff-item.warning{border-left-color:#f59e0b}.pq-handoff-item.sign{border-left-color:#2563eb}.pq-handoff-item.archive,.pq-handoff-item.archived{border-left-color:#16a34a}.pq-handoff-item b{justify-self:start;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px}.pq-handoff-item.fail b{background:#fee2e2;color:#b91c1c}.pq-handoff-item.warning b{background:#ffedd5;color:#c2410c}.pq-handoff-item.archive b,.pq-handoff-item.archived b{background:#dcfce7;color:#15803d}.pq-handoff-item strong{color:#0f172a;font-size:14px;line-height:1.35}.pq-handoff-item small{color:#64748b;font-size:12px;line-height:1.45}.pq-handoff-current{display:grid;gap:12px;padding:14px 16px}.pq-handoff-current h4{margin:4px 0 0;color:#0f172a;font-size:21px;line-height:1.25}.pq-handoff-current p{margin:5px 0 0;color:#52637a;font-size:14px;line-height:1.5}.pq-handoff-current dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.pq-handoff-current dl div{padding:9px 10px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff}.pq-handoff-current dt{margin:0;color:#0f172a;font-size:18px;font-weight:950;line-height:1.1}.pq-handoff-current dd{margin:4px 0 0;color:#64748b;font-size:12px;font-weight:850}.pq-handoff-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.qa-source-quality{margin:0 0 12px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#fff);overflow:hidden}.qa-source-quality>div{padding:14px 16px;border-bottom:1px solid #dbeafe}.qa-source-quality span{display:block;color:#2563eb;font-size:13px;font-weight:950}.qa-source-quality strong{display:block;margin-top:5px;color:#0f172a;font-size:16px}.qa-source-quality p{margin:5px 0 0;color:#52637a;font-size:14px!important;line-height:1.6}.qa-source-quality dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;background:#fff}.qa-source-quality dl div{padding:12px 14px;border-right:1px solid #e2e8f0}.qa-source-quality dl div:last-child{border-right:0}.qa-source-quality dt{color:#64748b;font-size:12px;font-weight:850}.qa-source-quality dd{margin:4px 0 0;color:#1d4ed8;font-size:22px;font-weight:950;line-height:1}.qa-source-quality-next{padding:12px 16px;border-top:1px solid #e2e8f0;background:#f8fafc}
.pra-field-status{display:block;margin-top:6px;color:#047857;font-size:13px;font-weight:850;line-height:1.45}.pra-field textarea.is-ready,.pra-field input.is-ready{border-color:#86efac!important;box-shadow:0 0 0 3px rgba(34,197,94,.12)}
.view.active,.form-card,.section,.card,.modal,.qa-msg-content,.toolbox-page,.pra-project-baseline,.wpm-package-desk{font-size:16px}.btn.btn-sm{font-size:14px;min-height:34px}
.ad-shell{margin:0 0 18px;border:1px solid #ccd8e5;border-top:3px solid #315f87;background:#fff}.ad-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid #e0e7ef}.ad-head>div>span{display:block;color:#376287;font-size:10px;font-weight:900;letter-spacing:1.3px}.ad-head strong{display:block;margin-top:4px;color:#17364f;font-size:16px}.ad-head p{margin:5px 0 0;color:#687b8d;font-size:12px}.ad-head>b{padding:5px 9px;font-size:11px;white-space:nowrap}.ad-head>b.valid{background:#e5f6ed;color:#126744}.ad-head>b.invalid{background:#fde8e8;color:#a52929}.ad-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;background:#f7f9fc}.ad-toolbar>div{display:flex;align-items:center;gap:8px;color:#607087;font-size:12px}.ad-toolbar>div:last-child{justify-content:flex-end}.ad-toolbar strong{color:#17364f;font-size:15px}.ad-toolbar span{margin-left:7px;color:#7b899d}.ad-errors{display:flex;gap:12px;padding:11px 18px;border-top:1px solid #f0d2d2;background:#fff2f2;color:#a52929;font-size:12px}.ad-catalog{border-top:1px solid #dfe6ee}.ad-section{display:grid;grid-template-columns:42px 220px minmax(0,1fr);align-items:start;border-bottom:1px solid #e7edf4}.ad-section:last-child{border-bottom:0}.ad-section>span{padding:14px 12px;color:#315f87;font-size:12px;font-weight:800}.ad-section>div{padding:13px 14px;border-left:1px solid #e7edf4;background:#f9fbfd}.ad-section>div strong,.ad-section>div small{display:block}.ad-section>div strong{color:#263a55;font-size:13px}.ad-section>div small{margin-top:3px;color:#8491a2;font-size:11px}.ad-section ul{list-style:none;margin:0;padding:8px 14px;border-left:1px solid #e7edf4}.ad-section li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;color:#607087;font-size:12px}.ad-section li b{color:#31445f;font-weight:600}.ad-section li span{color:#8190a3;white-space:nowrap}@media(max-width:900px){.ad-head,.ad-toolbar{align-items:stretch;flex-direction:column}.ad-toolbar>div:last-child{justify-content:flex-start;flex-wrap:wrap}.ad-section{grid-template-columns:40px minmax(0,1fr)}.ad-section ul{grid-column:1/-1;border-left:0;border-top:1px solid #edf1f5}.ad-section>div{border-left:1px solid #e7edf4}}
.sys-platform-status {
  display:grid;
  grid-template-columns:minmax(260px,1.2fr) minmax(360px,1fr) auto;
  align-items:center;
  gap:18px;
  margin-bottom:14px;
  padding:16px 18px;
  border:1px solid #d9e1ea;
  border-left:4px solid #64748b;
  background:#fff;
}
.sys-platform-status.is-connected { border-left-color:#18835b; }
.sys-platform-status>div:first-child>span { color:#3971a5; font-size:.62rem; font-weight:800; letter-spacing:.1em; }
.sys-platform-status h3 { margin:3px 0 0; color:#172033; font-size:.95rem; }
.sys-platform-status p { margin:5px 0 0; color:#64748b; font-size:.72rem; line-height:1.5; }
.sys-platform-facts { display:grid; grid-template-columns:repeat(4,minmax(86px,1fr)); border-left:1px solid #e2e8f0; }
.sys-platform-facts span { padding:3px 14px; border-right:1px solid #e2e8f0; }
.sys-platform-facts small,.sys-platform-facts strong { display:block; }
.sys-platform-facts small { color:#7b8da1; font-size:.61rem; }
.sys-platform-facts strong { margin-top:3px; color:#243247; font-size:.7rem; }
details.sys-platform-status{display:block!important;padding:0!important;margin-bottom:0}
details.sys-platform-status>.sys-platform-facts{margin:14px 18px;border:1px solid #e2e8f0}
details.sys-platform-status>#sys-platform-probe-btn,details.sys-platform-status>.btn{margin:0 18px 16px}
html[data-theme="dark"] .sys-platform-status { border-color:#334155; background:#172235; }
html[data-theme="dark"] .sys-platform-status h3,html[data-theme="dark"] .sys-platform-facts strong { color:#f1f5f9; }
html[data-theme="dark"] .sys-platform-status p,html[data-theme="dark"] .sys-platform-facts small { color:#9fb0c7; }
html[data-theme="dark"] .sys-platform-facts,html[data-theme="dark"] .sys-platform-facts span { border-color:#334155; }
@media (max-width:900px) {
  .sys-platform-status { grid-template-columns:1fr; align-items:start; }
  .sys-platform-facts { border-left:0; border-top:1px solid #e2e8f0; padding-top:10px; }
}
.wpm-att-local-note,
.wp-file-local-note {
  color: #64748b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.ap-readonly-note {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 2rem;
}

/* Risk assessment v2: project sources, review gate and formal status */
.pra-material-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
}
.pra-material-source-head strong,
.pra-material-source-head span { display: block; }
.pra-material-source-head strong { color: #172033; font-size: .8rem; }
.pra-material-source-head span { margin-top: 4px; color: #64748b; font-size: .7rem; line-height: 1.5; }
.pra-material-sources {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #dbe4ef;
  border-top: 0;
}
.pra-material-option {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 12px;
  border-bottom: 1px solid #e8edf4;
  background: #fff;
  cursor: pointer;
}
.pra-material-option:last-child { border-bottom: 0; }
.pra-material-option input { width: 16px; height: 16px; }
.pra-material-option strong,
.pra-material-option small { display: block; }
.pra-material-option strong { color: #243247; font-size: .76rem; }
.pra-material-option small { margin-top: 3px; color: #718096; font-size: .66rem; }
.pra-material-option em { color: #187455; font-size: .64rem; font-style: normal; font-weight: 800; }
.pra-material-option.is-unavailable { cursor: default; opacity: .62; }
.pra-material-option.is-unavailable em { color: #8a5a18; }
.pra-material-empty { padding: 16px; background: #fff; }
.pra-material-empty strong,
.pra-material-empty span { display: block; }
.pra-material-empty strong { color: #334155; font-size: .78rem; }
.pra-material-empty span { margin-top: 4px; color: #64748b; font-size: .7rem; line-height: 1.5; }
.pra-status-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #b7791f;
  background: #fffbeb;
}
.pra-status-note.is-reviewed { border-left-color: #18835b; background: #f0fdf4; }
.pra-status-note strong { color: #27364b; font-size: .78rem; }
.pra-status-note span { color: #64748b; font-size: .72rem; line-height: 1.5; }
.pra-source-materials>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #dce5f0; border-left: 1px solid #dce5f0; }
.pra-source-materials article { padding: 10px 12px; border-right: 1px solid #dce5f0; border-bottom: 1px solid #dce5f0; background: #fff; }
.pra-source-materials strong,
.pra-source-materials span { display: block; }
.pra-source-materials strong { color: #27364b; font-size: .74rem; }
.pra-source-materials span { margin-top: 4px; color: #718096; font-size: .65rem; }
.rwp-panel { grid-template-columns: minmax(260px,1fr) auto minmax(300px,auto); border-radius: 8px; background: #f8fafc; }
.rwp-panel.is-reviewed { border-left: 4px solid #18835b; }
.rwp-review-card { border-radius: 8px; }
.rwp-review-title strong{font-size:16px;}
.rwp-review-title span{font-size:14px;}
.rwp-grid label,.rwp-source-picker-head strong,.rwp-professional-refs summary strong{font-size:14px;}
.rwp-grid select,.rwp-grid textarea{font-size:14px;}
.rwp-validation { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid #dce5f0; color: #9a5b13; font-size: .7rem; }
.rwp-validation.is-ready { color: #187455; }
.rwp-source-note { padding: 9px 10px; border-left: 3px solid #4f7fea; background: #f5f8ff; }
.rwp-source-note strong,
.rwp-source-note span { display: block; }
.rwp-source-note strong { color: #334155; font-size: .68rem; }
.rwp-source-note span { margin-top: 4px; color: #64748b; font-size: .68rem; line-height: 1.5; }
.rwp-source-picker,
.rwp-professional-refs { padding: 10px; border: 1px solid #dce5f0; background: #fbfdff; }
.rwp-source-picker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rwp-source-picker-head strong { color: #24344d; font-size: .72rem; }
.rwp-source-picker-head span { color: #718096; font-size: .66rem; font-weight: 500; text-align: right; }
.rwp-professional-refs > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.rwp-professional-refs > summary::-webkit-details-marker { display: none; }
.rwp-professional-refs > summary strong { color: #24344d; font-size: .72rem; }
.rwp-professional-refs > summary span { color: #5d7395; font-size: .65rem; font-weight: 700; }
.rwp-reference-boundary { margin: 8px 0; padding: 6px 8px; border-left: 3px solid #d6a847; background: #fffaf0; color: #765b24; font-size: .63rem; line-height: 1.5; }
.rwp-source-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.rwp-source-options label { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 7px; align-items: start; min-width: 0; padding: 7px 8px; border: 1px solid #e4eaf2; background: #fff; cursor: pointer; }
.rwp-source-options input { width: 14px; height: 14px; margin: 2px 0 0; }
.rwp-source-options span,
.rwp-source-options strong,
.rwp-source-options small { display: block; min-width: 0; }
.rwp-source-options strong { overflow-wrap: anywhere; color: #24344d; font-size: .68rem; }
.rwp-source-options small { margin-top: 2px; color: #718096; font-size: .62rem; font-weight: 500; }
.rwp-reference-list { display: grid; gap: 7px; }
.rwp-reference-list article { padding: 8px 9px; border-left: 3px solid #8ba7d9; background: #f5f8fc; }
.rwp-reference-list article > div { display: flex; align-items: center; gap: 7px; }
.rwp-reference-list em { flex: 0 0 auto; padding: 2px 5px; background: #e7eef9; color: #3d5f92; font-size: .58rem; font-style: normal; font-weight: 800; }
.rwp-reference-list a,
.rwp-reference-list strong { color: #24344d; font-size: .68rem; font-weight: 750; text-decoration: none; }
.rwp-reference-list a:hover { text-decoration: underline; }
.rwp-reference-list p { margin: 4px 0 0; color: #52647e; font-size: .65rem; line-height: 1.5; }
.rwp-reference-list small { display: block; margin-top: 3px; color: #7b8799; font-size: .61rem; line-height: 1.45; }
.rwp-professional-refs.is-empty { color: #64748b; font-size: .68rem; line-height: 1.55; }
.rwp-professional-refs.is-empty strong,
.rwp-professional-refs.is-empty span { display: block; }
.rwp-professional-refs.is-empty span { margin-top: 3px; }
html[data-theme="dark"] .pra-material-source-head,
html[data-theme="dark"] .pra-material-sources,
html[data-theme="dark"] .pra-material-option,
html[data-theme="dark"] .pra-material-empty,
html[data-theme="dark"] .pra-source-materials article,
html[data-theme="dark"] .rwp-source-note { background: #172235; border-color: #314158; }
html[data-theme="dark"] .rwp-source-picker,
html[data-theme="dark"] .rwp-professional-refs,
html[data-theme="dark"] .rwp-source-options label,
html[data-theme="dark"] .rwp-reference-list article { background: #172235; border-color: #314158; }
html[data-theme="dark"] .pra-method-guide,
html[data-theme="dark"] .pra-method-guide li,
html[data-theme="dark"] .pra-intel-boundary,
html[data-theme="dark"] .pra-intel-empty { background:#172235; border-color:#314158; }
html[data-theme="dark"] .pra-material-source-head strong,
html[data-theme="dark"] .pra-material-option strong,
html[data-theme="dark"] .pra-material-empty strong,
html[data-theme="dark"] .pra-source-materials strong,
html[data-theme="dark"] .rwp-source-note strong,
html[data-theme="dark"] .pra-method-guide h3,
html[data-theme="dark"] .pra-method-guide strong,
html[data-theme="dark"] .pra-intel-boundary strong,
html[data-theme="dark"] .pra-intel-empty strong { color: #e5edf8; }
html[data-theme="dark"] .rwp-source-picker-head strong,
html[data-theme="dark"] .rwp-professional-refs > summary strong,
html[data-theme="dark"] .rwp-source-options strong,
html[data-theme="dark"] .rwp-reference-list a,
html[data-theme="dark"] .rwp-reference-list strong { color: #e5edf8; }
@media (max-width: 980px) {
  .rwp-panel { grid-template-columns: 1fr; }
  .pra-source-materials>div { grid-template-columns: 1fr; }
  .rwp-source-options { grid-template-columns: 1fr; }
  .ic-scenario-strip { grid-template-columns: 1fr; }
  .ic-scenario-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .pra-material-source-head,
  .pra-status-note { align-items: stretch; flex-direction: column; }
  .pra-material-source-head .btn { width: 100%; }
  .ic-scenario-cards { grid-template-columns: 1fr; }
}

/* Project risk assessment v3: project baseline -> module -> item-by-item review */
#view-home .form-card::before {
  content: '审前风险与方案 · 风险评估';
  font-size: .78rem;
  letter-spacing: .04em;
}
#view-home .form-card > h2 { font-size: 1.65rem; }
#view-home .form-card > .form-desc { max-width: 980px; font-size: .92rem; }
.pra-project-gate {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid #cddcf0;
  border-left: 4px solid #315fd6;
  background: #f8fbff;
}
.pra-project-gate[hidden] { display: none; }
.pra-project-gate strong { color: #17243a; font-size: 1.05rem; }
.pra-project-gate span { color: #64748b; font-size: .86rem; }
.pra-project-gate .btn { grid-column: 2; grid-row: 1 / span 2; }
.pra-project-baseline {
  display: grid;
  grid-template-columns: minmax(220px,.72fr) minmax(0,1.8fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #d7e2ef;
  border-left: 4px solid #21835b;
  background: #f8fbfa;
}
.pra-baseline-title span,.pra-active-module>span,.pra-section-head span { color: #315fd6; font-size: .72rem; font-weight: 800; }
.pra-baseline-title h3,.pra-active-module h3,.pra-section-head h3 { margin: 4px 0 0; color: #17243a; font-size: 1.12rem; }
.pra-section-head p { max-width: 760px; margin: 6px 0 0; color: #64748b; font-size: .9rem; line-height: 1.6; }
.pra-project-baseline dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; }
.pra-project-baseline dl>div { min-width: 0; padding: 3px 15px; border-left: 1px solid #dce5ec; }
.pra-project-baseline dt { color: #75849a; font-size: .72rem; }
.pra-project-baseline dd { overflow: hidden; margin: 5px 0 0; color: #26364f; font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pra-planning-layout { display: grid; grid-template-columns: minmax(260px,320px) minmax(0,1fr); gap: 18px; align-items: start; }
.pra-method-guide { display:grid; grid-template-columns:minmax(240px,.78fr) minmax(0,1.4fr); gap:18px; align-items:stretch; margin:0 0 18px; padding:18px 20px; border:1px solid #c7d9f2; border-radius:14px; background:linear-gradient(135deg,#f8fbff 0%,#eef6ff 100%); }
.pra-method-guide>div span { display:block; color:#2563eb; font-size:13px; font-weight:850; letter-spacing:.06em; }
.pra-method-guide h3 { margin:5px 0; color:#17243a; font-size:22px; line-height:1.25; }
.pra-method-guide p { margin:0; color:#52637a; font-size:15px; line-height:1.65; }
.pra-method-guide ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
.pra-method-guide li { min-width:0; padding:12px 13px; border:1px solid #dbeafe; border-radius:12px; background:#fff; }
.pra-method-guide b { display:grid; place-items:center; width:28px; height:28px; margin-bottom:8px; border-radius:999px; background:#2563eb; color:#fff; font-size:13px; }
.pra-method-guide strong { display:block; color:#17243a; font-size:15px; }
.pra-method-guide small { display:block; margin-top:5px; color:#64748b; font-size:13px; line-height:1.45; }
.pra-module-panel,.pra-module-workarea { border: 1px solid #d7e2ef; background: #fff; }
.pra-module-panel { padding: 16px; }
.pra-module-workarea { padding: 20px; }
.pra-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pra-section-head small { max-width: 150px; color: #718096; font-size: .72rem; line-height: 1.45; text-align: right; }
.pra-module-list { display: grid; gap: 8px; margin-top: 14px; }
.pra-module-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 62px; padding: 11px 12px; border: 1px solid #dce5ef; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.pra-module-card:hover { border-color: #9cb7e9; background: #f8fbff; }
.pra-module-card.is-active { border-color: #315fd6; box-shadow: inset 3px 0 #315fd6; background: #f2f6ff; }
.pra-module-card strong,.pra-module-card small { display: block; }
.pra-module-card strong { color: #22334e; font-size: .9rem; }
.pra-module-card small { margin-top: 4px; color: #718096; font-size: .72rem; }
.pra-module-card em { padding: 3px 6px; background: #f1f5f9; color: #66758c; font-size: .68rem; font-style: normal; font-weight: 700; }
.pra-module-card em.reviewed { background: #e7f7ef; color: #16734d; }
.pra-module-card em.draft { background: #fff3dc; color: #94610b; }
.pra-active-module { padding-bottom: 16px; border-bottom: 1px solid #e5ebf2; }
.pra-active-module p { margin: 7px 0 0; color: #64748b; font-size: .84rem; line-height: 1.6; }
.pra-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.pra-field { display: grid; gap: 7px; color: #3d4d65; font-size: .82rem; font-weight: 700; }
.pra-field.pra-full { grid-column: 1 / -1; }
.pra-field input,.pra-field textarea { width: 100%; border: 1px solid #ccd8e6; border-radius: 6px; background: #fff; color: #17243a; font: 400 .9rem/1.55 inherit; }
.pra-field input { min-height: 42px; padding: 8px 11px; }
.pra-field textarea { min-height: 76px; padding: 10px 11px; resize: vertical; }
.pra-field input:focus,.pra-field textarea:focus { outline: none; border-color: #6388e3; box-shadow: 0 0 0 3px rgba(49,95,214,.1); }
.pra-field input.is-invalid,.pra-field textarea.is-invalid { border-color:#dc2626; background:#fffafa; box-shadow:0 0 0 3px rgba(220,38,38,.08); }
.pra-field-error { color:#b91c1c; font-size:.76rem; font-weight:650; line-height:1.45; }
.pra-source-summary,.pra-primary-action { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 16px; padding: 14px 16px; border: 1px solid #dce5ef; background: #f8fafc; }
.pra-source-summary strong,.pra-source-summary span,.pra-primary-action strong,.pra-primary-action span { display: block; }
.pra-source-summary strong,.pra-primary-action strong { color: #26364f; font-size: .86rem; }
.pra-source-summary span,.pra-primary-action span { margin-top: 3px; color: #6b7a90; font-size: .76rem; line-height: 1.5; }
.pra-candidate-preview { margin-top: 16px; padding: 18px; border: 1px solid #cad9ec; border-radius:10px; background:#fbfdff; }
.pra-candidate-preview .pra-section-head { margin-bottom: 10px; }
.pra-candidate-preview .pra-section-head h3 { font-size:1.2rem; }
.pra-intel-boundary,.pra-intel-empty { display:grid; gap:4px; padding:12px 13px; border:1px solid #bfdbfe; border-radius:10px; background:#eff6ff; }
.pra-intel-boundary strong,.pra-intel-empty strong { color:#1e3a8a; font-size:15px; }
.pra-intel-boundary span,.pra-intel-empty span { color:#334155; font-size:14px; line-height:1.55; }
.pra-primary-action { border-color: #bfd0ef; background: #f2f6ff; }
.pra-primary-action .btn { min-height: 42px; padding: 0 18px; font-size: .86rem; }
.rwp-review-title strong { font-size: .96rem; }
.rwp-review-title span,.rwp-grid label { font-size: .8rem; }
.rwp-grid select { height: 40px; font-size: .82rem; }
.rwp-grid textarea { min-height: 72px; font-size: .82rem; }
@media(max-width:1100px){.pra-project-baseline,.pra-method-guide{grid-template-columns:1fr}.pra-method-guide ol{grid-template-columns:repeat(2,minmax(0,1fr))}.pra-project-baseline dl{grid-template-columns:repeat(2,minmax(0,1fr))}.pra-planning-layout{grid-template-columns:1fr}.pra-module-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pra-project-gate{grid-template-columns:1fr}.pra-project-gate .btn{grid-column:auto;grid-row:auto}.pra-project-baseline dl,.pra-method-guide ol{grid-template-columns:1fr}.pra-project-baseline dl>div{padding:8px 0;border-left:0;border-top:1px solid #dce5ec}.pra-module-list,.pra-form-grid,.pra-risk-intel-group>div:last-child{grid-template-columns:1fr}.pra-risk-intel-head,.pra-source-summary,.pra-primary-action{align-items:stretch;flex-direction:column}.pra-risk-intel-head small{text-align:left}.pra-source-summary .btn,.pra-primary-action .btn{width:100%}}

/* Large desktop workspace: use the available audit desk width instead of centering a narrow canvas. */
@media (min-width: 769px) {
  .project-toolbar,
  .breadcrumb,
  .main-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .project-bar-inner {
    max-width: none;
  }
}

/* 审计台账：清单编制优先，收件跟踪后置 */
.pmat-ledger-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 12px!important;
  padding:4px 2px 12px!important;
  border-bottom:1px solid #dbe3ef!important;
}
.pmat-ledger-toolbar>div:last-child{
  display:flex!important;
  gap:8px!important;
}
.pmat-ledger-toolbar span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pmat-ledger-toolbar h2,
.pmat-ledger-toolbar strong{
  display:block!important;
  margin:2px 0!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.25!important;
}
.pmat-ledger-toolbar p,
.pmat-ledger-toolbar small{
  display:block!important;
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
}
.pmat-clean-page .pmat-ledger-mainline{
  grid-template-columns:minmax(0,1.5fr) minmax(360px,.8fr)!important;
  gap:12px!important;
  align-items:start!important;
}
.pmat-clean-page .pmat-ledger-mainline .pmat-ledger{
  min-height:520px!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.pmat-clean-page .pmat-list-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 14px!important;
  border-bottom:1px solid #e6edf5!important;
}
.pmat-clean-page .pmat-list-head strong{
  display:block!important;
  color:#0f172a!important;
  font-size:17px!important;
}
.pmat-clean-page .pmat-list-head span{
  display:block!important;
  margin-top:2px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.pmat-clean-page .pmat-list-head small{
  color:#475569!important;
  font-size:13px!important;
}
.pmat-clean-page .pmat-ledger-filters{
  padding:10px 12px!important;
  border-bottom:1px solid #eef2f7!important;
}
.pmat-clean-page .pmat-ledger-filters label{
  gap:0!important;
}
.pmat-clean-page .pmat-composer-table{
  min-width:0!important;
}
.pmat-clean-page .pmat-composer-table th,
.pmat-clean-page .pmat-composer-table td{
  padding:10px 9px!important;
  vertical-align:middle!important;
}
.pmat-clean-page .pmat-composer-table th:first-child,
.pmat-clean-page .pmat-composer-table td:first-child{
  width:70px!important;
}
.pmat-order-cell{
  white-space:nowrap!important;
}
.pmat-order-cell button,
.pmat-compose-actions button{
  min-width:30px!important;
  min-height:30px!important;
  padding:0 8px!important;
  border:1px solid #dbe3ef!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#334155!important;
  cursor:pointer!important;
}
.pmat-order-cell button+button,
.pmat-compose-actions button+button{
  margin-left:5px!important;
}
.pmat-compose-actions .is-danger{
  color:#b42318!important;
}
.pmat-clean-page .pmat-reference-primary{
  min-width:0!important;
  width:100%!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.pmat-clean-page .pmat-reference-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  grid-template-columns:none!important;
  gap:10px!important;
  padding:12px 14px!important;
  border-bottom:1px solid #e6edf5!important;
}
.pmat-clean-page .pmat-reference-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pmat-clean-page .pmat-reference-head h3{
  margin:2px 0 0!important;
  color:#0f172a!important;
  font-size:17px!important;
}
.pmat-clean-page .pmat-reference-filters{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  padding:12px!important;
}
.pmat-clean-page .pmat-reference-filters .is-wide{
  grid-column:1 / -1!important;
}
.pmat-clean-page .pmat-reference-filters label{
  display:grid!important;
  gap:4px!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:800!important;
}
.pmat-clean-page .pmat-reference-list{
  max-height:520px!important;
  padding:0 12px 12px!important;
  overflow:auto!important;
}
.pmat-clean-page .pmat-reference-list section{
  border-top:1px solid #eef2f7!important;
}
.pmat-clean-page .pmat-reference-list section>header{
  display:flex!important;
  justify-content:space-between!important;
  padding:10px 2px 6px!important;
}
.pmat-clean-page .pmat-reference-list section>header strong{
  color:#334155!important;
  font-size:13px!important;
}
.pmat-clean-page .pmat-reference-item{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:start!important;
  padding:9px 2px!important;
  border:0!important;
  border-top:1px solid #f1f5f9!important;
  background:transparent!important;
}
.pmat-clean-page .pmat-reference-item span{
  color:#1e293b!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.pmat-clean-page .pmat-reference-item small{
  padding:2px 6px!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#64748b!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
.pmat-composer-editor{
  margin:0 0 12px!important;
  box-shadow:none!important;
}
.pmat-editor-tracking{
  margin:10px 0 0!important;
  border-top:1px solid #e6edf5!important;
}
.pmat-editor-tracking>summary{
  padding:11px 0!important;
  color:#475569!important;
  font-size:13px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.pmat-tracking-panel{
  margin-top:12px!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.pmat-tracking-panel>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:12px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.pmat-tracking-panel>summary::-webkit-details-marker{
  display:none!important;
}
.pmat-tracking-panel>summary span,
.pmat-tracking-panel>summary strong,
.pmat-tracking-panel>summary small{
  display:block!important;
}
.pmat-tracking-panel>summary span{
  color:#64748b!important;
  font-size:11px!important;
  font-weight:900!important;
}
.pmat-tracking-panel>summary strong{
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:16px!important;
}
.pmat-tracking-panel>summary small{
  margin-top:2px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.pmat-tracking-panel>summary b{
  color:#475569!important;
  font-size:13px!important;
  white-space:nowrap!important;
}
.pmat-tracking-panel[open]>summary{
  border-bottom:1px solid #e6edf5!important;
}
.pmat-tracking-body{
  padding:12px!important;
}
.pmat-tracking-toolbar{
  display:flex!important;
  align-items:end!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:10px!important;
}
.pmat-tracking-toolbar label{
  display:grid!important;
  gap:4px!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:800!important;
}
@media(max-width:1100px){
  .pmat-clean-page .pmat-ledger-mainline{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:720px){
  .pmat-ledger-toolbar,
  .pmat-tracking-panel>summary,
  .pmat-tracking-toolbar{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  .pmat-ledger-toolbar>div:last-child{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 16px;
  }

  .project-toolbar,
  .breadcrumb,
  .main-content {
    padding-left: clamp(32px, 2.2vw, 56px);
    padding-right: clamp(32px, 2.2vw, 56px);
  }

  .main-content {
    padding-top: 18px;
  }
}
/* 端到端主流程控制：方案准入、问题沟通队列与报告遗漏提示 */
.at-program-gate{max-width:620px;margin:8px auto 18px;padding:14px 16px;border:1px solid #bae6fd;border-radius:12px;background:#f0f9ff;color:#0c4a6e;display:grid;gap:5px;text-align:left}
.at-program-gate strong{font-size:.92rem}.at-program-gate small{line-height:1.65;color:#0369a1}
.mi-workbench-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;border:1px solid #dbeafe;border-radius:20px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 16px 38px rgba(15,23,42,.05)}
.mi-workbench-hero span{display:block;color:#2563eb;font-size:.7rem;font-weight:950;letter-spacing:.16em}.mi-workbench-hero h2{margin:5px 0;color:#0f172a;font-size:1.8rem;line-height:1.16}.mi-workbench-hero p{margin:0;max-width:820px;color:#52637a;font-size:.9rem;line-height:1.7}
.mi-feedback-workbench{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.35fr);gap:16px;margin:18px 0}
.mi-feedback-priority-strip{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(150px,180px));align-items:center;gap:10px;padding:14px 16px;border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(120deg,#f8fbff,#fff);box-shadow:0 10px 26px rgba(37,99,235,.06)}
.mi-feedback-priority-strip div span{display:block;color:#2563eb;font-size:.66rem;font-weight:950;letter-spacing:.14em}.mi-feedback-priority-strip div strong{display:block;margin-top:3px;color:#0f172a;font-size:1rem}.mi-feedback-priority-strip div p{margin:5px 0 0;color:#52637a;font-size:.78rem;line-height:1.55}.mi-feedback-priority-pill{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:9px;min-height:54px;padding:10px 12px;border:1px solid #dbeafe;border-radius:13px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.mi-feedback-priority-pill:hover{transform:translateY(-1px);border-color:#60a5fa;box-shadow:0 12px 26px rgba(37,99,235,.12)}.mi-feedback-priority-pill strong{display:grid;place-items:center;min-width:34px;height:34px;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-size:1rem}.mi-feedback-priority-pill span{color:#334155;font-size:.78rem;font-weight:900}.mi-feedback-priority-pill.pending strong{background:#ffedd5;color:#c2410c}.mi-feedback-priority-pill.done strong{background:#dcfce7;color:#15803d}.mi-feedback-priority-pill.review strong{background:#fef3c7;color:#b45309}
.mi-feedback-queue,.mi-feedback-detail{border:1px solid #dbe7f4;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.05);overflow:hidden}
.mi-feedback-queue-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e2e8f0;background:#f8fbff}
.mi-feedback-queue-head span,.mi-feedback-detail-head span,.mi-feedback-current span{display:block;color:#2563eb;font-size:.64rem;font-weight:950;letter-spacing:.14em}.mi-feedback-queue-head strong{display:block;margin-top:4px;color:#0f172a;font-size:.95rem}.mi-feedback-queue-head b{display:grid;place-items:center;min-width:36px;height:28px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem}
.mi-feedback-list{display:grid;gap:8px;max-height:560px;overflow:auto;padding:12px}
.mi-feedback-item{display:grid;gap:5px;width:100%;padding:12px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.mi-feedback-item:hover{border-color:#93c5fd;background:#f8fbff}.mi-feedback-item.active{border-color:#2563eb;background:#eff6ff;box-shadow:inset 4px 0 #2563eb}.mi-feedback-item.done{border-color:#bbf7d0}.mi-feedback-item.pending{border-color:#fed7aa}.mi-feedback-item.is-action-focus{box-shadow:0 0 0 4px rgba(37,99,235,.16),inset 4px 0 #2563eb}.mi-feedback-item span{justify-self:start;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.6rem;font-weight:900}.mi-feedback-item.pending span{background:#ffedd5;color:#c2410c}.mi-feedback-item.done span{background:#dcfce7;color:#15803d}.mi-feedback-item strong{color:#0f172a;font-size:.82rem;line-height:1.35}.mi-feedback-item small{color:#64748b;font-size:.7rem;line-height:1.45}.mi-feedback-item em{justify-self:start;font-style:normal;padding:2px 7px;border-radius:999px;background:#f8fafc;color:#64748b;font-size:.62rem;font-weight:900}
.mi-feedback-empty,.mi-feedback-detail-empty{display:grid;place-items:center;align-content:center;gap:8px;min-height:260px;padding:22px;color:#64748b;text-align:center}.mi-feedback-detail-empty strong{color:#0f172a;font-size:1rem}.mi-feedback-detail-empty p{max-width:420px;margin:0;font-size:.82rem;line-height:1.65}
.mi-feedback-detail{padding:18px}.mi-feedback-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.mi-feedback-detail-head h3{margin:4px 0;color:#0f172a;font-size:1.25rem;line-height:1.25}.mi-feedback-detail-head p{margin:0;color:#52637a;font-size:.82rem;line-height:1.65}.mi-feedback-detail-head>b{padding:5px 10px;border-radius:999px;background:#ffedd5;color:#c2410c;font-size:.68rem;white-space:nowrap}.mi-feedback-detail-head>b.done{background:#dcfce7;color:#15803d}
.mi-feedback-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}.mi-feedback-steps article{padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#fbfdff}.mi-feedback-steps span{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#e2e8f0;color:#64748b;font-size:.68rem;font-weight:950}.mi-feedback-steps strong{display:block;margin-top:8px;color:#0f172a;font-size:.82rem}.mi-feedback-steps small{display:block;margin-top:4px;color:#64748b;font-size:.68rem;line-height:1.45}.mi-feedback-steps .done{border-color:#bbf7d0;background:#f7fef9}.mi-feedback-steps .done span{background:#16a34a;color:#fff}.mi-feedback-steps .current{border-color:#fed7aa;background:#fffaf5}.mi-feedback-steps .current span{background:#f97316;color:#fff}
.mi-feedback-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.mi-feedback-current,.mi-feedback-required{padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}.mi-feedback-current strong{display:block;margin-top:4px;color:#0f172a;font-size:.92rem}.mi-feedback-current p{margin:7px 0;color:#334155;font-size:.78rem;line-height:1.6;white-space:pre-wrap}.mi-feedback-current small{display:block;color:#64748b;font-size:.7rem}.mi-feedback-current .btn{margin-top:10px}.mi-feedback-required strong{color:#0f172a;font-size:.86rem}.mi-feedback-required ul{margin:8px 0 0;padding-left:18px;color:#475569;font-size:.76rem;line-height:1.65}
.mi-linked-finding-panel{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:-4px 0 22px;padding:15px 16px;border:1px solid #bfdbfe;border-radius:16px;background:#f8fbff}.mi-linked-finding-panel.missing{border-color:#fed7aa;background:#fffaf5}.mi-linked-finding-panel span{display:block;color:#2563eb;font-size:.64rem;font-weight:950;letter-spacing:.14em}.mi-linked-finding-panel.missing span{color:#c2410c}.mi-linked-finding-panel strong{display:block;margin-top:4px;color:#0f172a;font-size:.95rem}.mi-linked-finding-panel p{margin:5px 0 0;color:#52637a;font-size:.78rem;line-height:1.6}
.mi-pending-findings{margin:18px 0;padding:16px;border:1px solid #fed7aa;border-radius:14px;background:#fffaf5}
.mi-closeout-guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.6fr);gap:18px;margin:18px 0;padding:18px;border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(120deg,#f8fbff,#fff)}.mi-closeout-guide span{display:block;color:#2563eb;font-size:.68rem;font-weight:950;letter-spacing:.14em}.mi-closeout-guide strong{display:block;margin-top:4px;color:#0f172a;font-size:1rem}.mi-closeout-guide p{margin:6px 0 0;color:#52637a;font-size:.8rem;line-height:1.65}.mi-closeout-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mi-closeout-kpis article{display:grid;align-content:center;gap:4px;padding:12px;border:1px solid #dbeafe;border-radius:12px;background:#fff;text-align:center}.mi-closeout-kpis strong{color:#1d4ed8;font-size:1.3rem}.mi-closeout-kpis span{color:#64748b;font-size:.64rem;letter-spacing:0}
.mi-pending-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.mi-pending-head div{display:grid;gap:2px}.mi-pending-head span{font-size:.68rem;letter-spacing:.12em;color:#c2410c}.mi-pending-head strong{font-size:1rem;color:#7c2d12}.mi-pending-head>b{min-width:32px;padding:6px 9px;border-radius:999px;background:#ffedd5;color:#c2410c;text-align:center}
.mi-pending-list{display:grid;gap:8px}.mi-pending-list article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid #ffedd5;border-radius:10px;background:#fff}
.mi-pending-list article div{display:grid;gap:3px}.mi-pending-list article strong{color:#431407}.mi-pending-list article span,.mi-pending-empty,.mi-pending-more{font-size:.78rem;color:#9a3412}.mi-pending-list button{border:0;border-radius:8px;padding:8px 11px;background:#ea580c;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}
.rpg-deferred{margin-top:12px;padding:14px;border:1px solid #fbbf24;border-radius:12px;background:#fffbeb;color:#78350f}
.rp-next-step{margin:0 0 18px;border:1px solid #bfdbfe;border-radius:20px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 20px 46px rgba(37,99,235,.09);overflow:hidden}.rp-next-step.is-blocked{border-color:#fed7aa;background:linear-gradient(135deg,#fff7ed,#fff)}.rp-next-step.is-warn{border-color:#fde68a;background:linear-gradient(135deg,#fffbeb,#fff)}.rpns-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px}.rpns-head span{display:block;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.12em}.is-blocked .rpns-head span{color:#c2410c}.is-warn .rpns-head span{color:#b45309}.rpns-head strong{display:block;margin-top:5px;color:#102033;font-size:28px;line-height:1.18}.rpns-head p{margin:8px 0 0;max-width:980px;color:#475569;font-size:16px;line-height:1.65}.rpns-head b{flex:0 0 auto;padding:8px 13px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:13px;font-weight:950}.is-blocked .rpns-head b{background:#ffedd5;color:#c2410c}.is-warn .rpns-head b{background:#fef3c7;color:#b45309}.rpns-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(191,219,254,.7);border-bottom:1px solid rgba(191,219,254,.7);background:rgba(255,255,255,.7)}.rpns-metrics article{padding:16px 20px;border-right:1px solid rgba(191,219,254,.7)}.rpns-metrics article:last-child{border-right:0}.rpns-metrics strong{display:block;color:#1d4ed8;font-size:26px;line-height:1}.rpns-metrics span{display:block;margin-top:6px;color:#64748b;font-size:13px;font-weight:850}.rpns-blockers{margin:14px 18px 0;padding:13px 15px;border:1px solid #fed7aa;border-radius:13px;background:#fff7ed;color:#9a3412;font-size:14px;line-height:1.6}.rpns-blockers strong{margin-right:5px}.rpns-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;padding:16px 18px 18px}.rpns-action{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid #cbd5e1;border-radius:15px;background:#fff;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s}.rpns-action:hover{transform:translateY(-1px);border-color:#60a5fa;box-shadow:0 12px 26px rgba(37,99,235,.12)}.rpns-action.primary{border-color:#2563eb;background:#2563eb}.rpns-action strong{color:#0f172a;font-size:15px}.rpns-action span{color:#64748b;font-size:13px;line-height:1.45}.rpns-action.primary strong,.rpns-action.primary span{color:#fff}.rp-closeout-flow{margin:0 0 18px;padding:20px;border:1px solid #d8e5f3;border-radius:18px;background:linear-gradient(120deg,#fff,#f8fbff);box-shadow:0 14px 34px rgba(15,23,42,.05)}.rpc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.rpc-head span{display:block;color:#0f766e;font-size:.68rem;font-weight:950;letter-spacing:.14em}.rpc-head strong{display:block;margin-top:4px;color:#0f172a;font-size:1.08rem}.rpc-head p{margin:6px 0 0;color:#52637a;font-size:.8rem;line-height:1.65}.rpc-head b{flex:0 0 auto;padding:7px 12px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.76rem}.rpc-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.rpc-steps article{padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.rpc-steps span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e6fffb;color:#0f766e;font-size:.68rem;font-weight:950}.rpc-steps strong{display:block;margin-top:9px;color:#0f172a;font-size:.82rem}.rpc-steps small{display:block;margin-top:5px;color:#64748b;font-size:.68rem}.rpc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.rpg-deferred>div{display:grid;gap:4px}.rpg-deferred>div span{font-size:.8rem;line-height:1.55;color:#92400e}.rpg-deferred ul{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}
.rpg-deferred li button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #fde68a;border-radius:8px;padding:9px 10px;background:#fff;text-align:left;cursor:pointer}.rpg-deferred li button strong{color:#78350f}.rpg-deferred li button span{font-size:.76rem;color:#b45309}
html[data-theme="dark"] .mi-workbench-hero,html[data-theme="dark"] .mi-feedback-priority-strip,html[data-theme="dark"] .mi-feedback-priority-pill,html[data-theme="dark"] .mi-feedback-queue,html[data-theme="dark"] .mi-feedback-detail,html[data-theme="dark"] .mi-feedback-item,html[data-theme="dark"] .mi-feedback-current,html[data-theme="dark"] .mi-feedback-required,html[data-theme="dark"] .mi-linked-finding-panel{background:#172235;border-color:#314158;box-shadow:none}
html[data-theme="dark"] .rp-next-step{background:linear-gradient(135deg,#132033,#172235);border-color:#314158;box-shadow:none}html[data-theme="dark"] .rp-next-step.is-blocked{background:linear-gradient(135deg,#2c2115,#172235);border-color:#7c2d12}html[data-theme="dark"] .rp-next-step.is-warn{background:linear-gradient(135deg,#29230f,#172235);border-color:#854d0e}html[data-theme="dark"] .rpns-head strong,html[data-theme="dark"] .rpns-action strong{color:#f1f5f9}html[data-theme="dark"] .rpns-head p,html[data-theme="dark"] .rpns-action span,html[data-theme="dark"] .rpns-metrics span{color:#9fb0c7}html[data-theme="dark"] .rpns-metrics,html[data-theme="dark"] .rpns-metrics article,html[data-theme="dark"] .rpns-action{background:#172235;border-color:#314158}html[data-theme="dark"] .rpns-blockers{background:#2c2115;border-color:#7c2d12;color:#fed7aa}html[data-theme="dark"] .rpns-action.primary{background:#2563eb;border-color:#60a5fa}
html[data-theme="dark"] .mi-feedback-queue-head,html[data-theme="dark"] .mi-feedback-steps article{background:#132033;border-color:#314158}
html[data-theme="dark"] .mi-workbench-hero h2,html[data-theme="dark"] .mi-feedback-priority-strip div strong,html[data-theme="dark"] .mi-feedback-priority-pill span,html[data-theme="dark"] .mi-feedback-queue-head strong,html[data-theme="dark"] .mi-feedback-item strong,html[data-theme="dark"] .mi-feedback-detail-head h3,html[data-theme="dark"] .mi-feedback-steps strong,html[data-theme="dark"] .mi-feedback-current strong,html[data-theme="dark"] .mi-feedback-required strong,html[data-theme="dark"] .mi-linked-finding-panel strong{color:#f1f5f9}
html[data-theme="dark"] .mi-workbench-hero p,html[data-theme="dark"] .mi-feedback-priority-strip div p,html[data-theme="dark"] .mi-feedback-item small,html[data-theme="dark"] .mi-feedback-detail-head p,html[data-theme="dark"] .mi-feedback-steps small,html[data-theme="dark"] .mi-feedback-current p,html[data-theme="dark"] .mi-feedback-current small,html[data-theme="dark"] .mi-feedback-required ul,html[data-theme="dark"] .mi-linked-finding-panel p{color:#9fb0c7}
@media(max-width:720px){.mi-workbench-hero,.mi-pending-list article,.rpg-deferred li button,.mi-linked-finding-panel{align-items:flex-start;flex-direction:column}.mi-pending-list button,.mi-workbench-hero .btn,.mi-linked-finding-panel .btn{width:100%}}
@media(max-width:980px){.fcf-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.rpc-steps,.rpns-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mi-closeout-guide,.mi-feedback-workbench,.mi-feedback-priority-strip{grid-template-columns:1fr}.mi-feedback-list{max-height:none}}
@media(max-width:620px){.fcf-head,.rpc-head,.rpns-head,.mi-feedback-detail-head{flex-direction:column}.fcf-steps,.rpc-steps,.rpns-metrics,.mi-closeout-kpis,.mi-feedback-steps{grid-template-columns:1fr}.fcf-report-go,.rpns-action,.rpc-actions .btn,.mi-feedback-actions .btn{width:100%}.rpns-head strong{font-size:24px}}

/* ===== Office readability baseline =====
   Audit work is reading-intensive. Keep operational text, form controls and
   navigation above a practical minimum instead of relying on tiny rem values. */
html { font-size: 16px; }
body { font-size: 16px; line-height: 1.55; }
body small { font-size: 14px !important; line-height: 1.5; }
body button,
body input,
body select,
body textarea { font-size: 14px !important; line-height: 1.4; }
body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea { min-height: 40px; }
body .btn { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
body .view-panel p,
body .view-panel li,
body .form-desc,
body .form-group label,
body .empty-state { font-size: 14px !important; line-height: 1.6; }
body .breadcrumb,
body .breadcrumb span,
body .project-toolbar,
body .project-toolbar label { font-size: 14px !important; }
body .nav-item,
body .nav-item span { font-size: 15px !important; line-height: 1.4; }
body .nav-item { min-height: 40px; font-size: 15px !important; font-weight: 600; }
body .nav-group-label {
  padding: 18px 10px 7px;
  color: #9fb1c8;
  font-size: 15px !important;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}
body .nav-standalone-entry {
  margin: 4px 0 8px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
body .nav-standalone-entry .nav-item-standalone {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  color: #d5e0ee;
}
body .nav-standalone-entry .nav-item-standalone:not(.active) {
  background: rgba(148, 163, 184, .055);
}
body .nav-standalone-entry .nav-item-standalone:hover {
  background: rgba(96, 165, 250, .12);
}
body .nav-standalone-entry + .nav-group-label {
  padding-top: 8px;
}
body .nav-collapse summary { font-size: 15px !important; line-height: 1.4; }
body .current-project-nav > summary {
  min-height: 38px;
  padding: 14px 10px 7px;
  color: #9fb1c8;
  font-weight: 850;
}

/* Current project main-chain locator */
.project-flow-nav {
  margin:0 0 10px;
  border:1px solid #d7e3f1;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
  overflow:hidden;
}
.pfn-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:54px;
  padding:8px 12px;
  border-bottom:1px solid #e6edf5;
  background:#fff;
}
.pfn-head span,.pfn-head h3,.pfn-head p,.pfn-head small { display:block; }
.pfn-head span {
  color:#2563eb;
  font-size:13px;
  font-weight:900;
  letter-spacing:.06em;
}
.pfn-head h3 {
  margin:2px 0 0;
  color:#172033;
  font-size:17px;
  line-height:1.25;
}
.pfn-head p {
  display:none;
  max-width:760px;
  margin:4px 0 0;
  color:#475569;
  font-size:14px;
  line-height:1.45;
}
.pfn-head small {
  margin-top:3px;
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
.pfn-actions {
  display:flex;
  flex:0 0 auto;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.pfn-actions .btn { min-height:34px; font-size:14px; }
.pfn-map {
  border-top:1px solid #e6edf5;
  background:#fff;
}
.pfn-map > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:36px;
  padding:6px 12px;
  color:#334155;
  list-style:none;
  cursor:pointer;
}
.pfn-map > summary::-webkit-details-marker { display:none; }
.pfn-map > summary span {
  font-size:14px;
  font-weight:850;
}
.pfn-map > summary small {
  color:#64748b;
  font-size:12px;
}
.pfn-map[open] > summary {
  border-bottom:1px solid #e6edf5;
  background:#f8fafc;
}
.pfn-phases {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.pfn-phase {
  padding:15px 16px 16px;
  border-right:1px solid #e6edf5;
  background:#fbfdff;
}
.pfn-phase:last-child { border-right:0; }
.pfn-phase.is-active {
  background:#f0f7ff;
  box-shadow:inset 0 3px 0 #2563eb;
}
.pfn-phase.is-before {
  background:#f7fcfa;
  box-shadow:inset 0 3px 0 #10b981;
}
.pfn-phase-title {
  display:flex;
  align-items:center;
  gap:8px;
}
.pfn-phase-title span {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#e8eef7;
  color:#52657c;
  font-size:13px;
  font-weight:900;
}
.pfn-phase.is-active .pfn-phase-title span { background:#2563eb; color:#fff; }
.pfn-phase.is-before .pfn-phase-title span { background:#10b981; color:#fff; }
.pfn-phase-title strong {
  color:#172033;
  font-size:17px;
}
.pfn-phase p {
  margin:8px 0 12px;
  color:#64748b;
  font-size:14px;
  line-height:1.45;
}
.pfn-view-row {
  display:grid;
  gap:8px;
}
.pfn-view-row button {
  display:grid;
  gap:2px;
  min-height:54px;
  padding:9px 10px;
  border:1px solid #d9e5f2;
  border-radius:10px;
  background:#fff;
  color:#334155;
  text-align:left;
  cursor:pointer;
}
.pfn-view-row button:hover {
  border-color:#93c5fd;
  background:#f8fbff;
}
.pfn-view-row button.is-current {
  border-color:#2563eb;
  background:#eff6ff;
  box-shadow:0 0 0 3px rgba(37,99,235,.09);
}
.pfn-view-row strong {
  color:#172033;
  font-size:15px;
}
.pfn-view-row small {
  color:#64748b;
  font-size:13px;
  line-height:1.35;
}
body .current-project-nav > summary {
  min-height:42px;
  font-size:15px!important;
  color:#cbd5e1;
}
body .project-nav-stage-title strong { font-size:15px!important; }
body .current-project-nav .project-nav-stage .nav-item span { font-size:15px!important; }

html[data-theme="dark"] .project-flow-nav { background:#172235; border-color:#314158; box-shadow:none; }
html[data-theme="dark"] .pfn-head { background:#132033; border-color:#314158; }
html[data-theme="dark"] .pfn-map { background:#172235; border-color:#314158; }
html[data-theme="dark"] .pfn-map > summary { color:#e5edf8; }
html[data-theme="dark"] .pfn-map > summary small { color:#9fb0c7; }
html[data-theme="dark"] .pfn-map[open] > summary { background:#132033; border-color:#314158; }
html[data-theme="dark"] .pfn-head h3,html[data-theme="dark"] .pfn-phase-title strong,html[data-theme="dark"] .pfn-view-row strong { color:#f1f5f9; }
html[data-theme="dark"] .pfn-head p,html[data-theme="dark"] .pfn-head small,html[data-theme="dark"] .pfn-phase p,html[data-theme="dark"] .pfn-view-row small { color:#9fb0c7; }
html[data-theme="dark"] .pfn-phase,html[data-theme="dark"] .pfn-view-row button { background:#172235; border-color:#314158; color:#d8e1ee; }
html[data-theme="dark"] .pfn-phase.is-active,html[data-theme="dark"] .pfn-view-row button.is-current { background:#172a45; }
html[data-theme="dark"] .pfn-phase.is-before { background:#132a25; }
@media(max-width:980px){
  .pfn-head { flex-direction:column; }
  .pfn-actions { justify-content:flex-start; }
  .pfn-phases { grid-template-columns:1fr; }
  .pfn-phase { border-right:0; border-bottom:1px solid #e6edf5; }
  .pfn-phase:last-child { border-bottom:0; }
}
body table th { font-size: 14px !important; line-height: 1.45; }
body table td { font-size: 14px !important; line-height: 1.55; }
body [class*="-hint"],
body [class*="-meta"],
body [class*="-note"],
body [class*="-desc"],
body [class*="-subtitle"] { font-size: max(.875rem, 14px) !important; line-height: 1.55; }

@media (max-width: 768px) {
  body { font-size: 15px; }
  body .view-panel p,
  body .view-panel li,
  body table td { font-size: 13.5px !important; }
}

/* ===== Management dashboard ===== */
body[data-active-view="dashboard"] .project-toolbar .project-context,
body[data-active-view="dashboard"] .project-toolbar .project-actions { display:none; }
body[data-active-view="dashboard"] .project-toolbar .project-bar-inner { grid-template-columns:minmax(220px,1fr) auto; }
body[data-active-view="auditplan"] .project-toolbar .project-context,
body[data-active-view="auditplan"] .project-toolbar .project-actions { display:none; }
body[data-active-view="auditplan"] .project-toolbar .project-bar-inner { grid-template-columns:minmax(220px,1fr) auto; }
body[data-active-view="history"] .project-toolbar .project-context,
body[data-active-view="history"] .project-toolbar .project-actions,
body[data-active-view="remediation"] .project-toolbar .project-context,
body[data-active-view="remediation"] .project-toolbar .project-actions { display:none; }
body[data-active-view="history"] .project-toolbar .project-bar-inner,
body[data-active-view="remediation"] .project-toolbar .project-bar-inner { grid-template-columns:minmax(220px,1fr) auto; }

/* Project deletion belongs to the project-center record, never to the global context bar. */
#project-toolbar #project-del-btn { display:none!important; }

.dash-role-work{margin:0 0 22px;padding:22px;border:1px solid #dbe4f0;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.dash-role-work-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.dash-role-work-head>div>span{display:block;margin-bottom:5px;color:#2563eb;font-size:14px;font-weight:750}
.dash-role-work-head h2{margin:0;color:#172033;font-size:24px;line-height:1.3}
.dash-role-work-head p{margin:7px 0 0;color:#64748b;font-size:16px;line-height:1.65}
.dash-role-work-status{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #dbe4f0;border-radius:999px;background:#f8fafc;color:#64748b;font-size:13px;font-weight:700;white-space:nowrap}
.dash-role-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.dash-role-metrics article{display:grid;gap:5px;padding:16px;border:1px solid #e3eaf3;border-radius:12px;background:#f8fafc}
.dash-role-metrics span,.dash-role-metrics small{color:#64748b;font-size:14px}
.dash-role-metrics strong{color:#172033;font-size:28px;line-height:1.2}
.dash-role-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #e7edf5}
.dash-role-actions button{min-height:40px;padding:0 15px;border:1px solid #cbd8ea;border-radius:9px;background:#fff;color:#1d4ed8;font-size:15px;font-weight:700;cursor:pointer}
.dash-role-actions button:hover{border-color:#93b4ea;background:#eff6ff}
.dash-fraud-entry{border-color:#ead7ba;background:linear-gradient(120deg,#fffaf2,#fff)}
.dash-workbench-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:16px;align-items:start;margin:0 0 18px}
.dash-workbench-left{position:sticky;top:88px;display:grid;gap:12px;align-self:start;min-width:0}
.dash-workbench-main{display:grid;gap:14px;min-width:0}
.dash-role-rail{overflow:hidden;border:1px solid #dbe4f0;border-radius:15px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.dash-role-rail-head{padding:16px;border-bottom:1px solid #edf2f7;background:linear-gradient(135deg,#eff6ff,#fff)}
.dash-role-rail-head span{display:block;margin-bottom:5px;color:#2563eb;font-size:13px;font-weight:900}
.dash-role-rail-head strong{display:block;color:#0f172a;font-size:20px;line-height:1.35}
.dash-role-rail-head p{margin:7px 0 0;color:#52637a;font-size:14px!important;line-height:1.55}
.dash-role-rail-actions{display:grid;gap:8px;padding:10px}
.dash-role-rail-action{display:grid;gap:4px;width:100%;min-height:56px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#172033;text-align:left;cursor:pointer}
.dash-role-rail-action:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 8px 18px rgba(37,99,235,.08)}
.dash-role-rail-action strong{font-size:15px;line-height:1.35}
.dash-role-rail-action small{color:#64748b;font-size:13px;line-height:1.4}
.dash-workbench-left .dash-work-queue{margin:0;border:1px solid #dbe4f0;border-left:3px solid #2563eb;border-radius:15px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.045)}
.dash-workbench-left .dash-work-queue .dash-panel-header{align-items:flex-start;flex-direction:column;gap:8px;padding:14px 15px}
.dash-workbench-left .dash-work-queue-list{grid-template-columns:1fr;gap:8px;padding:0 10px 10px}
.dash-workbench-left .dash-work-queue-item{min-height:0;padding:12px;box-shadow:none}
.dash-workbench-left .dash-work-queue-item p{font-size:13px!important;line-height:1.45}
html[data-theme="dark"] .dash-role-rail,html[data-theme="dark"] .dash-workbench-left .dash-work-queue{background:#172235;border-color:#314158;color:#d8e1ee;box-shadow:none}
html[data-theme="dark"] .dash-role-rail-head{background:linear-gradient(135deg,#172a46,#172235);border-color:#314158}
html[data-theme="dark"] .dash-role-rail-head strong,html[data-theme="dark"] .dash-role-rail-action strong{color:#f1f5f9}
html[data-theme="dark"] .dash-role-rail-head p,html[data-theme="dark"] .dash-role-rail-action small{color:#9fb0c7}
html[data-theme="dark"] .dash-role-rail-action{background:#132033;border-color:#314158;color:#d8e1ee}
@media(max-width:900px){.dash-role-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-role-work-head{flex-direction:column}}

/* 审前规划统一工作台导航：三页共用同一条任务主线，避免用户在风险、资料、方案之间迷路。 */
.preaudit-workbench-nav{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:12px;align-items:stretch;margin:0 0 12px;padding:10px;border:1px solid #d8e5f3;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 10px 24px rgba(15,23,42,.045)}
.preaudit-current{display:grid;align-content:center;gap:3px;padding:10px 12px;border-radius:12px;background:#0f172a;color:#fff}
.preaudit-current span{color:#93c5fd;font-size:12px;font-weight:950;letter-spacing:.08em}
.preaudit-current strong{font-size:18px;line-height:1.3}
.preaudit-current small{overflow:hidden;color:#cbd5e1;font-size:13px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.preaudit-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.preaudit-step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start;min-height:72px;padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#172033;text-align:left;cursor:pointer}
.preaudit-step:hover{border-color:#93c5fd;background:#eff6ff}
.preaudit-step.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:inset 0 0 0 1px rgba(37,99,235,.12)}
.preaudit-step b{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#f1f5f9;color:#475569;font-size:13px}
.preaudit-step.is-active b{background:#2563eb;color:#fff}
.preaudit-step span,.preaudit-step strong,.preaudit-step small,.preaudit-step em{display:block;min-width:0}
.preaudit-step strong{overflow:hidden;color:#0f172a;font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.preaudit-step small{margin-top:3px;color:#475569;font-size:13px;line-height:1.35}
.preaudit-step em{margin-top:4px;color:#64748b;font-size:12px;font-style:normal;font-weight:800}
.preaudit-handoff{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;align-items:stretch;padding-top:2px}
.preaudit-handoff article{min-width:0;padding:9px 11px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}
.preaudit-handoff span{display:block;color:#64748b;font-size:12px;font-weight:950;letter-spacing:.04em}
.preaudit-handoff strong{display:block;overflow:hidden;margin-top:3px;color:#0f172a;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.preaudit-handoff button{min-width:108px;border:0;border-radius:11px;background:#2563eb;color:#fff;font-size:14px;font-weight:900;cursor:pointer}
.preaudit-handoff button:hover{background:#1d4ed8;transform:translateY(-1px)}
html[data-theme="dark"] .preaudit-workbench-nav{background:#172235;border-color:#314158;box-shadow:none}
html[data-theme="dark"] .preaudit-current{background:#0f172a}
html[data-theme="dark"] .preaudit-step{background:#132033;border-color:#314158;color:#d8e1ee}
html[data-theme="dark"] .preaudit-step.is-active,html[data-theme="dark"] .preaudit-step:hover{background:#17345d;border-color:#60a5fa}
html[data-theme="dark"] .preaudit-handoff article{background:#132033;border-color:#314158}
html[data-theme="dark"] .preaudit-step strong,html[data-theme="dark"] .preaudit-handoff strong{color:#f1f5f9}
html[data-theme="dark"] .preaudit-step small,html[data-theme="dark"] .preaudit-step em{color:#9fb0c7}
@media(max-width:1100px){.preaudit-workbench-nav{grid-template-columns:1fr}.preaudit-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.preaudit-step{min-height:66px}}
@media(max-width:900px){.preaudit-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.preaudit-handoff{grid-template-columns:1fr 1fr}.preaudit-handoff button{min-height:40px}}
@media(max-width:760px){.preaudit-steps,.preaudit-handoff{grid-template-columns:1fr}.preaudit-current small,.preaudit-handoff strong{white-space:normal}}

/* Batch 29: keep pre-audit work cues compact; the real workspace should own the screen. */
.pmat-simple-page .pmat-simple-next,
.wf-scheme-detail-page .wf-simple-focus,
.workflow-view .wf-stage-one .wf-current-scheme,
.at-simple-shell .at-simple-focus{
  margin:10px 0 12px!important;
  padding:10px 14px!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-simple-next strong,
.wf-scheme-detail-page .wf-simple-focus strong,
.workflow-view .wf-stage-one .wf-current-scheme h3,
.at-simple-shell .at-simple-focus strong{
  margin-top:2px!important;
  font-size:17px!important;
  line-height:1.3!important;
}
.pmat-simple-page .pmat-simple-next p,
.wf-scheme-detail-page .wf-simple-focus p,
.workflow-view .wf-stage-one .wf-current-scheme p,
.at-simple-shell .at-simple-focus p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.pmat-simple-page .pmat-simple-next dl div,
.at-simple-shell .at-simple-focus dl div{
  min-width:58px!important;
  padding:6px 8px!important;
  border-radius:10px!important;
}
.pmat-simple-page .pmat-simple-next dt,
.at-simple-shell .at-simple-focus dt{
  font-size:17px!important;
}
.pmat-simple-page .pmat-simple-next dd,
.at-simple-shell .at-simple-focus dd{
  font-size:12px!important;
}
html[data-theme="dark"] .pmat-simple-page .pmat-simple-next,
html[data-theme="dark"] .wf-scheme-detail-page .wf-simple-focus,
html[data-theme="dark"] .workflow-view .wf-stage-one .wf-current-scheme,
html[data-theme="dark"] .at-simple-shell .at-simple-focus{
  background:#111827!important;
  border-color:#314158!important;
}
.al-filters{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(150px,1fr));gap:10px;margin:14px 0;padding:14px;border:1px solid #dfe7f1;border-radius:12px;background:#f8fafc}
.al-filters label{display:grid;gap:5px;color:#475569;font-size:14px;font-weight:700}
.al-filters input,.al-filters select{min-height:38px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font-size:14px}
.al-filters button{align-self:end}
.al-filter-summary{margin:8px 0;color:#64748b;font-size:14px}
.al-table-scroll{overflow:auto;border:1px solid #e2e8f0;border-radius:10px}
.al-table-scroll .ua-table{min-width:1080px;margin:0}
.al-table-scroll td strong,.al-table-scroll td small{display:block;line-height:1.45}
.al-table-scroll td small{margin-top:3px;color:#64748b;font-size:13px}
.al-result{display:inline-flex;padding:4px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:13px;font-weight:750}
.al-result.is-failed{background:#fef2f2;color:#b91c1c}.al-result.is-blocked{background:#fff7ed;color:#c2410c}.al-result.is-pending{background:#eff6ff;color:#1d4ed8}
@media(max-width:1100px){.al-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.skip-link{position:fixed;left:16px;top:10px;z-index:10000;transform:translateY(-160%);padding:10px 14px;border-radius:8px;background:#172033;color:#fff;font-size:15px;font-weight:750;text-decoration:none;box-shadow:0 8px 22px rgba(15,23,42,.3)}
.skip-link:focus{transform:translateY(0)}

/* Final readability guardrails for management and navigation surfaces. */
.sf-version{font-size:14px;color:#94a3b8;text-align:center}
.dash-subtitle{color:#526276!important}
.dash-empty-state p{font-size:14px;color:#64748b}
body :focus-visible{outline:3px solid #f59e0b!important;outline-offset:3px!important}
.nav-item:focus-visible{background:#29466d;color:#fff}

.ap-plan-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0;padding:8px;border:1px solid #dbe5f1;border-radius:14px;background:#f8fafc}.ap-plan-steps span{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:10px;color:#64748b;font-size:14px;font-weight:700}.ap-plan-steps b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e2e8f0;color:#475569}.ap-plan-steps .is-done{background:#ecfdf5;color:#047857}.ap-plan-steps .is-done b{background:#10b981;color:#fff}.ap-plan-steps .is-current{background:#eff6ff;color:#1d4ed8}.ap-plan-steps .is-current b{background:#2563eb;color:#fff}
.ap-planning-section{margin:18px 0;padding:20px;border:1px solid #dbe5f1;border-radius:16px;background:#fff}.ap-planning-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.ap-planning-head>div>span{display:block;margin-bottom:5px;color:#2563eb;font-size:13px;font-weight:800}.ap-planning-head h3{margin:0 0 6px;font-size:20px}.ap-planning-head p{margin:0;color:#64748b;line-height:1.65}.ap-planning-head>strong{color:#0f766e;font-size:14px}
.ap-planning-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start;margin:18px 0}.ap-planning-grid>.ap-planning-section{min-width:0;margin:0}.ap-universe-groups{display:grid;grid-template-columns:1fr;gap:10px}.ap-universe-groups details{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.ap-universe-groups summary{display:flex;justify-content:space-between;gap:10px;padding:13px 14px;font-weight:800;cursor:pointer}.ap-universe-groups summary small{color:#64748b;font-weight:500;text-align:right}.ap-universe-groups details>div{display:grid;gap:6px;padding:0 10px 10px}.ap-universe-item{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:9px;background:#fff;border:1px solid #edf2f7}.ap-universe-item span{display:grid;gap:3px}.ap-universe-item small{color:#64748b;line-height:1.45}.ap-section-actions{display:flex;justify-content:flex-end;margin-top:14px}
.ap-formal-planning-basis{margin:14px 0;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc}.ap-formal-planning-basis>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;cursor:pointer;color:#334155;font-weight:700;list-style:none}.ap-formal-planning-basis>summary::-webkit-details-marker{display:none}.ap-formal-planning-basis>summary:after{content:'展开';color:#64748b;font-size:12px;font-weight:600}.ap-formal-planning-basis[open]>summary:after{content:'收起'}.ap-formal-planning-basis>summary small{margin-left:auto;color:#64748b;font-weight:500}.ap-formal-planning-basis>.ap-planning-grid{margin:0;padding:0 14px 14px}
.ap-universe-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:12px;border:1px solid #dbe5f1;border-radius:12px;background:#f8fafc}.ap-universe-toolbar label{display:grid;gap:5px;min-width:280px;flex:1;color:#334155;font-weight:800}.ap-universe-toolbar input{width:100%;padding:8px 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.ap-universe-toolbar>span{align-self:center;color:#64748b;font-size:13px}.ap-universe-item strong em{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-style:normal}.ap-universe-item[hidden],.ap-universe-group[hidden]{display:none}
.ap-candidate-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;padding:14px;border-radius:12px;background:#f8fafc}.ap-candidate-form[hidden]{display:none}.ap-candidate-form label{display:grid;gap:6px;font-weight:700;color:#334155}.ap-candidate-form .wide{grid-column:1/-1}.ap-candidate-form input,.ap-candidate-form select,.ap-candidate-form textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}.ap-candidate-list{display:grid;gap:9px}.ap-candidate-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px;border:1px solid #e2e8f0;border-radius:12px}.ap-candidate-copy{display:grid;gap:3px;min-width:0}.ap-candidate-copy>span{color:#2563eb;font-size:12px;font-weight:800}.ap-candidate-copy strong,.ap-candidate-copy small{overflow:hidden;text-overflow:ellipsis}.ap-candidate-list article small{color:#64748b}.ap-candidate-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px}.ap-candidate-list em{font-style:normal;font-size:13px;font-weight:700;color:#64748b;white-space:nowrap}.ap-candidate-list em.is-selected{color:#047857}.ap-candidate-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.ap-candidate-actions .btn{width:auto!important;min-width:96px;white-space:nowrap}
.ap-more-source{display:inline-block}.ap-more-source summary{cursor:pointer;color:#475569;font-weight:700}.ap-more-source button{margin-top:8px}.ap-module-picker{display:flex;flex-wrap:wrap;gap:7px;padding:10px;border:1px solid #dbe5f1;border-radius:10px;background:#f8fafc}.ap-module-picker label{display:flex;align-items:center;gap:5px;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #e2e8f0;font-size:13px}.ap-module-tag{display:inline-block;margin:2px;padding:4px 7px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700}.ap-muted{color:#94a3b8}.ap-td-name strong,.ap-td-name small{display:block}.ap-td-name small{margin-top:4px;color:#64748b;line-height:1.4}.ap-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.ap-row-approve-plan{width:auto!important;min-width:108px;min-height:32px;white-space:nowrap}.ap-modal-note{padding:12px;border-radius:10px;background:#eff6ff;color:#1e3a8a;line-height:1.6}
.ap-planning-grid .ap-candidate-form{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-candidate-module-tree{display:grid;max-height:330px;overflow:auto}.ap-candidate-module-tree details{border:1px solid #dbe5f1;border-radius:9px;background:#fff}.ap-candidate-module-tree summary{display:flex;justify-content:space-between;padding:9px 10px;cursor:pointer;font-weight:800}.ap-candidate-module-tree summary small{color:#64748b}.ap-candidate-module-tree details>div{display:flex;flex-wrap:wrap;gap:6px;padding:0 8px 8px}.ap-candidate-module-tree label{display:flex!important;flex-direction:row;align-items:center}.ap-candidate-module-tree input{width:16px!important;min-height:16px!important}
@media(max-width:1180px){.ap-planning-grid{grid-template-columns:1fr}.ap-planning-grid .ap-candidate-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.ap-plan-steps{grid-template-columns:1fr}.ap-universe-groups{grid-template-columns:1fr}.ap-candidate-form,.ap-planning-grid .ap-candidate-form{grid-template-columns:1fr}.ap-candidate-form .wide{grid-column:auto}.ap-candidate-list article{grid-template-columns:1fr}.ap-candidate-meta{align-items:flex-start;justify-content:space-between}.ap-planning-head{flex-direction:column}}@media(max-width:520px){.ap-candidate-meta,.ap-candidate-actions{align-items:stretch;flex-direction:column}.ap-candidate-actions .btn{width:100%!important}}
.dash-annual-plan{margin:16px 0}.dash-annual-plan-main{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px;border-radius:12px;background:linear-gradient(135deg,#eff6ff,#f0fdfa)}.dash-annual-plan-main>div:first-child{display:grid;gap:4px}.dash-annual-plan-main span{color:#2563eb;font-size:13px;font-weight:800}.dash-annual-plan-main strong{font-size:19px;color:#0f172a}.dash-annual-plan-main small{color:#64748b}.dash-annual-progress{display:grid;gap:7px;min-width:240px}.dash-annual-progress b{height:8px;border-radius:999px;background:#dbeafe;overflow:hidden}.dash-annual-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#0f766e)}.dash-annual-progress em{text-align:right;color:#475569;font-size:13px;font-style:normal}.dash-annual-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.dash-annual-metrics span{padding:11px;border:1px solid #e2e8f0;border-radius:10px;color:#64748b;text-align:center}.dash-annual-metrics b{margin-right:5px;color:#0f172a;font-size:18px}@media(max-width:760px){.dash-annual-plan-main{align-items:stretch;flex-direction:column}.dash-annual-progress{min-width:0}.dash-annual-metrics{grid-template-columns:repeat(2,1fr)}}
.dash-work-queue{margin:16px 0;border-top:3px solid #2563eb}.dash-work-queue-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dash-work-queue-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;min-height:128px;padding:15px;border:1px solid #dfe7f2;border-radius:12px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 7px 18px rgba(15,23,42,.04);transition:border-color .15s,box-shadow .15s,transform .15s}.dash-work-queue-item:hover{border-color:#93c5fd;box-shadow:0 12px 26px rgba(37,99,235,.09);transform:translateY(-1px)}.dash-work-queue-item span{display:grid;gap:4px;min-width:0}.dash-work-queue-item strong{color:#0f172a;font-size:16px;line-height:1.35}.dash-work-queue-item small{color:#64748b;font-size:14px;line-height:1.4}.dash-work-queue-item em{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:30px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-style:normal;font-size:14px;font-weight:900}.dash-work-queue-item p{grid-column:1/-1;margin:0;color:#334155;font-size:14px;line-height:1.5}.dash-work-queue-item b{grid-column:1/-1;color:#64748b;font-size:13px;font-weight:800}@media(max-width:1180px){.dash-work-queue-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.dash-work-queue-list{grid-template-columns:1fr}}
.dash-header { align-items:center; margin:0 0 18px; padding:22px 24px; }
.dash-eyebrow { margin-bottom:6px; font-size:13px; letter-spacing:.08em; }
.dash-title { font-size:28px !important; line-height:1.25; }
.dash-subtitle { margin-top:8px !important; font-size:14px !important; line-height:1.55; }
.dash-header-right { flex-wrap:wrap; justify-content:flex-end; }
.dash-export-btn,.dash-create-btn { min-height:42px; padding:10px 16px; border-radius:9px; font-weight:800; }
.dash-export-btn { border:1px solid #cbd5e1; background:#fff; color:#334155; cursor:pointer; }
.dash-export-btn:hover { border-color:#94a3b8; background:#f8fafc; }
.dash-management-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.dash-management-kpi { position:relative; overflow:hidden; min-height:142px; padding:18px; border:1px solid #dfe7f0; border-radius:14px; background:#fff; box-shadow:0 8px 22px rgba(15,23,42,.055); text-align:left; cursor:pointer; }
.dash-management-kpi:hover { border-color:#9cb7dd; transform:translateY(-1px); box-shadow:0 11px 26px rgba(15,23,42,.085); }
.dash-management-kpi::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#64748b; }
.dash-management-kpi.is-blue::before{background:#2563eb}.dash-management-kpi.is-indigo::before{background:#4f46e5}.dash-management-kpi.is-green::before{background:#16a34a}.dash-management-kpi.is-teal::before{background:#0f766e}.dash-management-kpi.is-amber::before{background:#d97706}
.dash-management-kpi>span { color:#475569; font-size:14px; font-weight:800; }
.dash-management-kpi>div { display:flex; align-items:baseline; gap:6px; margin-top:12px; }
.dash-management-kpi strong { color:#0f172a; font-size:34px; line-height:1; font-variant-numeric:tabular-nums; }
.dash-management-kpi b { color:#64748b; font-size:14px; }
.dash-management-kpi p { margin:12px 0 0; color:#64748b; font-size:14px !important; line-height:1.45 !important; }
.dash-kpi-definitions{margin:-6px 0 16px;border:1px solid #dfe7f0;border-radius:12px;background:#fff}
.dash-kpi-definitions summary{padding:11px 14px;color:#475569;font-size:14px;font-weight:750;cursor:pointer}
.dash-kpi-definitions dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0;padding:0 14px 14px}
.dash-kpi-definitions dl>div{padding:10px;border-radius:9px;background:#f8fafc}.dash-kpi-definitions dt{color:#1e293b;font-size:14px;font-weight:800}.dash-kpi-definitions dd{margin:5px 0 0;color:#64748b;font-size:14px;line-height:1.55}
.dash-management-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(360px,.8fr); gap:14px; margin-bottom:16px; }
.dash-management-grid>.dash-panel { min-width:0; margin:0; }
.dash-management-grid .dash-panel-header { align-items:flex-start; min-height:62px; }
.dash-management-grid .dash-panel-header h2 { font-size:19px !important; }
.dash-management-grid .dash-panel-header p { margin:5px 0 0; color:#64748b; font-size:13px !important; }
.dash-management-project-table { display:grid; gap:0; overflow:hidden; border:1px solid #e2e8f0; border-radius:10px; }
.dash-management-project-row { display:grid; grid-template-columns:minmax(220px,1.6fr) minmax(110px,.7fr) minmax(150px,1fr) minmax(100px,.6fr) minmax(88px,.55fr); gap:14px; align-items:center; width:100%; min-height:62px; padding:11px 14px; border:0; border-bottom:1px solid #edf2f7; background:#fff; color:#334155; text-align:left; cursor:pointer; }
.dash-management-project-row:last-child { border-bottom:0; }
.dash-management-project-row:not(.is-head):hover { background:#f7faff; }
.dash-management-project-row.is-head { min-height:42px; background:#f8fafc; color:#64748b; font-size:13px; font-weight:800; cursor:default; }
.dash-management-project-name { display:grid; gap:3px; min-width:0; }
.dash-management-project-name strong { overflow:hidden; color:#0f172a; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.dash-management-project-name small { overflow:hidden; color:#64748b; text-overflow:ellipsis; white-space:nowrap; }
.dash-management-progress { display:grid; grid-template-columns:minmax(70px,1fr) auto; gap:8px; align-items:center; }
.dash-management-progress>b { height:8px; overflow:hidden; border-radius:999px; background:#e8eef5; }
.dash-management-progress i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#2563eb,#0f766e); }
.dash-management-progress em { color:#334155; font-size:13px; font-style:normal; font-weight:800; }
.dash-management-project-row mark { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:13px; font-weight:800; }
.dash-management-project-row mark.is-active { background:#eff6ff; color:#1d4ed8; }
.dash-management-project-row mark.is-closed { background:#ecfdf5; color:#047857; }
.dash-auditor-activity .dash-timeline { max-height:500px; overflow:auto; }
.dash-auditor-activity .dash-timeline-item { display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; flex:0 0 auto; min-height:0; padding-bottom:16px; }
.dash-auditor-activity .dash-timeline-content { min-width:0; padding-top:0; }
.dash-auditor-activity .dash-timeline-top { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; }
.dash-timeline-project { display:grid; gap:2px; min-width:0; white-space:normal; overflow:visible; }
.dash-timeline-project strong { color:#0f172a; font-size:14px; }
.dash-timeline-project small { color:#64748b; }
.dash-auditor-activity .dash-timeline-project strong,.dash-auditor-activity .dash-timeline-project small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dash-timeline-summary { margin-top:5px; color:#334155; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.dash-timeline-context { margin-top:4px; color:#64748b; font-size:13px; overflow-wrap:anywhere; }
.dash-timeline-time { font-size:13px; white-space:nowrap; }
.dash-metric-source { margin:0 0 12px; padding:9px 11px; border-radius:9px; background:#f8fafc; color:#64748b; font-size:13px; line-height:1.5; }
.dash-metric-source strong { color:#334155; }
.dash-metric-pending { margin:10px 0 0; color:#b45309; font-size:13px; }
.dash-risk-status { display:inline-flex; margin-top:5px; color:#64748b; font-size:12px; font-weight:700; }
.dash-management-more { margin-bottom:16px; overflow:hidden; border:1px solid #dfe7f0; border-radius:14px; background:#fff; }
.dash-management-more>summary { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:54px; padding:12px 16px; list-style:none; cursor:pointer; }
.dash-management-more>summary::-webkit-details-marker { display:none; }
.dash-management-more>summary span { color:#0f172a; font-size:15px; font-weight:850; }
.dash-management-more>summary small { color:#64748b; }
.dash-management-more[open]>summary { border-bottom:1px solid #e2e8f0; }
.dash-management-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:14px; background:#f8fafc; }
html[data-theme="dark"] .dash-management-kpi,html[data-theme="dark"] .dash-management-more,html[data-theme="dark"] .dash-management-project-row { background:#172235; border-color:#314158; }
html[data-theme="dark"] .dash-management-kpi strong,html[data-theme="dark"] .dash-management-project-name strong,html[data-theme="dark"] .dash-timeline-project strong,html[data-theme="dark"] .dash-management-more>summary span { color:#e5edf8; }
html[data-theme="dark"] .dash-management-project-row.is-head,html[data-theme="dark"] .dash-management-detail-grid { background:#13233b; }
html[data-theme="dark"] .dash-management-project-row:not(.is-head):hover { background:#1b2b45; }
@media(max-width:1180px){.dash-workbench-layout{grid-template-columns:1fr}.dash-workbench-left{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.dash-workbench-left .dash-work-queue{min-width:0}.dash-management-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-management-grid{grid-template-columns:1fr}.dash-management-detail-grid{grid-template-columns:1fr}.dash-kpi-definitions dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dash-workbench-left{grid-template-columns:1fr}.dash-management-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-header{align-items:flex-start;flex-direction:column}.dash-header-right{justify-content:flex-start}.dash-management-project-table{overflow:auto}.dash-management-project-row{min-width:760px}.dash-management-more>summary{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.dash-management-kpis{grid-template-columns:1fr}.dash-title{font-size:24px!important}}

/* 工作台首屏收束：左侧职责和待办，右侧只保留角色当前焦点和项目组合。 */
.dash-workbench-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:18px}
.dash-access-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:12px;align-items:stretch;margin:-6px 0 14px}
.dash-tool-dock{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #dfe7f2;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.045)}
.dash-tool-shortcut,.dash-tool-more,.dash-current-step-jump{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #dbe5f1;border-radius:11px;background:#f8fafc;color:#172033;font-size:15px;font-weight:850;cursor:pointer;white-space:nowrap}
.dash-tool-shortcut{flex:0 0 auto;padding:0 12px}
.dash-tool-more{margin-left:auto;padding:0 13px;color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.dash-tool-shortcut:hover,.dash-tool-more:hover{border-color:#93c5fd;background:#eff6ff;box-shadow:0 8px 18px rgba(37,99,235,.08);transform:translateY(-1px)}
.dash-tool-shortcut i,.dash-tool-more i,.dash-current-step-jump i{width:18px;height:18px;flex:0 0 auto}
.dash-current-step-jump{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-areas:"icon label" "icon title" "icon meta";align-content:center;justify-content:start;min-width:0;padding:9px 13px;border-color:#bfdbfe;background:linear-gradient(135deg,#eff6ff,#fff);text-align:left}
.dash-current-step-jump i{grid-area:icon;color:#2563eb}
.dash-current-step-jump span{grid-area:label;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.05em}
.dash-current-step-jump strong{grid-area:title;overflow:hidden;color:#0f172a;font-size:16px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.dash-current-step-jump small{grid-area:meta;overflow:hidden;color:#64748b;font-size:13px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.dash-current-step-jump:hover{border-color:#2563eb;box-shadow:0 10px 24px rgba(37,99,235,.13);transform:translateY(-1px)}
.dash-primary-focus{margin:0 0 12px!important;padding:18px!important;border-color:#bfdbfe!important;background:linear-gradient(135deg,#fff,#f8fbff)!important}
.dash-primary-focus .dash-role-work-head{align-items:center}
.dash-focus-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.45fr);gap:14px;align-items:stretch;margin-top:14px;padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#fff}
.dash-focus-card>div{display:grid;gap:5px;align-content:center}
.dash-focus-card span{color:#2563eb;font-size:13px;font-weight:900}
.dash-focus-card strong{color:#0f172a;font-size:22px;line-height:1.35}
.dash-focus-card p,.dash-focus-card small{margin:0;color:#64748b;font-size:14px;line-height:1.5}
.dash-focus-card b{color:#0f172a;font-size:30px;line-height:1}
.dash-focus-card.is-empty{grid-template-columns:1fr;background:#f8fafc;border-color:#e2e8f0}
.dash-primary-focus .dash-role-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.dash-primary-focus .dash-role-metrics article{padding:10px 12px;border-radius:10px;background:#f8fafc}
.dash-primary-focus .dash-role-metrics strong{font-size:23px}
.dash-primary-focus .dash-role-metrics span,.dash-primary-focus .dash-role-metrics small{font-size:13px}
.dash-workbench-left .dash-panel-title{font-size:18px!important}
.dash-workbench-left .dash-work-queue-item{position:relative;border-radius:12px}
.dash-workbench-left .dash-work-queue-item.is-primary{border-color:#2563eb;background:#eff6ff}
.dash-workbench-left .dash-work-queue-item>i{grid-column:1/-1;display:inline-flex;width:max-content;margin-bottom:1px;padding:3px 8px;border-radius:999px;background:#2563eb;color:#fff;font-size:12px;font-style:normal;font-weight:900}
.dash-workbench-left .dash-work-queue-item strong{font-size:16px}
.dash-workbench-left .dash-work-queue-item small{font-size:14px}
.dash-workbench-left .dash-work-queue-item p{font-size:14px!important}
.dash-management-kpis{gap:8px;margin-bottom:12px}
.dash-management-kpi{min-height:106px;padding:14px 15px;border-radius:12px}
.dash-management-kpi>div{margin-top:7px}
.dash-management-kpi strong{font-size:30px}
.dash-management-kpi p{margin-top:7px;font-size:13px!important}
.dash-kpi-definitions{margin:-4px 0 12px}
.dash-annual-plan{margin:0 0 12px}
.dash-management-projects{margin:0 0 12px}
.dash-management-project-row{grid-template-columns:minmax(240px,1.6fr) minmax(110px,.55fr) minmax(150px,.8fr) minmax(190px,1fr) minmax(88px,.45fr);min-height:58px}
.dash-management-next{display:grid;gap:3px;color:#1d4ed8;font-weight:850}
.dash-management-next small{color:#64748b;font-size:13px;font-weight:600}
.dash-management-more{margin-top:0}
.dash-management-more>summary{min-height:48px}
.dash-management-detail-grid>.dash-panel,.dash-management-detail-grid>section{min-width:0;margin:0}
html[data-theme="dark"] .dash-tool-dock,html[data-theme="dark"] .dash-tool-shortcut,html[data-theme="dark"] .dash-tool-more,html[data-theme="dark"] .dash-current-step-jump{background:#172235;border-color:#314158;color:#e5edf8}
html[data-theme="dark"] .dash-tool-dock-head>div span{color:#e5edf8}
html[data-theme="dark"] .dash-tool-dock-head>div small{color:#9fb0c6}
html[data-theme="dark"] .dash-current-step-jump{background:linear-gradient(135deg,#172a46,#172235)}
html[data-theme="dark"] .dash-current-step-jump strong{color:#f1f5f9}
@media(max-width:1180px){.dash-focus-card{grid-template-columns:1fr}.dash-management-project-row{min-width:860px}}
@media(max-width:1080px){.dash-access-strip{grid-template-columns:1fr}.dash-tool-dock{overflow:auto}.dash-current-step-jump{min-height:56px}}

/* Dashboard selection stays on the workbench; navigation only happens from explicit actions. */
.dash-work-queue-item.is-selected{border-color:#2563eb!important;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.dash-management-project-row.is-selected{background:#eff6ff;border-left:3px solid #2563eb}
.dash-project-preview{display:grid;gap:0;margin:0 0 12px;border:1px solid #cfe0f7;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.045);overflow:hidden}
.dash-project-preview>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 17px 11px}
.dash-project-preview>header span,.dash-project-preview-next span{display:block;color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.04em}
.dash-project-preview>header h2{margin:3px 0 1px;color:#0f172a;font-size:21px}
.dash-project-preview>header p,.dash-project-preview-next p{margin:0;color:#64748b;font-size:14px;line-height:1.5}
.dash-project-preview>header mark{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:13px;font-weight:850}
.dash-project-preview>header mark.is-active{background:#eff6ff;color:#1d4ed8}
.dash-project-preview>header mark.is-closed{background:#ecfdf5;color:#047857}
.dash-project-preview-main{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(280px,1fr);gap:18px;padding:11px 17px;border-top:1px solid #edf2f7}
.dash-project-preview-progress{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;gap:10px;align-items:center}
.dash-project-preview-progress span{color:#475569;font-size:13px;font-weight:800}
.dash-project-preview-progress b{height:8px;border-radius:999px;background:#e8eef7;overflow:hidden}
.dash-project-preview-progress b i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0ea5a4)}
.dash-project-preview-progress strong{color:#1d4ed8;font-size:15px}
.dash-project-preview dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.dash-project-preview dl div{display:grid;gap:2px}
.dash-project-preview dt{color:#64748b;font-size:12px}
.dash-project-preview dd{margin:0;color:#172033;font-size:14px;font-weight:800}
.dash-project-preview-next{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 17px;border-top:1px solid #edf2f7;background:#f8fbff}
.dash-project-preview-next strong{display:block;margin:2px 0;color:#172033;font-size:16px}
.dash-project-preview-actions{display:flex;gap:8px;flex:0 0 auto}
.dash-tool-config-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.42)}
.dash-tool-config{width:min(660px,100%);max-height:min(760px,90vh);overflow:auto;border:1px solid #dbe5f1;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.25)}
.dash-tool-config>header{display:flex;justify-content:space-between;gap:18px;padding:20px 22px 15px;border-bottom:1px solid #e5edf7}
.dash-tool-config>header span{color:#2563eb;font-size:12px;font-weight:900}
.dash-tool-config>header h2{margin:3px 0 4px;color:#0f172a;font-size:22px}
.dash-tool-config>header p{margin:0;color:#64748b;font-size:14px}
.dash-tool-config>header>button{width:34px;height:34px;border:1px solid #dbe5f1;border-radius:9px;background:#f8fafc;color:#475569;font-size:22px;cursor:pointer}
.dash-tool-config-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 22px}
.dash-tool-config-list article{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:11px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.dash-tool-config-list article.is-selected{border-color:#93c5fd;background:#eff6ff}
.dash-tool-config-list article>i{width:20px;height:20px;color:#2563eb}
.dash-tool-config-list article>div{display:grid;gap:2px}
.dash-tool-config-list strong{color:#172033;font-size:14px}
.dash-tool-config-list small{color:#64748b;font-size:12px}
.dash-tool-config-list article>button,.dash-tool-order button{min-height:32px;padding:0 9px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;color:#1d4ed8;font-weight:800;cursor:pointer}
.dash-tool-order{display:flex;gap:4px}
.dash-tool-order button{width:30px;padding:0}
.dash-tool-order button:disabled{opacity:.35;cursor:not-allowed}
.dash-tool-config>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid #e5edf7}
.dash-tool-config>footer>div{display:flex;gap:8px}
html[data-theme="dark"] .dash-project-preview,html[data-theme="dark"] .dash-tool-config{background:#172235;border-color:#314158}
html[data-theme="dark"] .dash-project-preview>header h2,html[data-theme="dark"] .dash-project-preview dd,html[data-theme="dark"] .dash-project-preview-next strong,html[data-theme="dark"] .dash-tool-config h2,html[data-theme="dark"] .dash-tool-config-list strong{color:#e5edf8}
html[data-theme="dark"] .dash-project-preview-main,html[data-theme="dark"] .dash-project-preview-next,html[data-theme="dark"] .dash-tool-config>header,html[data-theme="dark"] .dash-tool-config>footer{border-color:#314158}
html[data-theme="dark"] .dash-project-preview-next,html[data-theme="dark"] .dash-tool-config-list article{background:#13233b}
@media(max-width:760px){.dash-project-preview-main{grid-template-columns:1fr}.dash-project-preview-next{align-items:flex-start;flex-direction:column}.dash-project-preview-actions{width:100%}.dash-project-preview-actions .btn{flex:1}.dash-tool-config-list{grid-template-columns:1fr}.dash-tool-config>footer{align-items:stretch;flex-direction:column}.dash-tool-config>footer>div{display:grid;grid-template-columns:1fr 1fr}}

/* ===== Human-readable professional knowledge search ===== */
.pc-heading { align-items:center; padding:22px 24px; }
.pc-heading h2 { margin-top:5px; font-size:26px; }
.pc-heading p { max-width:900px; font-size:14px !important; line-height:1.65; }
.pc-heading-actions { display:flex; flex:0 0 auto; align-items:center; gap:10px; }
.pc-return-to-knowledge { min-height:36px; padding:0 11px; border-radius:8px; box-shadow:none; }
.pc-unified-badge { flex:0 0 auto; padding:8px 12px; border:1px solid #bbf7d0; border-radius:999px; background:#f0fdf4; color:#047857; font-size:13px; }
.pc-maintenance { border-bottom:1px solid #dce4ee; background:#f8fafc; }
.pc-maintenance>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:10px 20px; color:#475569; list-style:none; cursor:pointer; }
.pc-maintenance>summary::-webkit-details-marker { display:none; }
.pc-maintenance>summary span { font-size:14px; font-weight:800; }
.pc-maintenance>summary small { color:#64748b; }
.pc-maintenance[open]>summary { border-bottom:1px solid #dce4ee; background:#fff; }
.pc-layout { grid-template-columns:230px minmax(0,1fr); }
.pc-module-title strong { font-size:15px; }
.pc-module-title span { font-size:13px; }
.pc-module-btn { grid-template-columns:20px minmax(0,1fr); min-height:52px; padding:9px 10px; }
.pc-module-btn strong { font-size:14px; }
.pc-module-btn small { margin-top:3px; font-size:13px !important; }
.pc-module-btn em { display:none; }
.pc-browser { padding:18px 20px 22px; }
.pc-toolbar { grid-template-columns:minmax(240px,.82fr) minmax(0,1.18fr); gap:10px; margin-bottom:8px; }
.pc-toolbar label { min-height:44px; height:44px; border-radius:9px; }
.pc-toolbar input { font-size:15px !important; }
.pc-type-switch { grid-template-columns:repeat(6,minmax(0,1fr)); min-height:44px; height:44px; border-radius:9px; }
.pc-type-switch button { min-width:0; padding:0 7px; font-size:12px !important; white-space:nowrap; }
.pc-search-hint { margin:0 0 12px; color:#64748b; font-size:13px !important; }
.pc-workspace { grid-template-columns:minmax(0,1fr); min-height:540px; border-radius:12px; overflow:hidden; }
.pc-workspace.has-detail { grid-template-columns:minmax(480px,1.15fr) minmax(390px,.85fr); }
.pc-result-list { border-right:0; }
.pc-workspace.has-detail .pc-result-list { border-right:1px solid #d8e1ec; }
.pc-search-landing { padding:22px; }
.pc-search-hero { padding:22px; }
.pc-search-hero span { font-size:13px; }
.pc-search-hero strong { font-size:19px; }
.pc-search-hero p { font-size:14px; }
.pc-search-tags button { min-height:40px; padding:9px 13px; font-size:14px !important; }
.pc-search-guide strong { font-size:14px; }
.pc-search-guide p { font-size:13px !important; }
.pc-layered-results { gap:14px; padding:16px; }
.pc-answer-card { overflow:hidden; border:1px solid #bfdbfe; border-radius:16px; background:#fff; box-shadow:0 12px 30px rgba(37,99,235,.08); }
.pc-answer-card>header { padding:18px 20px 14px; border-bottom:1px solid #dbeafe; background:linear-gradient(135deg,#eff6ff,#fff); }
.pc-answer-card>header span { color:#1d4ed8; font-size:13px; font-weight:900; }
.pc-answer-card>header h2 { margin:7px 0 0; color:#0f172a; font-size:20px; line-height:1.4; }
.pc-answer-conclusion { padding:18px 20px; border-bottom:1px solid #e2e8f0; }
.pc-answer-conclusion strong,.pc-answer-grid article>strong { display:block; margin-bottom:7px; color:#0f172a; font-size:15px; }
.pc-answer-conclusion p { margin:0; color:#27364b; font-size:15px !important; line-height:1.75 !important; }
.pc-answer-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
.pc-answer-grid article { padding:17px 18px; border-right:1px solid #e2e8f0; }
.pc-answer-grid article:last-child { border-right:0; }
.pc-answer-grid ul { display:grid; gap:7px; margin:0; padding-left:20px; }
.pc-answer-grid li { color:#3b4b60; font-size:14px !important; line-height:1.6; }
.pc-answer-empty { margin:0; color:#64748b; font-size:14px !important; }
.pc-answer-basis { margin:0; padding:12px 20px; border-top:1px solid #e2e8f0; background:#f8fafc; color:#64748b; font-size:13px !important; line-height:1.55; }
.pc-action-assistant { overflow:hidden; border:1px solid #bbf7d0; border-radius:16px; background:linear-gradient(135deg,#f0fdf4,#fff); box-shadow:0 12px 28px rgba(22,163,74,.08); }
.pc-action-assistant>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 18px 12px; border-bottom:1px solid #dcfce7; }
.pc-action-assistant>header span { display:block; color:#047857; font-size:13px; font-weight:950; }
.pc-action-assistant>header strong { display:block; margin-top:5px; color:#0f172a; font-size:18px; line-height:1.35; }
.pc-action-assistant>header small { max-width:430px; color:#64748b; font-size:13px !important; line-height:1.55; }
.pc-action-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:13px; }
.pc-action-grid article { display:flex; flex-direction:column; min-height:168px; padding:14px; border:1px solid #d8efe0; border-radius:14px; background:#fff; }
.pc-action-grid article span { align-self:flex-start; padding:4px 8px; border-radius:999px; background:#ecfdf5; color:#047857; font-size:12px !important; font-weight:900; }
.pc-action-grid article strong { margin-top:10px; color:#0f172a; font-size:16px; line-height:1.35; }
.pc-action-grid article p { flex:1; margin:7px 0 12px; color:#475569; font-size:14px !important; line-height:1.6; }
.pc-action-grid article button { min-height:38px; border:1px solid #10b981; border-radius:10px; background:#10b981; color:#fff; font-size:14px !important; font-weight:900; cursor:pointer; }
.pc-action-grid article button:hover { background:#059669; border-color:#059669; }
.pc-page .pc-heading{padding:16px 20px!important}
.pc-page .pc-heading p{display:none!important}
.pc-page .pc-layout{min-height:0!important}
.pc-page .pc-action-assistant{border-radius:14px!important;box-shadow:none!important}
.pc-page .pc-action-assistant>header{align-items:center!important;padding:12px 14px!important}
.pc-page .pc-action-assistant>header small{display:none!important}
.pc-page .pc-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important;padding:10px!important}
.pc-page .pc-action-grid article{min-height:0!important;padding:10px 11px!important;border-radius:11px!important}
.pc-page .pc-action-grid article p{display:none!important}
.pc-page .pc-action-grid article strong{margin:7px 0 10px!important;font-size:15px!important}
.pc-page .pc-action-grid article button{min-height:34px!important}
.pc-evidence-drawer { overflow:hidden; border:1px solid #dbe3ed; border-radius:14px; background:#fff; }
.pc-evidence-drawer>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:11px 15px; list-style:none; cursor:pointer; }
.pc-evidence-drawer>summary::-webkit-details-marker { display:none; }
.pc-evidence-drawer>summary span { color:#0f172a; font-size:15px; font-weight:850; }
.pc-evidence-drawer>summary small { color:#64748b; }
.pc-evidence-drawer[open]>summary { border-bottom:1px solid #e2e8f0; }
.pc-evidence-body { display:grid; gap:12px; padding:12px; background:#f8fafc; }
.pc-layer-head strong { font-size:15px; }
.pc-layer-head span { font-size:13px; }
.pc-layer-head em { font-size:12px; }
.pc-result-row { grid-template-columns:92px minmax(0,1fr) minmax(100px,150px) 18px; min-height:96px; padding:13px 15px; }
.pc-result-type { width:84px; font-size:13px; }
.pc-result-main strong { font-size:15px; }
.pc-result-main small,.pc-result-explain small,.pc-result-modules { font-size:13px !important; }
.pc-result-explain em { font-size:12px; }
.pc-procedure-suggestions p,.pc-boundary-list span { font-size:14px !important; }
.pc-detail { padding:22px 24px 26px; }
.pc-detail header>span,.pc-detail header p,.pc-detail-tags span { font-size:13px; }
.pc-detail h3 { font-size:19px; }
.pc-detail-body h4 { font-size:14px; }
.pc-detail-body p { font-size:14px !important; line-height:1.7; }
.pc-tech-detail { margin-top:12px; border:1px solid #dbe3ed; border-radius:10px; background:#f8fafc; }
.pc-tech-detail>summary { padding:11px 13px; color:#475569; font-size:13px; font-weight:800; cursor:pointer; }
.pc-tech-detail>div { padding:0 13px 4px; }
html[data-theme="dark"] .pc-answer-card,html[data-theme="dark"] .pc-evidence-drawer,html[data-theme="dark"] .pc-maintenance,html[data-theme="dark"] .pc-action-assistant { background:#172235; border-color:#314158; }
html[data-theme="dark"] .pc-answer-card>header { background:linear-gradient(135deg,#172a46,#172235); border-color:#314158; }
html[data-theme="dark"] .pc-action-assistant>header { background:linear-gradient(135deg,#123329,#172235); border-color:#314158; }
html[data-theme="dark"] .pc-action-grid article { background:#172235; border-color:#314158; }
html[data-theme="dark"] .pc-answer-card>header h2,html[data-theme="dark"] .pc-answer-conclusion strong,html[data-theme="dark"] .pc-answer-grid article>strong,html[data-theme="dark"] .pc-evidence-drawer>summary span,html[data-theme="dark"] .pc-action-assistant>header strong,html[data-theme="dark"] .pc-action-grid article strong { color:#e5edf8; }
html[data-theme="dark"] .pc-answer-conclusion p,html[data-theme="dark"] .pc-answer-grid li { color:#cbd5e1; }
html[data-theme="dark"] .pc-answer-grid article,html[data-theme="dark"] .pc-answer-conclusion,html[data-theme="dark"] .pc-answer-basis { border-color:#314158; }
html[data-theme="dark"] .pc-answer-basis,html[data-theme="dark"] .pc-evidence-body,html[data-theme="dark"] .pc-tech-detail { background:#13233b; }
@media(max-width:1120px){.pc-workspace.has-detail{grid-template-columns:1fr}.pc-workspace.has-detail .pc-result-list{border-right:0;border-bottom:1px solid #d8e1ec}.pc-answer-grid,.pc-action-grid{grid-template-columns:1fr}.pc-answer-grid article{border-right:0;border-bottom:1px solid #e2e8f0}.pc-answer-grid article:last-child{border-bottom:0}}
@media(max-width:820px){.pc-layout{grid-template-columns:1fr}.pc-toolbar{grid-template-columns:1fr}.pc-unified-badge{align-self:flex-start}.pc-maintenance>summary,.pc-action-assistant>header{align-items:flex-start;flex-direction:column}.pc-result-row{grid-template-columns:84px minmax(0,1fr) 18px}.pc-result-modules{display:none}}

/* ===== Knowledge Q&A: answer first, evidence second ===== */
.qa-library-source-btn { align-self:center; min-height:34px; padding:0 12px; border:0; border-radius:7px; background:transparent; color:#334155; font-size:13px; font-weight:800; cursor:pointer; }
.qa-library-source-btn:hover { background:#fff; color:#1d4ed8; }
.qa-library-source-btn:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
#view-qa.qa-redesigned .qa-mode-bar { min-height:48px; padding:9px 12px; }
#view-qa.qa-redesigned .qa-mode-badge { font-size:13px; }
#view-qa.qa-redesigned .qa-mode-desc { font-size:13px !important; line-height:1.5; }
#view-qa.qa-redesigned .qa-clear-btn { min-height:34px; font-size:13px !important; }
#view-qa.qa-redesigned .qa-source-filter { min-height:46px; }
#view-qa.qa-redesigned .qa-source-filter-label,#view-qa.qa-redesigned .qa-source-toggle,#view-qa.qa-redesigned .qa-context-chip { font-size:13px !important; }
#view-qa.qa-redesigned .qa-msg-content { font-size:14px !important; line-height:1.65; }
#view-qa.qa-redesigned .qa-input-area { padding:13px 14px; }
#view-qa.qa-redesigned .qa-input-area input { min-height:44px; font-size:15px !important; }
#view-qa.qa-redesigned #qa-send { min-width:92px; min-height:44px; font-size:14px !important; }
.qa-ai-answer-formatted { color:#27364b; font-size:15px; line-height:1.75; }
.qa-ai-answer-formatted h3 { margin:18px 0 8px; color:#0f172a; font-size:16px; line-height:1.45; }
.qa-ai-answer-formatted h3:first-child { margin-top:0; }
.qa-ai-answer-formatted p { margin:0 0 10px; }
.qa-ai-answer-formatted ul,.qa-ai-answer-formatted ol { display:grid; gap:6px; margin:0 0 12px; padding-left:22px; }
.qa-ai-answer-formatted li { padding-left:2px; }
.qa-direct-answer { overflow:hidden; margin-bottom:12px; border:1px solid #bfdbfe; border-radius:14px; background:#fff; }
.qa-direct-answer>header { padding:15px 17px 12px; border-bottom:1px solid #dbeafe; background:linear-gradient(135deg,#eff6ff,#fff); }
.qa-direct-answer>header span { color:#1d4ed8; font-size:13px; font-weight:900; }
.qa-direct-answer>header h3 { margin:6px 0 0; color:#0f172a; font-size:18px; line-height:1.45; }
.qa-direct-conclusion { padding:15px 17px; border-bottom:1px solid #e2e8f0; }
.qa-direct-conclusion strong,.qa-direct-grid article>strong { display:block; margin-bottom:6px; color:#0f172a; font-size:14px; }
.qa-direct-conclusion p { margin:0; color:#27364b; font-size:15px !important; line-height:1.7 !important; }
.qa-direct-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.qa-direct-grid article { padding:14px 15px; border-right:1px solid #e2e8f0; }
.qa-direct-grid article:last-child { border-right:0; }
.qa-direct-grid ul { display:grid; gap:6px; margin:0; padding-left:18px; }
.qa-direct-grid li,.qa-direct-grid p { color:#3b4b60; font-size:13px !important; line-height:1.55; }
.qa-answer-scope-brief { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 12px; }
.qa-answer-scope-brief>div { min-width:0; padding:13px 14px; border:1px solid #dbeafe; border-radius:13px; background:linear-gradient(180deg,#fff,#f8fbff); }
.qa-answer-scope-brief span { display:block; color:#2563eb; font-size:13px; font-weight:950; letter-spacing:.06em; }
.qa-answer-scope-brief strong { display:block; margin-top:4px; color:#0f172a; font-size:16px; line-height:1.3; }
.qa-answer-scope-brief p { margin:5px 0 0; color:#475569; font-size:14px!important; line-height:1.6; }
.qa-professional-action-plan .qa-block-header { font-size:14px; }
.qa-professional-action-plan .qa-block-body,.qa-professional-action-plan li { font-size:14px !important; line-height:1.6; }
.qa-evidence-drawer { overflow:hidden; margin-bottom:10px; border:1px solid #dbe3ed; border-radius:12px; background:#fff; }
.qa-evidence-drawer>summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:10px 13px; list-style:none; cursor:pointer; }
.qa-evidence-drawer>summary::-webkit-details-marker { display:none; }
.qa-evidence-drawer>summary span { color:#0f172a; font-size:14px; font-weight:850; }
.qa-evidence-drawer>summary small { color:#64748b; }
.qa-evidence-drawer[open]>summary { border-bottom:1px solid #e2e8f0; }
.qa-evidence-drawer>div { padding:10px; background:#f8fafc; }
.qa-professional-structured .qa-block-header,.qa-professional-boundary .qa-block-header { font-size:14px; }
.qa-professional-structured .qa-block-body,.qa-professional-structured p,.qa-professional-boundary .qa-block-body { font-size:14px !important; line-height:1.65; }
.qa-meta-tag,.qa-citation-chip,.qa-citations-label { font-size:12.5px !important; }
html[data-theme="dark"] .qa-direct-answer,html[data-theme="dark"] .qa-evidence-drawer,html[data-theme="dark"] .qa-answer-scope-brief>div { background:#172235; border-color:#314158; }
html[data-theme="dark"] .qa-ai-answer-formatted,html[data-theme="dark"] .qa-ai-answer-formatted p,html[data-theme="dark"] .qa-ai-answer-formatted li { color:#cbd5e1; }
html[data-theme="dark"] .qa-ai-answer-formatted h3 { color:#e5edf8; }
html[data-theme="dark"] .qa-direct-answer>header { background:linear-gradient(135deg,#172a46,#172235); border-color:#314158; }
html[data-theme="dark"] .qa-direct-answer>header h3,html[data-theme="dark"] .qa-direct-conclusion strong,html[data-theme="dark"] .qa-direct-grid article>strong,html[data-theme="dark"] .qa-evidence-drawer>summary span,html[data-theme="dark"] .qa-answer-scope-brief strong { color:#e5edf8; }
html[data-theme="dark"] .qa-direct-conclusion p,html[data-theme="dark"] .qa-direct-grid li,html[data-theme="dark"] .qa-answer-scope-brief p { color:#cbd5e1; }
html[data-theme="dark"] .qa-direct-conclusion,html[data-theme="dark"] .qa-direct-grid article { border-color:#314158; }
html[data-theme="dark"] .qa-evidence-drawer>div { background:#13233b; }
@media(max-width:900px){.qa-direct-grid,.qa-answer-scope-brief{grid-template-columns:1fr}.qa-direct-grid article{border-right:0;border-bottom:1px solid #e2e8f0}.qa-direct-grid article:last-child{border-bottom:0}.qa-library-source-btn{align-self:flex-start}}

/* ===== Knowledge workspace: one clear primary action ===== */
#view-qa.qa-redesigned .qa-workbench { display:grid; gap:12px; }
#view-qa.qa-redesigned .prompt-panel { margin:0; }
#view-qa.qa-redesigned .prompt-header { cursor:pointer; }
#view-qa.qa-redesigned .prompt-panel-title { font-size:14px; }
#view-qa.qa-redesigned .prompt-toggle { font-size:13px; color:#1d4ed8; }
#view-qa.qa-redesigned .prompt-body.collapsed { display:none; }
#view-qa.qa-redesigned .qa-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
#view-qa.qa-redesigned .qa-chat-container {
  height:520px !important;
  min-height:380px;
  max-height:74vh;
  max-height:min(74vh,760px);
  overflow:hidden;
  resize:none;
}
#view-qa.qa-redesigned .qa-mode-bar { order:0; }
#view-qa.qa-redesigned .qa-input-area { order:1; border-top:0; border-bottom:1px solid #e2e8f0; }
#view-qa.qa-redesigned .qa-messages { order:2; min-height:0; overflow:auto; scrollbar-gutter:stable; }
#view-qa.qa-redesigned .qa-kb-col { display:block; }
.qa-project-source-drawer { overflow:hidden; border:1px solid #dbe3ed; border-radius:10px; background:#fff; }
.qa-project-source-drawer>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:10px 14px; list-style:none; cursor:pointer; }
.qa-project-source-drawer>summary::-webkit-details-marker { display:none; }
.qa-project-source-drawer>summary span { color:#172033; font-size:14px; font-weight:800; }
.qa-project-source-drawer>summary small { color:#64748b; font-size:13px; }
.qa-project-source-drawer[open]>summary { border-bottom:1px solid #e2e8f0; }
#view-qa.qa-redesigned .qa-project-source-drawer .qa-kb-card { border:0; border-radius:0; box-shadow:none; }
#view-qa.qa-redesigned .qa-project-source-drawer[open] .qa-kb-card {
  position:fixed;
  z-index:1200;
  top:78px;
  right:20px;
  bottom:20px;
  width:min(780px,calc(100vw - 280px));
  height:auto !important;
  min-height:0;
  max-height:none;
  padding:14px !important;
  border:1px solid #cbd5e1;
  border-radius:16px;
  background:#fff;
  overflow:auto;
  resize:none;
  scrollbar-gutter:stable;
  box-shadow:0 26px 70px rgba(15,23,42,.24);
}
.qa-source-filter-divider { width:1px; height:34px; margin:0 3px; background:#dbe3ed; }
.qa-active-library-action{min-height:32px;margin-left:auto;padding:0 11px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:850;cursor:pointer}.qa-active-library-action:hover{border-color:#60a5fa;background:#dbeafe}.qa-active-library-action:focus-visible,.qa-reference-types input:focus-visible{outline:3px solid rgba(37,99,235,.18);outline-offset:2px}.qa-reference-types{display:flex;align-items:center;gap:7px}.qa-reference-types label{display:inline-flex;min-height:32px;padding:0 10px;align-items:center;gap:6px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;font-size:12px;font-weight:850;cursor:pointer}.qa-reference-types label:has(input:checked){border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.qa-reference-types input{width:15px;height:15px;margin:0;accent-color:#2563eb}.qa-local-result-card.is-formal-basis{border-left:3px solid #2563eb}.qa-local-result-card.is-method-reference{border-left:3px solid #d97706;background:#fffdf7}.qa-local-result-card.is-method-reference header>span{background:#fef3c7;color:#92400e}

.qa-library-workspace.is-share-mode{grid-template-columns:176px minmax(0,1fr)}
.qa-library-workspace.is-share-mode .qa-library-content-pane{border-right:0}
.qa-library-workspace.is-share-mode .qa-library-document-list{max-height:none!important;padding:14px!important;overflow:auto!important}
.qa-share-transfer{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:14px}
.qa-share-column{min-width:0;border:1px solid #dbe3ed;border-radius:11px;background:#fff;overflow:hidden}
.qa-share-column>header{display:flex;min-height:58px;padding:11px 12px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5ebf2;background:#f8fafc}
.qa-share-column>header strong,.qa-share-column>header span{display:block}.qa-share-column>header strong{color:#172033;font-size:13px}.qa-share-column>header span{margin-top:2px;color:#7a899d;font-size:10px}.qa-share-column>header button{min-height:31px;padding:0 10px;border:1px solid #2563eb;border-radius:7px;background:#2563eb;color:#fff;font-size:11px;font-weight:850;cursor:pointer}
.qa-share-list{display:grid;max-height:520px;overflow:auto}
.qa-share-document,.qa-share-candidate{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:9px 11px;border-bottom:1px solid #edf2f7;background:#fff}
.qa-share-document:last-child,.qa-share-candidate:last-child{border-bottom:0}.qa-share-document>span:nth-child(2),.qa-share-candidate>span:nth-child(3){min-width:0}.qa-share-document strong,.qa-share-document small,.qa-share-candidate strong,.qa-share-candidate small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qa-share-document strong,.qa-share-candidate strong{color:#334155;font-size:11px}.qa-share-document small,.qa-share-candidate small{margin-top:3px;color:#8492a6;font-size:10px}.qa-share-candidate{grid-template-columns:17px 32px minmax(0,1fr);cursor:pointer}.qa-share-candidate:hover{background:#f8fbff}.qa-share-candidate input{width:15px;height:15px;margin:0;accent-color:#2563eb}.qa-share-status{padding:3px 6px;border-radius:6px;background:#eef2f7;color:#64748b;font-size:9px;font-weight:850;white-space:nowrap}.qa-share-review-actions{display:flex;gap:5px}.qa-share-review-actions button{min-height:27px;padding:0 7px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#52637a;font-size:10px;font-weight:800;cursor:pointer}.qa-share-review-actions button:first-child{border-color:#bfdbfe;color:#1d4ed8}.qa-share-empty{padding:28px 14px;color:#94a3b8;font-size:11px;text-align:center}
@media(max-width:980px){.qa-share-transfer{grid-template-columns:1fr}.qa-library-workspace.is-share-mode{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){.qa-library-workspace.is-share-mode{grid-template-columns:1fr}}
.pmat-attachment-status-summary{color:#2563eb!important;font-weight:800}.pmat-attachment-section{margin-top:12px;border:1px solid #dbe3ed;border-radius:11px;background:#fff;overflow:hidden}.pmat-attachment-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.pmat-attachment-section>header strong{display:block;color:#172033;font-size:13px}.pmat-attachment-section>header small{display:block;margin-top:3px;color:#64748b;font-size:12px;line-height:1.45}.pmat-attachment-section>header>span{flex:0 0 auto;color:#2563eb;font-size:12px;font-weight:850}.pmat-attachment-index{display:grid}.pmat-attachment-index article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 12px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf2f7}.pmat-attachment-index article:last-child{border-bottom:0}.pmat-attachment-index article strong,.pmat-attachment-index article small{display:block}.pmat-attachment-index article strong{color:#172033;font-size:13px}.pmat-attachment-index article small{margin-top:2px;color:#64748b;font-size:11px}.pmat-attachment-index article>span{padding:3px 7px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}.pmat-attachment-index article>span.is-parsed{background:#dcfce7;color:#166534}.pmat-attachment-index article>span.is-review{background:#fef3c7;color:#92400e}.pmat-attachment-index article>span.is-unavailable{background:#f1f5f9;color:#64748b}.pmat-attachment-index article>button{min-height:29px;padding:0 9px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:850;cursor:pointer}.pmat-attachment-index article>p{grid-column:1/-1;margin:0;color:#64748b;font-size:11px;line-height:1.45}.pmat-attachment-empty{padding:13px;color:#64748b;font-size:12px;text-align:center}.pmat-attachment-preview-layer{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.5)}.pmat-attachment-preview{display:grid;grid-template-rows:auto auto minmax(0,1fr);width:min(900px,94vw);height:min(720px,88vh);border:1px solid #cbd5e1;border-radius:16px;background:#fff;box-shadow:0 24px 64px rgba(15,23,42,.3);overflow:hidden}.pmat-attachment-preview>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.pmat-attachment-preview>header span,.pmat-attachment-preview>header strong,.pmat-attachment-preview>header small{display:block}.pmat-attachment-preview>header span{color:#2563eb;font-size:12px;font-weight:900}.pmat-attachment-preview>header strong{margin-top:3px;color:#0f172a;font-size:17px}.pmat-attachment-preview>header small{margin-top:3px;color:#64748b;font-size:12px}.pmat-attachment-preview>header button{min-height:32px;padding:0 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:12px;font-weight:850;cursor:pointer}.pmat-attachment-preview-note{padding:10px 16px;border-bottom:1px solid #fde68a;background:#fffbeb;color:#92400e;font-size:12px;line-height:1.5}.pmat-attachment-preview pre{min-height:0;margin:0;padding:17px;overflow:auto;white-space:pre-wrap;word-break:break-word;color:#27364b;font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.pmat-tracking-table tr.is-located{animation:pmat-locate-pulse 2.4s ease-out}@keyframes pmat-locate-pulse{0%,35%{background:#dbeafe;box-shadow:inset 4px 0 #2563eb}100%{background:transparent;box-shadow:inset 0 0 transparent}}@media(max-width:760px){.pmat-attachment-index article{grid-template-columns:minmax(0,1fr) auto}.pmat-attachment-index article>button{grid-column:1/-1;justify-self:start}.pmat-attachment-preview-layer{padding:10px}.pmat-attachment-preview{width:100%;height:92vh}}
.qa-project-result-actions{align-items:center;gap:7px}.qa-project-result-actions>span{margin-right:auto;color:#64748b;font-size:11px;font-weight:750}.qa-local-result-card>footer button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}.qa-project-record-preview-layer{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.5)}.qa-project-record-preview{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(940px,94vw);height:min(760px,90vh);border:1px solid #cbd5e1;border-radius:16px;background:#fff;box-shadow:0 24px 64px rgba(15,23,42,.3);overflow:hidden}.qa-project-record-preview>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.qa-project-record-preview>header span,.qa-project-record-preview>header strong,.qa-project-record-preview>header small{display:block}.qa-project-record-preview>header span{color:#2563eb;font-size:12px;font-weight:900}.qa-project-record-preview>header strong{margin-top:3px;color:#0f172a;font-size:18px}.qa-project-record-preview>header small{margin-top:3px;color:#64748b;font-size:12px}.qa-project-record-preview>header button{min-height:32px;padding:0 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:12px;font-weight:850;cursor:pointer}.qa-project-record-preview-summary{padding:12px 16px;border-bottom:1px solid #e2e8f0;background:#fff}.qa-project-record-preview-summary strong{display:block;color:#172033;font-size:13px}.qa-project-record-preview-summary p{margin:5px 0 0;color:#475569;font-size:12px;line-height:1.55}.qa-project-record-preview-files{min-height:0;overflow:auto;padding:14px 16px;background:#f8fafc}.qa-project-record-preview-files>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.qa-project-record-preview-files>header strong{color:#172033;font-size:13px}.qa-project-record-preview-files>header span{color:#2563eb;font-size:12px;font-weight:850}.qa-project-record-preview-files article{margin-bottom:10px;border:1px solid #dbe3ed;border-radius:10px;background:#fff;overflow:hidden}.qa-project-record-preview-files article>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e2e8f0}.qa-project-record-preview-files article>div strong{color:#172033;font-size:13px}.qa-project-record-preview-files article>div small{color:#64748b;font-size:11px}.qa-project-record-preview-files article.is-parsed>div small{color:#166534;font-weight:850}.qa-project-record-preview-files pre{max-height:300px;margin:0;padding:12px;overflow:auto;white-space:pre-wrap;word-break:break-word;color:#334155;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.qa-project-record-preview-files article>p,.qa-project-record-preview-empty{margin:0;padding:12px;color:#64748b;font-size:12px;line-height:1.5}.qa-project-record-preview>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#fff}.qa-project-record-preview>footer span{color:#64748b;font-size:12px}.qa-project-record-preview>footer button{flex:0 0 auto;min-height:34px;padding:0 12px;border:1px solid #2563eb;border-radius:8px;background:#2563eb;color:#fff;font-size:12px;font-weight:850;cursor:pointer}.qa-project-record-located{animation:qa-record-locate 2.4s ease-out}@keyframes qa-record-locate{0%,35%{outline:3px solid #60a5fa;background:#dbeafe}100%{outline-color:transparent;background:inherit}}@media(max-width:760px){.qa-project-record-preview-layer{padding:10px}.qa-project-record-preview{width:100%;height:94vh}.qa-project-record-preview>footer{align-items:flex-start;flex-direction:column}.qa-project-record-preview>footer button{width:100%}}
.qa-library-manager { display:grid; gap:12px; }
.qa-library-manager-head { position:sticky; z-index:3; top:-14px; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:-14px -14px 0; padding:14px; border-bottom:1px solid #e2e8f0; background:rgba(255,255,255,.97); backdrop-filter:blur(10px); }
.qa-library-manager-head>div { min-width:0; }
.qa-library-manager-head>button { flex:0 0 auto; min-height:34px; padding:0 11px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#475569; font-size:12px; font-weight:850; cursor:pointer; }
.qa-library-manager-head>button:hover { border-color:#60a5fa; color:#1d4ed8; }
.qa-library-manager-head span { display:block; color:#2563eb; font-size:12px; font-weight:900; letter-spacing:.08em; }
.qa-library-manager-head strong { display:block; margin-top:3px; color:#0f172a; font-size:17px; line-height:1.3; }
.qa-library-manager-head p { margin:5px 0 0; color:#64748b; font-size:13px; line-height:1.55; }
.qa-library-tabs { display:flex; flex-wrap:wrap; gap:7px; }
.qa-library-tabs button { min-height:34px; padding:0 12px; border:1px solid #dbe3ed; border-radius:999px; background:#fff; color:#52637a; font-size:13px; font-weight:800; cursor:pointer; }
.qa-library-tabs button:hover { border-color:#93c5fd; color:#1d4ed8; }
.qa-library-tabs button.is-active { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; box-shadow:0 5px 14px rgba(37,99,235,.1); }
.qa-library-upload[hidden] { display:none; }
#view-qa.qa-redesigned .qa-library-upload .kb-upload-zone { display:flex; width:100%; min-height:82px; margin:0; padding:14px; align-items:center; justify-content:center; flex-direction:column; gap:4px; font-family:inherit; cursor:pointer; }
.qa-library-upload .kb-upload-zone strong { color:#1d4ed8; font-size:14px; }
.qa-library-upload .kb-upload-zone small { color:#64748b; font-size:12px; font-weight:600; }
.qa-library-upload .kb-upload-zone.is-loading { border-color:#60a5fa; background:#eff6ff; cursor:progress; }
.qa-ingestion-workbench { overflow:hidden; border:1px solid #bfdbfe; border-radius:12px; background:#f8fbff; }
.qa-ingestion-workbench[hidden] { display:none; }
.qa-ingestion-workbench>header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border-bottom:1px solid #dbeafe;
  background:linear-gradient(135deg,#eff6ff,#fff);
}
.qa-ingestion-workbench>header span { display:block; color:#2563eb; font-size:11px; font-weight:900; letter-spacing:.08em; }
.qa-ingestion-workbench>header strong { display:block; margin-top:3px; color:#0f172a; font-size:16px; }
.qa-ingestion-workbench>header small { display:block; margin-top:4px; color:#64748b; font-size:12px; line-height:1.45; }
.qa-ingestion-workbench>header b { flex:0 0 auto; padding:5px 8px; border-radius:999px; background:#dbeafe; color:#1d4ed8; font-size:12px; }
.qa-ingestion-list { display:grid; gap:10px; padding:10px; }
.qa-ingestion-card { overflow:hidden; border:1px solid #dbe3ed; border-left:4px solid #22c55e; border-radius:10px; background:#fff; }
.qa-ingestion-card.is-review { border-left-color:#f59e0b; }
.qa-ingestion-card.is-failed { border-left-color:#ef4444; }
.qa-ingestion-card>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:11px 12px; border-bottom:1px solid #edf2f7; }
.qa-ingestion-card>header strong { display:block; color:#172033; font-size:14px; line-height:1.4; }
.qa-ingestion-card>header small { display:block; margin-top:4px; color:#64748b; font-size:12px; line-height:1.45; }
.qa-ingestion-card>header>span { flex:0 0 auto; padding:4px 7px; border-radius:999px; background:#dcfce7; color:#15803d; font-size:11px; font-weight:900; }
.qa-ingestion-card.is-review>header>span { background:#fef3c7; color:#b45309; }
.qa-ingestion-card.is-failed>header>span { background:#fee2e2; color:#b91c1c; }
.qa-ingestion-metrics { display:flex; flex-wrap:wrap; gap:6px; padding:9px 12px 0; }
.qa-ingestion-metrics span { display:flex; align-items:center; gap:4px; padding:4px 7px; border:1px solid #e2e8f0; border-radius:7px; background:#f8fafc; color:#64748b; font-size:11px; }
.qa-ingestion-metrics b { color:#334155; font-size:12px; }
.qa-ingestion-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px 12px; }
.qa-ingestion-fields label { display:grid; align-content:start; gap:4px; min-width:0; color:#475569; font-size:11px; font-weight:800; }
.qa-ingestion-fields label.is-wide { grid-column:span 2; }
.qa-ingestion-fields input,.qa-ingestion-fields select { min-width:0; height:34px; padding:0 8px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#172033; font:inherit; font-size:12px; }
.qa-ingestion-fields label small { color:#64748b; font-size:10px; font-weight:600; }
.qa-ingestion-preview { margin:0 12px 10px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; }
.qa-ingestion-preview>summary { padding:8px 9px; color:#2563eb; font-size:11px; font-weight:850; cursor:pointer; }
.qa-ingestion-preview pre { max-height:180px; margin:0; padding:9px; overflow:auto; border-top:1px solid #e2e8f0; color:#475569; font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:pre-wrap; }
.qa-ingestion-card>footer,.qa-ingestion-workbench>footer { display:flex; justify-content:flex-end; gap:7px; padding:9px 12px; border-top:1px solid #edf2f7; }
.qa-ingestion-workbench>footer { background:#fff; }
.qa-ingestion-card>footer button,.qa-ingestion-workbench>footer button { min-height:32px; padding:0 10px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#475569; font-size:12px; font-weight:850; cursor:pointer; }
.qa-ingestion-card>footer button.is-primary,.qa-ingestion-workbench>footer button.is-primary { border-color:#2563eb; background:#2563eb; color:#fff; }
.qa-ingestion-card>footer button:disabled { opacity:.45; cursor:not-allowed; }
.qa-library-stats { display:flex; flex-wrap:wrap; gap:7px; }
.qa-library-stats span { padding:5px 9px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; color:#64748b; font-size:12px; }
.qa-library-stats strong { color:#172033; }
.qa-library-stats span.is-stored,.qa-library-index-status span.is-stored { border-color:#bbf7d0; background:#ecfdf5; color:#047857; }
.qa-library-stats span.is-pending,.qa-library-index-status span.is-pending { border-color:#fde68a; background:#fffbeb; color:#b45309; }
.qa-library-stats span.is-failed,.qa-library-index-status span.is-failed { border-color:#fecaca; background:#fef2f2; color:#b91c1c; }
.qa-library-limit-note { margin:0; padding:8px 10px; border-radius:8px; background:#f8fafc; color:#64748b; font-size:12px; line-height:1.55; }
#view-qa.qa-redesigned .qa-library-document-list { max-height:360px; overflow:auto; }
.qa-library-document { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid #dbe3ed; border-radius:11px; background:#fff; }
.qa-library-document:hover { border-color:#bfdbfe; background:#fbfdff; }
.qa-library-document-main { min-width:0; flex:1; }
.qa-library-document-main>strong { display:block; overflow:hidden; color:#172033; font-size:14px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.qa-library-document-meta { display:flex; flex-wrap:wrap; gap:5px 8px; margin-top:6px; color:#64748b; font-size:12px; }
.qa-library-ingestion-badge { padding:2px 6px; border-radius:999px; font-weight:850; }
.qa-library-ingestion-badge.is-stored { background:#dcfce7; color:#15803d; }
.qa-library-scope-badge { padding:2px 6px; border-radius:999px; font-weight:800; }
.qa-library-scope-badge.scope-personal { background:#f1f5f9; color:#475569; }
.qa-library-scope-badge.scope-department { background:#ecfdf5; color:#047857; }
.qa-library-scope-badge.scope-enterprise { background:#fff7ed; color:#c2410c; }
.qa-library-scope-badge.scope-project { background:#eff6ff; color:#1d4ed8; }
.qa-library-document-details { margin-top:8px; }
.qa-library-document-details>summary { width:max-content; color:#2563eb; font-size:12px; font-weight:800; cursor:pointer; }
.qa-library-timeline { display:grid; gap:4px; margin-top:8px; color:#64748b; font-size:12px; line-height:1.45; }
.qa-library-metadata-form { display:grid; grid-template-columns:minmax(140px,1.4fr) repeat(3,minmax(110px,1fr)); gap:8px; margin-top:10px; padding:10px; border:1px solid #e2e8f0; border-radius:9px; background:#f8fafc; }
.qa-library-metadata-form label { display:grid; gap:4px; color:#475569; font-size:11px; font-weight:800; }
.qa-library-metadata-form input,.qa-library-metadata-form select { min-width:0; height:34px; padding:0 8px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#172033; font:inherit; font-size:12px; }
.qa-library-metadata-form button { grid-column:1/-1; justify-self:start; min-height:30px; padding:0 10px; border:1px solid #2563eb; border-radius:7px; background:#2563eb; color:#fff; font-size:12px; font-weight:800; cursor:pointer; }
.qa-library-document-actions { display:flex; flex:0 0 auto; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.qa-library-document-actions button { min-height:30px; padding:0 9px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#475569; font-size:12px; font-weight:800; cursor:pointer; }
.qa-library-document-actions button:hover { border-color:#60a5fa; color:#1d4ed8; }
.qa-library-document-actions button.is-primary { border-color:#2563eb; background:#2563eb; color:#fff; }
.qa-library-document-actions button.is-danger:hover { border-color:#fca5a5; background:#fef2f2; color:#dc2626; }
.qa-library-empty { padding:18px; border:1px dashed #cbd5e1; border-radius:10px; background:#f8fafc; color:#64748b; font-size:13px; text-align:center; }
.qa-mode-switch { display:inline-flex; flex:0 0 auto; padding:3px; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; }
.qa-mode-switch button { min-height:28px; padding:0 9px; border:0; border-radius:6px; background:transparent; color:#64748b; font-size:12px; font-weight:800; cursor:pointer; }
.qa-mode-switch button.is-active { background:#fff; color:#1d4ed8; box-shadow:0 2px 7px rgba(15,23,42,.12); }
.qa-mode-switch button:disabled { opacity:.45; cursor:not-allowed; }
.qa-answer-toolbar { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; padding-bottom:8px; border-bottom:1px solid #e2e8f0; }
.qa-answer-toolbar button { min-height:30px; padding:0 9px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#475569; font-size:12px; font-weight:800; cursor:pointer; }
.qa-answer-toolbar button:hover { border-color:#60a5fa; color:#1d4ed8; }
.qa-local-search-results { width:min(860px,100%); }
.qa-local-search-summary { display:grid; gap:4px; margin-bottom:12px; padding:12px 14px; border:1px solid #bfdbfe; border-radius:11px; background:#eff6ff; }
.qa-local-search-summary strong { color:#1e3a8a; font-size:15px; }
.qa-local-search-summary span { color:#52637a; font-size:13px; line-height:1.55; }
.qa-local-result-list { display:grid; gap:9px; }
.qa-local-result-card { padding:12px 14px; border:1px solid #dbe3ed; border-radius:11px; background:#fff; }
.qa-local-result-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.qa-local-result-card header strong { color:#172033; font-size:14px; line-height:1.45; }
.qa-local-result-card header>span { flex:0 0 auto; padding:3px 7px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:12px; font-weight:800; }
.qa-local-result-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; color:#64748b; font-size:12px; }
.qa-local-result-card p { margin:8px 0 0; color:#3b4b60; font-size:13px; line-height:1.65; }
.qa-expression-result{display:grid;gap:7px;margin-top:10px}.qa-expression-result-row{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.qa-expression-result-row>strong{color:#475569;font-size:12px;line-height:1.6}.qa-expression-result-row>p{margin:0;color:#334155;font-size:13px;line-height:1.65}.qa-expression-result-row.is-positive{border-color:#bbf7d0;background:#f0fdf4}.qa-expression-result-row.is-positive>strong{color:#166534}.qa-expression-result-row.is-negative{border-color:#fecaca;background:#fff7f7}.qa-expression-result-row.is-negative>strong{color:#991b1b}.qa-expression-result-row.is-action{border-color:#bfdbfe;background:#eff6ff}.qa-expression-result-row.is-action>strong{color:#1d4ed8}.qa-expression-result-row.is-boundary{background:#fffdf5}.qa-expression-result-row.is-boundary>strong{color:#92400e}@media(max-width:680px){.qa-expression-result-row{grid-template-columns:1fr;gap:2px}}
.qa-local-result-card>footer { display:flex; justify-content:flex-end; margin-top:9px; padding-top:8px; border-top:1px solid #edf2f7; }
.qa-local-result-card>footer button { min-height:30px; padding:0 10px; border:1px solid #bfdbfe; border-radius:7px; background:#eff6ff; color:#1d4ed8; font-size:12px; font-weight:850; cursor:pointer; }
.qa-library-index { display:grid; gap:12px; width:100%; }
.qa-library-index>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:2px 0 12px; border-bottom:1px solid #e2e8f0; }
.qa-library-index>header span { color:#2563eb; font-size:12px; font-weight:900; letter-spacing:.08em; }
.qa-library-index>header strong { display:block; margin-top:3px; color:#0f172a; font-size:19px; }
.qa-library-index>header p { margin:5px 0 0; color:#64748b; font-size:13px; line-height:1.55; }
.qa-library-index>header button { flex:0 0 auto; min-height:34px; padding:0 11px; border:1px solid #2563eb; border-radius:8px; background:#2563eb; color:#fff; font-size:12px; font-weight:850; cursor:pointer; }
.qa-library-index-status { display:flex; flex-wrap:wrap; gap:7px; }
.qa-library-index-status span { padding:6px 9px; border:1px solid #e2e8f0; border-radius:8px; font-size:12px; }
.qa-library-index-list { display:grid; gap:9px; }
.qa-library-index-list article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 12px; padding:12px; border:1px solid #dbe3ed; border-radius:10px; background:#fff; }
.qa-library-index-list article>div { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-width:0; }
.qa-library-index-list article strong { overflow:hidden; color:#172033; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.qa-library-index-list article small { color:#64748b; font-size:12px; }
.qa-library-index-list article p { grid-column:1/2; margin:0; overflow:hidden; color:#475569; font-size:12px; line-height:1.55; text-overflow:ellipsis; white-space:nowrap; }
.qa-library-index-list article>button { grid-column:2; grid-row:1/3; align-self:center; min-height:32px; padding:0 10px; border:1px solid #bfdbfe; border-radius:7px; background:#eff6ff; color:#1d4ed8; font-size:12px; font-weight:850; cursor:pointer; }
.qa-library-index-empty { padding:28px 18px; border:1px dashed #cbd5e1; border-radius:10px; background:#f8fafc; text-align:center; }
.qa-library-index-empty strong { color:#334155; font-size:14px; }
.qa-library-index-empty p { margin:6px 0 0; color:#64748b; font-size:12px; line-height:1.55; }
.qa-library-heading-actions { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:flex-start; gap:2px; padding:3px; border:1px solid #d9e2ee; border-radius:10px; background:#f1f5f9; }
.qa-library-heading-actions .qa-library-source-btn + .qa-library-source-btn { position:relative; }
.qa-library-heading-actions .qa-library-source-btn + .qa-library-source-btn::before { position:absolute; top:7px; bottom:7px; left:-2px; width:1px; background:#d5deea; content:""; }
.qa-knowledge-card { overflow:hidden; border:1px solid #dbe3ed; border-left:4px solid #2563eb; border-radius:12px; background:#fff; }
.qa-knowledge-card>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 13px; border-bottom:1px solid #edf2f7; background:#fbfdff; }
.qa-knowledge-card>header span,.qa-knowledge-card>header strong,.qa-knowledge-card>header small { display:block; }
.qa-knowledge-card>header span { color:#2563eb; font-size:11px; font-weight:900; letter-spacing:.06em; }
.qa-knowledge-card>header strong { margin-top:3px; color:#172033; font-size:15px; line-height:1.45; }
.qa-knowledge-card>header small { margin-top:4px; color:#64748b; font-size:11px; line-height:1.45; }
.qa-knowledge-card>header button { flex:0 0 auto; min-height:30px; padding:0 9px; border:1px solid #bfdbfe; border-radius:7px; background:#eff6ff; color:#1d4ed8; font-size:12px; font-weight:850; cursor:pointer; }
.qa-knowledge-card-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.qa-knowledge-card-judgment{padding:15px 16px 14px;border-bottom:1px solid #dbeafe;background:#f8fbff}
.qa-knowledge-card-judgment>span,.qa-knowledge-card-context span,.qa-knowledge-card-reuse>span{display:block;color:#1d4ed8;font-size:10px;font-weight:900;letter-spacing:.06em}
.qa-knowledge-card-judgment>p{margin:6px 0 0;color:#20334d;font-size:13px;line-height:1.72}
.qa-knowledge-card-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:12px 16px}
.qa-knowledge-card-context>div{min-width:0}
.qa-knowledge-card-context>div+div{padding-left:22px;border-left:1px solid #e2e8f0}
.qa-knowledge-card-context strong,.qa-knowledge-card-context small{display:block}
.qa-knowledge-card-context strong{margin-top:5px;color:#334155;font-size:12px;line-height:1.5}
.qa-knowledge-card-context small{margin-top:3px;color:#7a899d;font-size:10px;line-height:1.5}
.qa-knowledge-card-context p{margin:5px 0 0;color:#40516a;font-size:12px;line-height:1.6}
.qa-knowledge-card-excerpt{border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7}
.qa-knowledge-card-excerpt>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;color:#52637a;cursor:pointer;list-style:none}
.qa-knowledge-card-excerpt>summary::-webkit-details-marker{display:none}
.qa-knowledge-card-excerpt>summary span{font-size:11px;font-weight:900}
.qa-knowledge-card-excerpt>summary small{color:#8492a6;font-size:10px}
.qa-knowledge-card-excerpt[open]>summary{color:#1d4ed8;background:#fbfdff}
.qa-knowledge-card-excerpt>p{max-height:230px;margin:0;padding:12px 16px;overflow:auto;background:#f8fafc;color:#475569;font-size:11px;line-height:1.75;white-space:pre-wrap}
.qa-knowledge-card-tags { display:flex; flex-wrap:wrap; gap:6px; padding:0 13px 10px; }
.qa-knowledge-card-tags span { padding:3px 7px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:11px; font-weight:800; }
.qa-knowledge-card>footer { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 13px; border-top:1px solid #edf2f7; }
.qa-knowledge-card-reuse{display:grid;gap:5px;min-width:0}
.qa-knowledge-card-reuse>span{color:#64748b}
.qa-knowledge-card-links,.qa-knowledge-card-actions { display:flex; flex-wrap:wrap; gap:6px; }
.qa-knowledge-card-links>span { color:#94a3b8; font-size:11px; }
.qa-knowledge-card>footer button { min-height:29px; padding:0 8px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#475569; font-size:11px; font-weight:850; cursor:pointer; }
.qa-knowledge-card-links button { border-color:#bbf7d0; background:#ecfdf5; color:#047857; }
.qa-knowledge-card-actions button.is-danger:hover { border-color:#fca5a5; background:#fef2f2; color:#dc2626; }
.qa-knowledge-card-editor-layer { position:fixed; inset:0; z-index:14000; display:grid; place-items:center; padding:24px; background:rgba(15,23,42,.52); }
.qa-knowledge-card-editor { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; width:min(760px,94vw); max-height:92vh; overflow:hidden; border:1px solid #cbd5e1; border-radius:16px; background:#fff; box-shadow:0 26px 72px rgba(15,23,42,.32); }
.qa-knowledge-card-editor>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:15px 17px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.qa-knowledge-card-editor>header span,.qa-knowledge-card-editor>header strong,.qa-knowledge-card-editor>header small { display:block; }
.qa-knowledge-card-editor>header span { color:#2563eb; font-size:11px; font-weight:900; letter-spacing:.08em; }
.qa-knowledge-card-editor>header strong { margin-top:3px; color:#0f172a; font-size:18px; }
.qa-knowledge-card-editor>header small { margin-top:4px; color:#64748b; font-size:12px; line-height:1.45; }
.qa-knowledge-card-editor>header button { min-height:32px; padding:0 10px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#475569; font-size:12px; font-weight:850; cursor:pointer; }
.qa-knowledge-card-source { padding:11px 17px; border-bottom:1px solid #dbeafe; background:#eff6ff; }
.qa-knowledge-card-source span,.qa-knowledge-card-source strong,.qa-knowledge-card-source small { display:block; }
.qa-knowledge-card-source span { color:#2563eb; font-size:11px; font-weight:900; }
.qa-knowledge-card-source strong { margin-top:3px; color:#1e3a8a; font-size:14px; }
.qa-knowledge-card-source small { margin-top:3px; color:#52637a; font-size:11px; line-height:1.45; }
.qa-knowledge-card-form { display:grid; gap:12px; min-height:0; padding:15px 17px; overflow:auto; }
.qa-knowledge-card-form label { display:grid; gap:5px; color:#334155; font-size:12px; font-weight:850; }
.qa-knowledge-card-form label>b { color:#dc2626; }
.qa-knowledge-card-form label>span { color:#64748b; font-weight:650; }
.qa-knowledge-card-form input,.qa-knowledge-card-form select,.qa-knowledge-card-form textarea { width:100%; min-width:0; padding:9px 10px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#172033; font-family:inherit; font-size:13px; line-height:1.55; }
.qa-knowledge-card-form input,.qa-knowledge-card-form select { min-height:38px; }
.qa-knowledge-card-form textarea { resize:vertical; }
.qa-knowledge-card-form input:focus,.qa-knowledge-card-form select:focus,.qa-knowledge-card-form textarea:focus { outline:2px solid #bfdbfe; border-color:#60a5fa; }
.qa-knowledge-card-form label>small { color:#64748b; font-size:11px; font-weight:600; line-height:1.45; }
.qa-knowledge-card-editor>footer { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 17px; border-top:1px solid #e2e8f0; background:#fff; }
.qa-knowledge-card-editor>footer>span { color:#64748b; font-size:11px; line-height:1.45; }
.qa-knowledge-card-editor>footer>div { display:flex; flex:0 0 auto; gap:7px; }
.qa-knowledge-card-editor>footer button { min-height:34px; padding:0 11px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#475569; font-size:12px; font-weight:850; cursor:pointer; }
.qa-knowledge-card-editor>footer button.is-primary { border-color:#2563eb; background:#2563eb; color:#fff; }
.qa-knowledge-card-editor>footer button:disabled { opacity:.55; cursor:wait; }
.qa-document-preview-open { overflow:hidden; }
.qa-document-preview-layer { position:fixed; z-index:1500; inset:0; display:grid; place-items:center; padding:24px; background:rgba(15,23,42,.46); }
.qa-document-preview { display:grid; grid-template-rows:auto auto minmax(0,1fr); width:min(960px,calc(100vw - 48px)); height:min(82vh,820px); overflow:hidden; border:1px solid #cbd5e1; border-radius:16px; background:#fff; box-shadow:0 28px 80px rgba(15,23,42,.3); }
.qa-document-preview.has-location { grid-template-rows:auto auto auto minmax(0,1fr); }
.qa-document-preview>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid #e2e8f0; }
.qa-document-preview>header span { color:#2563eb; font-size:12px; font-weight:900; }
.qa-document-preview>header strong { display:block; margin-top:4px; color:#0f172a; font-size:18px; line-height:1.4; }
.qa-document-preview>header small { display:block; margin-top:4px; color:#64748b; font-size:12px; }
.qa-document-preview>header button { flex:0 0 auto; min-height:34px; padding:0 11px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#475569; font-size:12px; font-weight:850; cursor:pointer; }
.qa-document-preview>dl { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:0; padding:12px 18px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.qa-document-preview>dl>div { min-width:0; padding:0 12px; border-right:1px solid #e2e8f0; }
.qa-document-preview>dl>div:first-child { padding-left:0; }
.qa-document-preview>dl>div:last-child { padding-right:0; border-right:0; }
.qa-document-preview dt { color:#64748b; font-size:11px; font-weight:800; }
.qa-document-preview dd { overflow:hidden; margin:5px 0 0; color:#172033; font-size:12px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.qa-document-preview-content { display:grid; grid-template-rows:auto minmax(0,1fr); min-height:0; padding:14px 18px 18px; }
.qa-document-preview-content>div { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.qa-document-preview-content>div strong { color:#172033; font-size:14px; }
.qa-document-preview-content>div small { color:#64748b; font-size:11px; }
.qa-document-preview-content pre { min-height:0; margin:0; padding:14px; overflow:auto; border:1px solid #dbe3ed; border-radius:10px; background:#fbfdff; color:#334155; font:13px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:pre-wrap; }
.qa-document-preview-content mark { padding:2px 3px; border-radius:4px; background:#fef08a; color:#713f12; outline:2px solid #facc15; outline-offset:2px; }
.qa-document-preview-location { display:flex; align-items:center; padding:10px 18px; border-bottom:1px solid #bfdbfe; background:#eff6ff; }
.qa-document-preview-location>div { display:grid; gap:2px; }
.qa-document-preview-location span { color:#1d4ed8; font-size:10px; font-weight:900; letter-spacing:.03em; }
.qa-document-preview-location strong { color:#1e3a8a; font-size:13px; }
.qa-document-preview-location small { color:#475569; font-size:11px; }
.qa-document-preview-location.is-changed { border-color:#fed7aa; background:#fff7ed; }
.qa-document-preview-location.is-changed span,.qa-document-preview-location.is-changed strong { color:#c2410c; }
.qa-knowledge-source-health { display:inline-flex; width:max-content; margin-top:6px; padding:3px 7px; border-radius:999px; font-size:10px; font-style:normal; font-weight:850; }
.qa-knowledge-source-health.is-valid { background:#ecfdf5; color:#047857; }
.qa-knowledge-source-health.is-changed { background:#fff7ed; color:#c2410c; }
.qa-knowledge-source-health.is-missing { background:#fef2f2; color:#b91c1c; }
.qa-knowledge-source-health.is-reference { background:#eff6ff; color:#1d4ed8; }
.qa-library-stats>button { min-height:28px; padding:0 9px; border:1px solid #bfdbfe; border-radius:8px; background:#fff; color:#1d4ed8; font-size:11px; font-weight:850; cursor:pointer; }
.qa-library-stats span.is-project-filter { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }
.project-linked-knowledge-cards { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:12px 0; padding:11px 13px; border:1px solid #d8e6f8; border-radius:10px; background:#f8fbff; }
.project-linked-knowledge-cards>div { display:grid; min-width:0; gap:2px; }
.project-linked-knowledge-cards span { color:#2563eb; font-size:10px; font-weight:900; }
.project-linked-knowledge-cards strong { color:#1e293b; font-size:13px; }
.project-linked-knowledge-cards small { color:#64748b; font-size:11px; line-height:1.5; }
.project-linked-knowledge-cards>button { flex:0 0 auto; }
@media(max-width:700px){.project-linked-knowledge-cards{align-items:stretch;flex-direction:column}.project-linked-knowledge-cards>button{width:100%}}
html[data-theme="dark"] .qa-project-source-drawer { border-color:#314158; background:#172235; }
html[data-theme="dark"] .qa-project-source-drawer>summary span { color:#e5edf8; }
html[data-theme="dark"] .qa-library-manager-head strong,html[data-theme="dark"] .qa-library-document-main>strong,html[data-theme="dark"] .qa-library-stats strong,html[data-theme="dark"] .qa-local-result-card header strong,html[data-theme="dark"] .qa-knowledge-card>header strong { color:#e5edf8; }
html[data-theme="dark"] .qa-library-tabs button,html[data-theme="dark"] .qa-library-document,html[data-theme="dark"] .qa-local-result-card,html[data-theme="dark"] .qa-knowledge-card { border-color:#314158; background:#172235; }
html[data-theme="dark"] .qa-knowledge-card-judgment,html[data-theme="dark"] .qa-knowledge-card-excerpt[open]>summary{border-color:#314158;background:#13233b}
html[data-theme="dark"] .qa-knowledge-card-judgment>p,html[data-theme="dark"] .qa-knowledge-card-context strong,html[data-theme="dark"] .qa-knowledge-card-context p{color:#dce7f5}
html[data-theme="dark"] .qa-knowledge-card-context>div+div,html[data-theme="dark"] .qa-knowledge-card-excerpt{border-color:#314158}
html[data-theme="dark"] .qa-knowledge-card-excerpt>p{background:#111c2e;color:#cbd5e1}
html[data-theme="dark"] .qa-library-stats span,html[data-theme="dark"] .qa-library-empty { border-color:#314158; background:#13233b; }
html[data-theme="dark"] .qa-local-search-summary { border-color:#1e4f8f; background:#172a46; }
html[data-theme="dark"] .qa-local-search-summary strong { color:#bfdbfe; }
html[data-theme="dark"] .qa-local-search-summary span,html[data-theme="dark"] .qa-local-result-card p { color:#cbd5e1; }
html[data-theme="dark"] .qa-expression-result-row{border-color:#334155;background:#111c2e}html[data-theme="dark"] .qa-expression-result-row>p{color:#dbe7f5}html[data-theme="dark"] .qa-expression-result-row.is-positive{border-color:#166534;background:#10271d}html[data-theme="dark"] .qa-expression-result-row.is-negative{border-color:#7f1d1d;background:#2b1518}html[data-theme="dark"] .qa-expression-result-row.is-action{border-color:#1d4ed8;background:#11213d}html[data-theme="dark"] .qa-expression-result-row.is-boundary{border-color:#78350f;background:#261d11}
@media(max-width:900px){.qa-project-source-drawer>summary{align-items:flex-start;flex-direction:column}.qa-source-filter-divider{display:none}.qa-library-document{flex-direction:column}.qa-library-document-actions{justify-content:flex-start}.qa-library-metadata-form{grid-template-columns:1fr}.qa-ingestion-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.qa-document-preview>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qa-document-preview>dl>div{padding:0;border:0}.qa-knowledge-card-context{grid-template-columns:1fr}.qa-knowledge-card-context>div+div{padding-left:0;border-left:0}}
@media(max-width:680px){
  #view-qa.qa-redesigned .qa-chat-container { height:520px !important; min-height:360px; max-height:70vh; resize:none; }
  #view-qa.qa-redesigned .qa-project-source-drawer[open] .qa-kb-card { top:12px; right:12px; bottom:12px; width:calc(100vw - 24px); height:auto !important; min-height:0; max-height:none; resize:none; }
  .qa-ingestion-workbench>header,.qa-ingestion-card>header { flex-direction:column; }
  .qa-ingestion-fields { grid-template-columns:1fr; }
  .qa-ingestion-fields label.is-wide { grid-column:auto; }
  .qa-ingestion-card>footer,.qa-ingestion-workbench>footer { justify-content:flex-start; flex-wrap:wrap; }
  .qa-library-index>header,.qa-document-preview>header,.qa-document-preview-content>div { flex-direction:column; }
  .qa-library-index-list article { grid-template-columns:1fr; }
  .qa-library-index-list article p,.qa-library-index-list article>button { grid-column:auto; grid-row:auto; }
  .qa-document-preview-layer { padding:10px; }
  .qa-document-preview { width:100%; height:calc(100vh - 20px); }
  .qa-document-preview>dl { grid-template-columns:1fr; max-height:170px; overflow:auto; }
  .qa-library-heading-actions,.qa-knowledge-card>footer,.qa-knowledge-card-editor>footer { align-items:stretch; flex-direction:column; }
  .qa-knowledge-card>header{flex-direction:column}
  .qa-knowledge-card-head-actions{width:100%;justify-content:space-between}
  .qa-knowledge-card-editor-layer { padding:10px; }
  .qa-knowledge-card-editor { width:100%; max-height:calc(100vh - 20px); }
  .qa-knowledge-card-editor>footer>div { width:100%; }
  .qa-knowledge-card-editor>footer button { flex:1; }
}

/* 用户界面不显示开发阶段的英文流程注解。 */
#view-home .form-card::before,#view-ictest>h2::before { content:none !important; display:none !important; }

/* ===== Audit toolbox: readable gallery with anchored directory ===== */
.toolbox-shell { grid-template-columns:320px minmax(0,1fr); gap:18px; }
.toolbox-category-nav { position:sticky; top:82px; gap:7px; padding:16px 14px; }
.toolbox-nav-title { padding:2px 6px 12px; margin-bottom:2px; }
.toolbox-nav-title span { font-size:13px; letter-spacing:.08em; }
.toolbox-nav-title strong { margin-top:4px; font-size:19px; line-height:1.3; }
.toolbox-category-btn { grid-template-columns:44px minmax(0,1fr) auto; gap:12px; min-height:78px; padding:12px; border-radius:11px; }
.toolbox-category-icon { width:44px; height:44px; border-radius:11px; }
.toolbox-category-icon svg { width:21px; height:21px; }
.toolbox-category-copy strong { font-size:16px; line-height:1.25; }
.toolbox-category-copy small { margin-top:2px; font-size:13px; line-height:1.4; }
.toolbox-category-btn em { min-width:28px; height:26px; font-size:12px; }
.toolbox-tool-index { display:grid; gap:2px; margin:0 4px 5px 58px; padding:5px 0 8px; border-left:1px solid #dbe3ef; }
.toolbox-tool-index-btn { display:grid; grid-template-columns:10px minmax(0,1fr); align-items:center; gap:8px; min-height:38px; margin-left:-5px; padding:7px 9px; border:0; border-radius:8px; background:transparent; color:#64748b; text-align:left; cursor:pointer; }
.toolbox-tool-index-btn:hover,.toolbox-tool-index-btn.is-active { background:#eff6ff; color:#1d4ed8; }
.toolbox-tool-index-btn span { width:9px; height:9px; border:2px solid #fff; border-radius:999px; background:#cbd5e1; box-shadow:0 0 0 1px #cbd5e1; }
.toolbox-tool-index-btn.is-active span { background:#2563eb; box-shadow:0 0 0 1px #2563eb; }
.toolbox-tool-index-btn strong { min-width:0; color:inherit; font-size:13px; line-height:1.45; white-space:normal; }
.toolbox-category-detail { gap:16px; padding:18px; }
.toolbox-category-head { display:grid; grid-template-columns:minmax(180px,1fr) minmax(260px,1.45fr) auto; align-items:center; gap:18px; padding-bottom:14px; }
.toolbox-category-head strong { display:inline-flex; margin:0; padding:4px 8px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:.72rem; white-space:nowrap; }
.toolbox-category-head p { max-width:680px; margin:0; color:#64748b; font-size:.82rem; line-height:1.6; }
.toolbox-project-context { display:grid; grid-template-columns:minmax(220px,.85fr) minmax(280px,1.25fr) auto; align-items:center; gap:14px; padding:12px 14px; border:1px solid #dbeafe; border-radius:12px; background:linear-gradient(135deg,#f8fbff 0%,#f3fbf7 100%); }
.toolbox-project-context span { display:block; color:#2563eb; font-size:13px; font-weight:950; letter-spacing:.06em; }
.toolbox-project-context strong { display:block; margin-top:3px; color:#0f172a; font-size:18px; line-height:1.25; }
.toolbox-project-context small { display:block; margin-top:3px; color:#64748b; font-size:13px; line-height:1.45; }
.toolbox-project-context b { display:block; color:#0f172a; font-size:16px; line-height:1.3; }
.toolbox-project-context p { margin:4px 0 0; color:#52637a; font-size:14px; line-height:1.5; }
.toolbox-project-context ol { display:flex; align-items:center; gap:6px; justify-content:flex-end; margin:0; padding:0; list-style:none; color:#475569; font-size:13px; font-weight:850; white-space:nowrap; }
.toolbox-project-context li { display:inline-flex; align-items:center; gap:6px; }
.toolbox-project-context li:not(:last-child)::after { content:"→"; color:#94a3b8; font-weight:900; }
.toolbox-task-desk { display:grid; grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr); gap:12px; padding:14px; border:1px solid #bfdbfe; border-radius:12px; background:linear-gradient(135deg,#eff6ff 0%,#ffffff 58%,#f6fffb 100%); }
.toolbox-task-list { display:grid; gap:8px; align-content:start; }
.toolbox-task-list>span,.toolbox-task-current>span { color:#2563eb; font-size:13px; font-weight:950; letter-spacing:.06em; }
.toolbox-task-list>strong { display:block; margin-bottom:2px; color:#0f172a; font-size:19px; line-height:1.25; }
.toolbox-task-option { display:grid; gap:3px; min-height:58px; padding:10px 12px; border:1px solid #dbeafe; border-radius:10px; background:#fff; color:#334155; text-align:left; cursor:pointer; transition:border-color .15s,background .15s,box-shadow .15s,transform .15s; }
.toolbox-task-option:hover,.toolbox-task-option.is-active { border-color:#60a5fa; background:#f8fbff; box-shadow:0 8px 18px rgba(37,99,235,.08); transform:translateY(-1px); }
.toolbox-task-option b { color:#0f172a; font-size:15px; line-height:1.3; }
.toolbox-task-option small { color:#64748b; font-size:13px; line-height:1.45; }
.toolbox-task-current { display:grid; gap:10px; align-content:start; min-width:0; padding:16px; border:1px solid #dbeafe; border-radius:12px; background:#fff; box-shadow:0 12px 26px rgba(15,23,42,.05); }
.toolbox-task-current h3 { margin:0; color:#0f172a; font-size:22px; line-height:1.25; }
.toolbox-task-current p { max-width:760px; margin:0; color:#475569; font-size:15px; line-height:1.65; }
.toolbox-task-current dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0; }
.toolbox-task-current dl div { min-width:0; padding:10px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; }
.toolbox-task-current dt { color:#64748b; font-size:13px; font-weight:900; }
.toolbox-task-current dd { margin:3px 0 0; color:#0f172a; font-size:14px; line-height:1.4; }
.toolbox-task-current footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:2px; }
.toolbox-task-current footer small { min-width:0; color:#64748b; font-size:13px; line-height:1.45; }
.toolbox-tool-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
.toolbox-tool-card { display:flex; min-width:0; min-height:188px; flex-direction:column; padding:16px; border:1px solid #dfe6ef; border-radius:12px; background:#fff; box-shadow:0 7px 18px rgba(15,23,42,.04); outline:none; transition:border-color .15s,box-shadow .15s,transform .15s; }
.toolbox-tool-card:hover,.toolbox-tool-card:focus-visible { border-color:#93c5fd; box-shadow:0 12px 26px rgba(37,99,235,.09); transform:translateY(-1px); }
.toolbox-tool-card.is-selected { border-color:#2563eb; box-shadow:0 0 0 1px rgba(37,99,235,.16),0 12px 28px rgba(37,99,235,.09); }
.toolbox-tool-card header { display:grid; grid-template-columns:54px minmax(0,1fr); gap:14px; align-items:start; }
.toolbox-tool-card header h3 { margin:2px 0 0; color:#0f172a; font-size:1rem; line-height:1.35; }
@media(max-width:1180px){
  .toolbox-shell{grid-template-columns:280px minmax(0,1fr)}
}
@media(max-width:900px){
  .toolbox-shell{grid-template-columns:1fr}
  .toolbox-category-nav{position:static}
}
.toolbox-tool-card header p { display:-webkit-box; overflow:hidden; margin:8px 0 0; color:#52637a; font-size:.8rem; line-height:1.6; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.toolbox-tool-card dl { display:grid; gap:6px; margin:12px 0 0; padding-top:10px; border-top:1px solid #e8edf3; }
.toolbox-tool-card dl div { display:grid; grid-template-columns:72px minmax(0,1fr); gap:8px; }
.toolbox-tool-card dt { color:#64748b; font-size:.74rem; font-weight:800; }
.toolbox-tool-card dd { margin:0; color:#475569; font-size:.76rem; line-height:1.45; }
.toolbox-tool-preview { display:none; align-items:flex-start; gap:7px; margin-top:12px; padding:9px 10px; border-radius:7px; background:#eff6ff; color:#4b6383; font-size:.72rem; line-height:1.45; }
.toolbox-tool-card.is-selected .toolbox-tool-preview { display:flex; }
.toolbox-tool-preview svg { flex:0 0 auto; width:15px; height:15px; margin-top:2px; color:#2563eb; }
.toolbox-tool-boundary { display:flex; gap:8px; align-items:flex-start; margin-top:10px; padding:9px 10px; border-left:3px solid #93c5fd; border-radius:7px; background:#f8fbff; color:#52637a; font-size:.74rem; line-height:1.5; }
.toolbox-tool-boundary strong { color:#1d4ed8; font-size:.72rem; white-space:nowrap; }
.toolbox-tool-boundary span { min-width:0; }
.toolbox-tool-card footer { display:flex; justify-content:flex-end; margin-top:auto; padding-top:14px; }
.toolbox-tool-card .toolbox-tool-icon { width:54px; height:54px; border-radius:10px; background:#eef4ff; }
.toolbox-tool-card .toolbox-tool-icon svg { width:28px; height:28px; }
.toolbox-tool-card .toolbox-tool-use { min-width:88px; height:36px; padding:0 14px; border-radius:7px; font-size:.78rem; }
.toolbox-page.is-tool-open .toolbox-shell { display:none; }
.toolbox-workbench-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border-bottom:1px solid #e2e8f0; background:#f8fafc; }
.toolbox-workbench-nav button { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 12px; border:1px solid #cbd5e1; border-radius:7px; background:#fff; color:#334155; font-size:.76rem; font-weight:850; cursor:pointer; }
.toolbox-workbench-nav button:hover { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.toolbox-workbench-nav button svg { width:16px; height:16px; }
.toolbox-workbench-nav div { text-align:right; }
.toolbox-workbench-nav strong,.toolbox-workbench-nav small { display:block; }
.toolbox-workbench-nav strong { color:#172033; font-size:.82rem; }
.toolbox-workbench-nav small { margin-top:2px; color:#64748b; font-size:.68rem; }
html[data-theme="dark"] .toolbox-tool-card { background:#172235; border-color:#314158; }
html[data-theme="dark"] .toolbox-outcome-map,
html[data-theme="dark"] .toolbox-outcome-grid article { background:#172235; border-color:#314158; }
html[data-theme="dark"] .toolbox-project-context { background:#13233b; border-color:#314158; }
html[data-theme="dark"] .toolbox-task-desk,
html[data-theme="dark"] .toolbox-task-current,
html[data-theme="dark"] .toolbox-task-option { background:#172235; border-color:#314158; }
html[data-theme="dark"] .toolbox-tool-card header h3,
html[data-theme="dark"] .toolbox-workbench-nav strong,
html[data-theme="dark"] .toolbox-outcome-head strong,
html[data-theme="dark"] .toolbox-project-context strong,
html[data-theme="dark"] .toolbox-project-context b,
html[data-theme="dark"] .toolbox-task-list>strong,
html[data-theme="dark"] .toolbox-task-option b,
html[data-theme="dark"] .toolbox-task-current h3,
html[data-theme="dark"] .toolbox-task-current dd,
html[data-theme="dark"] .toolbox-outcome-grid b { color:#e5edf8; }
html[data-theme="dark"] .toolbox-tool-card header p,
html[data-theme="dark"] .toolbox-tool-card dd,
html[data-theme="dark"] .toolbox-outcome-head p,
html[data-theme="dark"] .toolbox-project-context p,
html[data-theme="dark"] .toolbox-project-context small,
html[data-theme="dark"] .toolbox-task-option small,
html[data-theme="dark"] .toolbox-task-current p,
html[data-theme="dark"] .toolbox-task-current footer small,
html[data-theme="dark"] .toolbox-outcome-grid p { color:#a8b7ca; }
html[data-theme="dark"] .toolbox-tool-boundary { background:#13233b; border-color:#60a5fa; color:#a8b7ca; }
html[data-theme="dark"] .toolbox-tool-boundary strong { color:#bfdbfe; }
html[data-theme="dark"] .toolbox-tool-index { border-color:#314158; }
html[data-theme="dark"] .toolbox-tool-index-btn:hover,html[data-theme="dark"] .toolbox-tool-index-btn.is-active,html[data-theme="dark"] .toolbox-tool-preview { background:#17345d; color:#bfdbfe; }
html[data-theme="dark"] .toolbox-workbench-nav { background:#13233b; border-color:#314158; }
@media(max-width:980px){
  .toolbox-category-nav { position:static; }
  .toolbox-tool-index { display:none; }
  .toolbox-category-head { grid-template-columns:1fr auto; }
  .toolbox-category-head p { grid-column:1/-1; grid-row:2; }
  .toolbox-project-context { grid-template-columns:1fr; }
  .toolbox-project-context ol { justify-content:flex-start; flex-wrap:wrap; white-space:normal; }
  .toolbox-task-desk { grid-template-columns:1fr; }
  .toolbox-task-current dl { grid-template-columns:1fr; }
}
@media(max-width:760px){
  .toolbox-tool-list { grid-template-columns:1fr; }
  .toolbox-tool-card { min-height:0; }
  .toolbox-category-head { grid-template-columns:1fr; }
  .toolbox-category-head p { grid-column:auto; grid-row:auto; }
  .toolbox-workbench-nav { align-items:flex-start; flex-direction:column; }
  .toolbox-workbench-nav div { text-align:left; }
  .toolbox-task-current footer { align-items:flex-start; flex-direction:column; }
}

.rm-run-playbook{border-color:#bfdbfe;background:linear-gradient(135deg,#f8fbff,#eef6ff);}
.rm-run-playbook .rm-section-head{align-items:flex-start;}
.rm-run-playbook .rm-section-head p{max-width:720px;margin:4px 0 0;color:#526579;font-size:.82rem;line-height:1.6;}
.rm-playbook-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.rm-playbook-steps article{min-width:0;padding:14px;border:1px solid #d7e6fb;border-radius:12px;background:#fff;box-shadow:0 10px 24px rgba(29,78,216,.06);}
.rm-playbook-steps span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#2563eb;color:#fff;font-size:.78rem;font-weight:900;}
.rm-playbook-steps strong{display:block;margin-top:10px;color:#172033;font-size:.94rem;line-height:1.35;}
.rm-playbook-steps p{margin:7px 0 0;color:#475569;font-size:.82rem;line-height:1.6;}
.rm-playbook-steps small{display:block;margin-top:8px;color:#64748b;font-size:.76rem;line-height:1.55;}
.rm-playbook-boundary{display:flex;gap:10px;align-items:center;margin-top:12px;padding:11px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#475569;font-size:.8rem;line-height:1.55;}
.rm-playbook-boundary strong{color:#1d4ed8;white-space:nowrap;}
.re-source-trace{border-color:#bfdbfe;background:linear-gradient(135deg,#f8fbff,#f2f8ff);}
.re-source-trace .re-section-head{align-items:flex-start;}
.re-source-trace .re-section-head p{max-width:730px;margin:4px 0 0;color:#526579;font-size:.82rem;line-height:1.6;}
.re-source-trace .re-section-head span{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.7rem;font-weight:900;white-space:nowrap;}
.re-source-trace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.re-source-trace-grid .re-info{background:#fff;border-color:#dbeafe;}
.re-source-trace-boundary{margin-top:12px;padding:11px 12px;border-left:4px solid #2563eb;border-radius:8px;background:#eff6ff;}
.re-source-trace-boundary strong{display:block;color:#1d4ed8;font-size:.78rem;}
.re-source-trace-boundary p{margin:5px 0 0;color:#475569;font-size:.82rem;line-height:1.6;}
.re-relationship-source{border-color:#c7d8f6;background:#fbfdff;}
.re-relationship-source .re-section-head{align-items:flex-start;}
.re-relationship-source .re-section-head p{max-width:720px;margin:4px 0 0;color:#526579;font-size:.78rem;line-height:1.55;}
.re-relationship-source .re-section-head>span{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.7rem;font-weight:900;white-space:nowrap;}
.re-relationship-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;}
.re-relationship-evidence>div{border:1px solid #dbe7f4;border-radius:10px;background:#fff;padding:12px;}
.re-relationship-evidence strong{display:block;margin-bottom:7px;color:#172033;font-size:.78rem;}
.re-relationship-evidence ul{display:grid;gap:6px;margin:0;padding-left:18px;color:#334155;font-size:.76rem;line-height:1.55;}
.re-relationship-evidence p{margin:0;color:#64748b;font-size:.76rem;line-height:1.55;}
html[data-theme="dark"] .rm-run-playbook,html[data-theme="dark"] .re-source-trace{background:#13233b;border-color:#314e75;}
html[data-theme="dark"] .rm-playbook-steps article,html[data-theme="dark"] .re-source-trace-grid .re-info{background:#172235;border-color:#314158;}
html[data-theme="dark"] .rm-playbook-steps strong,html[data-theme="dark"] .re-source-trace-boundary strong{color:#dbeafe;}
html[data-theme="dark"] .rm-run-playbook .rm-section-head p,html[data-theme="dark"] .rm-playbook-steps p,html[data-theme="dark"] .rm-playbook-steps small,html[data-theme="dark"] .rm-playbook-boundary,html[data-theme="dark"] .re-source-trace .re-section-head p,html[data-theme="dark"] .re-source-trace-boundary p{color:#a8b7ca;}
html[data-theme="dark"] .rm-playbook-boundary,html[data-theme="dark"] .re-source-trace-boundary{background:#172a45;border-color:#60a5fa;}
html[data-theme="dark"] .re-relationship-source{background:#13233b;border-color:#314e75;}
html[data-theme="dark"] .re-relationship-source .re-section-head p,html[data-theme="dark"] .re-relationship-evidence p,html[data-theme="dark"] .re-relationship-evidence ul{color:#a8b7ca;}
html[data-theme="dark"] .re-relationship-evidence>div{background:#172235;border-color:#314158;}
html[data-theme="dark"] .re-relationship-evidence strong{color:#e5eefb;}
@media(max-width:980px){.rm-playbook-steps{grid-template-columns:repeat(2,minmax(0,1fr));}.re-source-trace-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.rm-playbook-steps,.re-source-trace-grid,.re-relationship-evidence{grid-template-columns:1fr;}.rm-run-playbook .rm-section-head,.re-source-trace .re-section-head,.re-relationship-source .re-section-head,.rm-playbook-boundary{flex-direction:column;align-items:flex-start;}}

.at-result-disposition{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.9fr);gap:14px;align-items:stretch;margin:18px 0 2px;padding:16px;border:1px solid #cfe0f6;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 12px 28px rgba(15,23,42,.05);}
.at-result-disposition>div:first-child span{display:block;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.08em;}
.at-result-disposition>div:first-child strong{display:block;margin-top:5px;color:#172033;font-size:20px;line-height:1.3;}
.at-result-disposition>div:first-child p{margin:7px 0 0;color:#52637a;font-size:15px;line-height:1.65;}
.at-result-disposition-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.at-result-disposition-meta article{min-width:0;padding:10px 12px;border:1px solid #dbe7f4;border-radius:10px;background:#fff;}
.at-result-disposition-meta b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:14px;}
.at-result-disposition-meta small{display:block;margin-top:4px;color:#64748b;font-size:12px;font-weight:800;}
.at-result-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;padding-top:2px;}
.at-result-disposition.is-clean{border-color:#bbf7d0;background:linear-gradient(135deg,#f7fef9,#fff);}
.at-result-disposition.is-exception,.at-result-disposition.is-finding{border-color:#fed7aa;background:linear-gradient(135deg,#fff7ed,#fff);}
.at-result-disposition.is-control{border-color:#fcd34d;background:linear-gradient(135deg,#fffbeb,#fff);}
.at-result-disposition.is-supplement,.at-result-disposition.is-blocked{border-color:#bfdbfe;background:linear-gradient(135deg,#eff6ff,#fff);}
html[data-theme="dark"] .at-result-disposition{background:#172235;border-color:#314158;box-shadow:none;}
html[data-theme="dark"] .at-result-disposition>div:first-child strong,html[data-theme="dark"] .at-result-disposition-meta b{color:#eef4ff;}
html[data-theme="dark"] .at-result-disposition>div:first-child p,html[data-theme="dark"] .at-result-disposition-meta small{color:#9fb0c7;}
html[data-theme="dark"] .at-result-disposition-meta article{background:#132033;border-color:#314158;}
@media(max-width:980px){.at-result-disposition{grid-template-columns:1fr;}.at-result-actions{grid-column:auto;}}
@media(max-width:640px){.at-result-disposition-meta{grid-template-columns:1fr;}.at-result-actions .btn{width:100%;}}

/* ===== Final office readability unification =====
   关键作业区按办公阅读而非工程面板处理：正文不低于14px，操作入口不低于15px。
   角标可以小，但不能承载下一步、边界、证据状态等关键信息。 */
body .view-panel > p,
body .view-panel .form-desc,
body .view-panel .section p,
body .view-panel article p,
body .view-panel details summary,
body .view-panel label,
body .view-panel li,
body .view-panel dd {
  font-size:15px !important;
  line-height:1.65 !important;
}
body .view-panel input,
body .view-panel select,
body .view-panel textarea {
  min-height:40px;
  font-size:15px !important;
  line-height:1.5 !important;
}
body .view-panel textarea { min-height:84px; }
body .view-panel button,
body .btn {
  font-size:15px !important;
  line-height:1.35 !important;
}
body .btn-sm,
body .view-panel button.btn-sm {
  min-height:34px;
  font-size:14px !important;
}
body .view-panel h2 { font-size:26px !important; line-height:1.28 !important; }
body .view-panel h3 { font-size:21px !important; line-height:1.32 !important; }
body .view-panel h4 { font-size:17px !important; line-height:1.35 !important; }
body .view-panel small,
body .view-panel em,
body .view-panel dt,
body .view-panel [class*="-label"],
body .view-panel [class*="-meta"],
body .view-panel [class*="-hint"],
body .view-panel [class*="-tag"],
body .view-panel [class*="-badge"] {
  font-size:max(13px,.8125rem) !important;
  line-height:1.5 !important;
}
body .qa-msg-content,
body .qa-answer-card,
body .pc-answer-card,
body .rp2-card-body,
body .wpm-package-desk,
body .wpm-dossier-index,
body .pq-decision,
body .toolbox-tool-card,
body .rm-run-playbook,
body .re-source-trace,
body .at-result-disposition {
  font-size:15px !important;
}
body .qa-input-area input,
body #qa-send {
  min-height:46px;
  font-size:16px !important;
}
body #view-qa #qa-input,
body #view-qa #qa-send {
  min-height:46px !important;
  font-size:16px !important;
}
body #view-qa.qa-redesigned #qa-send {
  min-height:46px !important;
  font-size:16px !important;
}

/* ===== Office-size guardrail for legacy inline styles =====
   早期页面里有不少内联 0.6~0.82rem 小字。内联样式会绕过普通选择器，
   这里用 !important 建立用户可见区域的最低阅读字号。 */
body .view-panel [style*="font-size:0.7"],
body .view-panel [style*="font-size: 0.7"],
body .view-panel [style*="font-size:.7"],
body .view-panel [style*="font-size: .7"],
body .view-panel [style*="font-size:0.75"],
body .view-panel [style*="font-size: 0.75"],
body .view-panel [style*="font-size:.75"],
body .view-panel [style*="font-size: .75"],
body .view-panel [style*="font-size:0.78"],
body .view-panel [style*="font-size: 0.78"],
body .view-panel [style*="font-size:.78"],
body .view-panel [style*="font-size: .78"],
body .view-panel [style*="font-size:0.8"],
body .view-panel [style*="font-size: 0.8"],
body .view-panel [style*="font-size:.8"],
body .view-panel [style*="font-size: .8"],
body .view-panel [style*="font-size:12px"],
body .view-panel [style*="font-size: 12px"],
body .view-panel [style*="font-size:13px"],
body .view-panel [style*="font-size: 13px"] {
  font-size:14px !important;
  line-height:1.55 !important;
}

body .nav-group-label,
body .nav-section-title,
body .sidebar-section-title {
  min-height:24px;
  font-size:14px !important;
  line-height:1.4 !important;
  letter-spacing:.04em;
}

body .nav-item,
body .nav-subitem,
body .project-flow-nav,
body .project-flow-nav button,
body .pfn-current,
body .pfn-next-action {
  font-size:15px !important;
}

body .dash-rem-work-row strong,
body .dash-rem-work-row small,
body .dash-rem-work-row em,
body .ft-step-title strong,
body .ft-step-title span,
body .ft-record p,
body .ft-record span,
body .toolbox-tool-card dt,
body .toolbox-tool-card dd,
body .toolbox-tool-preview,
body .toolbox-tool-boundary,
body .rpc-steps small,
body .mi-feedback-item small,
body .mi-feedback-steps small {
  font-size:14px !important;
  line-height:1.5 !important;
}

/* ===== 1.0 Simplified project workflow surfaces ===== */
.pra-simple-steps{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(420px,1.1fr);align-items:center;gap:18px;padding:20px 22px;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 14px 32px rgba(37,99,235,.08)}
.pra-simple-steps h3{font-size:22px!important}.pra-simple-steps p{font-size:15px!important;line-height:1.65}.pra-simple-steps ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}.pra-simple-steps li{display:grid;gap:5px;min-height:82px;padding:13px;border:1px solid #dbeafe;border-radius:14px;background:#fff}.pra-simple-steps b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#2563eb;color:#fff;font-size:13px}.pra-simple-steps strong{font-size:15px!important;color:#0f172a}
.pra-simple-drawer,.pra-result-support,.pra-risk-detail-drawer,.pra-material-gap-drawer,.wf-advanced-drawer,.at-advanced-drawer,.pmat-work-guide{border:1px solid #d8e5f3;border-radius:16px;background:#fff;overflow:hidden}
.pra-simple-drawer>summary,.pra-result-support>summary,.pra-risk-detail-drawer>summary,.pra-material-gap-drawer>summary,.wf-advanced-drawer>summary,.at-advanced-drawer>summary,.pmat-work-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:13px 16px;list-style:none;cursor:pointer;color:#0f172a;font-size:15px!important;font-weight:900;background:#f8fafc}
.pra-simple-drawer>summary::-webkit-details-marker,.pra-result-support>summary::-webkit-details-marker,.pra-risk-detail-drawer>summary::-webkit-details-marker,.pra-material-gap-drawer>summary::-webkit-details-marker,.wf-advanced-drawer>summary::-webkit-details-marker,.at-advanced-drawer>summary::-webkit-details-marker,.pmat-work-guide>summary::-webkit-details-marker{display:none}
.pra-simple-drawer>summary span,.pmat-reference-collapsed>details>summary span{color:#2563eb;font-size:13px;font-weight:950}.pra-simple-drawer>summary strong{font-size:14px!important;color:#475569}.pra-simple-drawer[open]>summary,.pra-result-support[open]>summary,.pra-risk-detail-drawer[open]>summary,.pra-material-gap-drawer[open]>summary,.wf-advanced-drawer[open]>summary,.at-advanced-drawer[open]>summary,.pmat-work-guide[open]>summary{border-bottom:1px solid #e2e8f0}
.pra-simple-outcome{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:20px;border:1px solid #bbf7d0;border-radius:18px;background:linear-gradient(135deg,#f0fdf4,#fff);box-shadow:0 14px 32px rgba(22,163,74,.08)}.pra-simple-outcome.is-draft{border-color:#bfdbfe;background:linear-gradient(135deg,#eff6ff,#fff)}.pra-simple-outcome span{color:#2563eb;font-size:13px;font-weight:950}.pra-simple-outcome strong{display:block;margin-top:4px;color:#0f172a;font-size:22px!important}.pra-simple-outcome p{margin:6px 0 0;color:#475569;font-size:15px!important;line-height:1.65}.pra-simple-outcome dl{display:flex;gap:10px;margin:0}.pra-simple-outcome dl div{min-width:92px;padding:12px;border:1px solid #dcfce7;border-radius:14px;background:#fff;text-align:center}.pra-simple-outcome dt{color:#0f172a;font-size:24px;font-weight:950}.pra-simple-outcome dd{margin:3px 0 0;color:#64748b;font-size:13px}
.pmat-simple-page .pmat-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:16px}.pmat-simple-next{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:18px 20px;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 12px 28px rgba(37,99,235,.07)}.pmat-simple-next span{color:#2563eb;font-size:13px;font-weight:950}.pmat-simple-next strong{display:block;margin-top:4px;color:#0f172a;font-size:21px!important}.pmat-simple-next p{margin:6px 0 0;color:#475569;font-size:15px!important;line-height:1.55}.pmat-simple-next dl{display:flex;gap:10px;margin:0}.pmat-simple-next dl div{min-width:80px;padding:10px 12px;border:1px solid #dbeafe;border-radius:13px;background:#fff;text-align:center}.pmat-simple-next dt{font-size:22px;font-weight:950;color:#0f172a}.pmat-simple-next dd{margin:2px 0 0;color:#64748b;font-size:13px}
.pmat-reference-collapsed{align-self:start}.pmat-reference-collapsed>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border:1px solid #d8e5f3;border-radius:16px;background:#fff;list-style:none;cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.04)}.pmat-reference-collapsed>details>summary::-webkit-details-marker{display:none}.pmat-reference-collapsed>details>summary strong{display:block;margin:4px 0;color:#0f172a;font-size:16px}.pmat-reference-collapsed>details>summary small{display:block;color:#64748b;font-size:13px!important;line-height:1.45}.pmat-reference-collapsed>details>summary b{white-space:nowrap;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:6px 10px;font-size:13px}.pmat-reference-collapsed>details[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}.pmat-reference-collapsed>details[open]{border:1px solid #d8e5f3;border-radius:16px;background:#fff}.pmat-reference-collapsed>details[open]>.pmat-reference-head,.pmat-reference-collapsed>details[open]>.pmat-reference-filters,.pmat-reference-collapsed>details[open]>.pmat-reference-count,.pmat-reference-collapsed>details[open]>.pmat-reference-list,.pmat-reference-collapsed>details[open]>.pmat-advanced-reference{margin-left:12px;margin-right:12px}
.pmat-side-stack{display:grid;align-content:start;gap:14px}.pmat-insight-panel{border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 10px 24px rgba(37,99,235,.06);overflow:hidden}.pmat-insight-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;list-style:none;cursor:pointer;background:#fff}.pmat-insight-panel>summary::-webkit-details-marker{display:none}.pmat-insight-panel>summary small{display:block;margin-top:4px;color:#64748b;font-size:13px!important;line-height:1.45}.pmat-insight-panel>summary b{white-space:nowrap;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:6px 10px;font-size:13px}.pmat-insight-panel[open]>summary{border-bottom:1px solid #dbeafe}.pmat-insight-panel>header,.pmat-insight-panel details+header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #dbeafe}.pmat-insight-panel span{color:#2563eb;font-size:13px;font-weight:950}.pmat-insight-panel strong{display:block;margin-top:4px;color:#0f172a;font-size:17px!important;line-height:1.35}.pmat-insight-panel p{margin:6px 0 0;color:#475569;font-size:14px!important;line-height:1.6}.pmat-insight-empty{padding:16px;background:#fff}.pmat-insight-panel.is-empty{padding:18px;background:#fff}.pmat-preview-box,.pmat-analysis-box{margin:12px;padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.pmat-analysis-box small{display:block;margin-top:8px;color:#64748b;font-size:12px!important;line-height:1.5}.pmat-signal-list{display:grid;gap:10px;padding:0 12px 12px}.pmat-signal{padding:12px;border:1px solid #d8e5f3;border-radius:13px;background:#fff}.pmat-signal small{display:block;margin-top:7px;color:#334155;font-size:13px!important;line-height:1.55}.pmat-no-signal{margin:0;padding:12px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.pmat-table tr.is-selected{background:#eff6ff}.pmat-row-actions [data-pmat-analyze],.pmat-row-actions [data-pmat-preview]{color:#1d4ed8;font-weight:900}
.wf-simple-focus,.at-simple-focus{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:20px 22px;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 14px 30px rgba(37,99,235,.08)}.wf-simple-focus span,.at-simple-focus span{color:#2563eb;font-size:13px;font-weight:950}.wf-simple-focus strong,.at-simple-focus strong{display:block;margin-top:4px;color:#0f172a;font-size:22px!important}.wf-simple-focus p,.at-simple-focus p{margin:7px 0 0;color:#475569;font-size:15px!important;line-height:1.6}.at-simple-focus dl{display:flex;gap:10px;margin:0}.at-simple-focus dl div{min-width:78px;padding:10px;border:1px solid #dbeafe;border-radius:13px;background:#fff;text-align:center}.at-simple-focus dt{font-size:22px;font-weight:950;color:#0f172a}.at-simple-focus dd{margin:2px 0 0;color:#64748b;font-size:13px}.wf-advanced-drawer,.at-advanced-drawer{margin:14px 0}.at-page-guide{margin:0 0 14px}.at-simple-shell .at-layout{align-items:start}.at-simple-shell .at-workspace-title h2{font-size:22px!important}.at-simple-shell .at-section-head h3{font-size:18px!important}.at-simple-shell .at-field span{font-size:14px!important}
@media(max-width:1100px){.pra-simple-steps,.pmat-simple-page .pmat-workspace{grid-template-columns:1fr}.pra-simple-steps ol{grid-template-columns:repeat(2,minmax(0,1fr))}.pra-simple-outcome,.pmat-simple-next,.wf-simple-focus,.at-simple-focus{flex-direction:column;align-items:flex-start}.pra-simple-outcome dl,.pmat-simple-next dl,.at-simple-focus dl{width:100%;flex-wrap:wrap}.pra-simple-outcome dl div,.pmat-simple-next dl div,.at-simple-focus dl div{flex:1}}

/* ===== Stage-one usability guard: one primary task, secondary capability collapsed ===== */
.stage-one-usable{--stage-one-border:#cfe0f5;--stage-one-muted:#5f6f86;--stage-one-title:#10233f}
.stage-one-split-workbench{display:grid;grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr);gap:14px;align-items:start}
.stage-one-usable .stage-one-primary-action{border-color:#b7cff8;background:linear-gradient(135deg,#eef6ff,#fff);box-shadow:0 12px 28px rgba(37,99,235,.07)}
.stage-one-usable .stage-one-primary-action strong{font-size:22px!important;line-height:1.28;color:var(--stage-one-title)}
.stage-one-usable .stage-one-primary-action p,.stage-one-usable .stage-one-primary-action span{font-size:15px!important;line-height:1.58;color:var(--stage-one-muted)}
.stage-one-steps{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap}
.stage-one-steps li{display:flex!important;align-items:center;gap:8px;min-height:0!important;padding:10px 12px!important;border-radius:999px!important;box-shadow:none!important}
.stage-one-steps li strong{white-space:nowrap}
.pra-stage-one .pra-planning-layout{grid-template-columns:minmax(280px,330px) minmax(0,1fr);gap:14px}
.pra-stage-one .pra-module-workarea,.pra-stage-one .pra-module-panel{border-radius:18px}
.pra-stage-one .pra-primary-action{position:sticky;bottom:12px;z-index:4}
.pra-stage-one .pra-project-baseline{margin:0 0 10px;padding:12px 14px;border-radius:14px}
.pra-stage-one .pra-project-baseline dl{grid-template-columns:repeat(4,minmax(0,1fr))}
.pra-stage-one .pra-method-guide{grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);margin:0 0 12px;padding:14px 16px;border-radius:16px;box-shadow:none}
.pra-stage-one .pra-method-guide h3{font-size:20px!important}
.pra-stage-one .pra-method-guide p{font-size:14px!important;line-height:1.5}
.pra-stage-one .stage-one-steps{align-content:center}
.pra-stage-one .stage-one-steps li{padding:8px 10px!important}
.pra-stage-one .stage-one-steps b{width:24px;height:24px;margin:0;font-size:12px}
.pra-stage-one .stage-one-steps strong{font-size:14px!important}
.pra-stage-one .pra-module-panel{padding:12px}
.pra-stage-one .pra-module-card{min-height:46px;padding:9px 11px}
.pra-stage-one .pra-module-card strong{font-size:15px}
.pra-stage-one .pra-module-card small{font-size:12px}
.pra-stage-one .pra-module-workarea{padding:14px 16px}
.pra-stage-one .pra-active-module{padding-bottom:11px}
.pra-stage-one .pra-active-module h3{font-size:20px!important}
.pra-stage-one .pra-active-module p{font-size:14px!important;line-height:1.5}
.pra-stage-one .pra-form-grid{gap:10px;margin-top:12px}
.pra-stage-one .pra-field{font-size:14px!important}
.pra-stage-one .pra-field textarea{min-height:72px}
.pra-stage-one .pra-simple-drawer{margin-top:10px}
.pra-stage-one .pra-primary-action{margin-top:10px;padding:12px 14px;border-radius:14px}
.pra-stage-one .pra-primary-action strong{font-size:19px!important}
.pra-stage-one .pra-primary-action #pra-input-hint{font-size:14px!important}
.pmat-simple-page .pmat-toolbar{align-items:center;border-radius:18px}
.pmat-simple-page .pmat-header-actions{flex:0 0 auto}
.pmat-secondary-actions{margin:0 0 14px}
.pmat-secondary-action-row{display:flex;gap:10px;flex-wrap:wrap;padding:14px 16px;background:#fff}
.pmat-secondary-action-row .btn{min-height:38px}
.wf-stage-one .wf-detail-header{margin-bottom:12px;padding:0 2px}
.wf-stage-one .wf-detail-title{font-size:24px!important}
.wf-stage-one .wf-card-meta{font-size:14px!important}
.wf-stage-one .wf-scheme-support{display:none}
.wf-stage-one .wf-scheme-brief{border-radius:18px}
.wf-stage-one .wf-scheme-brief-head p{max-width:760px}
.wf-stage-one .wf-scheme-readiness{border-radius:18px}
.wf-stage-one .wf-program-ledger{border-radius:18px}
.wf-scheme-detail-page .wf-scheme-workbench{margin:0 0 14px}
.wf-scheme-detail-page .wf-scheme-left-panel,.wf-scheme-detail-page .wf-scheme-right-panel{min-width:0}
.wf-scheme-detail-page .wf-scheme-left-panel .wf-scheme-brief,.wf-scheme-detail-page .wf-scheme-right-panel .wf-program-ledger{height:100%;margin:0!important}
.wf-scheme-detail-page .wf-scheme-left-panel .wf-scheme-core{grid-template-columns:1fr!important}
.wf-scheme-detail-page .wf-scheme-left-panel .wf-scheme-field{border-right:0!important;border-bottom:1px solid #e2e8f0!important}
.wf-scheme-detail-page .wf-scheme-left-panel .wf-scheme-field:last-child{border-bottom:0!important}
.wf-scheme-detail-page .wf-scheme-left-panel .wf-scheme-worktable-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.at-stage-one .at-page-guide{margin-bottom:12px}
.at-stage-one .at-layout{border-radius:18px;overflow:hidden;border-top:1px solid #dce4ef}
.at-stage-one .at-workspace-title{align-items:center;border-bottom:1px solid #e6edf5;margin-bottom:16px;padding-bottom:16px}
.at-stage-one .at-title-actions{flex-wrap:wrap;justify-content:flex-end}
.at-stage-one .at-section,.at-stage-one .at-evidence-section,.at-stage-one .at-closeout,.at-stage-one .at-plan-passport{border-radius:16px}
@media(max-width:1100px){.stage-one-split-workbench{grid-template-columns:1fr}.pra-stage-one .pra-planning-layout{grid-template-columns:1fr}.pra-stage-one .pra-primary-action{position:static}.stage-one-steps{width:100%}.stage-one-steps li{flex:1 1 160px}.wf-stage-one .wf-detail-header,.at-stage-one .at-workspace-title{align-items:flex-start;flex-direction:column}}

/* ===== Stage-two closeout guard: findings, feedback, report and archive stay source-led ===== */
.workflow-view>h2,
.workflow-view>p,
.workflow-view>.ic-intro-box{
  display:none!important;
}
.workflow-view{
  padding-top:0!important;
}
.workflow-view .page-heading,
.workflow-view .stage-one-primary-action,
.workflow-view .stage-two-primary-action{
  margin-top:0;
}
.stage-two-usable{--stage-two-title:#10233f;--stage-two-muted:#52637a}
.stage-two-primary-action{border-color:#c7ddff!important;background:linear-gradient(135deg,#f8fbff,#fff)!important;box-shadow:0 14px 32px rgba(37,99,235,.07)!important}
.stage-two-primary-action h2,.stage-two-primary-action h3,.stage-two-primary-action strong{color:var(--stage-two-title)!important;font-size:24px!important;line-height:1.25}
.stage-two-primary-action p{color:var(--stage-two-muted)!important;font-size:15px!important;line-height:1.6}
.stage-two-secondary-drawer{margin:16px 0;border:1px solid #d8e5f3;border-radius:16px;background:#fff;overflow:hidden}
.stage-two-secondary-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:56px;padding:14px 16px;list-style:none;cursor:pointer;background:#f8fafc}
.stage-two-secondary-drawer>summary::-webkit-details-marker{display:none}
.stage-two-secondary-drawer>summary span{display:block;color:#2563eb;font-size:13px;font-weight:950}
.stage-two-secondary-drawer>summary strong{display:block;margin-top:4px;color:#0f172a;font-size:17px!important;line-height:1.3}
.stage-two-secondary-drawer>summary small{display:block;margin-top:4px;color:#64748b;font-size:13px!important;line-height:1.45}
.stage-two-secondary-drawer>summary b{white-space:nowrap;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:6px 10px;font-size:13px}
.stage-two-secondary-drawer[open]>summary{border-bottom:1px solid #e2e8f0}
.mi-closeout-drawer{
  margin:12px 0!important;
  box-shadow:none!important;
}
.mi-closeout-drawer .mi-closeout-guide-body{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  padding:12px 14px!important;
}
.mi-closeout-drawer .mi-closeout-guide-body p{
  display:none!important;
}
.mi-closeout-drawer .mi-closeout-kpis{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
}
.mi-closeout-drawer .mi-closeout-kpis article{
  min-width:78px!important;
  padding:7px 9px!important;
  border-radius:11px!important;
}
.mi-feedback-required-drawer{
  margin-top:10px!important;
  border:1px solid #dbeafe!important;
  border-radius:12px!important;
  background:#f8fbff!important;
  overflow:hidden!important;
}
.mi-feedback-required-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:38px!important;
  padding:8px 11px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.mi-feedback-required-drawer>summary::-webkit-details-marker{
  display:none!important;
}
.mi-feedback-required-drawer>summary strong{
  color:#0f172a!important;
  font-size:14px!important;
}
.mi-feedback-required-drawer>summary span{
  color:#2563eb!important;
  font-size:13px!important;
  font-weight:850!important;
}
.mi-feedback-required-drawer ul{
  margin:0!important;
  padding:8px 14px 12px 28px!important;
  border-top:1px solid #dbeafe!important;
}
.mi-type-purpose p{
  display:none!important;
}
.mi-feedback-detail-head p{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.mi-feedback-step-strip{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
.mi-feedback-step-strip article{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:1 1 0!important;
  min-height:38px!important;
  padding:8px 10px!important;
  border-radius:999px!important;
}
.mi-feedback-step-strip span{
  width:22px!important;
  height:22px!important;
  border-radius:999px!important;
  font-size:12px!important;
}
.mi-feedback-step-strip strong{
  margin:0!important;
  font-size:13px!important;
  white-space:nowrap!important;
}
.mi-feedback-step-strip small{
  margin:0 0 0 auto!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.mi-linked-finding-panel>div:last-child{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.mi-linked-finding-panel small{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
}
.mi-support-records .mi-stats-bar,.mi-support-records .mi-toolbar{margin:14px}
.mi-support-records .mi-list,.mi-support-records .mi-empty{margin:0 14px 14px}
.finding-danger-actions{margin-top:12px;border:1px dashed #fecaca;border-radius:14px;background:#fffafa;overflow:hidden}
.finding-danger-actions>summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 12px;color:#991b1b;font-size:14px!important;font-weight:900;cursor:pointer;list-style:none}
.finding-danger-actions>summary::-webkit-details-marker{display:none}
.finding-danger-actions[open]>summary{border-bottom:1px dashed #fecaca}
.finding-danger-actions .ff-delete-btn{margin:12px}
.finding-danger-actions span{display:block;margin:-4px 12px 12px;color:#7f1d1d;font-size:13px!important;line-height:1.5}
.ff-compact-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:18px 20px;border:1px solid #c7ddff;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 12px 26px rgba(37,99,235,.06)}
.ff-compact-head>div:first-child{min-width:0}
.ff-compact-head span:first-child{display:block;margin-bottom:4px;color:#2563eb;font-size:13px;font-weight:950;letter-spacing:.08em}
.ff-compact-head h2{margin:0;color:#10233f;font-size:26px!important;line-height:1.2}
.ff-compact-head p{margin:6px 0 0;color:#52637a;font-size:15px!important;line-height:1.6}
.ff-compact-metrics{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;max-width:560px}
.ff-compact-metrics span{display:inline-flex!important;align-items:baseline;gap:6px;min-height:34px;padding:7px 10px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#64748b;font-size:13px!important;font-weight:800;letter-spacing:0!important}
.ff-compact-metrics b{color:#0f172a;font-size:18px;line-height:1}
.finding-queue-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px!important;border-radius:16px!important;box-shadow:none!important;background:#fff!important}
.finding-queue-strip .fcq-head{align-items:center;margin:0}
.finding-queue-strip .fcq-head span{color:#0f766e;font-size:13px!important;letter-spacing:.04em}
.finding-queue-strip .fcq-head strong{font-size:17px!important}
.finding-queue-strip .fcq-head p{display:none}
.finding-queue-strip .fcq-head b{padding:6px 10px;font-size:13px!important}
.finding-queue-strip .fcq-buckets{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.finding-queue-strip .fcq-bucket{
  display:grid;
  place-items:center;
  min-width:58px;
  min-height:42px;
  padding:5px 8px;
  border:1px solid #dbeafe;
  border-radius:11px;
  background:#f8fbff;
  color:#0f172a;
  cursor:pointer;
  font-family:inherit;
}
.finding-queue-strip .fcq-bucket:hover{
  border-color:#93c5fd;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}
.finding-queue-strip .fcq-bucket strong{
  color:#0f766e;
  font-size:16px;
  line-height:1;
}
.finding-queue-strip .fcq-bucket span{
  margin-top:3px;
  color:#64748b;
  font-size:11px!important;
  font-weight:850;
  white-space:nowrap;
}
.finding-queue-strip .fcq-empty{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;padding:0;border:0;background:transparent;color:#64748b;font-size:14px!important}
.finding-queue-strip .fcq-list{display:flex;align-items:center;gap:8px;overflow-x:auto}
.finding-queue-strip .fcq-item{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;min-width:320px;padding:9px 10px;border-radius:12px;box-shadow:none}
.finding-queue-strip .fcq-item i{min-width:38px;height:28px;font-size:12px}
.finding-queue-strip .fcq-item div>span{
  display:block;
  margin-bottom:2px;
  color:#0f766e;
  font-size:11px!important;
  font-weight:950;
}
.finding-queue-strip .fcq-item strong{font-size:14px!important}
.finding-queue-strip .fcq-item small{font-size:12px!important}
.finding-flow-drawer{margin-top:14px;border:1px solid #d8e5f3;border-radius:16px;background:#fff;overflow:hidden}
.finding-flow-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:54px;padding:12px 14px;list-style:none;cursor:pointer;background:#f8fafc}
.finding-flow-drawer>summary::-webkit-details-marker{display:none}
.finding-flow-drawer>summary span{display:block;color:#2563eb;font-size:13px;font-weight:950}
.finding-flow-drawer>summary strong{display:block;margin-top:3px;color:#0f172a;font-size:17px!important;line-height:1.3}
.finding-flow-drawer>summary small{display:block;margin-top:3px;color:#64748b;font-size:13px!important;line-height:1.45}
.finding-flow-drawer .fcf-steps{padding:12px}
.finding-flow-drawer[open]>summary{border-bottom:1px solid #e2e8f0}
.report-stage-two .rp2-stats{display:none}
.report-stage-two .rp-quality-controls{margin-top:14px}
.report-stage-two .rp-issuance-desk{
  display:grid;
  grid-template-columns:minmax(240px,.45fr) minmax(0,1fr);
  gap:0;
  margin:0 0 14px;
  padding:0!important;
  border-radius:16px;
  overflow:hidden;
  box-shadow:none!important;
}
.report-stage-two .rpid-versions{
  display:grid;
  align-content:start;
  gap:8px;
  padding:14px;
  border-right:1px solid #dbeafe;
  background:#f8fbff;
}
.report-stage-two .rpid-versions>span,
.report-stage-two .rpid-head span,
.report-stage-two .rpid-facts span{
  display:block;
  color:#2563eb;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
}
.report-stage-two .rpid-versions>strong{
  color:#0f172a;
  font-size:20px!important;
  line-height:1.25;
}
.report-stage-two .rpid-versions>p{
  margin:0 0 4px;
  color:#64748b;
  font-size:13px!important;
  line-height:1.45;
}
.report-stage-two .rpid-stage{
  display:grid;
  gap:3px;
  width:100%;
  padding:10px 11px;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  font-family:inherit;
}
.report-stage-two .rpid-stage:hover{
  border-color:#93c5fd;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}
.report-stage-two .rpid-stage.active{
  border-color:#2563eb;
  background:#eff6ff;
}
.report-stage-two .rpid-stage b{
  color:#0f172a;
  font-size:15px;
  line-height:1.25;
}
.report-stage-two .rpid-stage small{
  color:#64748b;
  font-size:12px;
  line-height:1.35;
}
.report-stage-two .rpid-current{
  display:grid;
  gap:12px;
  padding:14px 16px;
  background:#fff;
}
.report-stage-two .rpid-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.report-stage-two .rpid-head h3{
  margin:3px 0 0;
  color:#0f172a;
  font-size:22px!important;
  line-height:1.25;
}
.report-stage-two .rpid-head p{
  margin:5px 0 0;
  color:#52637a;
  font-size:14px!important;
  line-height:1.5;
}
.report-stage-two .rpid-head b{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:13px;
}
.report-stage-two .rpid-facts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.report-stage-two .rpid-facts article{
  min-height:74px;
  padding:10px 11px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fbfdff;
}
.report-stage-two .rpid-facts strong{
  display:block;
  margin-top:5px;
  color:#0f172a;
  font-size:14px!important;
  line-height:1.35;
}
.report-stage-two .rpid-facts small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  line-height:1.4;
}
.report-stage-two .rpid-missing{
  padding:10px 12px;
  border:1px solid #fed7aa;
  border-radius:12px;
  background:#fff7ed;
  color:#9a3412;
  font-size:13px;
  line-height:1.5;
}
.report-stage-two .rpid-missing strong{margin-right:4px}
.report-stage-two .rpid-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.report-stage-two .rp-assembly-workbench{margin:0 0 14px;padding:0;border-radius:16px;overflow:hidden;box-shadow:none!important}
.report-stage-two .rpa2-head{padding:14px 16px!important;align-items:center}
.report-stage-two .rpa2-head strong{font-size:21px!important}
.report-stage-two .rpa2-head p{font-size:14px!important;line-height:1.5}
.report-stage-two .rpa2-compact-count{flex:0 0 auto;min-width:92px;padding:8px 12px;border:1px solid #dbeafe;border-radius:12px;background:#fff;text-align:center}
.report-stage-two .rpa2-compact-count strong{display:block;color:#2563eb;font-size:18px!important;line-height:1}
.report-stage-two .rpa2-compact-count span{display:block;margin-top:4px;color:#64748b;font-size:12px!important}
.report-stage-two .rpa2-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.report-stage-two .rp-section-worksheet{border-top:1px solid #e2e8f0;background:#fff}
.report-stage-two .rpsw-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid #e2e8f0;background:#f8fbff}
.report-stage-two .rpsw-head span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.12em}.report-stage-two .rpsw-head strong{display:block;margin-top:3px;color:#0f172a;font-size:18px}.report-stage-two .rpsw-head p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}.report-stage-two .rpsw-head b{padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px}
.report-stage-two .rpsw-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.35fr);min-height:280px}
.report-stage-two .rpsw-list{display:grid;align-content:start;gap:8px;padding:12px;border-right:1px solid #e2e8f0;background:#fbfdff;max-height:430px;overflow:auto}
.report-stage-two .rpsw-row{display:grid;gap:5px;width:100%;padding:11px 12px;border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.report-stage-two .rpsw-row:hover{border-color:#93c5fd;box-shadow:0 10px 22px rgba(37,99,235,.09)}.report-stage-two .rpsw-row.active{border-color:#2563eb;background:#eff6ff}.report-stage-two .rpsw-row.warn{border-left-color:#f97316}.report-stage-two .rpsw-row.ready{border-left-color:#16a34a}.report-stage-two .rpsw-row.excluded{border-left-color:#64748b}.report-stage-two .rpsw-row.pending{border-left-color:#f59e0b}
.report-stage-two .rpsw-row span{justify-self:start;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:900}.report-stage-two .rpsw-row.warn span{background:#ffedd5;color:#c2410c}.report-stage-two .rpsw-row.ready span{background:#dcfce7;color:#15803d}.report-stage-two .rpsw-row strong{color:#0f172a;font-size:14px;line-height:1.35}.report-stage-two .rpsw-row small{color:#64748b;font-size:12px;line-height:1.4}
.report-stage-two .rpsw-detail{padding:14px 16px;background:#fff}.report-stage-two .rpsw-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.report-stage-two .rpsw-detail-head span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.12em}.report-stage-two .rpsw-detail-head h3{margin:3px 0;color:#0f172a;font-size:20px;line-height:1.25}.report-stage-two .rpsw-detail-head p{margin:0;color:#52637a;font-size:13px;line-height:1.55}.report-stage-two .rpsw-detail-head b{padding:6px 10px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:12px}.report-stage-two .rpsw-detail-head b.warn{background:#ffedd5;color:#c2410c}
.report-stage-two .rpsw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.report-stage-two .rpsw-fields article{min-height:72px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff}.report-stage-two .rpsw-fields article span{display:block;color:#64748b;font-size:12px;font-weight:900}.report-stage-two .rpsw-fields article strong{display:block;margin-top:5px;color:#0f172a;font-size:14px;line-height:1.45}.report-stage-two .rpsw-fields article.missing{border-color:#fed7aa;background:#fffaf5}.report-stage-two .rpsw-fields article.missing strong{color:#9a3412}
.report-stage-two .rpsw-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.report-stage-two .rpsw-empty,.report-stage-two .rpsw-more{padding:13px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;font-size:13px}
.report-stage-two .rpa-section-checklist{margin:0!important;border-top:1px solid #e2e8f0;border-radius:0;box-shadow:none!important}
.report-stage-two .rpsc-head{padding:12px 14px!important}
.report-stage-two .rpsc-head strong{font-size:18px!important}
.report-stage-two .rpsc-head p{font-size:13px!important;line-height:1.45}
.report-stage-two .rpsc-table{padding:0 12px 12px}
.report-stage-two .rpsc-row{grid-template-columns:minmax(260px,1.4fr) minmax(110px,.45fr) minmax(260px,1fr) auto!important;gap:10px;padding:10px 12px!important;border-radius:10px}
.report-stage-two .rp-assembly-detail{border-top:1px solid #e2e8f0}
.report-stage-two .rp-assembly-detail>summary{padding:10px 14px;cursor:pointer;color:#2563eb;font-size:14px;font-weight:850;background:#f8fbff;list-style:none}
.report-stage-two .rp-assembly-detail>summary::-webkit-details-marker{display:none}
.report-stage-two .rp-assembly-detail[open]>summary{border-bottom:1px solid #e2e8f0}
.report-stage-two .rp-assembly-detail .rpa2-grid{padding:12px}
.report-stage-two .rpa2-rule{margin:0 12px 12px}
.report-stage-two .rp-next-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 14px;padding:12px 14px;border-radius:16px;box-shadow:none!important}
.report-stage-two .rp-next-strip .rpns-head{display:flex;align-items:center;gap:12px;padding:0}
.report-stage-two .rp-next-strip .rpns-head strong{font-size:20px!important}
.report-stage-two .rp-next-strip .rpns-head p{margin-top:4px;max-width:820px;font-size:14px!important;line-height:1.5}
.report-stage-two .rp-next-strip .rpns-head b{padding:6px 10px}
.report-stage-two .rp-next-strip .rpns-metrics{display:flex;align-items:center;gap:8px;border:0;background:transparent}
.report-stage-two .rp-next-strip .rpns-metrics article{min-width:74px;padding:7px 9px;border:1px solid #dbeafe;border-radius:12px;background:#fff}
.report-stage-two .rp-next-strip .rpns-metrics strong{font-size:18px}
.report-stage-two .rp-next-strip .rpns-metrics span{margin-top:3px;font-size:12px}
.report-stage-two .rp-next-strip .rpns-blockers{grid-column:1/-1;margin:0;padding:10px 12px;border-radius:12px;font-size:13px}
.report-stage-two .rp-next-strip .rpns-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;padding:0;gap:8px}
.report-stage-two .rp-next-strip .rpns-action{min-width:180px;padding:10px 12px;border-radius:12px}
.rp-closeout-drawer{padding:0!important;box-shadow:none!important;background:#fff!important}
.rp-closeout-drawer .rpc-steps{padding:12px}
.rp-closeout-drawer .rpc-actions{padding:0 12px 12px}
.wpm-stage-two .wpm-stats-bar{display:none}
.wpm-stage-two .wpm-toolbar{margin-top:14px;border-radius:16px}
.wpm-stage-two .wpm-package-desk{border-radius:16px;box-shadow:none!important;background:#fff!important}
.wpm-stage-two .wpm-package-head{align-items:center;padding:14px 16px!important}
.wpm-stage-two .wpm-package-head h3{font-size:21px!important}
.wpm-stage-two .wpm-package-head p{display:none!important;max-width:920px;font-size:14px!important;line-height:1.5}
.wpm-stage-two .wpm-archive-decision-strip{display:grid;grid-template-columns:minmax(260px,1fr) minmax(420px,1.35fr) auto;align-items:center;gap:14px;margin:12px;padding:13px 14px;border:1px solid #dbeafe;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#fff)}
.wpm-stage-two .wpm-archive-decision-copy span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.08em}.wpm-stage-two .wpm-archive-decision-copy strong{display:block;margin-top:4px;color:#0f172a;font-size:20px;line-height:1.25}.wpm-stage-two .wpm-archive-decision-copy p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}
.wpm-stage-two .wpm-archive-decision-strip dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.wpm-stage-two .wpm-archive-decision-strip dl div{padding:9px 10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.wpm-stage-two .wpm-archive-decision-strip dt{margin:0;color:#0f172a;font-size:18px;font-weight:950;line-height:1.1}.wpm-stage-two .wpm-archive-decision-strip dd{margin:4px 0 0;color:#64748b;font-size:12px;font-weight:850}
.wpm-stage-two .wpm-archive-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.wpm-stage-two .wpm-package-blockers{margin:10px 12px 0;padding:10px 12px;font-size:13px}
.wpm-stage-two .wpm-package-table{display:grid;gap:0;padding:10px 12px 12px}
.wpm-stage-two .wpm-package-row{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(74px,.32fr) minmax(280px,1.4fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-bottom:0;background:#fff}
.wpm-stage-two .wpm-package-row:first-child{border-radius:12px 12px 0 0}
.wpm-stage-two .wpm-package-row:last-child{border-bottom:1px solid #e2e8f0;border-radius:0 0 12px 12px}
.wpm-stage-two .wpm-package-row.is-head{padding:8px 12px;background:#f8fbff;color:#64748b;font-size:12px;font-weight:900}
.wpm-stage-two .wpm-package-row>span:first-child{display:flex;align-items:center;gap:9px}
.wpm-stage-two .wpm-package-item{min-height:0!important;grid-template-rows:none!important;border-radius:0;box-shadow:none!important}
.wpm-stage-two .wpm-package-item i{width:28px;height:28px;border-radius:9px}
.wpm-stage-two .wpm-package-item strong{font-size:15px}
.wpm-stage-two .wpm-package-item em{display:inline-flex;margin:0;padding:4px 8px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px;font-style:normal;font-weight:900}
.wpm-stage-two .wpm-package-item.is-done em{background:#ecfdf5;color:#047857}
.wpm-stage-two .wpm-package-item.is-empty em{background:#f1f5f9;color:#64748b}
.wpm-stage-two .wpm-package-item b{display:block;color:#0f172a;font-size:14px}
.wpm-stage-two .wpm-package-item small{display:block;margin-top:3px;color:#64748b;font-size:12px;line-height:1.45}
.wpm-stage-two .wpm-package-footer{padding:10px 12px;font-size:13px}
.wpm-stage-two .wpm-package-ready-drawer{
  margin:0 12px 10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.wpm-stage-two .wpm-package-ready-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:38px!important;
  padding:8px 11px!important;
  list-style:none!important;
  cursor:pointer!important;
  color:#475569!important;
  font-size:13px!important;
  font-weight:900!important;
  background:#f8fafc!important;
}
.wpm-stage-two .wpm-package-ready-drawer>summary::-webkit-details-marker{
  display:none!important;
}
.wpm-stage-two .wpm-package-ready-drawer>summary b{
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#ecfdf5!important;
  color:#047857!important;
  font-size:12px!important;
}
.wpm-stage-two .wpm-package-ready-drawer .wpm-package-table{
  padding:8px!important;
}
.wpm-stage-two .wpm-package-ready-drawer .wpm-package-row.is-head{
  display:none!important;
}
.wpm-stage-two .wpm-index-table{display:grid;gap:0;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:#fff}
.wpm-stage-two .wpm-index-row{display:grid;grid-template-columns:minmax(280px,1.5fr) minmax(130px,.55fr) minmax(100px,.4fr) minmax(150px,.55fr) minmax(170px,.8fr) auto;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #eef2f7;background:#fff}
.wpm-stage-two .wpm-index-row:last-child{border-bottom:0}
.wpm-stage-two .wpm-index-row.is-head{background:#f8fbff;color:#64748b;font-size:12px;font-weight:900}
.wpm-stage-two .wpm-card{border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important;padding:11px 14px!important}
.wpm-stage-two .wpm-card-main{min-width:0;padding-left:10px}
.wpm-stage-two .wpm-card-title{margin:0 0 3px;font-size:15px!important;font-weight:850}
.wpm-stage-two .wpm-card-updated{color:#64748b;font-size:13px}
.wpm-stage-two .wpm-card-linkage{display:flex;flex-wrap:wrap;gap:5px;color:#64748b;font-size:12px}
.wpm-stage-two .wpm-card-linkage span{padding:2px 6px;border-radius:999px;background:#f1f5f9}
.wpm-stage-two .wpm-card-actions{margin-left:0;justify-content:flex-end}
/* Workpaper archive page: checklist first, source index second, archive action last; no gallery-style evidence wall. */
.wpm-stage-two .wpm-dossier-index{box-shadow:none!important;border-radius:16px!important;background:#fff!important}
.wpm-stage-two .wpm-dossier-head b{font-size:13px!important;box-shadow:none!important}
.wpm-stage-two .wpm-closeout-kpis span{padding:8px 9px!important;border-radius:10px!important}
.wpm-stage-two .wpm-closeout-kpis strong{font-size:18px!important}
.wpm-stage-two .wpm-closeout-actions .btn{min-height:34px!important}
.wpm-stage-two .wpm-workpaper-desk{margin:14px 0;border:1px solid #d8e5f3;border-radius:16px;background:#fff;overflow:hidden;box-shadow:none!important}
.wpm-stage-two .wpm-desk-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid #e2e8f0;background:#f8fbff}
.wpm-stage-two .wpm-desk-head span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.1em}.wpm-stage-two .wpm-desk-head h3{margin:3px 0;color:#0f172a;font-size:20px;line-height:1.25}.wpm-stage-two .wpm-desk-head p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}.wpm-stage-two .wpm-desk-head b{padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px}
.wpm-stage-two .wpm-desk-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.35fr);min-height:300px}
.wpm-stage-two .wpm-desk-list{display:grid;align-content:start;gap:8px;padding:12px;border-right:1px solid #e2e8f0;background:#fbfdff;max-height:430px;overflow:auto}
.wpm-stage-two .wpm-desk-row{display:grid;gap:5px;width:100%;padding:11px 12px;border:1px solid #e2e8f0;border-left:4px solid #f97316;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.wpm-stage-two .wpm-desk-row:hover{border-color:#93c5fd;box-shadow:0 10px 22px rgba(37,99,235,.09)}.wpm-stage-two .wpm-desk-row.active{border-color:#2563eb;background:#eff6ff}.wpm-stage-two .wpm-desk-row.ready{border-left-color:#16a34a}.wpm-stage-two .wpm-desk-row span{justify-self:start;padding:2px 7px;border-radius:999px;background:#ffedd5;color:#c2410c;font-size:12px;font-weight:900}.wpm-stage-two .wpm-desk-row.ready span{background:#dcfce7;color:#15803d}.wpm-stage-two .wpm-desk-row strong{color:#0f172a;font-size:14px;line-height:1.35}.wpm-stage-two .wpm-desk-row small{color:#64748b;font-size:12px;line-height:1.4}
.wpm-stage-two .wpm-desk-detail{padding:14px 16px;background:#fff}.wpm-stage-two .wpm-desk-current{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.wpm-stage-two .wpm-desk-current span,.wpm-stage-two .wpm-desk-next span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.1em}.wpm-stage-two .wpm-desk-current h3{margin:3px 0;color:#0f172a;font-size:20px;line-height:1.25}.wpm-stage-two .wpm-desk-current p{margin:0;color:#52637a;font-size:13px;line-height:1.55}.wpm-stage-two .wpm-desk-current b{padding:6px 10px;border-radius:999px;background:#ffedd5;color:#c2410c;font-size:12px}.wpm-stage-two .wpm-desk-current b.ready{background:#dcfce7;color:#15803d}
.wpm-stage-two .wpm-desk-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.wpm-stage-two .wpm-desk-fields article{min-height:64px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff}.wpm-stage-two .wpm-desk-fields span{display:block;color:#64748b;font-size:12px;font-weight:900}.wpm-stage-two .wpm-desk-fields strong{display:block;margin-top:5px;color:#0f172a;font-size:14px;line-height:1.4}
.wpm-stage-two .wpm-desk-next{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px 13px;border:1px solid #bfdbfe;border-radius:13px;background:#f8fbff}.wpm-stage-two .wpm-desk-next strong{display:block;margin-top:3px;color:#0f172a;font-size:17px}.wpm-stage-two .wpm-desk-next p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}.wpm-stage-two .wpm-desk-next>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.wpm-stage-two .wpm-desk-empty,.wpm-stage-two .wpm-desk-more{padding:13px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;font-size:13px}
.wpm-stage-two .wpm-purpose p,
.wpm-stage-two .wpm-dossier-head p,
.wpm-stage-two .wpm-source-card small,
.wpm-stage-two .wpm-closeout-check p{
  display:none!important;
}
.wpm-stage-two .wpm-purpose{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wpm-stage-two .wpm-purpose h3{
  font-size:20px!important;
}
.wpm-stage-two .wpm-dossier-head{
  align-items:center!important;
  padding:12px 14px!important;
}
.wpm-stage-two .wpm-dossier-grid{
  gap:8px!important;
}
.wpm-stage-two .wpm-source-card{
  min-height:0!important;
  padding:10px 11px!important;
  border-radius:12px!important;
}
.wpm-stage-two .wpm-source-card strong{
  font-size:14px!important;
}
.wpm-stage-two .wpm-source-card em{
  margin-top:4px!important;
  font-size:12px!important;
}
.wpm-stage-two .wpm-closeout-check{
  padding:10px 12px!important;
  border-radius:12px!important;
}
.wpm-asset-candidate-form{margin-top:12px;padding:14px;border:1px solid #c7d2fe;border-radius:14px;background:#f8faff}.wpm-asset-candidate-form header,.wpm-asset-candidate-form footer{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.wpm-asset-candidate-form header span{display:block;color:#4338ca;font-size:11px;font-weight:900;letter-spacing:.1em}.wpm-asset-candidate-form header strong{display:block;margin-top:3px;color:#172554;font-size:16px}.wpm-asset-candidate-form header p{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.55}.wpm-asset-candidate-form header>button{border:0;background:transparent;color:#64748b;cursor:pointer}.wpm-asset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.wpm-asset-grid label{display:grid;gap:5px;color:#475569;font-size:12px;font-weight:700}.wpm-asset-grid .wide{grid-column:1/-1}.wpm-asset-grid :is(input,select,textarea){width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:9px 10px;color:#172033;font:inherit}.wpm-asset-grid textarea{resize:vertical}.wpm-asset-candidate-form footer{align-items:center}.wpm-asset-candidate-form footer small{max-width:70%;color:#64748b;line-height:1.5}
@media(max-width:760px){.stage-two-primary-action,.ff-compact-head,.finding-queue-strip{align-items:flex-start;flex-direction:column}.ff-compact-metrics{justify-content:flex-start}.finding-queue-strip .fcq-empty{align-items:flex-start;flex-direction:column}.report-stage-two .rp-next-strip,.report-stage-two .rp-issuance-desk{grid-template-columns:1fr}.report-stage-two .rpid-versions{border-right:0;border-bottom:1px solid #dbeafe}.report-stage-two .rpid-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.report-stage-two .rpid-head,.report-stage-two .rp-next-strip .rpns-head{align-items:flex-start;flex-direction:column}.report-stage-two .rp-next-strip .rpns-metrics{flex-wrap:wrap}.report-stage-two .rp2-columns,.wpm-stage-two .wpm-desk-layout{grid-template-columns:1fr}.wpm-stage-two .wpm-desk-list{border-right:0;border-bottom:1px solid #e2e8f0}.wpm-stage-two .wpm-desk-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.wpm-stage-two .wpm-desk-next,.wpm-stage-two .wpm-desk-current{align-items:flex-start;flex-direction:column}.wpm-asset-grid{grid-template-columns:1fr}.wpm-asset-grid .wide{grid-column:auto}}
@media(max-width:900px){.finding-closeout-desk .fcd-layout{grid-template-columns:1fr!important}.finding-closeout-desk .fcd-list{border-right:0!important;border-bottom:1px solid #e2e8f0!important}.finding-closeout-desk .fcd-fields{grid-template-columns:1fr!important}.finding-closeout-desk .fcd-next,.finding-closeout-desk .fcd-empty{align-items:flex-start!important;flex-direction:column!important}.finding-closeout-desk .fcd-next .btn,.finding-closeout-desk .fcd-empty .btn{width:100%!important;justify-content:center!important}.finding-closeout-desk .fcd-current{padding-right:0!important}.finding-closeout-desk .fcd-current b{position:static!important;display:inline-flex!important;margin-top:8px!important}}
@media(max-width:900px){.finding-closeout-desk .fcd-facts{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}}

/* ===== Stage-three assistive capability guard: search/tools/models stay backstage ===== */
.stage-three-usable{--stage-three-title:#10233f;--stage-three-muted:#52637a;--stage-three-blue:#2563eb}
.stage-three-primary-action{border-color:#c7ddff!important;background:linear-gradient(135deg,#f8fbff,#fff)!important;box-shadow:0 12px 28px rgba(37,99,235,.07)!important}
.stage-three-primary-action h2,.stage-three-primary-action h3,.stage-three-primary-action strong{color:var(--stage-three-title)!important;font-size:24px!important;line-height:1.25}
.stage-three-primary-action p,.stage-three-primary-action span,.stage-three-primary-action small{color:var(--stage-three-muted)!important;font-size:15px!important;line-height:1.6}
#view-qa.stage-three-usable{height:auto!important;max-height:none!important;overflow:visible!important}
#view-qa.stage-three-usable .qa-stage-three-workbench{max-width:1280px}
#view-qa.stage-three-usable .qa-chat-container{max-height:none!important}
#view-qa.stage-three-usable .qa-messages{max-height:none!important;padding:18px!important}
#view-qa.qa-redesigned .qa-chat-container { min-height:0; height:auto !important; overflow:visible; }
#view-qa.qa-redesigned .qa-messages { order:2; min-height:320px; overflow:visible; }
#view-qa.stage-three-usable .qa-message.qa-system{max-width:min(1080px,100%)}
#view-qa.stage-three-usable .qa-msg-content{max-height:none!important;overflow:visible!important}
#view-qa.stage-three-usable .qa-direct-answer{border-radius:16px}
.qa-citations-drawer,.qa-source-cards-drawer{margin-top:12px;border:1px solid #dbe3ed;border-radius:14px;background:#fff;overflow:hidden}
.qa-citations-drawer>summary,.qa-source-cards-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:10px 13px;list-style:none;cursor:pointer;background:#f8fafc}
.qa-citations-drawer>summary::-webkit-details-marker,.qa-source-cards-drawer>summary::-webkit-details-marker{display:none}
.qa-citations-drawer>summary span,.qa-source-cards-drawer>summary span{color:#1d4ed8;font-size:14px!important;font-weight:900}
.qa-citations-drawer>summary small,.qa-source-cards-drawer>summary small{color:#64748b;font-size:13px!important}
.qa-citations-drawer[open]>summary,.qa-source-cards-drawer[open]>summary{border-bottom:1px solid #e2e8f0}
.qa-citations-drawer .qa-citations-bar{border-top:0;border-radius:0;background:#fff}
.qa-source-cards-drawer .qa-source-cards{padding:10px;background:#fff}
.stage-three-secondary-drawer{overflow:hidden}
.stage-three-secondary-drawer>summary{list-style:none;cursor:pointer}
.stage-three-secondary-drawer>summary::-webkit-details-marker{display:none}

/* Knowledge workspace: keep retrieval and library administration separate. */
#view-qa.qa-redesigned .qa-knowledge-library-drawer{
  width:min(1280px,100%);
  margin-top:14px;
  border-color:#cbd8e8;
  border-radius:14px;
  background:#fff;
  scroll-margin-top:92px;
}
#view-qa.qa-redesigned .qa-knowledge-library-drawer>summary{
  min-height:58px;
  padding:12px 16px;
  background:#f8fafc;
}
#view-qa.qa-redesigned .qa-knowledge-library-drawer>summary span{
  font-size:15px;
  color:#10233f;
}
#view-qa.qa-redesigned .qa-knowledge-library-drawer>summary small{
  font-size:13px;
}
#view-qa.qa-redesigned .qa-knowledge-library-drawer[open] .qa-kb-card{
  position:static;
  inset:auto;
  width:100%;
  height:auto!important;
  max-height:none;
  padding:16px!important;
  border:0;
  border-radius:0;
  overflow:visible;
  resize:none;
  box-shadow:none;
}
#view-qa.qa-redesigned .qa-knowledge-library-drawer .qa-library-manager-head{
  position:static;
  margin:-16px -16px 0;
  padding:16px;
  background:#fff;
  backdrop-filter:none;
}
#view-qa.qa-redesigned .qa-knowledge-library-drawer .qa-library-document-list{
  max-height:none;
  overflow:visible;
}
/* 只有使用明确的“管理/浏览资料”动作时，目录才进入独立工作区。 */
#view-qa.qa-redesigned.qa-library-browse-mode .prompt-panel,
#view-qa.qa-redesigned.qa-library-browse-mode .qa-chat-container,
#view-qa.qa-redesigned.qa-library-browse-mode .qa-hints{
  display:none!important;
}
#view-qa.qa-redesigned.qa-library-browse-mode .qa-workbench{
  gap:0;
}
#view-qa.qa-redesigned.qa-library-browse-mode .qa-knowledge-library-drawer{
  margin-top:10px;
}
#view-qa.qa-redesigned.qa-library-browse-mode .qa-knowledge-library-drawer>summary,
#view-qa.qa-redesigned.qa-library-browse-mode [data-kb-library-action="close-manager"]{
  display:none;
}
#view-qa.qa-redesigned.qa-library-browse-mode .qa-knowledge-library-drawer[open] .qa-kb-card{
  border:1px solid #cbd8e8;
  border-radius:14px;
}
.qa-source-toggle .qa-source-count{
  display:inline-flex;
  min-width:20px;
  height:20px;
  margin-left:6px;
  padding:0 6px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e8eef7;
  color:#52637a;
  font-size:11px!important;
  font-weight:850;
}
.qa-source-toggle.active .qa-source-count{
  background:#dbeafe;
  color:#1d4ed8;
}
.qa-scope-ready-state{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  width:min(760px,100%);
  padding:18px!important;
  border-color:#bfdbfe!important;
  background:#f8fbff!important;
}
.qa-scope-ready-state>div span,
.qa-scope-ready-state>div strong,
.qa-scope-ready-state>div p{
  display:block;
}
.qa-scope-ready-state>div span{
  color:#2563eb;
  font-size:12px!important;
  font-weight:850;
}
.qa-scope-ready-state>div strong{
  margin-top:4px;
  color:#10233f;
  font-size:18px;
}
.qa-scope-ready-state>div p{
  margin:5px 0 0;
  color:#52637a;
  font-size:13px!important;
  line-height:1.6;
}
.qa-scope-ready-state>aside{
  display:grid;
  min-width:154px;
  justify-items:end;
}
.qa-scope-ready-state>aside b{
  color:#1d4ed8;
  font-size:28px;
  line-height:1;
}
.qa-scope-ready-state>aside small{
  margin-top:4px;
  color:#64748b;
  font-size:12px;
}
.qa-scope-ready-state>aside button{
  min-height:34px;
  margin-top:10px;
  padding:0 11px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:#fff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.qa-library-directory-toolbar{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  padding:12px;
  border:1px solid #dbe3ed;
  border-radius:10px;
  background:#f8fafc;
}
.qa-library-directory-toolbar[hidden],
.qa-library-pagination[hidden]{display:none}
.qa-library-directory-toolbar label{
  display:grid;
  gap:5px;
  width:min(520px,100%);
  color:#475569;
  font-size:12px;
  font-weight:800;
}
.qa-library-directory-toolbar input{
  width:100%;
  height:38px;
  padding:0 11px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
}
.qa-library-directory-toolbar input:focus{
  border-color:#2563eb;
  outline:3px solid rgba(37,99,235,.14);
}
.qa-library-directory-toolbar>span{
  color:#64748b;
  font-size:12px;
  white-space:nowrap;
}
.qa-library-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:2px;
}
.qa-library-pagination>span{
  color:#64748b;
  font-size:12px;
}
.qa-library-pagination>div{
  display:flex;
  gap:7px;
}
.qa-library-pagination button{
  min-width:72px;
  min-height:34px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#334155;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.qa-library-pagination button:disabled{
  opacity:.42;
  cursor:not-allowed;
}
html[data-theme="dark"] #view-qa.qa-redesigned .qa-knowledge-library-drawer,
html[data-theme="dark"] #view-qa.qa-redesigned .qa-knowledge-library-drawer[open] .qa-kb-card,
html[data-theme="dark"] #view-qa.qa-redesigned .qa-knowledge-library-drawer .qa-library-manager-head{
  border-color:#314158;
  background:#172235;
}
html[data-theme="dark"] #view-qa.qa-redesigned .qa-knowledge-library-drawer>summary,
html[data-theme="dark"] .qa-library-directory-toolbar{
  border-color:#314158;
  background:#13233b;
}
html[data-theme="dark"] .qa-scope-ready-state{
  border-color:#314158!important;
  background:#172235!important;
}
html[data-theme="dark"] .qa-scope-ready-state>div strong,
html[data-theme="dark"] .qa-knowledge-library-drawer>summary span{
  color:#e5edf8;
}
html[data-theme="dark"] .qa-scope-ready-state>div p,
html[data-theme="dark"] .qa-library-directory-toolbar label,
html[data-theme="dark"] .qa-library-directory-toolbar>span,
html[data-theme="dark"] .qa-library-pagination>span{
  color:#a8b7ca;
}
html[data-theme="dark"] .qa-library-directory-toolbar input,
html[data-theme="dark"] .qa-library-pagination button,
html[data-theme="dark"] .qa-scope-ready-state>aside button{
  border-color:#314158;
  background:#101a2b;
  color:#bfdbfe;
}
html[data-theme="dark"] .qa-active-library-action,
html[data-theme="dark"] .qa-method-reference-toggle{
  border-color:#314158;
  background:#101a2b;
  color:#bfdbfe;
}
html[data-theme="dark"] .qa-method-reference-toggle small{color:#a8b7ca}
html[data-theme="dark"] .qa-method-reference-state{border-color:#52657c;background:#172235}
html[data-theme="dark"] .qa-method-reference-toggle.is-active{border-color:#b97818;background:#382a12;color:#fcd889}
html[data-theme="dark"] .qa-method-reference-toggle.is-active small{color:#e5bb70}
@media(max-width:760px){
  .qa-scope-ready-state{grid-template-columns:1fr}
  .qa-scope-ready-state>aside{justify-items:start}
  .qa-library-directory-toolbar{align-items:stretch;flex-direction:column}
  .qa-library-directory-toolbar>span{white-space:normal}
  .qa-library-pagination{align-items:flex-start;flex-direction:column}
  .qa-active-library-action{width:100%;margin-left:0}
  .qa-source-filter-divider{display:none}
  .qa-method-reference-toggle{width:100%}
}
.toolbox-page.stage-three-usable .toolbox-outcome-map{padding:0}
.toolbox-page.stage-three-usable .toolbox-outcome-head{min-height:46px;padding:9px 12px;border-bottom:0}
.toolbox-page.stage-three-usable .toolbox-outcome-head p{display:none!important}
.toolbox-page.stage-three-usable .toolbox-outcome-head:after{content:"展开";align-self:center;flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:900}
.toolbox-page.stage-three-usable .toolbox-outcome-map[open] .toolbox-outcome-head{border-bottom:1px solid #dbeafe}
.toolbox-page.stage-three-usable .toolbox-outcome-map[open] .toolbox-outcome-head:after{content:"收起"}
.toolbox-page.stage-three-usable .toolbox-outcome-grid{padding:12px}
.toolbox-page.stage-three-usable .toolbox-category-head h2{font-size:24px!important}
.toolbox-page.stage-three-usable .toolbox-category-head p{font-size:14px!important;line-height:1.45!important}
.toolbox-page.stage-three-usable .toolbox-category-head p b{font-size:15px!important}
.toolbox-page.stage-three-usable .toolbox-tool-preview span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.toolbox-page.stage-three-usable .toolbox-tool-boundary span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rm-page.stage-three-usable .rm-library-summary{display:none}
.rm-page.stage-three-usable .rm-workspace-tabs{border-radius:16px}
.rm-page.stage-three-usable .rm-pipeline-note{min-height:58px;padding:13px 16px;border-radius:16px;border:1px solid #c7ddff}
.rm-page.stage-three-usable .rm-detail{gap:10px!important;padding:12px!important}
.rm-page.stage-three-usable .rm-detail-head{padding:12px 14px!important;border:1px solid #d8e5f3!important;border-radius:14px!important;background:#fff!important}
.rm-page.stage-three-usable .rm-detail-head p{font-size:14px!important;line-height:1.5!important}
.rm-page.stage-three-usable .rm-run-playbook{padding:13px 14px!important;border-radius:14px!important;box-shadow:none!important}
.rm-page.stage-three-usable .rm-run-playbook .rm-section-head p{display:none!important}
.rm-page.stage-three-usable .rm-playbook-steps{gap:8px!important}
.rm-page.stage-three-usable .rm-playbook-steps article{padding:10px 11px!important;border-radius:12px!important}
.rm-page.stage-three-usable .rm-playbook-steps article p{font-size:13px!important;line-height:1.42!important}
.rm-page.stage-three-usable .rm-playbook-boundary{padding:9px 11px!important;font-size:13px!important}
.rm-page.stage-three-usable .rm-secondary-drawer{border:1px solid #d8e5f3;border-radius:14px;background:#fff;overflow:hidden}
.rm-page.stage-three-usable .rm-secondary-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;list-style:none;cursor:pointer;background:#f8fafc}
.rm-page.stage-three-usable .rm-secondary-drawer>summary::-webkit-details-marker{display:none}
.rm-page.stage-three-usable .rm-secondary-drawer>summary span{color:#2563eb;font-size:13px;font-weight:950}
.rm-page.stage-three-usable .rm-secondary-drawer>summary strong{color:#0f172a;font-size:15px!important}
.rm-page.stage-three-usable .rm-secondary-drawer[open]>summary{border-bottom:1px solid #e2e8f0}
.rm-page.stage-three-usable .rm-secondary-drawer .rm-section{border:0!important;border-top:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important}
.rm-page.stage-three-usable .rm-secondary-drawer .rm-section-head p,
.rm-page.stage-three-usable .rm-secondary-drawer .rm-factor-foot,
.rm-page.stage-three-usable .rm-secondary-drawer .rm-source-basis-foot,
.rm-page.stage-three-usable .rm-secondary-drawer .rm-effect-boundary{font-size:13px!important;line-height:1.45!important}

/* Risk model run workbench: one selected model, one primary task. */
.rm-page.stage-three-usable .rm-pipeline-note{min-height:40px;padding:8px 12px;border-color:#dbe4ee;background:#fff}
.rm-page.stage-three-usable .rm-pipeline-note strong{font-size:14px}
.rm-page.stage-three-usable .rm-pipeline-note small{font-size:12px}
.rm-page.stage-three-usable .rm-layout{grid-template-columns:200px minmax(0,1fr);gap:12px}
.rm-page.stage-three-usable .rm-sidebar{position:sticky;top:12px;border-color:#dbe4ee;border-radius:14px;background:#f8fafc;box-shadow:none}
.rm-page.stage-three-usable .rm-sidebar-head{align-items:center;padding:12px 13px;border-bottom-color:#dbe4ee}
.rm-page.stage-three-usable .rm-sidebar-head strong{font-size:14px}
.rm-page.stage-three-usable .rm-sidebar-head span{font-size:11px}
.rm-page.stage-three-usable .rm-model-list{gap:1px;padding:5px;max-height:760px}
.rm-page.stage-three-usable .rm-model-card{display:flex;align-items:center;min-height:52px;padding:9px 10px;border:0;border-left:3px solid transparent;border-radius:7px;background:transparent;box-shadow:none;transition:background .2s,border-color .2s,transform .2s}
.rm-page.stage-three-usable .rm-model-card:hover{background:#fff;box-shadow:none;transform:translateX(2px)}
.rm-page.stage-three-usable .rm-model-card.active{border-color:#2563eb;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.06)}
.rm-model-card-name{display:-webkit-box;margin:0;color:#172033;font-size:13px!important;line-height:1.42;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-wrap:pretty}
.rm-page.stage-three-usable .rm-model-card.active .rm-model-card-name{color:#1d4ed8}
.rm-page.stage-three-usable .rm-main{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.rm-page.stage-three-usable .rm-detail{gap:12px!important;padding:0!important}
.rm-model-command{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px 26px;border:1px solid #dbe4ee;border-radius:16px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.055)}
.rm-model-command-copy{min-width:0}
.rm-model-command-label{display:flex;align-items:center;gap:8px}
.rm-model-command-label span{color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.06em}
.rm-model-command-label b{padding-left:8px;border-left:1px solid #cbd5e1;color:#64748b;font-size:12px;font-weight:850}
.rm-model-command h2{margin:7px 0 0;color:#0f1f35;font-size:30px;line-height:1.16;letter-spacing:-.03em;text-wrap:balance}
.rm-model-command-copy>p{max-width:780px;margin:10px 0 0;color:#52637a;font-size:15px;line-height:1.62;text-wrap:pretty}
.rm-model-command-meta{display:flex;gap:0;flex-wrap:wrap;margin-top:13px}
.rm-model-command-meta span{display:inline-flex;align-items:center;color:#64748b;font-size:12px;font-weight:800}
.rm-model-command-meta span+span:before{content:"·";margin:0 8px;color:#cbd5e1}
.rm-model-command .rm-actions{align-items:stretch;flex-direction:column;min-width:148px}
.rm-model-command .rm-actions .btn{width:100%;min-height:40px;white-space:nowrap;transition:transform .2s,box-shadow .2s}
.rm-model-command .rm-actions .btn:hover{transform:translateY(-1px)}
.rm-model-command .rm-actions .btn:active{transform:translateY(1px)}
.rm-model-command .rm-actions .btn:focus-visible,.rm-model-card:focus-visible,.rm-upload-box:focus-within{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}
.rm-model-run-workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:12px;align-items:stretch}
.rm-model-run-primary{min-width:0}
.rm-page.stage-three-usable .rm-data-run{height:100%;padding:20px!important;border:1px solid #9fc2f5!important;border-top:4px solid #2563eb!important;border-radius:15px!important;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.045)}
.rm-data-run-kicker{display:block;margin-bottom:4px;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.05em}
.rm-page.stage-three-usable .rm-data-run .rm-section-head{align-items:flex-start;margin-bottom:14px}
.rm-page.stage-three-usable .rm-data-run .rm-section-head h4{font-size:22px!important;letter-spacing:-.015em}
.rm-page.stage-three-usable .rm-data-run .rm-section-head p{display:block!important;font-size:13px!important;line-height:1.5!important}
.rm-run-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 14px;padding:0;list-style:none;border:1px solid #dbeafe;border-radius:10px;overflow:hidden}
.rm-run-steps li{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border-left:1px solid #dbeafe;background:#f8fbff;color:#64748b;font-size:12px;font-weight:850}
.rm-run-steps li:first-child{border-left:0}
.rm-run-steps li.active{background:#eff6ff;color:#1d4ed8}
.rm-run-steps b{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#fff;color:inherit;font-size:11px}
.rm-model-brief{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid #dbe4ee;border-radius:15px;background:#f8fafc}
.rm-model-brief-head span{display:block;color:#2563eb;font-size:12px;font-weight:950;letter-spacing:.05em}
.rm-model-brief-head strong{display:block;margin-top:4px;color:#172033;font-size:18px}
.rm-model-brief dl{display:grid;gap:0;margin:14px 0 0}
.rm-model-brief dl>div{padding:13px 0;border-top:1px solid #dfe6ee}
.rm-model-brief dt{color:#334155;font-size:12px;font-weight:950}
.rm-model-brief dd{margin:5px 0 0;color:#52637a;font-size:13px;line-height:1.55}
.rm-model-brief-boundary{margin-top:auto;padding:12px;border-left:3px solid #d97706;background:#fffaf0}
.rm-model-brief-boundary strong{color:#92400e;font-size:12px}
.rm-model-brief-boundary p{margin:4px 0 0;color:#6b5a43;font-size:12px;line-height:1.5}
.rm-page.stage-three-usable .rm-required-fields{align-items:flex-start;flex-wrap:wrap;border:0;border-radius:9px;background:#f1f5f9}
.rm-page.stage-three-usable .rm-required-fields small{flex-basis:100%;margin-left:0}
.rm-page.stage-three-usable .rm-upload-line{grid-template-columns:minmax(0,1fr);gap:8px}
.rm-page.stage-three-usable .rm-upload-box{align-items:center;min-height:128px;padding:20px;border:1.5px dashed #7daaf0;border-radius:12px;background:#f7faff;text-align:center;transition:border-color .2s,background .2s,transform .2s}
.rm-page.stage-three-usable .rm-upload-box:hover{border-color:#2563eb;background:#eff6ff;transform:translateY(-1px)}
.rm-upload-box-icon{display:grid!important;place-items:center;width:34px;height:34px;border-radius:10px;background:#2563eb;color:#fff!important;font-size:22px!important;font-weight:500;line-height:1}
.rm-page.stage-three-usable .rm-upload-note{display:flex;align-items:flex-start;gap:8px;padding:8px 2px;border:0;background:transparent}
.rm-page.stage-three-usable .rm-upload-note strong{flex:0 0 auto;color:#475569;font-size:12px}
.rm-page.stage-three-usable .rm-upload-note span{color:#64748b;font-size:12px;line-height:1.5}
.rm-page.stage-three-usable .rm-data-run .rm-quality-panel{grid-template-columns:1fr}
.rm-page.stage-three-usable .rm-data-run .rm-quality-panel>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}
.rm-page.stage-three-usable .rm-data-run .rm-data-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.rm-page.stage-three-usable .rm-result>.rm-ai-collab{grid-column:1/-1;margin-top:0}
.rm-model-quick-guide{padding:0!important;border-color:#d8e5f3!important;background:#fff!important;overflow:hidden}
.rm-model-quick-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 13px;list-style:none;cursor:pointer;background:#f8fafc}
.rm-model-quick-guide>summary::-webkit-details-marker{display:none}
.rm-model-quick-guide>summary span{display:block;color:#2563eb;font-size:12px;font-weight:950}
.rm-model-quick-guide>summary strong{display:block;margin-top:2px;color:#172033;font-size:15px}
.rm-model-quick-guide>summary em{color:#64748b;font-size:13px;font-style:normal;font-weight:800}
.rm-model-quick-guide[open]>summary{border-bottom:1px solid #e2e8f0}
.rm-model-quick-guide-body{padding:12px 13px}

/* AI review: one integrated human review worklist. */
.rm-ai-review-result{padding:0 16px 16px}
.rm-ai-review-summary{display:block;margin-top:14px;padding:14px 15px;border-left:4px solid #d97706;background:#fffbeb}
.rm-ai-review-summary>div{display:flex;align-items:center;gap:8px}
.rm-ai-review-summary span{color:#92400e;font-size:13px;font-weight:950}
.rm-ai-review-summary b{padding:3px 7px;border-radius:6px;background:#fff;color:#b45309;font-size:11px}
.rm-ai-review-summary p{margin:7px 0 0!important;color:#3f3528!important;font-size:14px!important;line-height:1.65!important}
.rm-ai-review-worklist{margin-top:12px;border:1px solid #dbe4ee;border-radius:13px;background:#fff;overflow:hidden}
.rm-ai-review-worklist>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid #dbe4ee;background:#f8fafc}
.rm-ai-review-worklist>header span{display:block;color:#2563eb;font-size:12px;font-weight:950}
.rm-ai-review-worklist>header h5{margin:3px 0 0;color:#172033;font-size:15px;line-height:1.4}
.rm-ai-review-worklist>header>b{flex:0 0 auto;color:#52637a;font-size:12px}
.rm-ai-review-tasks{display:grid}
.rm-ai-review-task{padding:16px;border-bottom:1px solid #e7edf4;background:#fff}
.rm-ai-review-task:last-child{border-bottom:0}
.rm-ai-review-task-index{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rm-ai-review-task-index>span{color:#2563eb;font-size:11px;font-weight:950;letter-spacing:.06em}
.rm-ai-review-task-index>b{font-size:11px}
.rm-ai-review-task h6{margin:5px 0 0;color:#10233f;font-size:18px;line-height:1.35;letter-spacing:-.01em}
.rm-ai-review-task-clue{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;margin-top:11px;padding:9px 11px;background:#f1f5f9}
.rm-ai-review-task-clue span{color:#475569;font-size:12px;font-weight:950}
.rm-ai-review-task-clue p{margin:0!important;color:#334155!important;font-size:13px!important;line-height:1.5!important}
.rm-ai-review-task dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:11px 0 0;border:1px solid #e2e8f0}
.rm-ai-review-task dl>div{min-width:0;padding:11px 12px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
.rm-ai-review-task dl>div:nth-child(2){border-right:0}
.rm-ai-review-task dl>div:nth-child(3){grid-column:1/-1;border-right:0;border-bottom:0}
.rm-ai-review-task dt{color:#64748b;font-size:11px;font-weight:950}
.rm-ai-review-task dd{margin:5px 0 0;color:#26384f;font-size:13px;line-height:1.55}
.rm-ai-review-task dd>span{display:inline-flex;margin:0 5px 4px 0;padding:4px 7px;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800}
.rm-ai-review-task footer{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:10px;padding-top:10px;border-top:1px dashed #dbe4ee}
.rm-ai-review-task footer strong{display:block;color:#334155;font-size:12px}
.rm-ai-review-task footer p{margin:3px 0 0!important;color:#52637a!important;font-size:13px!important;line-height:1.5!important}
.rm-ai-review-task footer small{flex:0 0 auto;color:#94a3b8;font-size:11px;line-height:1.5;text-align:right}
.rm-ai-review-roadmap{display:grid;gap:12px;margin-top:13px}
.rm-ai-review-sequence{min-width:0;border:1px solid #dbe4ff;border-radius:11px;background:#fff;overflow:hidden}
.rm-ai-review-sequence>header{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;background:#f7f9ff;border-bottom:1px solid #e5e9fb}
.rm-ai-review-sequence>header>span{display:grid;flex:0 0 30px;place-items:center;width:30px;height:30px;border-radius:8px;background:#e0e7ff;color:#3730a3;font-size:12px;font-weight:950}
.rm-ai-review-sequence h5{margin:0;color:#172033;font-size:16px;line-height:1.35}
.rm-ai-review-sequence header p{margin:3px 0 0!important;color:#64748b!important;font-size:13px!important;line-height:1.45!important}
.rm-ai-review-sequence-list{display:grid;padding:0 13px}
.rm-ai-review-sequence-list article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:13px 0;border-bottom:1px solid #edf0f7}
.rm-ai-review-sequence-list article:last-child{border-bottom:0}
.rm-ai-review-sequence-list article>b{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#eff3f8;color:#52637a;font-size:12px}
.rm-ai-review-sequence-list article strong{display:block;color:#16263d;font-size:15px;line-height:1.5}
.rm-ai-review-sequence-list article p{margin:5px 0 0!important;color:#40536a!important;font-size:14px!important;line-height:1.6!important}
.rm-ai-review-sequence-list article small{display:inline-flex;margin-top:7px;padding:3px 7px;border-radius:6px;background:#f1f5f9;color:#52637a;font-size:12px;font-weight:850}
.rm-ai-review-sequence-list dl{display:grid;gap:5px;margin:8px 0 0}
.rm-ai-review-sequence-list dl>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px}
.rm-ai-review-sequence-list dt{color:#64748b;font-size:13px;font-weight:900}
.rm-ai-review-sequence-list dd{margin:0;color:#334155;font-size:14px;line-height:1.55}
.rm-ai-review-technical{margin-top:10px;color:#64748b;font-size:12px}
.rm-ai-review-technical summary{cursor:pointer;font-weight:850}
.rm-ai-review-technical .rm-ai-review-meta{display:block;margin-top:6px}
html[data-theme="dark"] .rm-model-command,html[data-theme="dark"] .rm-page.stage-three-usable .rm-data-run,html[data-theme="dark"] .rm-model-quick-guide,html[data-theme="dark"] .rm-ai-review-sequence,html[data-theme="dark"] .rm-ai-review-worklist,html[data-theme="dark"] .rm-ai-review-task{background:#13233b!important;border-color:#314e75!important;box-shadow:none!important}
html[data-theme="dark"] .rm-model-command h2,html[data-theme="dark"] .rm-model-brief-head strong,html[data-theme="dark"] .rm-model-quick-guide>summary strong,html[data-theme="dark"] .rm-ai-review-sequence h5,html[data-theme="dark"] .rm-ai-review-sequence-list article strong,html[data-theme="dark"] .rm-ai-review-task h6{color:#e5eefb}
html[data-theme="dark"] .rm-model-brief,html[data-theme="dark"] .rm-ai-review-worklist>header,html[data-theme="dark"] .rm-ai-review-task-clue{background:#172235;border-color:#314158}
html[data-theme="dark"] .rm-model-quick-guide>summary,html[data-theme="dark"] .rm-ai-review-sequence>header{background:#172235;border-color:#314158}
html[data-theme="dark"] .rm-ai-review-sequence-list dd,html[data-theme="dark"] .rm-ai-review-task dd,html[data-theme="dark"] .rm-ai-review-task-clue p{color:#b8c5d6!important}
@media(max-width:1180px){.rm-page.stage-three-usable .rm-layout{grid-template-columns:184px minmax(0,1fr)}.rm-model-run-workspace{grid-template-columns:1fr}.rm-model-brief{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px}.rm-model-brief dl{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.rm-model-brief dl>div{padding:0 12px;border-top:0;border-left:1px solid #dfe6ee}.rm-model-brief-boundary{grid-column:1/-1;margin-top:0}}
@media(max-width:820px){.rm-page.stage-three-usable .rm-layout{grid-template-columns:1fr}.rm-page.stage-three-usable .rm-sidebar{position:static}.rm-page.stage-three-usable .rm-model-list{max-height:330px}.rm-model-command{grid-template-columns:1fr;padding:19px}.rm-model-command .rm-actions{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.rm-model-command .rm-actions .btn{width:auto}.rm-model-brief{display:flex}.rm-ai-review-task dl{grid-template-columns:1fr}.rm-ai-review-task dl>div{border-right:0}.rm-ai-review-task dl>div:nth-child(3){grid-column:auto}.rm-ai-review-task footer{flex-direction:column}.rm-ai-review-task footer small{text-align:left}}
.re-page.stage-three-usable .re-stats{display:none}
.re-page.stage-three-usable .re-toolbar{display:block}
.re-page.stage-three-usable .re-source-boundary{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:none;min-height:52px;padding:11px 14px;border-radius:14px;box-shadow:none!important}
.re-page.stage-three-usable .re-source-boundary>div{display:grid;gap:2px;min-width:0}
.re-page.stage-three-usable .re-source-boundary span{color:#2563eb!important;font-size:13px!important;font-weight:950!important;letter-spacing:.04em}
.re-page.stage-three-usable .re-source-boundary strong{color:#0f172a!important;font-size:18px!important;line-height:1.25}
.re-page.stage-three-usable .re-source-boundary small{color:#52637a!important;font-size:13px!important;line-height:1.45}
.re-page.stage-three-usable .re-source-boundary dl{display:flex;gap:8px;margin:0;flex:0 0 auto}
.re-page.stage-three-usable .re-source-boundary dl div{min-width:64px;padding:7px 9px;border:1px solid #dbeafe;border-radius:11px;background:#fff;text-align:center}
.re-page.stage-three-usable .re-source-boundary dt{color:#0f172a;font-size:18px;font-weight:950;line-height:1}
.re-page.stage-three-usable .re-source-boundary dd{margin:3px 0 0;color:#64748b;font-size:12px;font-weight:800}
.re-page.stage-three-usable .re-review-flow{display:block;padding:0;border-radius:14px;box-shadow:none;background:#fff}
.re-page.stage-three-usable .re-review-flow-head{align-items:center;min-height:42px;padding:9px 12px;list-style:none;background:#f8fafc;cursor:pointer}
.re-page.stage-three-usable .re-review-flow-head::-webkit-details-marker{display:none}
.re-page.stage-three-usable .re-review-flow-head strong{font-size:16px!important}
.re-page.stage-three-usable .re-review-flow-head p{margin-left:auto;font-size:13px!important}
.re-page.stage-three-usable .re-review-flow-head b{padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px}
.re-page.stage-three-usable .re-review-flow[open] .re-review-flow-head{border-bottom:1px solid #e2e8f0}
.re-page.stage-three-usable .re-review-flow[open] .re-review-flow-head b{background:#1d4ed8;color:#fff}
.re-page.stage-three-usable .re-review-flow[open] .re-review-flow-head b::before{content:"已"}
.re-page.stage-three-usable .re-review-flow-steps{padding:10px}
.re-page.stage-three-usable .re-review-flow-steps article{min-height:0;padding:9px 10px;border-radius:10px}
.re-page.stage-three-usable .re-review-flow-steps article span{display:none}
.re-page.stage-three-usable .re-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}
.re-page.stage-three-usable .re-list,.re-page.stage-three-usable .re-detail{border-radius:14px;box-shadow:none}
.re-page.stage-three-usable .re-card{padding:9px 10px;border-radius:11px}
.re-page.stage-three-usable .re-card p{display:none}
.re-page.stage-three-usable .re-card-top strong{font-size:14px!important}
.re-page.stage-three-usable .re-card-meta{margin-top:6px;font-size:12px}
html[data-theme="dark"] .qa-citations-drawer,html[data-theme="dark"] .qa-source-cards-drawer{background:#172235;border-color:#314158}
html[data-theme="dark"] .qa-citations-drawer>summary,html[data-theme="dark"] .qa-source-cards-drawer>summary,html[data-theme="dark"] .qa-citations-drawer .qa-citations-bar,html[data-theme="dark"] .qa-source-cards-drawer .qa-source-cards{background:#13233b}

/* Stage two correction: support communication records are a ledger, not a card wall */
.mi-support-table{display:grid!important;gap:0!important;border:1px solid #e2e8f0;border-radius:13px;overflow:hidden;background:#fff}
.mi-support-row{display:grid;grid-template-columns:130px minmax(220px,1.1fr) minmax(180px,.9fr) 110px 120px;gap:10px;align-items:center;width:100%;min-height:42px;padding:9px 11px;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#334155;text-align:left;font:inherit;cursor:pointer}
.mi-support-row:last-child{border-bottom:0}
.mi-support-row:hover{background:#f8fbff}
.mi-support-row.is-head{min-height:36px;background:#f1f5f9;color:#64748b;font-size:13px;font-weight:900;cursor:default}
.mi-support-row strong{display:block;min-width:0;color:#0f172a;font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mi-support-row strong small{display:block;margin-top:2px;color:#64748b;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mi-support-row span{min-width:0;color:#475569;font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mi-support-row em{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12px;font-style:normal;font-weight:900}
.mi-support-row .mi-type-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
html[data-theme="dark"] .mi-support-table,html[data-theme="dark"] .mi-support-row{background:#172235;border-color:#314158}
html[data-theme="dark"] .mi-support-row.is-head{background:#132033}
html[data-theme="dark"] .mi-support-row strong{color:#f1f5f9}
html[data-theme="dark"] .mi-support-row span,html[data-theme="dark"] .mi-support-row strong small{color:#9fb0c7}
@media(max-width:900px){.mi-support-row{grid-template-columns:1fr 1fr}.mi-support-row.is-head{display:none}.mi-support-row strong{white-space:normal}.re-page.stage-three-usable .re-source-boundary{align-items:flex-start;flex-direction:column}.re-page.stage-three-usable .re-source-boundary dl{width:100%;flex-wrap:wrap}.re-page.stage-three-usable .re-layout{grid-template-columns:1fr}.re-page.stage-three-usable .re-review-flow-head{align-items:flex-start;flex-direction:column}.re-page.stage-three-usable .re-review-flow-head p{margin-left:0}}

/* Stage two correction: standalone IC evaluation starts from current action, not a full platform dashboard */
.ic-workbench .ic-workbench-hero{
  display:none!important;
}
.ic-workbench .ic-workbench-next{
  grid-template-columns:minmax(0,1fr) minmax(220px,.36fr)!important;
  gap:10px!important;
  margin:0 0 10px!important;
  border-width:1px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.ic-workbench .ic-workbench-next>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:14px!important;
  align-items:center!important;
  padding:11px 14px!important;
  border-left-width:3px!important;
}
.ic-workbench .ic-workbench-next em{
  grid-column:1!important;
  width:max-content!important;
  margin:0 0 3px!important;
}
.ic-workbench .ic-workbench-next strong{
  grid-column:1!important;
  font-size:18px!important;
}
.ic-workbench .ic-workbench-next p{
  grid-column:1!important;
  margin:3px 0 0!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.ic-workbench .ic-workbench-primary-action{
  grid-column:2!important;
  grid-row:1 / 4!important;
  min-width:150px!important;
  margin:0!important;
  padding:9px 12px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.ic-workbench .ic-workbench-next ul{
  padding:10px 14px 10px 28px!important;
  font-size:13px!important;
}
.ic-workbench .ic-workbench-stages{
  margin:0 0 10px!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
.ic-workbench .ic-workbench-stages span{
  min-height:34px!important;
  padding:8px 8px!important;
  font-size:12px!important;
}
.ic-workbench .ic-workbench-map-nav{
  margin:0 0 10px!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.ic-workbench .ic-workbench-map-head{
  grid-template-columns:minmax(0,1fr) minmax(260px,.45fr)!important;
  padding:10px 12px!important;
}
.ic-workbench .ic-workbench-map-head strong{
  font-size:16px!important;
}
.ic-workbench .ic-workbench-map-head small{
  display:none!important;
}
.ic-workbench .ic-workbench-map-list{
  padding:10px 12px!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
}
.ic-workbench .ic-workbench-map-card{
  min-height:54px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
}
.ic-workbench .ic-workbench-map-card strong{
  font-size:14px!important;
}
.ic-workbench .ic-workbench-map-card small{
  font-size:12px!important;
}
.ic-workbench .ic-workbench-map-more{
  width:calc(100% - 24px)!important;
  margin:0 12px 10px!important;
  min-height:34px!important;
  padding:8px 10px!important;
}
.ic-workbench .ic-workbench-kpis{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin:0!important;
  padding:8px 0 0!important;
  border-top:0!important;
  background:transparent!important;
}
.ic-workbench .ic-workbench-kpis span{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:5px!important;
  padding:6px 9px!important;
  border:1px solid #dbeafe!important;
  border-radius:999px!important;
  background:#fff!important;
  font-size:12px!important;
}
.ic-workbench .ic-workbench-kpis strong{
  margin:0!important;
  font-size:16px!important;
}
@media(max-width:900px){.ic-workbench .ic-workbench-next,.ic-workbench .ic-workbench-map-head{grid-template-columns:1fr!important}.ic-workbench .ic-workbench-next>div{grid-template-columns:1fr!important}.ic-workbench .ic-workbench-primary-action{grid-column:1!important;grid-row:auto!important;width:100%;margin-top:8px!important}.ic-workbench .ic-workbench-stages{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* ===== 90-point usability correction: pre-audit planning must feel like work, not feature cards ===== */
.pra-stage-one .pra-thin-steps{
  justify-content:flex-end!important;
  gap:6px!important;
}
.pra-stage-one .pra-thin-steps li{
  flex:0 0 auto!important;
  min-height:0!important;
  padding:6px 9px!important;
  border-radius:999px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-thin-steps b{
  width:20px!important;
  height:20px!important;
  font-size:11px!important;
}
.pra-stage-one .pra-thin-steps strong{
  font-size:13px!important;
}
.pra-result-compact-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-height:0!important;
  margin:0 0 10px!important;
}
.pra-result-compact-head h2{
  margin:3px 0!important;
  font-size:21px!important;
}
.pra-result-compact-head p{
  margin:0!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.pra-secondary-drawer{
  margin:10px 0!important;
  padding:0!important;
  border-radius:12px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.pra-secondary-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:42px!important;
  padding:9px 12px!important;
  cursor:pointer!important;
  list-style:none!important;
  background:#f8fbff!important;
}
.pra-secondary-drawer>summary::-webkit-details-marker{display:none!important}
.pra-secondary-drawer>summary span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pra-secondary-drawer>summary strong{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.pra-secondary-drawer>summary small{
  display:block!important;
  margin-top:2px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.pra-secondary-drawer .pra-worktable-anchor{
  margin:0!important;
  padding:12px!important;
  border-top:1px solid #dbeafe!important;
  background:#fff!important;
}
.wf-scheme-form-first{
  margin-bottom:10px!important;
  border:1px solid #dbeafe!important;
  background:#fff!important;
}
.wf-scheme-form-first .wf-scheme-brief-head{
  padding-bottom:10px!important;
  border-bottom:1px solid #eef2f7!important;
}
.wf-scheme-form-first .wf-scheme-core{
  grid-template-columns:1.1fr 1.1fr 1.1fr .8fr!important;
}
.wf-scheme-form-first .wf-scheme-support{
  margin-top:8px!important;
  display:block!important;
}
.wf-scheme-form-first .wf-scheme-support p{
  margin:0!important;
  padding:9px 10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#f8fafc!important;
}
.wf-program-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
.wf-program-empty{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-height:54px!important;
  padding:12px 14px!important;
}
.wf-program-empty span{
  flex:1!important;
}
.wf-scheme-check-drawer{
  margin-top:10px!important;
  border:1px solid #dbeafe!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.wf-scheme-check-drawer>summary{
  display:flex!important;
  align-items:center!important;
  min-height:46px!important;
  padding:10px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fbff!important;
}
.wf-scheme-check-drawer>summary::-webkit-details-marker{display:none!important}
.wf-scheme-check-drawer>summary span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-check-drawer>summary strong{
  display:block!important;
  color:#0f172a!important;
  font-size:16px!important;
}
.wf-scheme-check-drawer>summary small{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
}
.wf-command-compact{
  margin:10px 12px!important;
  background:#fff!important;
}
.wf-command-compact .wf-command-head{
  padding:12px!important;
  border-bottom:1px solid #eef2f7!important;
}
.wf-command-compact .wf-command-grid{
  padding:10px 12px 12px!important;
}
@media(max-width:1100px){.wf-scheme-form-first .wf-scheme-core,.wf-scheme-form-first .wf-scheme-support{grid-template-columns:1fr!important}.wf-program-empty{align-items:flex-start!important;flex-direction:column!important}.wf-program-empty .btn{width:100%!important}.pra-stage-one .pra-thin-steps{justify-content:flex-start!important}}

/* ===== 90-point usability correction: material ledger should appear immediately ===== */
.pmat-simple-page .pmat-compact-header{
  min-height:0!important;
  margin:0 0 6px!important;
  padding:8px 12px!important;
  border-radius:12px!important;
  background:#fff!important;
}
.pmat-simple-page .pmat-compact-header span{
  font-size:12px!important;
}
.pmat-simple-page .pmat-compact-header h2{
  font-size:18px!important;
}
.pmat-simple-page .pmat-header-actions .btn{
  min-height:34px!important;
  padding:0 12px!important;
  font-size:14px!important;
}
.pmat-simple-page .pmat-quick-strip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  min-height:0!important;
  margin:0 0 8px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
}
.pmat-simple-page .pmat-quick-strip span{
  font-size:12px!important;
}
.pmat-simple-page .pmat-quick-strip strong{
  margin-top:2px!important;
  font-size:16px!important;
}
.pmat-simple-page .pmat-quick-strip dl{
  gap:6px!important;
}
.pmat-simple-page .pmat-quick-strip dl div{
  min-width:58px!important;
  padding:5px 8px!important;
  border-radius:10px!important;
}
.pmat-simple-page .pmat-quick-strip dt{
  font-size:16px!important;
}
.pmat-simple-page .pmat-quick-strip dd{
  font-size:12px!important;
}
.pmat-simple-page .pmat-secondary-actions{
  margin:0 0 8px!important;
}
.pmat-simple-page .pmat-secondary-actions>summary{
  min-height:34px!important;
  padding:6px 10px!important;
  color:#475569!important;
  font-size:13px!important;
}
.pmat-simple-page .pmat-ledger .pmat-list-head{
  padding:10px 12px 8px!important;
}
.pmat-simple-page .pmat-list-head strong{
  font-size:16px!important;
}
.pmat-simple-page .pmat-list-head span{
  display:none!important;
}
.pmat-simple-page .pmat-ledger-filters{
  padding:8px 12px!important;
}
.pmat-simple-page .pmat-table th,
.pmat-simple-page .pmat-table td{
  padding:8px 10px!important;
}
.pmat-simple-page .pmat-insight-panel>summary,
.pmat-simple-page .pmat-reference>summary{
  padding:10px 12px!important;
}
@media(max-width:900px){.pmat-simple-page .pmat-quick-strip{grid-template-columns:1fr!important}.pmat-simple-page .pmat-quick-strip dl{width:100%!important;flex-wrap:wrap!important}.pmat-simple-page .pmat-quick-strip dl div{flex:1!important}}

/* ===== 90-point usability correction: execution page is a worksheet, not a progress dashboard ===== */
.at-stage-one .at-simple-focus{
  min-height:0!important;
  margin:0 0 8px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
}
.at-stage-one .at-simple-focus span{
  font-size:12px!important;
}
.at-stage-one .at-simple-focus strong{
  font-size:16px!important;
}
.at-stage-one .at-simple-focus dl div{
  min-width:56px!important;
  padding:5px 8px!important;
  border-radius:10px!important;
}
.at-stage-one .at-simple-focus dt{
  font-size:16px!important;
}
.at-stage-one .at-page-guide{
  margin:0 0 8px!important;
}
.at-stage-one .at-page-guide>summary{
  min-height:34px!important;
  padding:6px 10px!important;
  color:#475569!important;
  font-size:13px!important;
}
.at-stage-one .at-layout{
  grid-template-columns:minmax(260px,310px) minmax(0,1fr)!important;
  min-height:0!important;
  border-radius:14px!important;
}
.at-stage-one .at-sidebar{
  max-height:calc(100vh - 180px)!important;
  overflow:auto!important;
}
.at-stage-one .at-next-program{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid #bfdbfe!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#eff6ff,#fff)!important;
}
.at-stage-one .at-next-program span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.at-stage-one .at-next-program strong{
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.35!important;
}
.at-stage-one .at-next-program small{
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.4!important;
}
.at-stage-one .at-next-program .btn{
  width:100%!important;
  justify-content:center!important;
}
.at-stage-one .at-next-program.is-in-progress{
  border-color:#93c5fd!important;
  box-shadow:inset 3px 0 0 #2563eb!important;
}
.at-stage-one .at-next-program.is-empty{
  border-color:#e2e8f0!important;
  background:#fff!important;
}
.at-stage-one .at-scheme-programs{
  margin:0!important;
  padding:10px!important;
  border-bottom:1px solid #e2e8f0!important;
}
.at-stage-one .at-side-head{
  padding:0 2px 8px!important;
}
.at-stage-one .at-scheme-group{
  margin-top:8px!important;
}
.at-stage-one .at-scheme-group>span{
  display:block!important;
  margin:0 0 5px!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
.at-stage-one .at-scheme-task{
  min-height:0!important;
  padding:8px 9px!important;
  border-radius:10px!important;
}
.at-stage-one .at-scheme-task strong{
  font-size:14px!important;
}
.at-stage-one .at-scheme-task small{
  font-size:12px!important;
}
.at-stage-one .at-scheme-task b{
  font-size:12px!important;
}
.at-execution-worksheet{
  padding:14px 16px 18px!important;
}
.at-execution-worksheet .at-workspace-title{
  align-items:center!important;
  margin:0 0 10px!important;
  padding:0 0 10px!important;
}
.at-execution-worksheet .at-workspace-title h2{
  font-size:19px!important;
}
.at-execution-worksheet .at-source-task,
.at-execution-worksheet .at-source-case{
  margin:4px 0 0!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.at-execution-worksheet .at-title-actions{
  flex-wrap:wrap!important;
}
.at-execution-worksheet .at-title-actions .btn{
  min-height:32px!important;
  padding:0 9px!important;
  font-size:13px!important;
}
.at-execution-worksheet .at-plan-passport{
  margin:0 0 8px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.at-execution-worksheet .at-passport-head{
  margin-bottom:8px!important;
}
.at-execution-worksheet .at-passport-head h3{
  font-size:16px!important;
}
.at-execution-worksheet .at-passport-head p{
  display:none!important;
}
.at-execution-worksheet .at-passport-grid{
  gap:6px!important;
}
.at-execution-worksheet .at-passport-grid div{
  padding:7px 8px!important;
  border-radius:10px!important;
}
.at-execution-worksheet .at-passport-grid strong{
  font-size:13px!important;
}
.at-execution-worksheet .at-advanced-drawer{
  margin:8px 0!important;
  border-radius:12px!important;
}
.at-execution-worksheet .at-advanced-drawer>summary{
  min-height:34px!important;
  padding:6px 10px!important;
  font-size:13px!important;
}
.at-execution-worksheet .at-section,
.at-execution-worksheet .at-evidence-section{
  margin:8px 0!important;
  padding:12px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
}
.at-execution-worksheet .at-section-head{
  margin-bottom:9px!important;
}
.at-execution-worksheet .at-section-head h3{
  font-size:16px!important;
}
.at-execution-worksheet .at-section-head small{
  display:none!important;
}
.at-execution-worksheet .at-form-grid{
  gap:9px 10px!important;
}
.at-execution-worksheet .at-exec-record-sheet{
  border-color:#bfdbfe!important;
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
}
.at-execution-worksheet .at-record-grid{
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(180px,.72fr)!important;
}
.at-execution-worksheet .at-record-grid .at-field.wide{
  grid-column:span 2!important;
}
.at-execution-worksheet .at-record-grid .at-source-task-field{
  grid-column:auto!important;
}
.at-execution-worksheet .at-record-materials{
  margin-top:10px!important;
  padding:10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
}
.at-execution-worksheet .at-record-materials>div:first-child{
  margin-bottom:8px!important;
}
.at-execution-worksheet .at-field>span{
  margin-bottom:4px!important;
  font-size:13px!important;
}
.at-execution-worksheet .at-field input,
.at-execution-worksheet .at-field select,
.at-execution-worksheet .at-field textarea{
  border-radius:9px!important;
  font-size:14px!important;
}
.at-execution-worksheet .at-field textarea{
  min-height:70px!important;
}
.at-execution-worksheet .at-evidence-grid{
  gap:12px!important;
}
.at-execution-worksheet .at-result-disposition{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  margin:8px 0!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.at-execution-worksheet .at-result-disposition>div:first-child strong{
  font-size:16px!important;
}
.at-execution-worksheet .at-result-disposition>div:first-child p{
  margin-top:3px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.at-execution-worksheet .at-result-disposition-meta{
  display:none!important;
}
.at-execution-worksheet .at-result-actions{
  grid-column:2!important;
  margin:0!important;
  padding:0!important;
  align-self:center!important;
}
.at-execution-worksheet .at-result-actions .btn{
  min-height:32px!important;
  padding:0 10px!important;
  font-size:13px!important;
}
.at-execution-worksheet .at-exec-todo-strip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  margin:8px 0!important;
  padding:10px 12px!important;
  border:1px solid #bfdbfe!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#f8fbff,#ffffff)!important;
  box-shadow:none!important;
}
.at-execution-worksheet .at-exec-todo-strip span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.at-execution-worksheet .at-exec-todo-strip strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:16px!important;
}
.at-execution-worksheet .at-exec-todo-strip p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.at-execution-worksheet .at-exec-todo-items{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  max-width:620px!important;
}
.at-execution-worksheet .at-exec-todo-item{
  display:grid!important;
  gap:2px!important;
  min-width:88px!important;
  min-height:42px!important;
  padding:6px 9px!important;
  border:1px solid #dbeafe!important;
  border-radius:11px!important;
  background:#fff!important;
  text-align:left!important;
  cursor:pointer!important;
  font-family:inherit!important;
}
.at-execution-worksheet .at-exec-todo-item:hover{
  border-color:#93c5fd!important;
  box-shadow:0 8px 18px rgba(37,99,235,.08)!important;
}
.at-execution-worksheet .at-exec-todo-item span{
  color:#f97316!important;
  font-size:11px!important;
}
.at-execution-worksheet .at-exec-todo-item strong{
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-execution-worksheet .at-exec-todo-item.is-ready span{
  color:#0f766e!important;
}
.at-execution-worksheet .at-exec-todo-items em{
  color:#64748b!important;
  font-size:12px!important;
  font-style:normal!important;
  font-weight:800!important;
}
.at-execution-worksheet .at-closeout{
  margin-top:8px!important;
  padding:10px 12px!important;
  border:1px solid #dbeafe!important;
  border-radius:12px!important;
  background:#f8fbff!important;
}
.at-execution-worksheet .at-closeout p{
  display:block!important;
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.at-execution-worksheet .at-single-closeout{
  position:sticky!important;
  bottom:10px!important;
  z-index:8!important;
  box-shadow:0 12px 28px rgba(15,23,42,.10)!important;
}
.at-execution-worksheet .at-single-closeout>div:first-child{
  min-width:0!important;
}
.at-execution-worksheet .at-single-closeout .at-closeout-actions{
  flex:0 0 auto!important;
}
@media(max-width:1100px){.at-stage-one .at-layout{grid-template-columns:1fr!important}.at-stage-one .at-sidebar{max-height:none!important}.at-execution-worksheet .at-result-disposition,.at-execution-worksheet .at-exec-todo-strip{grid-template-columns:1fr!important}.at-execution-worksheet .at-record-grid{grid-template-columns:1fr!important}.at-execution-worksheet .at-record-grid .at-field.wide{grid-column:auto!important}.at-execution-worksheet .at-result-actions{grid-column:auto!important}.at-execution-worksheet .at-result-actions .btn{width:100%!important}.at-execution-worksheet .at-exec-todo-items{justify-content:flex-start!important;max-width:none!important}}

/* ===== 90-point usability correction: project IC testing is part of execution ===== */
.ic-project-execution-mode{
  display:grid!important;
  gap:10px!important;
}
.ic-project-execution-mode .ic-project-testing-head{
  margin:0!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.ic-project-execution-mode .ic-project-testing-head h3{
  font-size:18px!important;
}
.ic-project-execution-mode .ic-project-testing-head p{
  margin-top:3px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.ic-project-execution-mode .ic-project-testing-metrics{
  gap:6px!important;
}
.ic-project-execution-mode .ic-project-testing-metrics span{
  min-width:62px!important;
  padding:6px 8px!important;
  border-radius:10px!important;
}
.ic-project-execution-mode .ic-project-testing-metrics strong{
  font-size:16px!important;
}
.ic-project-execution-mode .ic-mode-compact{
  display:block!important;
  align-items:center!important;
  padding:8px 10px!important;
  border-left-width:3px!important;
  border-radius:10px!important;
}
.ic-project-execution-mode .ic-project-boundary-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.ic-project-execution-mode .ic-project-boundary-drawer>summary::-webkit-details-marker{
  display:none!important;
}
.ic-project-execution-mode .ic-project-boundary-drawer p{
  margin:8px 0 0!important;
  padding-top:8px!important;
  border-top:1px solid #bfdbfe!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.ic-project-execution-mode .ic-mode-compact strong{
  font-size:13px!important;
}
.ic-project-execution-mode .ic-mode-compact span{
  font-size:13px!important;
}
.ic-project-execution-mode .ic-project-action-board{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.ic-project-execution-mode .ic-project-next-action .ic-pab-copy{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
.ic-project-execution-mode .ic-project-next-action .ic-pab-copy>span{
  flex:0 0 auto!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#2563eb!important;
  font-size:12px!important;
  letter-spacing:0!important;
}
.ic-project-execution-mode .ic-pab-copy h3{
  margin:0!important;
  font-size:18px!important;
}
.ic-project-execution-mode .ic-pab-copy p{
  display:none!important;
}
.ic-project-execution-mode .ic-pab-primary{
  flex:0 0 auto!important;
  margin-top:0!important;
  padding:9px 12px!important;
  border-radius:10px!important;
  box-shadow:none!important;
  font-size:14px!important;
}
.ic-project-execution-mode .ic-pab-steps{
  display:none!important;
}
.ic-project-execution-mode .ic-pab-foot{
  display:flex!important;
  flex:0 0 auto!important;
  align-content:center!important;
  justify-content:flex-end!important;
  max-width:none!important;
}
.ic-project-execution-mode .ic-pab-foot span{
  padding:5px 8px!important;
  font-size:12px!important;
}
.ic-project-execution-mode .ic-project-scope-summary{
  padding:10px 12px!important;
  border-radius:12px!important;
}
.ic-project-execution-mode .ic-project-scope-summary p{
  display:none!important;
}
.ic-project-execution-mode .ic-project-control-list{
  border-radius:12px!important;
  box-shadow:none!important;
}
.ic-project-execution-mode .ic-project-control-list .ic-assurance-head{
  padding:10px 12px!important;
}
.ic-project-execution-mode .ic-project-control-list .ic-assurance-head h3{
  font-size:17px!important;
}
.ic-project-execution-mode .ic-project-control-list .ic-assurance-head p{
  display:none!important;
}
.ic-project-execution-mode .ic-project-execution-table th,
.ic-project-execution-mode .ic-project-execution-table td{
  padding:8px 10px!important;
}
.ic-project-assist-drawer{
  margin:0!important;
  border:1px solid #dbeafe!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.ic-project-assist-drawer>summary{
  display:flex!important;
  align-items:center!important;
  min-height:38px!important;
  padding:8px 12px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fbff!important;
}
.ic-project-assist-drawer>summary::-webkit-details-marker{display:none!important}
.ic-project-assist-drawer>summary span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.ic-project-assist-drawer>summary strong{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.ic-project-assist-drawer>summary small{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
}
.ic-project-assist-drawer .ic-project-method-guide,
.ic-project-assist-drawer .ic-project-map-boundary,
.ic-project-assist-drawer .ic-embedded-map-assist{
  margin:10px 12px!important;
}
@media(max-width:1100px){.ic-project-execution-mode .ic-project-action-board{align-items:flex-start!important;flex-direction:column!important}.ic-project-execution-mode .ic-pab-foot{grid-column:auto!important;max-width:none!important;justify-content:flex-start!important}.ic-project-execution-mode .ic-project-testing-head{align-items:flex-start!important;flex-direction:column!important}}

/* ===== Stage-one correction: plain workflow, less card noise ===== */
.pra-plain-guide{padding:14px 16px!important;box-shadow:none!important}
.pra-plain-guide h3{font-size:20px!important}
.pra-plain-guide p{margin-top:4px!important;font-size:14px!important}
.pra-plain-guide .stage-one-steps li{padding:8px 10px!important}
.pra-task-strip{display:grid!important;grid-template-columns:minmax(320px,.82fr) minmax(420px,1.18fr)!important;align-items:center!important;min-height:0!important;margin:0 0 10px!important;padding:11px 14px!important;border-radius:14px!important}
.pra-task-strip h3{margin:2px 0!important;font-size:18px!important;line-height:1.25!important}
.pra-task-strip p{display:none!important;margin:0!important;font-size:13px!important;line-height:1.42!important}
.pra-task-strip .stage-one-steps{justify-content:flex-end!important}
.pra-task-strip .stage-one-steps li{padding:7px 10px!important}
.pra-task-strip .stage-one-steps b{width:22px!important;height:22px!important;font-size:12px!important}
.pra-task-strip .stage-one-steps strong{font-size:13px!important}
.pra-task-strip.pra-plain-guide{background:#fff!important;border-color:#d8e5f3!important}
.pra-stage-one .pra-active-module{border-bottom:1px solid #e2e8f0!important}
.pra-stage-one .pra-active-module span{font-size:13px!important}
.pra-stage-one .pra-active-module h3{font-size:22px!important}
.pra-stage-one .pra-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.pra-stage-one .pra-field.pra-full{grid-column:span 1!important}
.pra-stage-one .pra-simple-drawer>summary small{display:none!important}
.pra-one-click-action{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:14px 16px!important;border-radius:14px!important;box-shadow:none!important}
.pra-one-click-action strong{font-size:19px!important}
.pra-primary-buttons{display:flex;align-items:center;gap:8px;flex:0 0 auto;flex-wrap:wrap}
.pra-scheme-bridge.is-draft-bridge{border-color:#bfdbfe;background:linear-gradient(135deg,#eff6ff,#fff)}
.pra-scheme-bridge.is-draft-bridge .pra-sb-head{padding:14px 16px}
.pra-scheme-bridge.is-draft-bridge .pra-sb-head h3{font-size:20px!important}
.pra-scheme-bridge.is-draft-bridge .pra-sb-head p{font-size:14px!important;line-height:1.5}
.pra-scheme-bridge.is-draft-bridge .pra-sb-metrics article{padding:10px 14px}
.pra-scheme-bridge.is-draft-bridge .pra-sb-metrics b{font-size:20px}
.pra-scheme-bridge.is-draft-bridge .pra-sb-actions{padding:12px 14px}
.pra-result-hero{padding:14px 16px!important;border-radius:14px!important;box-shadow:none!important}
.pra-simple-outcome{display:none!important}
.pra-review-desk{margin-top:12px!important;padding:14px 16px!important;border-radius:14px!important;box-shadow:none!important}
.pra-review-desk .prd-metrics{display:none}
.pra-review-queue{gap:8px!important;margin-top:10px!important}
.pra-review-row{padding:10px 12px!important;border-radius:12px!important}
.pra-review-row strong{font-size:15px!important}
.pra-review-row p{font-size:13px!important}
.pra-result-minimal-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 10px!important;padding:10px 12px!important;border:1px solid #e2e8f0!important;background:#fff!important}
.pra-result-minimal-head h2{font-size:18px!important;margin:2px 0!important}
.pra-result-minimal-head p{font-size:13px!important;line-height:1.4!important}
.pra-risk-worktable{margin:0 0 10px!important;padding:0!important;background:#fff!important;border:1px solid #d8e5f3!important}
.pra-risk-worktable .prd-head{align-items:center!important;padding:13px 15px!important;background:#fbfdff!important}
.pra-risk-worktable .prd-head h3{font-size:20px!important;margin:3px 0!important}
.pra-risk-worktable .prd-head p{font-size:14px!important;line-height:1.45!important}
.pra-review-table-head{display:grid;grid-template-columns:minmax(260px,1.35fr) minmax(220px,.9fr) minmax(190px,.72fr) auto;gap:10px;padding:9px 14px;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7;background:#f8fafc;color:#64748b;font-size:12px;font-weight:950}
.pra-risk-worktable .pra-review-queue{gap:0!important;margin:0!important;padding:0!important}
.pra-risk-worktable .pra-review-row{display:grid!important;grid-template-columns:minmax(260px,1.35fr) minmax(220px,.9fr) minmax(190px,.72fr) auto!important;gap:10px!important;align-items:center!important;margin:0!important;padding:11px 14px!important;border:0!important;border-bottom:1px solid #eef2f7!important;border-radius:0!important;box-shadow:none!important}
.pra-risk-worktable .pra-review-row:last-child{border-bottom:0!important}
.pra-risk-worktable .pra-review-row.is-ready{background:#f7fef9!important}
.pra-risk-worktable .pra-review-row.is-ready>div:first-child span{color:#047857!important}
.pra-risk-worktable .pra-review-row.is-excluded{background:#f8fafc!important}
.pra-risk-worktable .pra-review-row.is-excluded>div:first-child span{color:#64748b!important}
.pra-risk-worktable .pra-review-row.is-pending{background:#fff!important}
.pra-risk-worktable .pra-review-row.is-pending>div:first-child span{color:#b45309!important}
.pra-risk-worktable .pra-review-row span{font-size:12px!important}
.pra-risk-worktable .pra-review-row strong{font-size:15px!important;line-height:1.35!important}
.pra-risk-worktable .pra-review-row small{display:block;color:#64748b;font-size:12px;font-weight:900}
.pra-risk-worktable .pra-review-row p{margin:3px 0 0!important;color:#475569;font-size:13px!important;line-height:1.42!important}
.pra-risk-worktable .pra-review-more{padding:10px 14px;margin:0!important;background:#f8fafc;border-top:1px solid #eef2f7}
.pra-next-strip{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important;border-radius:14px!important;box-shadow:none!important;background:linear-gradient(135deg,#eff6ff,#fff)!important}
.pra-next-strip .pra-sb-head{padding:12px 14px!important;border-bottom:0!important}
.pra-next-strip .pra-sb-head h3{font-size:18px!important;margin:3px 0!important}
.pra-next-strip .pra-sb-head p{font-size:13px!important;line-height:1.42!important}
.pra-next-strip .pra-sb-actions{display:flex!important;align-items:center!important;gap:8px!important;padding:12px 14px!important;border-left:1px solid #dbeafe!important}
.pra-next-strip .pra-sb-actions span{max-width:280px;color:#52637a;font-size:12px!important;line-height:1.4!important}
.pra-next-strip .pra-sb-metrics{display:none!important}
.pra-risk-worksheet{margin:0 0 10px!important;padding:0!important;border:1px solid #bfdbfe!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.pra-rw-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 16px!important;border-bottom:1px solid #dbeafe!important;background:linear-gradient(135deg,#eff6ff,#fff)!important}
.pra-rw-head span{display:block!important;color:#2563eb!important;font-size:12px!important;font-weight:950!important;letter-spacing:.06em!important}
.pra-rw-head h3{margin:3px 0!important;color:#0f172a!important;font-size:20px!important;line-height:1.25!important}
.pra-rw-head p{margin:0!important;color:#52637a!important;font-size:13px!important;line-height:1.45!important}
.pra-rw-head b{flex:0 0 auto!important;padding:7px 10px!important;border:1px solid #bfdbfe!important;border-radius:999px!important;background:#fff!important;color:#1d4ed8!important;font-size:13px!important}
.pra-rw-layout{display:grid!important;grid-template-columns:minmax(280px,.8fr) minmax(0,1.35fr)!important;min-height:360px!important}
.pra-rw-list{padding:12px!important;border-right:1px solid #e2e8f0!important;background:#f8fafc!important}
.pra-rw-list-title{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:8px!important;color:#0f172a!important}
.pra-rw-list-title strong{font-size:15px!important}
.pra-rw-list-title small{color:#64748b!important;font-size:12px!important}
.pra-rw-item{display:block!important;width:100%!important;margin:0 0 8px!important;padding:10px 11px!important;border:1px solid #dbe7f4!important;border-radius:12px!important;background:#fff!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
.pra-rw-item:hover{border-color:#93c5fd!important;background:#f8fbff!important}
.pra-rw-item.active{border-color:#2563eb!important;background:#eff6ff!important;box-shadow:inset 3px 0 0 #2563eb!important}
.pra-rw-item span{display:inline-flex!important;margin-bottom:5px!important;padding:3px 7px!important;border-radius:999px!important;background:#eef2ff!important;color:#1d4ed8!important;font-size:11px!important;font-weight:950!important}
.pra-rw-item.is-ready span{background:#dcfce7!important;color:#047857!important}
.pra-rw-item.is-pending span{background:#fef3c7!important;color:#b45309!important}
.pra-rw-item.is-excluded span{background:#e2e8f0!important;color:#475569!important}
.pra-rw-item strong{display:block!important;color:#0f172a!important;font-size:14px!important;line-height:1.35!important}
.pra-rw-item small{display:block!important;margin-top:4px!important;color:#64748b!important;font-size:12px!important}
.pra-rw-detail{padding:14px 16px!important;background:#fff!important}
.pra-rw-detail-head{padding-bottom:12px!important;border-bottom:1px solid #eef2f7!important}
.pra-rw-detail-head span{display:inline-flex!important;margin-bottom:6px!important;padding:4px 8px!important;border-radius:999px!important;background:#eef2ff!important;color:#1d4ed8!important;font-size:12px!important;font-weight:950!important}
.pra-rw-detail-head h3{margin:0 0 6px!important;color:#0f172a!important;font-size:22px!important;line-height:1.28!important}
.pra-rw-detail-head p{margin:0!important;color:#475569!important;font-size:14px!important;line-height:1.55!important}
.pra-rw-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
.pra-rw-fields article{min-height:92px!important;padding:10px 11px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fbfdff!important}
.pra-rw-fields small{display:block!important;color:#64748b!important;font-size:12px!important;font-weight:900!important}
.pra-rw-fields strong{display:block!important;margin-top:4px!important;color:#0f172a!important;font-size:15px!important;line-height:1.35!important}
.pra-rw-fields p{margin:5px 0 0!important;color:#64748b!important;font-size:12px!important;line-height:1.4!important}
.pra-rw-current-strip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:8px!important;
  margin:12px 0!important;
  padding:10px 12px!important;
  border:1px solid #bfdbfe!important;
  border-radius:12px!important;
  background:#f8fbff!important;
}
.pra-rw-current-strip span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pra-rw-current-strip strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.35!important;
}
.pra-rw-decision-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.pra-rw-decision-grid article{
  min-height:78px!important;
}
.pra-rw-support-drawer{
  margin:10px 0 0!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.pra-rw-support-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:40px!important;
  padding:9px 11px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fafc!important;
}
.pra-rw-support-drawer>summary::-webkit-details-marker{display:none!important}
.pra-rw-support-drawer>summary span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pra-rw-support-drawer>summary strong{
  color:#0f172a!important;
  font-size:14px!important;
}
.pra-rw-support-drawer>summary b{
  color:#2563eb!important;
  font-size:12px!important;
}
.pra-rw-support-drawer .pra-rw-split{
  padding:10px!important;
}
.pra-rw-support-actions{
  padding:0 10px 10px!important;
}
.pra-rw-split{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.pra-rw-split section{padding:11px 12px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important}
.pra-rw-split h4{margin:0 0 8px!important;color:#0f172a!important;font-size:15px!important}
.pra-rw-split ul,.pra-rw-split ol{margin:0!important;padding-left:18px!important;color:#475569!important;font-size:13px!important;line-height:1.55!important}
.pra-rw-split p{margin:0!important;color:#64748b!important;font-size:13px!important;line-height:1.5!important}
.pra-rw-next{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin-top:12px!important;padding:11px 12px!important;border:1px solid #bfdbfe!important;border-radius:12px!important;background:#eff6ff!important}
.pra-rw-next div{min-width:0!important;margin-right:auto!important}
.pra-rw-next span{display:block!important;color:#2563eb!important;font-size:12px!important;font-weight:950!important}
.pra-rw-next strong{display:block!important;margin-top:2px!important;color:#0f172a!important;font-size:14px!important;line-height:1.35!important}
.pra-review-drawer{margin:10px 0!important;padding:0!important;border:1px solid #d8e5f3!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.pra-review-drawer>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:46px!important;padding:10px 13px!important;list-style:none!important;cursor:pointer!important;background:#f8fafc!important}
.pra-review-drawer>summary::-webkit-details-marker{display:none!important}
.pra-review-drawer>summary span{display:block!important;color:#2563eb!important;font-size:12px!important;font-weight:950!important;letter-spacing:.04em!important}
.pra-review-drawer>summary strong{display:block!important;margin-top:2px!important;color:#0f172a!important;font-size:15px!important;line-height:1.3!important}
.pra-review-drawer>summary small{display:block!important;margin-top:2px!important;color:#64748b!important;font-size:12px!important;line-height:1.35!important}
.pra-review-drawer>summary b{flex:0 0 auto!important;padding:5px 9px!important;border-radius:999px!important;background:#eff6ff!important;color:#1d4ed8!important;font-size:12px!important}
.pra-review-drawer[open]>summary{border-bottom:1px solid #e2e8f0!important}
.pra-review-drawer .prd-head{padding:12px 14px!important}
.pra-review-drawer .pra-risk-register-summary{margin:0 12px 12px!important}
.pra-review-drawer .pra-review-table-head,.pra-review-drawer .pra-review-queue{margin-left:12px!important;margin-right:12px!important}
.pmat-simple-page .pmat-compact-header{padding:12px 16px!important;border-radius:14px!important;box-shadow:none!important}
.pmat-simple-page .pmat-compact-header p{display:none}
.pmat-simple-page .pmat-compact-header h2{margin:2px 0 0!important;font-size:20px!important}
.pmat-simple-page .pmat-quick-strip{margin:10px 0 12px!important;padding:12px 14px!important;border-radius:14px!important;box-shadow:none!important}
.pmat-simple-page .pmat-quick-strip strong{font-size:18px!important}
.pmat-simple-page .pmat-quick-strip p{font-size:13px!important;line-height:1.45}
.pmat-simple-page .pmat-quick-strip dl div{min-width:68px;padding:7px 9px}
.pmat-simple-page .pmat-quick-strip dt{font-size:18px}
.pmat-simple-page .pmat-work-guide{margin:0 0 10px!important;border-radius:12px!important}
.pmat-simple-page .pmat-work-guide>summary{min-height:42px!important;padding:9px 12px!important;font-size:14px!important}
.pmat-simple-page .pmat-steps-drawer{display:none}
.pmat-simple-page .pmat-workspace{grid-template-columns:minmax(0,1fr) minmax(280px,340px)!important;gap:12px!important}
.pmat-simple-page .pmat-side-stack .pmat-secondary-actions{order:3!important}
.pmat-simple-page .pmat-side-stack .pmat-secondary-actions>summary{min-height:42px!important;padding:9px 11px!important}
.pmat-simple-page .pmat-secondary-action-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important}
.pmat-simple-page .pmat-secondary-action-row .btn{width:100%!important;justify-content:center!important}
.wf-risk-start-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:14px 16px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#fff)}
.wf-risk-start-card span{color:#2563eb;font-size:13px;font-weight:950}
.wf-risk-start-card h3{margin:3px 0 5px;color:#0f172a;font-size:20px!important}
.wf-risk-start-card p{margin:0;max-width:860px;color:#475569;font-size:14px!important;line-height:1.5}
.wf-risk-start-card .btn{flex:0 0 auto}
.wf-risk-start-card.is-compact-choice{align-items:flex-start}
.wf-risk-start-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}
.wf-scheme-entry-gate{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:16px 0;padding:20px 22px;border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 10px 28px rgba(37,99,235,.08)}
.wf-scheme-entry-gate>div:first-child{min-width:0}
.wf-scheme-entry-gate span{color:#2563eb;font-size:13px;font-weight:950}
.wf-scheme-entry-gate h3{margin:5px 0 6px;color:#0f172a;font-size:20px!important}
.wf-scheme-entry-gate p{margin:0;max-width:820px;color:#475569;font-size:14px!important;line-height:1.65}
.wf-scheme-entry-gate.is-ready{border-color:#a7f3d0;background:linear-gradient(135deg,#ecfdf5,#fff)}
.wf-scheme-entry-gate.is-ready span{color:#047857}
.wf-scheme-entry-gate.is-blocked{border-color:#fed7aa;background:linear-gradient(135deg,#fff7ed,#fff)}
.wf-scheme-entry-gate.is-blocked span{color:#c2410c}
html[data-theme="dark"] .wf-scheme-entry-gate{border-color:#334155;background:#111827;box-shadow:none}
html[data-theme="dark"] .wf-scheme-entry-gate h3{color:#f8fafc}
html[data-theme="dark"] .wf-scheme-entry-gate p{color:#cbd5e1}
.wf-stage-one .wf-start-workbench{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:16px 18px!important}
.wf-stage-one .wf-start-workbench h3{font-size:22px!important}
.wf-stage-one .wf-start-workbench p{display:none!important;max-width:820px!important;font-size:14px!important;line-height:1.5!important}
.wf-stage-one .wf-legacy-guard[hidden]{display:none!important}
.wf-stage-one .wf-compact-empty{margin-top:10px!important;padding:11px 14px!important;border-style:dashed!important;background:#fff!important}
.wf-stage-one .wf-compact-empty strong{font-size:15px!important}
.wf-stage-one .wf-compact-empty span{font-size:13px!important}
@media(max-width:900px){.pra-one-click-action,.wf-risk-start-card,.wf-scheme-entry-gate,.pmat-simple-page .pmat-quick-strip{align-items:flex-start;flex-direction:column}.pra-primary-buttons,.wf-risk-start-card .btn,.wf-scheme-entry-gate .btn,.wf-risk-start-actions{width:100%}.wf-risk-start-actions{justify-content:stretch}.wf-risk-start-actions .btn{flex:1}.pra-primary-buttons .btn{flex:1}.pmat-simple-page .pmat-workspace{grid-template-columns:1fr!important}}
@media(max-width:900px){.pra-rw-layout{grid-template-columns:1fr!important}.pra-rw-list{border-right:0!important;border-bottom:1px solid #e2e8f0!important}.pra-rw-fields,.pra-rw-split{grid-template-columns:1fr!important}.pra-rw-next{align-items:stretch!important;flex-direction:column!important}.pra-rw-next div{margin-right:0!important}.pra-rw-next .btn{width:100%!important;justify-content:center!important}}
@media(max-width:900px){.pmat-simple-page .pmat-ledger-mode{grid-template-columns:1fr!important;align-items:flex-start!important}.pmat-simple-page .pmat-ledger-mode .btn{width:100%!important;justify-content:center!important}}

/* ===== Stage-one scheme and execution compaction ===== */
.wf-command-center{padding:14px 16px!important;border-radius:16px!important;box-shadow:none!important}
.wf-command-head{align-items:center!important;margin-bottom:10px!important}
.wf-command-head h3{font-size:20px!important}
.wf-command-head p{margin-top:4px!important;font-size:14px!important;line-height:1.45!important}
.wf-command-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
.wf-command-card{min-height:0!important;padding:10px 11px!important;border-radius:12px!important;box-shadow:none!important}
.wf-command-card span{font-size:12px!important}
.wf-command-card strong{margin-top:4px!important;font-size:15px!important;line-height:1.3!important}
.wf-command-card p{display:none!important}
.wf-command-card button{margin-top:8px!important;min-height:30px!important;padding:5px 8px!important;font-size:13px!important}
.wf-scheme-brief{padding:14px 16px!important;border-radius:16px!important;box-shadow:none!important}
.wf-scheme-brief-head h3{font-size:20px!important}
.wf-scheme-brief-head p{display:none!important}
.wf-scheme-core{gap:8px!important}
.wf-scheme-core>div,.wf-scheme-field{padding:10px 11px!important;border-radius:12px!important}
.wf-scheme-core strong{font-size:14px!important;line-height:1.35!important}
.wf-program-ledger{padding:14px 16px!important;border-radius:16px!important;box-shadow:none!important}
.wf-program-ledger-head{align-items:center!important;margin-bottom:10px!important}
.wf-program-ledger-head h3{font-size:20px!important}
.wf-program-ledger-head p{font-size:14px!important;line-height:1.45!important}
.wf-container:not(.wf-stage-one) .wf-simple-focus{margin:0 0 10px!important;padding:12px 14px!important;border-radius:14px!important;box-shadow:none!important}
.wf-container:not(.wf-stage-one) .wf-simple-focus strong{font-size:18px!important}
.wf-container:not(.wf-stage-one) .wf-simple-focus p{display:none!important;font-size:13px!important;line-height:1.45!important}
.wf-container:not(.wf-stage-one) .wf-scheme-form-first{margin:0 0 10px!important;padding:0!important;border-radius:14px!important;box-shadow:none!important}
.wf-detail-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important;padding:10px 12px!important;border:1px solid #d8e5f3!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.wf-detail-toolbar .wf-back-btn{white-space:nowrap!important}
.wf-detail-toolbar-main{min-width:0!important}
.wf-detail-toolbar-main span{display:block!important;color:#2563eb!important;font-size:12px!important;font-weight:950!important}
.wf-detail-toolbar-main strong{display:block!important;overflow:hidden!important;margin-top:2px!important;color:#0f172a!important;font-size:18px!important;line-height:1.3!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.wf-detail-toolbar-main small{display:block!important;overflow:hidden!important;margin-top:2px!important;color:#64748b!important;font-size:12px!important;line-height:1.4!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.wf-detail-toolbar-meta{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-end!important}
.wf-detail-toolbar-meta b{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px!important;height:30px!important;padding:0 9px!important;border-radius:999px!important;background:#eff6ff!important;color:#1d4ed8!important;font-size:13px!important}
.wf-container:not(.wf-stage-one) .wf-scheme-form-first .wf-scheme-brief-head{padding:12px 14px!important;align-items:center!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(210px,.56fr)!important;gap:8px!important;padding:10px 12px!important;border-top:1px solid #e2e8f0!important;background:#f8fbff!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit label{display:block!important;min-width:0!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit label span{display:block!important;margin-bottom:4px!important;color:#2563eb!important;font-size:12px!important;font-weight:950!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit textarea,
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit input{width:100%!important;min-height:38px!important;padding:8px 9px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;font-size:13px!important;line-height:1.45!important;resize:vertical!important;box-sizing:border-box!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit textarea:focus,
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit input:focus{outline:2px solid rgba(37,99,235,.18)!important;border-color:#2563eb!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-dates{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;align-content:start!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-dates .btn{grid-column:1 / -1!important;width:100%!important;justify-content:center!important}
.wf-container:not(.wf-stage-one) .wf-scheme-quick-edit>small{grid-column:1 / -1!important;color:#64748b!important;font-size:12px!important;line-height:1.4!important}
.wf-container:not(.wf-stage-one) .wf-scheme-form-first .wf-scheme-core{padding:10px 12px!important;gap:8px!important}
.wf-container:not(.wf-stage-one) .wf-scheme-form-first .wf-scheme-core>div,
.wf-container:not(.wf-stage-one) .wf-scheme-form-first .wf-scheme-field{padding:10px 11px!important;border-radius:10px!important}
.wf-container:not(.wf-stage-one) .wf-program-ledger{margin:0 0 10px!important;padding:0!important;border-radius:14px!important;box-shadow:none!important}
.wf-container:not(.wf-stage-one) .wf-program-ledger-head{padding:12px 14px!important;margin:0!important;align-items:center!important;border-bottom:1px solid #e2e8f0!important}
.wf-container:not(.wf-stage-one) .wf-program-ledger-head h3{font-size:18px!important;margin:2px 0!important}
.wf-container:not(.wf-stage-one) .wf-program-ledger-head p{font-size:13px!important;line-height:1.42!important}
.wf-container:not(.wf-stage-one) .wf-program-table{padding:0!important}
.wf-container:not(.wf-stage-one) .wf-program-row{min-height:0!important;padding:10px 12px!important;grid-template-columns:minmax(210px,1.15fr) minmax(250px,1.25fr) minmax(190px,.95fr) minmax(130px,.62fr) 80px 64px!important}
.wf-container:not(.wf-stage-one) .wf-program-row strong{font-size:14px!important}
.wf-container:not(.wf-stage-one) .wf-program-row small{font-size:12px!important}
.at-stage-one .at-simple-focus{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;margin-bottom:10px!important;padding:12px 14px!important;border-radius:14px!important;box-shadow:none!important}
.at-stage-one .at-simple-focus strong{font-size:18px!important}
.at-stage-one .at-simple-focus p{display:none!important}
.at-stage-one .at-simple-focus dl{display:none!important}
.at-stage-one .at-simple-focus dl div{min-width:64px!important;padding:7px 9px!important}
.at-stage-one .at-simple-focus dt{font-size:18px!important}
.at-stage-one .at-simple-focus .btn{white-space:nowrap!important}
.at-scheme-gate{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 10px;padding:11px 14px;border:1px solid #fed7aa;border-left:4px solid #f59e0b;border-radius:12px;background:#fffbeb}
.at-scheme-gate span{display:block;color:#b45309;font-size:12px;font-weight:900}
.at-scheme-gate strong{display:block;margin-top:2px;color:#7c2d12;font-size:16px}
.at-scheme-gate p{margin:3px 0 0;color:#92400e;font-size:13px;line-height:1.45}
.project-flow-nav .pfn-actions .pfn-gated:disabled{border-color:#fdba74!important;background:#fff7ed!important;color:#9a3412!important;opacity:1!important;cursor:not-allowed!important;box-shadow:none!important}
html[data-theme="dark"] .at-scheme-gate{border-color:#9a3412;background:#362718}
html[data-theme="dark"] .at-scheme-gate strong{color:#ffedd5}
html[data-theme="dark"] .at-scheme-gate p{color:#fed7aa}
@media(max-width:720px){.at-scheme-gate{align-items:flex-start;flex-direction:column}.at-scheme-gate .btn{width:100%}}
.at-stage-one .at-page-guide{margin-bottom:10px!important}
.at-stage-one .at-page-guide-after{margin:10px 0 0!important}
.at-stage-one .at-page-guide>summary{min-height:42px!important;padding:9px 12px!important}

/* ===== 审计推理画布 1.0 系统接入 ===== */
body[data-active-view="reasoningcanvas"],
body[data-active-view="reasoningcanvasv2"] {
  overflow: hidden;
}

html:has(body[data-active-view="reasoningcanvas"]),
html:has(body[data-active-view="reasoningcanvasv2"]) {
  overflow: hidden;
}

body[data-active-view="reasoningcanvas"] .app-layout,
body[data-active-view="reasoningcanvasv2"] .app-layout {
  height: 100vh;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

body[data-active-view="reasoningcanvas"] .project-toolbar .project-context,
body[data-active-view="reasoningcanvas"] .project-toolbar .project-actions,
body[data-active-view="reasoningcanvasv2"] .project-toolbar .project-context,
body[data-active-view="reasoningcanvasv2"] .project-toolbar .project-actions {
  display: none;
}

body[data-active-view="reasoningcanvas"] .project-toolbar .project-bar-inner,
body[data-active-view="reasoningcanvasv2"] .project-toolbar .project-bar-inner {
  grid-template-columns: minmax(220px, 1fr) auto;
}

body[data-active-view="reasoningcanvas"] .main-content,
body[data-active-view="reasoningcanvasv2"] .main-content {
  height: auto;
  min-height: 0;
  align-self: stretch;
  max-width: none;
  overflow: hidden;
  padding: 0;
}

#view-reasoningcanvas,
#view-reasoningcanvasv2,
.reasoning-canvas-host {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.reasoning-canvas-host {
  position: relative;
  overflow: hidden;
  background: #f4f8fb;
  border-top: 1px solid #dbe5ef;
}

.reasoning-canvas-legacy-host iframe {
  pointer-events: none;
  user-select: none;
  filter: saturate(.72) opacity(.88);
}

.reasoning-canvas-legacy-notice {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(720px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid #bfd0e2;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(37, 58, 84, .12);
  color: #536579;
  font-size: 13px;
  transform: translateX(-50%);
}

.reasoning-canvas-legacy-notice strong {
  flex: 0 0 auto;
  color: #173864;
}

.reasoning-canvas-v2-host {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.reasoning-canvas-ai-bar {
  z-index: 1;
  display: grid;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #dbe5ef;
  background: #fff;
}

.reasoning-canvas-ai-bar[hidden] {
  display: none;
}

.reasoning-canvas-ai-bar>div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.reasoning-canvas-ai-bar>div:first-child span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reasoning-canvas-ai-bar>div:first-child strong {
  color: #1e293b;
  font-size: 13px;
}

.reasoning-canvas-ai-bar>div:first-child small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reasoning-canvas-ai-output {
  grid-column: 1 / -1;
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  border: 1px solid #d8ccfa;
  border-radius: 12px;
  background: #fbf9ff;
}

.reasoning-canvas-ai-output>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.reasoning-canvas-ai-output>header span,
.reasoning-canvas-ai-output>section>strong {
  display: block;
  color: #6d46c7;
  font-size: 11px;
  font-weight: 900;
}

.reasoning-canvas-ai-output>header strong {
  display: block;
  margin-top: 3px;
  color: #34265c;
  font-size: 13px;
}

.reasoning-canvas-ai-output>header button {
  border: 0;
  background: transparent;
  color: #6d46c7;
  cursor: pointer;
}

.reasoning-canvas-ai-output>section {
  margin-top: 10px;
}

.reasoning-canvas-ai-output>section>div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.reasoning-canvas-ai-output article {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #e5ddf8;
  border-radius: 9px;
  background: #fff;
}

.reasoning-canvas-ai-output article b { color: #34265c; font-size: 12px; }
.reasoning-canvas-ai-output article small { color: #766b92; font-size: 10px; line-height: 1.5; }
.reasoning-canvas-ai-output article mark { justify-self: start; padding: 2px 6px; border-radius: 999px; background: #eee8ff; color: #5c3ca5; font-size: 9px; }
.reasoning-canvas-ai-output>footer { display: grid; gap: 3px; margin-top: 10px; color: #766b92; font-size: 10px; }

.reasoning-canvas-ai-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8ccfa;
  border-radius: 10px;
  background: #fff;
}

.reasoning-canvas-ai-review label,
.reasoning-canvas-ai-review label strong,
.reasoning-canvas-ai-review label textarea { display: block; width: 100%; }
.reasoning-canvas-ai-review label strong { margin-bottom: 6px; color: #34265c; font-size: 12px; }
.reasoning-canvas-ai-review label textarea { min-height: 64px; resize: vertical; padding: 8px 10px; border: 1px solid #d8ccfa; border-radius: 8px; font: inherit; }
.reasoning-canvas-ai-review p { grid-column: 1 / -1; margin: 0; color: #766b92; font-size: 10px; }
.reasoning-canvas-ai-review nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.reasoning-canvas-ai-review.is-decided { align-items: center; }
.reasoning-canvas-ai-review.is-decided>div { display: grid; gap: 3px; }
.reasoning-canvas-ai-review.is-decided span { color: #6d46c7; font-size: 10px; font-weight: 800; }
.reasoning-canvas-ai-review.is-decided small { color: #766b92; }
.reasoning-canvas-ai-review.is-decided em { color: #166534; font-size: 11px; font-style: normal; font-weight: 700; }
.reasoning-canvas-ai-boundary { margin: 10px 0 0; color: #766b92; font-size: 10px; }

html[data-theme="dark"] .reasoning-canvas-ai-bar { background: #172235; border-color: #314158; }
html[data-theme="dark"] .reasoning-canvas-ai-bar>div:first-child strong { color: #e2e8f0; }
html[data-theme="dark"] .reasoning-canvas-ai-output { background: #1b1628; border-color: #493b68; }
html[data-theme="dark"] .reasoning-canvas-ai-output article { background: #211a31; border-color: #493b68; }
html[data-theme="dark"] .reasoning-canvas-ai-review { background: #211a31; border-color: #493b68; }
html[data-theme="dark"] .reasoning-canvas-ai-output>header strong,
html[data-theme="dark"] .reasoning-canvas-ai-output article b { color: #eee8ff; }

@media (max-width: 760px) {
  .reasoning-canvas-ai-bar { grid-template-columns: 1fr; }
  .reasoning-canvas-ai-bar>div:first-child { align-items: flex-start; flex-direction: column; }
  .reasoning-canvas-ai-bar>div:first-child small { white-space: normal; }
  .reasoning-canvas-ai-review { grid-template-columns: 1fr; }
  .reasoning-canvas-ai-review nav { justify-content: flex-start; }
}

#reasoning-canvas-frame,
#reasoning-canvas-v2-frame {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: #f4f8fb;
  border: 0;
  transition: opacity .18s ease;
}

/*
 * The professional canvas host reserves row 1 for the optional AI bar and
 * row 2 for the embedded workbench. When the AI bar is hidden, auto-placement
 * otherwise puts the iframe in the intrinsic-height `auto` row (150px in
 * browsers), leaving the flexible row empty and making the canvas look blank.
 */
.reasoning-canvas-v2-host > #reasoning-canvas-v2-frame {
  min-height: 0;
  grid-row: 2;
}

#reasoning-canvas-frame.is-ready,
#reasoning-canvas-v2-frame.is-ready {
  opacity: 1;
}

.reasoning-canvas-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #64748b;
  background: #f4f8fb;
}

.reasoning-canvas-loading[hidden] {
  display: none;
}

.reasoning-canvas-loading-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #2563eb;
  background: #eaf2ff;
  border: 1px solid #cbdcf5;
  border-radius: 12px;
}

.reasoning-canvas-loading strong {
  color: #24364d;
  font-size: 15px;
}

.reasoning-canvas-loading small {
  color: #8190a3;
  font-size: 12px;
}

@media (max-width: 1040px) {
  body[data-active-view="reasoningcanvas"] {
    overflow: auto;
  }

  body[data-active-view="reasoningcanvas"] .main-content {
    min-width: 940px;
    overflow: auto;
  }
}

/* 审计团队：工作台轻量人员库，以及年度计划的年月和负责人选择。 */
.dash-team-entry{color:#0f766e!important;background:#f0fdfa!important;border-color:#bfe8df!important}
.dash-team-entry:hover{border-color:#5eead4!important;background:#ecfdf5!important}
.ap-item-table .ap-edit-month{width:142px;min-height:36px;padding:6px 8px;border-radius:7px;font-size:13px}
.ap-item-table .ap-edit-lead{width:150px;min-height:36px;padding:6px 8px;border-radius:7px;font-size:13px}
.ap-form-item>small{display:block;margin-top:5px;color:#718096;font-size:12px;line-height:1.45}

.atm-overlay{position:fixed;inset:0;z-index:9200;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.5);backdrop-filter:blur(4px)}
.atm-modal{display:flex;flex-direction:column;width:min(1040px,96vw);max-height:90vh;overflow:hidden;border:1px solid #dce6f1;border-radius:16px;background:#f8fafc;box-shadow:0 28px 80px rgba(15,23,42,.28)}
.atm-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e2e8f0;background:#fff}
.atm-header span{color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.08em}
.atm-header h2{margin:4px 0 0;color:#0f172a;font-size:25px;line-height:1.25}
.atm-header p{margin:6px 0 0;color:#64748b;font-size:14px;line-height:1.55}
.atm-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#64748b;cursor:pointer}
.atm-close:hover{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.atm-close i{width:18px;height:18px}
.atm-body{min-height:0;overflow:auto;padding:18px 20px 22px}
.atm-summary{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:12px 14px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff}
.atm-summary span{display:inline-flex;align-items:baseline;gap:4px;color:#31567d;font-size:13px;font-weight:750}
.atm-summary strong{color:#1d4ed8;font-size:21px}
.atm-summary small{margin-left:auto;color:#64748b;font-size:12px}
.atm-add{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(110px,.6fr) minmax(145px,.8fr) minmax(160px,1fr) auto auto;align-items:end;gap:10px;margin-bottom:14px;padding:14px;border:1px solid #dfe7f1;border-radius:12px;background:#fff}
.atm-add>div span{color:#172033;font-size:15px;font-weight:850}
.atm-add>div p{margin:4px 0 0;color:#718096;font-size:12px;line-height:1.45}
.atm-add input,.atm-add select,.atm-row input,.atm-row select{width:100%;min-height:38px;padding:7px 9px;border:1px solid #d7e1ec;border-radius:7px;background:#fff;color:#172033;font:600 13px inherit;box-sizing:border-box}
.atm-add input:focus,.atm-add select:focus,.atm-row input:focus,.atm-row select:focus{outline:0;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.atm-new-lead,.atm-lead-check{display:flex;align-items:center;gap:7px;min-height:38px;color:#475569;font-size:12px;font-weight:750}
.atm-new-lead input,.atm-lead-check input{width:17px;height:17px;min-height:0;accent-color:#2563eb}
.atm-table{overflow:auto;border:1px solid #dfe7f1;border-radius:12px;background:#fff}
.atm-row{display:grid;grid-template-columns:minmax(210px,1fr) minmax(180px,1fr) 110px 100px 142px;align-items:center;gap:10px;min-width:830px;padding:10px 12px;border-top:1px solid #edf2f7}
.atm-row:first-child{border-top:0}
.atm-row>div:first-child{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(120px,1fr);gap:8px}
.atm-head{min-height:40px;padding-top:7px;padding-bottom:7px;background:#f4f7fb;color:#64748b;font-size:12px;font-weight:850}
.atm-head span{padding:0 2px}
.atm-actions{display:flex;gap:6px;justify-content:flex-end}
.atm-empty{padding:34px;text-align:center;color:#64748b}
html[data-theme="dark"] .atm-modal,html[data-theme="dark"] .atm-body{background:#101827}
html[data-theme="dark"] .atm-header,html[data-theme="dark"] .atm-add,html[data-theme="dark"] .atm-table,html[data-theme="dark"] .atm-row{background:#172235;border-color:#314158}
html[data-theme="dark"] .atm-header h2,html[data-theme="dark"] .atm-add>div span,html[data-theme="dark"] .atm-row input,html[data-theme="dark"] .atm-row select,html[data-theme="dark"] .atm-add input,html[data-theme="dark"] .atm-add select{color:#e5edf8}
html[data-theme="dark"] .atm-row input,html[data-theme="dark"] .atm-row select,html[data-theme="dark"] .atm-add input,html[data-theme="dark"] .atm-add select{background:#1b2940;border-color:#3a4a61}
@media(max-width:900px){.atm-add{grid-template-columns:1fr 1fr}.atm-add>div{grid-column:1/-1}.atm-add .btn{width:100%}.atm-summary{align-items:flex-start;flex-wrap:wrap}.atm-summary small{width:100%;margin-left:0}}
@media(max-width:560px){.atm-overlay{padding:10px}.atm-modal{width:100%;max-height:94vh}.atm-header{padding:18px}.atm-body{padding:12px}.atm-add{grid-template-columns:1fr}.atm-add>div{grid-column:auto}.atm-row{min-width:780px}}
.at-stage-one .at-execution-workbench{border-top:1px solid #dce4ef!important}
.at-stage-one .at-exec-command{margin-bottom:12px!important;border-radius:14px!important;box-shadow:none!important}
.at-stage-one .at-exec-command-head{align-items:center!important;padding:12px 14px!important;background:#f8fbff!important}
.at-stage-one .at-exec-command-head h3{font-size:18px!important}
.at-stage-one .at-exec-strip-pills{gap:7px!important}

/* Phase 1 usability correction: keep navigation thin and put work content first */
body .project-flow-nav.pfn-compact{
  margin:0 0 8px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
body .project-flow-nav.pfn-compact .pfn-head{
  min-height:42px!important;
  padding:6px 10px!important;
  border-bottom:0!important;
}
body .project-flow-nav.pfn-compact .pfn-head span{
  font-size:12px!important;
  letter-spacing:.02em!important;
}
body .project-flow-nav.pfn-compact .pfn-head h3{
  margin:1px 0 0!important;
  font-size:16px!important;
}
body .project-flow-nav.pfn-compact .pfn-head small{
  margin-top:1px!important;
  font-size:12px!important;
}
body .project-flow-nav.pfn-compact .pfn-actions .btn{
  min-height:32px!important;
  padding:0 10px!important;
  font-size:14px!important;
}
body .project-flow-nav.pfn-compact .pfn-map{
  border-top:1px solid #eef2f7!important;
}
body .project-flow-nav.pfn-compact .pfn-map>summary{
  min-height:30px!important;
  padding:4px 10px!important;
}
body .project-flow-nav.pfn-compact .pfn-map>summary span{
  font-size:13px!important;
}

#view-home > .page-heading,
#view-materials > .page-heading,
#view-taskarrange > .page-heading{
  margin-bottom:8px!important;
  padding-bottom:8px!important;
}
#view-home > .page-heading h2,
#view-materials > .page-heading h2,
#view-taskarrange > .page-heading h2{
  font-size:24px!important;
}
#view-home > .page-heading p,
#view-materials > .page-heading p,
#view-taskarrange > .page-heading p{
  display:none!important;
}
#view-home .project-flow-nav.pfn-compact,
#view-materials .project-flow-nav.pfn-compact,
#view-taskarrange .project-flow-nav.pfn-compact{
  margin-bottom:8px!important;
}
#view-home .project-flow-nav.pfn-compact .pfn-head,
#view-materials .project-flow-nav.pfn-compact .pfn-head,
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head{
  min-height:38px!important;
}
#view-home .project-flow-nav.pfn-compact .pfn-head span,
#view-materials .project-flow-nav.pfn-compact .pfn-head span,
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head span{
  display:none!important;
}
#view-home .project-flow-nav.pfn-compact .pfn-head h3,
#view-materials .project-flow-nav.pfn-compact .pfn-head h3,
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head h3{
  font-size:15px!important;
  font-weight:850!important;
}
#view-home .project-flow-nav.pfn-compact .pfn-head small,
#view-materials .project-flow-nav.pfn-compact .pfn-head small,
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head small{
  display:none!important;
}
#view-home .form-card{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#view-home .form-card::before,
#view-home .form-card h2,
#view-home .form-card .form-desc{
  display:none!important;
}

/* Phase 1 usability correction: simplify pre-audit planning pages */
.pra-stage-one .pra-simple-steps{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:10px!important;
  padding:10px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-simple-steps h3{
  font-size:19px!important;
}
.pra-stage-one .pra-simple-steps p{
  display:none!important;
}
.pra-stage-one .pra-simple-steps::after{
  content:"下一步：生成风险清单";
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:13px;
  font-weight:900;
}
.pra-stage-one .pra-simple-steps ol{
  display:none!important;
}
.pra-stage-one .pra-simple-steps li{
  min-height:0!important;
  padding:8px 9px!important;
  border-radius:10px!important;
}
.pra-stage-one .pra-simple-steps b{
  width:22px!important;
  height:22px!important;
  font-size:12px!important;
}
.pra-stage-one .pra-module-panel,
.pra-stage-one .pra-module-workarea{
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-planning-layout{
  grid-template-columns:minmax(260px,320px) minmax(0,1fr)!important;
  gap:12px!important;
}
.pra-stage-one .pra-active-module{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border-radius:12px!important;
}
.pra-stage-one .pra-active-module h3{
  font-size:19px!important;
}
.pra-stage-one .pra-active-module p{
  display:none!important;
}
.pra-stage-one .pra-form-grid{
  gap:10px!important;
  padding:10px!important;
}
.pra-stage-one .pra-module-workarea textarea{
  min-height:82px!important;
}
.pra-stage-one .pra-simple-drawer{
  margin-top:8px!important;
}
.pra-stage-one .pra-baseline-edit-drawer{
  background:#fff!important;
}
.pra-stage-one .pra-simple-drawer>summary{
  min-height:42px!important;
  padding:9px 12px!important;
}
.pra-stage-one .pra-primary-action{
  position:static!important;
  margin-top:8px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-primary-action strong{
  font-size:17px!important;
}
.pra-stage-one .pra-primary-action span{
  font-size:14px!important;
}

.pmat-simple-page .pmat-header{
  margin-bottom:8px!important;
  padding-bottom:8px!important;
}
.pmat-simple-page .pmat-header h2{
  font-size:22px!important;
}
.pmat-simple-page .pmat-header p{
  margin-top:2px!important;
  font-size:14px!important;
}
.pmat-simple-page .pmat-quick-strip{
  margin:8px 0 10px!important;
  padding:11px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-quick-strip strong{
  font-size:18px!important;
}
.pmat-simple-page .pmat-quick-strip p{
  display:none!important;
}
.pmat-simple-page .pmat-work-guide>summary{
  min-height:38px!important;
  padding:8px 12px!important;
}
.pmat-simple-page .pmat-workspace{
  grid-template-columns:minmax(0,1fr) minmax(280px,340px)!important;
}
.pmat-simple-page .pmat-side-stack{
  gap:10px!important;
}
.pmat-simple-page .pmat-insight-panel>summary,
.pmat-simple-page .pmat-reference-collapsed>details>summary{
  padding:12px!important;
}
.pmat-simple-page .pmat-insight-panel,
.pmat-simple-page .pmat-reference-collapsed>details{
  box-shadow:none!important;
  border-radius:12px!important;
}
.pmat-simple-page .pmat-insight-panel>summary,
.pmat-simple-page .pmat-reference-collapsed>details>summary{
  min-height:42px!important;
  padding:9px 11px!important;
}
.pmat-simple-page .pmat-insight-panel>summary strong,
.pmat-simple-page .pmat-reference-collapsed>details>summary strong{
  margin:2px 0 0!important;
  font-size:15px!important;
}
.pmat-simple-page .pmat-insight-panel>summary b,
.pmat-simple-page .pmat-reference-collapsed>details>summary b{
  padding:4px 8px!important;
  font-size:12px!important;
}
.pmat-simple-page .pmat-insight-panel>summary small,
.pmat-simple-page .pmat-reference-collapsed>details>summary small{
  display:none!important;
}
.pmat-simple-page .pmat-risk-bridge{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#f8fbff!important;
}
.pmat-simple-page .pmat-risk-bridge p{
  display:none!important;
}
.pmat-simple-page .pmat-risk-bridge strong{
  font-size:15px!important;
}

.wf-stage-one .wf-header{
  margin-bottom:8px!important;
}
.wf-stage-one .wf-page-desc{
  font-size:14px!important;
  line-height:1.45!important;
}
.wf-stage-one .wf-current-scheme{
  margin:8px 0!important;
  padding:13px 16px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-stage-one .wf-current-scheme h3{
  font-size:20px!important;
}
.wf-stage-one .wf-current-scheme p{
  display:none!important;
  margin-top:3px!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.wf-stage-one .wf-scheme-readiness{
  margin-bottom:10px!important;
  padding:11px 13px!important;
  border-radius:14px!important;
}
.wf-stage-one .wf-risk-start-card{
  padding:11px 13px!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.wf-stage-one .wf-risk-start-card h3{
  font-size:18px!important;
}
.wf-stage-one .wf-risk-start-card p{
  font-size:14px!important;
}
.wf-stage-one .wf-plan-empty-guide{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 14px!important;
  text-align:left!important;
  box-shadow:none!important;
}
.wf-stage-one .wf-plan-empty-guide strong,
.wf-stage-one .wf-plan-empty-guide span{
  display:block!important;
}
.wf-stage-one .wf-plan-empty-guide strong{
  color:#0f172a!important;
  font-size:17px!important;
}
.wf-stage-one .wf-plan-empty-guide span{
  margin-top:3px!important;
  color:#475569!important;
  font-size:14px!important;
}
@media(max-width:1180px){.wf-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.at-stage-one .at-simple-focus{grid-template-columns:1fr!important}.at-stage-one .at-simple-focus dl{flex-wrap:wrap}}
@media(max-width:700px){.wf-command-grid{grid-template-columns:1fr!important}}
.at-empty-compact{justify-content:flex-start!important;max-width:none!important;padding:22px!important}
.at-empty-compact h2{font-size:20px!important}
.at-empty-compact p{max-width:820px!important;margin-bottom:14px!important;font-size:14px!important;line-height:1.55!important}
.at-empty-compact .at-empty-mark{display:none!important}
.at-empty-programs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:4px}
.at-empty-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:0 0 12px}
.at-empty-steps span{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;color:#334155;font-size:13px!important;font-weight:850;line-height:1.35}
.at-empty-steps b{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:999px;background:#2563eb;color:#fff;font-size:12px}
.at-empty-program{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;width:100%;padding:12px 14px;border:1px solid #dbeafe;border-left:4px solid #2563eb;border-radius:14px;background:#fff;text-align:left;cursor:pointer}
.at-empty-program:hover{border-color:#93c5fd;box-shadow:0 10px 24px rgba(37,99,235,.08);transform:translateY(-1px)}
.at-empty-program strong{color:#0f172a;font-size:15px!important;line-height:1.35}
.at-empty-program small{grid-column:1/2;color:#64748b;font-size:13px!important;line-height:1.45}
.at-empty-program span{grid-column:2/3;grid-row:1/3;color:#2563eb;font-size:14px!important;font-weight:900;white-space:nowrap}
.at-empty-program:disabled{border-color:#e2e8f0;background:#f8fafc;box-shadow:none;color:#64748b;cursor:not-allowed;transform:none}
.at-empty-program:disabled span{color:#64748b}
@media(max-width:760px){.at-empty-steps,.at-empty-programs{grid-template-columns:1fr}.at-empty-program{grid-template-columns:1fr}.at-empty-program span{grid-column:auto;grid-row:auto}}

/* ===== 1.0 closeout compaction: execution, findings and report are work queues, not display boards ===== */
.at-stage-one .at-exec-command{
  margin-bottom:10px!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.at-stage-one .at-exec-strip-pills{gap:7px!important}
.at-stage-one .at-result-disposition{
  margin:10px 0!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.at-stage-one .at-result-disposition>div:first-child strong{
  font-size:18px!important;
}
.at-stage-one .at-result-disposition>div:first-child p{
  font-size:13px!important;
  line-height:1.45!important;
}
.finding-action-board{
  margin:10px 0!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.finding-action-board .fab-head{
  align-items:center!important;
  margin-bottom:8px!important;
}
.finding-action-board .fab-head p{
  display:none!important;
}
.finding-action-board .fab-next-action{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px 14px!important;
  width:100%!important;
  margin:0 0 8px!important;
  padding:10px 12px!important;
  border:1px solid #bfdbfe!important;
  border-left:4px solid #2563eb!important;
  border-radius:12px!important;
  background:#f8fbff!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.finding-action-board .fab-next-action span{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
  font-weight:900!important;
}
.finding-action-board .fab-next-action strong{
  color:#2563eb!important;
  font-size:14px!important;
  white-space:nowrap!important;
}
.finding-action-board .fab-next-action small{
  grid-column:1/-1!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.4!important;
}
.finding-action-board .fab-detail{
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.finding-action-board .fab-detail>summary{
  min-height:38px!important;
  padding:9px 11px!important;
  list-style:none!important;
  cursor:pointer!important;
  color:#475569!important;
  font-size:13px!important;
  font-weight:900!important;
  background:#f8fafc!important;
}
.finding-action-board .fab-detail>summary::-webkit-details-marker{
  display:none!important;
}
.finding-action-board .fab-detail[open]>summary{
  border-bottom:1px solid #e2e8f0!important;
}
.finding-action-board .fab-grid{
  gap:7px!important;
  padding:8px!important;
}
.finding-action-board .fab-card{
  min-height:0!important;
  padding:9px 10px!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
.finding-action-board .fab-card small{
  display:none!important;
}
.finding-closeout-queue{
  padding:11px 13px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.finding-closeout-queue .fcq-head{
  align-items:center!important;
  margin-bottom:8px!important;
}
.finding-closeout-queue .fcq-head strong{
  font-size:18px!important;
}
.finding-closeout-queue .fcq-head p{
  display:none!important;
}
.finding-closeout-queue .fcq-item{
  min-height:0!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
.finding-queue-strip .fcq-list{
  flex:1 1 auto!important;
}
.finding-queue-strip .fcq-item small{
  display:none!important;
}
.finding-closeout-desk{
  margin:0 0 10px!important;
  padding:0!important;
  border:1px solid #bfdbfe!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.finding-closeout-desk .fcd-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:12px 14px!important;
  border-bottom:1px solid #dbeafe!important;
  background:linear-gradient(135deg,#eff6ff,#fff)!important;
}
.finding-closeout-desk .fcd-head span,
.finding-closeout-desk .fcd-current span,
.finding-closeout-desk .fcd-next span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}
.finding-closeout-desk .fcd-head strong{
  display:block!important;
  margin-top:3px!important;
  color:#0f172a!important;
  font-size:18px!important;
  line-height:1.3!important;
}
.finding-closeout-desk .fcd-head p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.finding-closeout-desk .fcd-head b{
  flex:0 0 auto!important;
  padding:6px 10px!important;
  border:1px solid #bfdbfe!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#1d4ed8!important;
  font-size:13px!important;
}
.finding-closeout-desk .fcd-layout{
  display:grid!important;
  grid-template-columns:minmax(280px,.82fr) minmax(0,1.35fr)!important;
  min-height:300px!important;
}
.finding-closeout-desk .fcd-list{
  display:grid!important;
  align-content:start!important;
  gap:8px!important;
  max-height:380px!important;
  overflow:auto!important;
  padding:12px!important;
  border-right:1px solid #e2e8f0!important;
  background:#f8fafc!important;
}
.finding-closeout-desk .fcd-row{
  display:grid!important;
  gap:5px!important;
  width:100%!important;
  padding:10px 11px!important;
  border:1px solid #e2e8f0!important;
  border-left:4px solid #f97316!important;
  border-radius:12px!important;
  background:#fff!important;
  text-align:left!important;
  cursor:pointer!important;
}
.finding-closeout-desk .fcd-row:hover{
  border-color:#93c5fd!important;
  box-shadow:0 8px 18px rgba(37,99,235,.08)!important;
}
.finding-closeout-desk .fcd-row.active{
  border-color:#2563eb!important;
  background:#eff6ff!important;
}
.finding-closeout-desk .fcd-row span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.finding-closeout-desk .fcd-row strong{
  color:#0f172a!important;
  font-size:14px!important;
  line-height:1.35!important;
}
.finding-closeout-desk .fcd-row small{
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.4!important;
}
.finding-closeout-desk .fcd-detail{
  padding:14px 16px!important;
  background:#fff!important;
}
.finding-closeout-desk .fcd-current{
  position:relative!important;
  padding:0 86px 11px 0!important;
  border-bottom:1px solid #eef2f7!important;
}
.finding-closeout-desk .fcd-current h3{
  margin:3px 0!important;
  color:#0f172a!important;
  font-size:21px!important;
  line-height:1.25!important;
}
.finding-closeout-desk .fcd-current p{
  margin:0!important;
  color:#475569!important;
  font-size:14px!important;
  line-height:1.5!important;
}
.finding-closeout-desk .fcd-current b{
  position:absolute!important;
  right:0!important;
  top:0!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:13px!important;
}
.finding-closeout-desk .fcd-facts{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:6px 16px!important;
  margin:10px 0!important;
  padding:9px 0!important;
  border-bottom:1px solid #eef2f7!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.finding-closeout-desk .fcd-facts span{
  min-width:0!important;
}
.finding-closeout-desk .fcd-facts b{
  margin-right:4px!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
.finding-closeout-desk .fcd-next{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:11px 12px!important;
  border:1px solid #bfdbfe!important;
  border-radius:13px!important;
  background:#f8fbff!important;
}
.finding-closeout-desk .fcd-next>div{
  min-width:0!important;
  margin-right:auto!important;
}
.finding-closeout-desk .fcd-next strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.35!important;
}
.finding-closeout-desk .fcd-next p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.35!important;
}
.finding-closeout-desk .fcd-empty{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
}
.finding-closeout-desk .fcd-empty strong{
  color:#0f172a!important;
  font-size:16px!important;
}
.finding-closeout-desk .fcd-empty span{
  flex:1 1 auto!important;
  color:#64748b!important;
  font-size:13px!important;
}
.ff-all-findings{
  margin:0 0 10px!important;
  border:1px solid #dbe3ef!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.ff-all-findings>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:52px!important;
  padding:10px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fafc!important;
}
.ff-all-findings>summary::-webkit-details-marker{
  display:none!important;
}
.ff-all-findings>summary span{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
.ff-all-findings>summary strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:16px!important;
}
.ff-all-findings>summary b{
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:13px!important;
}
.ff-all-findings[open]>summary{
  border-bottom:1px solid #dbe3ef!important;
}
.ff-all-findings-body{
  padding:12px!important;
}
.mi-formal-feedback-form{
  max-width:1040px!important;
  margin:0 auto!important;
}
.mi-formal-feedback-form .mi-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.mi-formal-feedback-form .mi-content-field textarea{
  min-height:150px!important;
  font-size:15px!important;
  line-height:1.65!important;
}
.mi-feedback-optional{
  grid-column:1/-1!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  overflow:hidden!important;
}
.mi-feedback-optional>summary{
  padding:11px 13px!important;
  list-style:none!important;
  cursor:pointer!important;
  color:#475569!important;
  font-size:13px!important;
  font-weight:900!important;
}
.mi-feedback-optional>summary::-webkit-details-marker{
  display:none!important;
}
.mi-feedback-optional[open]>summary{
  border-bottom:1px solid #dbe3ef!important;
}
.mi-feedback-optional-body{
  display:grid!important;
  gap:12px!important;
  padding:12px!important;
}
.frf-grid label>small{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.45!important;
}
.rpa2-excluded{
  margin:0 16px 16px!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  overflow:hidden!important;
}
.rpa2-excluded>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:11px 13px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.rpa2-excluded>summary::-webkit-details-marker{
  display:none!important;
}
.rpa2-excluded>summary span{
  color:#64748b!important;
  font-size:13px!important;
  font-weight:900!important;
}
.rpa2-excluded>summary strong{
  color:#334155!important;
  font-size:13px!important;
}
.rpa2-excluded>div{
  display:grid!important;
  gap:7px!important;
  padding:10px!important;
  border-top:1px solid #dbe3ef!important;
}
.rpa2-excluded button{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  padding:9px 10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#fff!important;
  text-align:left!important;
  cursor:pointer!important;
}
.rpa2-excluded button span{
  color:#64748b!important;
  font-size:12px!important;
}
@media(max-width:720px){
  .mi-formal-feedback-form .mi-form-grid{
    grid-template-columns:1fr!important;
  }
}
.ff-workbench .ff-command-card{
  margin:0 0 12px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.ff-workbench .ff-command-copy p{
  display:none!important;
}
.ff-workbench .ff-command-copy h3{
  font-size:18px!important;
}
.ff-workbench .ff-compact-head{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.ff-workbench .ff-compact-head h2{
  font-size:21px!important;
}
.ff-workbench .ff-compact-head p{
  display:none!important;
}
.ff-workbench .ff-compact-metrics span{
  min-width:68px!important;
  padding:7px 9px!important;
  border-radius:11px!important;
}
.ff-workbench .ff-compact-metrics b{
  font-size:18px!important;
}

/* ===== Finding and communication focus: one issue, one current action ===== */
.finding-compact-route{
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 10px;
  padding:9px 11px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
}
.finding-compact-route span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#64748b;
  font-size:13px;
  font-weight:850;
}
.finding-compact-route span i{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#e2e8f0;
  color:#64748b;
  font-size:11px;
  font-style:normal;
}
.finding-compact-route span.is-done{color:#15803d}
.finding-compact-route span.is-done i{background:#dcfce7;color:#15803d}
.finding-compact-route span.is-current{color:#1d4ed8}
.finding-compact-route span.is-current i{background:#2563eb;color:#fff}
.finding-compact-route>b{color:#cbd5e1;font-size:12px}
.finding-route-drawer{
  margin:10px 0 0;
  border-top:1px solid #e2e8f0;
}
.finding-route-drawer>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  list-style:none;
  cursor:pointer;
}
.finding-route-drawer>summary::-webkit-details-marker{display:none}
.finding-route-drawer>summary span{display:block;color:#334155;font-size:13px;font-weight:900}
.finding-route-drawer>summary small{display:block;margin-top:2px;color:#64748b;font-size:11px}
.finding-route-drawer>summary b{color:#2563eb;font-size:12px;font-weight:900}
.finding-route-drawer[open]>summary b{font-size:0}
.finding-route-drawer[open]>summary b::after{content:'收起';font-size:12px}
.finding-route-drawer>.finding-compact-route{margin:0 0 10px}
.finding-primary-action{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  margin:0 0 10px;
  padding:11px 13px;
  border:1px solid #bfdbfe;
  border-left:4px solid #2563eb;
  border-radius:12px;
  background:#f8fbff;
  color:#0f172a;
  text-align:left;
  cursor:pointer;
}
.finding-primary-action span{color:#2563eb;font-size:12px;font-weight:900}
.finding-primary-action strong{font-size:15px}
.finding-primary-action em{color:#1d4ed8;font-size:13px;font-style:normal;font-weight:900}
.finding-support-drawer,.finding-secondary-drawer,.finding-more-actions{
  margin-top:10px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.finding-support-drawer>summary,.finding-secondary-drawer>summary,.finding-more-actions>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:42px;
  padding:9px 11px;
  list-style:none;
  cursor:pointer;
  background:#f8fafc;
}
.finding-support-drawer>summary::-webkit-details-marker,.finding-secondary-drawer>summary::-webkit-details-marker,.finding-more-actions>summary::-webkit-details-marker{display:none}
.finding-support-drawer>summary span,.finding-secondary-drawer>summary span{display:block;color:#0f172a;font-size:14px;font-weight:900}
.finding-support-drawer>summary small,.finding-secondary-drawer>summary small{display:block;margin-top:2px;color:#64748b;font-size:12px}
.finding-support-drawer>summary b,.finding-secondary-drawer>summary b,.finding-more-actions>summary{color:#2563eb;font-size:13px;font-weight:900}
.finding-support-drawer[open]>summary,.finding-secondary-drawer[open]>summary,.finding-more-actions[open]>summary{border-bottom:1px solid #e2e8f0}
.finding-support-drawer-body,.finding-secondary-drawer-body{padding:10px}
.finding-support-drawer-body>.finding-source-box,
.finding-support-drawer-body>.finding-evidence-chain,
.finding-support-drawer-body>.finding-professional-reference{margin:0 0 10px}
.finding-more-actions-body{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;padding:10px}
.finding-more-actions-body>.finding-traceability{flex:1 1 100%}
.finding-more-actions-body>.finding-danger-actions{flex:1 1 100%;margin:2px 0 0}
.finding-danger-actions{display:flex;align-items:center;gap:10px;padding:9px 10px}
.finding-danger-actions span{margin:0!important}
html[data-theme="dark"] .finding-route-drawer{border-color:#314158}
html[data-theme="dark"] .finding-route-drawer>summary span{color:#e2e8f0}
.mi-compact-task-strip{
  align-items:center!important;
  margin-bottom:12px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.mi-compact-task-strip h2{font-size:19px!important}
.mi-feedback-workbench{margin:0 0 12px}
.mi-communication-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
.mi-communication-summary{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
}
.mi-communication-summary span{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.mi-communication-summary b{color:#1d4ed8;font-size:17px}
.mi-feedback-queue,.mi-feedback-detail{
  border-radius:14px;
  box-shadow:none;
}
.mi-feedback-item.draft,.mi-feedback-item.waiting{border-color:#bfdbfe}
.mi-feedback-item.draft span,.mi-feedback-item.waiting span{background:#eff6ff;color:#1d4ed8}
.mi-feedback-item.evaluated{border-color:#bbf7d0;background:#f7fef9}
.mi-feedback-item.evaluated span{background:#dcfce7;color:#15803d}
.mi-feedback-detail-head>b.draft,.mi-feedback-detail-head>b.waiting{background:#dbeafe;color:#1d4ed8}
.mi-feedback-detail-head>b.evaluated{background:#dcfce7;color:#15803d}
.mi-communication-brief{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  margin:0 0 12px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#dbe3ef;
  overflow:hidden;
}
.mi-communication-brief>div{min-width:0;padding:10px 12px;background:#fff}
.mi-communication-brief dt{margin:0 0 4px;color:#64748b;font-size:12px;font-weight:900}
.mi-communication-brief dd{
  display:-webkit-box;
  margin:0;
  overflow:hidden;
  color:#1e293b;
  font-size:14px;
  line-height:1.55;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
@media(max-width:720px){
  .mi-communication-toolbar{align-items:stretch;flex-direction:column}
  .mi-communication-toolbar .btn{width:100%}
}
.mi-audit-evaluation{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
  padding:13px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#f8fbff;
}
.mi-audit-evaluation-head{
  grid-column:1/-1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.mi-audit-evaluation-head span,.mi-audit-evaluation.is-complete span{display:block;color:#2563eb;font-size:12px;font-weight:950}
.mi-audit-evaluation-head strong,.mi-audit-evaluation.is-complete strong{display:block;margin-top:3px;color:#0f172a;font-size:16px}
.mi-audit-evaluation-head small{color:#64748b;font-size:12px;text-align:right}
.mi-audit-evaluation label{display:grid;gap:5px;color:#334155;font-size:13px;font-weight:900}
.mi-audit-evaluation label:first-of-type{grid-column:1/-1}
.mi-audit-evaluation select,.mi-audit-evaluation textarea{
  width:100%;
  padding:9px 10px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-weight:500;
}
.mi-audit-evaluation-actions{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mi-audit-evaluation-actions span{color:#64748b;font-size:12px}
.mi-audit-evaluation.is-complete{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  border-color:#bbf7d0;
  background:#f7fef9;
}
.mi-audit-evaluation.is-complete p{margin:6px 0 0;color:#475569;font-size:13px;line-height:1.55}
.mi-audit-evaluation.is-complete>b{padding:6px 10px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:13px}
@media(max-width:760px){
  .finding-compact-route{align-items:flex-start;flex-direction:column}
  .finding-compact-route>b{display:none}
  .finding-primary-action{grid-template-columns:1fr}
  .mi-communication-brief,.mi-audit-evaluation{grid-template-columns:1fr}
  .mi-audit-evaluation label,.mi-audit-evaluation label:first-of-type,.mi-audit-evaluation-head,.mi-audit-evaluation-actions{grid-column:1}
  .mi-audit-evaluation-head,.mi-audit-evaluation-actions{align-items:stretch;flex-direction:column}
  .mi-audit-evaluation-head small{text-align:left}
}
.rp-next-strip{
  margin:0 0 10px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.rp-next-strip .rpns-head{
  align-items:center!important;
  padding:12px 14px!important;
}
.rp-next-strip .rpns-head strong{
  font-size:20px!important;
}
.rp-next-strip .rpns-head p{
  display:none!important;
}
.rp-next-strip .rpns-metrics article{
  padding:9px 12px!important;
}
.rp-next-strip .rpns-blockers{
  margin:8px 12px 0!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  font-size:13px!important;
}
.report-stage-two .rpa2-head p,
.report-stage-two .rpsc-head p,
.report-stage-two .rpa2-rule p,
.report-stage-two .rpv-head p,
.report-stage-two .rps-head p{
  display:none!important;
}
.report-stage-two .rpv-head,
.report-stage-two .rps-head{
  align-items:center!important;
}
.report-stage-two .rpv-head strong,
.report-stage-two .rps-head strong{
  font-size:17px!important;
}
.report-stage-two .rp2-columns{
  display:grid!important;
  grid-template-columns:minmax(360px,480px) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
}
.report-stage-two .rp2-config-card{
  border-radius:16px!important;
  box-shadow:none!important;
}
.report-stage-two .rp2-config-card .rp2-card-header{
  padding:12px 14px!important;
}
.report-stage-two .rp2-config-card .rp2-card-body{
  padding:12px 14px!important;
}
.report-stage-two .rp2-info-group{
  margin-bottom:10px!important;
}
.report-stage-two .rp2-summary-drawer{
  border:1px solid #d8e5f3!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.report-stage-two .rp2-summary-drawer>summary{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:48px!important;
  padding:11px 13px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fafc!important;
}
.report-stage-two .rp2-summary-drawer>summary::-webkit-details-marker{
  display:none!important;
}
.report-stage-two .rp2-summary-drawer>summary b{
  margin-left:auto!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
}
.report-stage-two .rp2-summary-drawer .rp2-card-body{
  padding:12px!important;
}
.report-stage-two .rp2-summary-drawer:not([open]){
  align-self:start!important;
}
.report-stage-two .rp2-output-card{
  border-radius:16px!important;
  box-shadow:none!important;
}
.report-stage-two .rp-report-guidance{
  margin:0 0 12px!important;
  border:1px solid #dbeafe!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.report-stage-two .rp-report-guidance>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:46px!important;
  padding:10px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fbff!important;
}
.report-stage-two .rp-report-guidance>summary::-webkit-details-marker{
  display:none!important;
}
.report-stage-two .rp-report-guidance>summary span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.1em!important;
}
.report-stage-two .rp-report-guidance>summary strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.report-stage-two .rp-report-guidance>summary small{
  display:block!important;
  margin-top:2px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.report-stage-two .rp-report-guidance>summary b{
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
}
.report-stage-two .rp-report-guidance .rp-next-strip{
  margin:0!important;
  border:0!important;
  border-top:1px solid #e2e8f0!important;
  border-radius:0!important;
}
.wpm-stage-two .wpm-purpose{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wpm-stage-two .wpm-purpose p{
  display:none!important;
}
.wpm-stage-two .wpm-purpose h3{
  font-size:20px!important;
}
.wpm-stage-two .wpm-dossier-head{
  padding:13px 15px!important;
  align-items:center!important;
}
.wpm-stage-two .wpm-dossier-head h3{
  font-size:20px!important;
}
.wpm-stage-two .wpm-dossier-head p{
  display:none!important;
}
.wpm-stage-two .wpm-closeout-check{
  padding:10px 12px!important;
}
.wpm-stage-two .wpm-closeout-check>div:first-child p{
  display:none!important;
}
.rp-next-strip .rpns-metrics strong{
  font-size:20px!important;
}
.rp-next-strip .rpns-mini-metrics{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:240px!important;
}
.rp-next-strip .rpns-mini-metrics article{
  min-width:62px!important;
  padding:7px 8px!important;
  text-align:center!important;
}
.rp-next-strip .rpns-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:10px 12px!important;
}
.rp-next-strip .rpns-action{
  flex:0 1 190px!important;
  min-height:0!important;
  padding:10px 12px!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
.rp-next-strip .rpns-action span{
  font-size:12px!important;
  line-height:1.35!important;
}

/* 审前规划 1.0 验收护栏：首屏只展示可操作内容，说明和辅助信息默认收起 */
.pmat-simple-page .pmat-header,
.pra-stage-one .pra-project-baseline,
.wf-stage-one .wf-header{
  margin-bottom:10px!important;
  padding:12px 16px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-header h2,
#view-home .form-card>h2,
.wf-stage-one .wf-title{
  font-size:24px!important;
  line-height:1.25!important;
}
.pmat-simple-page .pmat-header p,
#view-home .form-card>.form-desc,
.wf-stage-one .wf-page-desc,
.pra-stage-one .pra-method-guide p,
.pra-stage-one .pra-active-module p,
.pra-stage-one .pra-section-head p,
.pmat-simple-page .pmat-quick-strip p,
.wf-stage-one .wf-current-scheme p,
.wf-stage-one .wf-empty span{
  display:none!important;
}
.pra-stage-one .pra-method-guide{
  grid-template-columns:minmax(220px,300px) minmax(0,1fr)!important;
  gap:12px!important;
  margin-bottom:12px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-method-guide h3,
.pmat-simple-page .pmat-quick-strip strong,
.wf-stage-one .wf-current-scheme h3{
  font-size:20px!important;
}
.pra-stage-one .pra-method-guide ol{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.pra-stage-one .pra-method-guide li{
  min-height:0!important;
  padding:9px 10px!important;
}
.pra-stage-one .pra-method-guide b{
  width:22px!important;
  height:22px!important;
  margin-bottom:5px!important;
}
.pra-stage-one .pra-planning-layout{
  grid-template-columns:minmax(260px,340px) minmax(0,1fr)!important;
  gap:14px!important;
}
.pra-stage-one .pra-module-panel,
.pra-stage-one .pra-module-workarea,
.pmat-simple-page .pmat-ledger,
.pmat-simple-page .pmat-reference,
.wf-stage-one .wf-current-scheme,
.wf-stage-one .wf-empty{
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-module-panel,
.pra-stage-one .pra-module-workarea{
  padding:14px!important;
}
.pra-stage-one .pra-form-grid{
  gap:10px!important;
}
.pra-stage-one .pra-field textarea{
  min-height:72px!important;
}
.pra-stage-one .pra-simple-drawer{
  margin-top:10px!important;
}
.pra-stage-one .pra-simple-drawer>summary{
  min-height:44px!important;
  padding:10px 12px!important;
}
.pra-stage-one .pra-primary-action{
  margin-top:10px!important;
  padding:12px 14px!important;
}
.pmat-simple-page .pmat-quick-strip{
  margin:10px 0 12px!important;
  padding:12px 16px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-workspace{
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.58fr)!important;
  gap:14px!important;
}
.pmat-simple-page .pmat-list-head{
  padding:12px 16px!important;
}
.pmat-simple-page .pmat-ledger-filters{
  padding:10px 16px!important;
}
.pmat-simple-page .pmat-side-stack{
  display:grid!important;
  gap:10px!important;
}
.pmat-simple-page .pmat-reference-collapsed{
  order:1!important;
}
.pmat-simple-page .pmat-insight-drawer{
  order:2!important;
}
.pmat-simple-page .pmat-secondary-actions{
  order:3!important;
}
.pmat-simple-page .pmat-secondary-actions,
.pmat-simple-page .pmat-reference>details,
.pmat-simple-page .pmat-insight-drawer{
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-stage-one .wf-current-scheme{
  margin:10px 0!important;
  padding:14px 16px!important;
}
.wf-stage-one .wf-current-scheme h3{
  margin:4px 0 0!important;
}
.wf-stage-one .wf-empty{
  margin-top:10px!important;
  padding:12px 14px!important;
}
.wf-stage-one .wf-scheme-readiness{
  margin-bottom:12px!important;
  padding:12px 14px!important;
  grid-template-columns:130px minmax(0,1fr) auto!important;
  box-shadow:none!important;
}
.wf-stage-one .wf-readiness-checks span{
  padding:5px 8px!important;
  font-size:13px!important;
}
.wf-scheme-support-drawer{
  margin:0!important;
  border-top:1px solid #e2e8f0!important;
  background:#fff!important;
}
.wf-scheme-support-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:44px!important;
  padding:10px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fbff!important;
}
.wf-scheme-support-drawer>summary::-webkit-details-marker{
  display:none!important;
}
.wf-scheme-support-drawer>summary span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-support-drawer>summary strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.wf-scheme-support-drawer>summary b{
  color:#2563eb!important;
  font-size:12px!important;
}
.wf-scheme-support-drawer[open]>summary{
  border-bottom:1px solid #e2e8f0!important;
}
.wf-scheme-support-drawer>div{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px 14px!important;
}
.wf-scheme-support-drawer p{
  margin:0!important;
  padding:10px 11px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
}
.wf-scheme-support-drawer p span,
.wf-scheme-support-drawer p strong,
.wf-scheme-support-drawer p small{
  display:block!important;
}
.wf-scheme-support-drawer p span{
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
.wf-scheme-support-drawer p strong{
  margin-top:4px!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.wf-scheme-support-drawer p small{
  margin-top:3px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.45!important;
}
@media(max-width:900px){
  .wf-scheme-support-drawer>div{grid-template-columns:1fr!important}
}

/* 审计方案详情页：按 Excel 替代思路组织为方案基线表 + 程序清单 */
.wf-scheme-detail-page .wf-simple-focus{
  margin:0 0 8px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-scheme-detail-page .wf-simple-focus strong{
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-simple-focus p{
  display:block!important;
  margin-top:4px!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.wf-scheme-detail-page .wf-scheme-action-bar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(360px,auto) auto!important;
  align-items:center!important;
  gap:12px!important;
  margin:0 0 8px!important;
  padding:11px 13px!important;
  border:1px solid #bfdbfe!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#f8fbff,#ffffff)!important;
  box-shadow:none!important;
}
.wf-scheme-detail-page .wf-scheme-action-main span,
.wf-scheme-detail-page .wf-scheme-action-status span,
.wf-scheme-detail-page .wf-scheme-action-missing small{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
}
.wf-scheme-detail-page .wf-scheme-action-main strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:18px!important;
  line-height:1.28!important;
}
.wf-scheme-detail-page .wf-scheme-action-main p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.wf-scheme-detail-page .wf-scheme-action-missing{
  min-width:0!important;
}
.wf-scheme-detail-page .wf-scheme-action-missing>div{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:6px!important;
  margin-top:4px!important;
}
.wf-scheme-detail-page .wf-scheme-action-status{
  display:grid!important;
  grid-template-columns:auto auto!important;
  align-items:center!important;
  gap:6px 10px!important;
  justify-items:end!important;
}
.wf-scheme-detail-page .wf-scheme-action-status span{
  grid-column:1/-1!important;
  color:#64748b!important;
}
.wf-scheme-detail-page .wf-scheme-action-status strong{
  color:#0f172a!important;
  font-size:18px!important;
  line-height:1!important;
}
.wf-scheme-detail-page .wf-scheme-todo-strip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:12px!important;
  margin:0 0 8px!important;
  padding:10px 12px!important;
  border:1px solid #bfdbfe!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#f8fbff,#ffffff)!important;
  box-shadow:none!important;
}
.wf-scheme-detail-page .wf-scheme-todo-main span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-detail-page .wf-scheme-todo-main strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:16px!important;
}
.wf-scheme-detail-page .wf-scheme-todo-main p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.wf-scheme-detail-page .wf-scheme-todo-items{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  max-width:720px!important;
}
.wf-scheme-detail-page .wf-scheme-todo-item{
  display:grid!important;
  gap:2px!important;
  min-width:82px!important;
  min-height:42px!important;
  padding:6px 9px!important;
  border:1px solid #dbeafe!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#172033!important;
  text-align:left!important;
  cursor:pointer!important;
  font-family:inherit!important;
}
.wf-scheme-detail-page .wf-scheme-todo-item:hover{
  border-color:#93c5fd!important;
  box-shadow:0 8px 18px rgba(37,99,235,.08)!important;
}
.wf-scheme-detail-page .wf-scheme-todo-item span{
  color:#f97316!important;
  font-size:11px!important;
  font-weight:950!important;
}
.wf-scheme-detail-page .wf-scheme-todo-item strong{
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.25!important;
}
.wf-scheme-detail-page .wf-scheme-todo-item.is-ready span{
  color:#0f766e!important;
}
.wf-scheme-detail-page .wf-scheme-todo-items em{
  color:#64748b!important;
  font-size:12px!important;
  font-style:normal!important;
  font-weight:800!important;
}
.wf-scheme-detail-page .wf-scheme-form-first{
  margin:0 0 8px!important;
  padding:0!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head{
  padding:11px 14px!important;
  align-items:center!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head h3{
  margin:2px 0!important;
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head p{
  display:block!important;
  max-width:900px!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.wf-scheme-detail-page .wf-scheme-core{
  padding:0!important;
  gap:0!important;
  border-top:1px solid #e2e8f0!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-scheme-field{
  min-height:76px!important;
  border-radius:0!important;
}
.wf-scheme-detail-page .wf-scheme-field span{
  margin-bottom:4px!important;
  color:#475569!important;
  font-size:13px!important;
}
.wf-scheme-detail-page .wf-scheme-field strong{
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.35!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.wf-scheme-detail-page .wf-scheme-field small{
  margin-top:4px!important;
  overflow:hidden!important;
  font-size:12px!important;
  line-height:1.35!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.wf-scheme-detail-page .wf-scheme-field em{
  margin-top:5px!important;
  font-size:12px!important;
}
.wf-scheme-detail-page .wf-scheme-worktable-summary,
.wf-scheme-detail-page .wf-program-ledger-summary{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:9px 14px!important;
  border-top:1px solid #e2e8f0!important;
  background:#f8fbff!important;
}
.wf-scheme-detail-page .wf-scheme-worktable-summary span,
.wf-scheme-detail-page .wf-program-ledger-summary span{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:30px!important;
  padding:5px 9px!important;
  border:1px solid #dbeafe!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:800!important;
}
.wf-scheme-detail-page .wf-scheme-worktable-summary strong,
.wf-scheme-detail-page .wf-program-ledger-summary strong{
  color:#0f172a!important;
  font-size:14px!important;
}
.wf-scheme-detail-page .wf-scheme-support-drawer{
  margin:0!important;
}
.wf-scheme-detail-page .wf-program-ledger{
  margin:0 0 8px!important;
  padding:0!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-scheme-detail-page .wf-program-ledger-head{
  padding:11px 14px!important;
  margin:0!important;
  border-bottom:1px solid #e2e8f0!important;
}
.wf-scheme-detail-page .wf-program-ledger-head h3{
  margin:2px 0!important;
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head p{
  font-size:13px!important;
  line-height:1.42!important;
}
.wf-scheme-detail-page .wf-program-ledger-summary{
  border-top:0!important;
  border-bottom:1px solid #e2e8f0!important;
}
.wf-scheme-detail-page .wf-program-empty{
  margin:0!important;
  min-height:0!important;
  padding:12px 14px!important;
  border:0!important;
  border-top:1px solid #e2e8f0!important;
  border-radius:0!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-advanced-drawer{
  margin:8px 0!important;
}
.wf-scheme-detail-page .wf-advanced-drawer>summary{
  min-height:42px!important;
  padding:9px 12px!important;
}
.wf-scheme-detail-page .wf-program-row{
  grid-template-columns:minmax(190px,1fr) minmax(230px,1.15fr) minmax(190px,.9fr) minmax(260px,1.15fr) 86px 112px!important;
  gap:10px!important;
  align-items:start!important;
}
.wf-scheme-detail-page .wf-program-row.is-head{
  align-items:center!important;
}
.wf-scheme-detail-page .wf-program-row>span:nth-child(4){
  display:grid!important;
}
.wf-scheme-detail-page .wf-program-inline-edit{
  display:grid!important;
  grid-template-columns:1fr 128px!important;
  gap:6px!important;
}
.wf-scheme-detail-page .wf-program-inline-edit input,
.wf-scheme-detail-page .wf-program-inline-edit textarea{
  width:100%!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-family:inherit!important;
  font-size:12px!important;
  box-sizing:border-box!important;
  outline:none!important;
}
.wf-scheme-detail-page .wf-program-inline-edit input{
  height:30px!important;
  padding:0 8px!important;
}
.wf-scheme-detail-page .wf-program-inline-edit textarea{
  grid-column:1/-1!important;
  min-height:42px!important;
  padding:7px 8px!important;
  resize:vertical!important;
  line-height:1.35!important;
}
.wf-scheme-detail-page .wf-program-inline-edit input:focus,
.wf-scheme-detail-page .wf-program-inline-edit textarea:focus{
  border-color:#93c5fd!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.12)!important;
}
.wf-scheme-detail-page .wf-row-ready,
.wf-scheme-detail-page .wf-row-gap{
  display:block!important;
  margin-top:6px!important;
  font-size:12px!important;
  font-weight:900!important;
}
.wf-scheme-detail-page .wf-row-ready{color:#047857!important}
.wf-scheme-detail-page .wf-row-gap{color:#b45309!important}
.wf-scheme-detail-page .wf-program-row-actions{
  display:grid!important;
  gap:6px!important;
}
.wf-scheme-detail-page .wf-program-row-actions button{
  width:100%!important;
}
@media(max-width:1000px){
  .wf-scheme-detail-page .wf-scheme-action-bar{grid-template-columns:1fr!important}
  .wf-scheme-detail-page .wf-scheme-action-missing>div{justify-content:flex-start!important}
  .wf-scheme-detail-page .wf-scheme-action-status{grid-template-columns:1fr!important;justify-items:start!important}
  .wf-scheme-detail-page .wf-scheme-todo-strip{grid-template-columns:1fr!important}
  .wf-scheme-detail-page .wf-scheme-todo-items{justify-content:flex-start!important;max-width:none!important}
  .wf-scheme-detail-page .wf-scheme-todo-strip>.btn{width:100%!important;justify-content:center!important}
  .wf-scheme-detail-page .wf-program-row{grid-template-columns:1fr!important}
  .wf-scheme-detail-page .wf-program-inline-edit{grid-template-columns:1fr!important}
  .wf-scheme-detail-page .wf-scheme-core{grid-template-columns:1fr 1fr!important}
  .wf-container:not(.wf-stage-one) .wf-scheme-quick-edit{grid-template-columns:1fr!important}
  .wf-scheme-detail-page .wf-scheme-field:nth-child(2n){border-right:0!important}
}
@media(max-width:640px){
  .wf-scheme-detail-page .wf-scheme-core{grid-template-columns:1fr!important}
  .wf-scheme-detail-page .wf-scheme-field{border-right:0!important;border-bottom:1px solid #e2e8f0!important}
}

/* 风险评估结果页：把候选风险转为可复核、可进方案的风险判断表 */
.pra-risk-worktable .pra-risk-register-summary{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:9px 14px!important;
  border-top:1px solid #e2e8f0!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#f8fbff!important;
}
.pra-risk-worktable .pra-risk-register-summary span{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:30px!important;
  padding:5px 9px!important;
  border:1px solid #dbeafe!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:800!important;
}
.pra-risk-worktable .pra-risk-register-summary strong{
  color:#0f172a!important;
  font-size:14px!important;
}
.pra-risk-worktable .pra-risk-register-head{
  grid-template-columns:minmax(260px,1.35fr) minmax(120px,.55fr) minmax(220px,.95fr) minmax(150px,.65fr) auto!important;
}
.pra-risk-worktable .pra-risk-register-row{
  grid-template-columns:minmax(260px,1.35fr) minmax(120px,.55fr) minmax(220px,.95fr) minmax(150px,.65fr) auto!important;
}
@media(max-width:1100px){
  .pra-risk-worktable .pra-risk-register-head{display:none!important}
  .pra-risk-worktable .pra-risk-register-row{grid-template-columns:1fr!important;align-items:start!important}
  .pra-risk-worktable .pra-risk-register-row button{justify-self:start!important}
}

/* 程序执行 1.0：左侧单一程序目录，右侧执行笔记，保存即同步底稿 */
.at-notebook-shell .at-execution-workbench{
  grid-template-columns:minmax(230px,260px) minmax(0,1fr)!important;
  align-items:start!important;
  background:#f8fafc!important;
}
.at-notebook-shell .at-sidebar{
  position:sticky!important;
  top:12px!important;
  max-height:calc(100vh - 150px)!important;
  border-right:1px solid #e2e8f0!important;
  background:#fff!important;
}
.at-notebook-shell .at-scheme-programs{
  padding:12px!important;
}
.at-notebook-shell .at-scheme-task{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:2px 8px!important;
  width:100%!important;
  margin:0 0 5px!important;
  padding:10px!important;
  text-align:left!important;
  border:1px solid transparent!important;
  background:#fff!important;
}
.at-notebook-shell .at-scheme-task:hover,
.at-notebook-shell .at-scheme-task.active{
  border-color:#93c5fd!important;
  background:#eff6ff!important;
}
.at-notebook-shell .at-scheme-task:disabled,
.at-notebook-shell .at-scheme-task:disabled:hover{
  border-color:transparent!important;
  background:#f8fafc!important;
  color:#64748b!important;
  cursor:not-allowed!important;
}
.at-notebook-shell .at-scheme-task .at-scheme-state{
  grid-row:1 / span 2!important;
  align-self:start!important;
  min-width:48px!important;
  padding:3px 5px!important;
  border-radius:999px!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:800!important;
  text-align:center!important;
  background:#f1f5f9!important;
}
.at-notebook-shell .at-scheme-task.is-in-progress .at-scheme-state{
  color:#1d4ed8!important;
  background:#dbeafe!important;
}
.at-notebook-shell .at-scheme-task.is-review .at-scheme-state{
  color:#9a3412!important;
  background:#ffedd5!important;
}
.at-notebook-shell .at-scheme-task.is-completed .at-scheme-state{
  color:#047857!important;
  background:#d1fae5!important;
}
.at-notebook-shell .at-scheme-task strong{
  min-width:0!important;
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:14px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-notebook-shell .at-scheme-task small{
  min-width:0!important;
  overflow:hidden!important;
  color:#64748b!important;
  font-size:12px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-notebook-title{
  min-height:58px!important;
}
.at-execution-notebook{
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #cbd5e1!important;
  background:#fff!important;
}
.at-execution-notebook>.at-section-head{
  margin:0!important;
  padding:14px 16px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#f8fafc!important;
}
.at-execution-notebook>.at-section-head small{
  display:block!important;
}
.at-notebook-scope,
.at-notebook-evidence,
.at-notebook-conclusion{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  padding:14px 16px!important;
  border-bottom:1px solid #e2e8f0!important;
}
.at-notebook-evidence{
  grid-template-columns:minmax(0,1fr)!important;
}
.at-notebook-conclusion{
  border-bottom:0!important;
}
.at-notebook-conclusion .wide{
  grid-column:1 / -1!important;
}
.at-execution-notebook #at-section-steps{
  margin:0!important;
  padding:14px 16px!important;
  border-width:0 0 1px!important;
  border-radius:0!important;
  background:#fff!important;
}
.at-specialized-record{
  margin:0!important;
  padding:14px 16px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fbfdff!important;
}
.at-specialized-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:20px!important;
  margin-bottom:12px!important;
}
.at-specialized-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
}
.at-specialized-head h3{
  margin:2px 0 0!important;
  color:#0f172a!important;
  font-size:17px!important;
}
.at-specialized-head p{
  max-width:520px!important;
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.at-specialized-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 12px!important;
}
.at-specialized-fields .at-field{
  margin:0!important;
}
.at-specialized-fields .at-field span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
.at-specialized-fields .at-field em{
  color:#b45309!important;
  font-size:11px!important;
  font-style:normal!important;
  font-weight:700!important;
}
.at-specialized-fields textarea{
  min-height:78px!important;
  resize:vertical!important;
}
.at-execution-notebook .at-steps{
  display:grid!important;
  gap:7px!important;
}
.at-execution-notebook .at-step{
  grid-template-columns:28px minmax(0,1fr) 142px!important;
  padding:9px 10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#fff!important;
}
.at-material-drawer{
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
.at-material-drawer>summary{
  min-height:40px!important;
  padding:9px 11px!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:800!important;
  cursor:pointer!important;
  background:#f8fafc!important;
}
.at-material-drawer>summary b{
  color:#2563eb!important;
}
.at-execution-worksheet .at-single-closeout{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
}
.at-execution-worksheet .at-single-closeout .at-closeout-actions{
  display:flex!important;
  gap:8px!important;
}
@media(max-width:900px){
  .at-notebook-shell .at-execution-workbench{grid-template-columns:1fr!important}
  .at-notebook-shell .at-sidebar{position:static!important;max-height:none!important;border-right:0!important;border-bottom:1px solid #e2e8f0!important}
  .at-notebook-scope,.at-notebook-conclusion{grid-template-columns:1fr!important}
  .at-specialized-head{display:block!important}
  .at-specialized-head p{margin-top:6px!important}
  .at-specialized-fields{grid-template-columns:1fr!important}
  .at-execution-notebook .at-step{grid-template-columns:28px minmax(0,1fr)!important}
  .at-execution-notebook .at-step select{grid-column:2!important}
  .at-execution-worksheet .at-single-closeout{grid-template-columns:1fr!important}
}

/* 程序执行：程序依据默认是一行摘要，明细按需展开 */
.at-execution-worksheet .at-plan-passport-compact{
  margin:0 0 8px!important;
  padding:0!important;
  border:1px solid #dbe7f4!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:48px!important;
  padding:9px 12px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fafc!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary::-webkit-details-marker{
  display:none!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary>div{
  min-width:0!important;
  flex:1 1 auto!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary span{
  display:inline-block!important;
  margin-right:8px!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary strong{
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.3!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary small{
  display:block!important;
  margin-top:2px!important;
  overflow:hidden!important;
  color:#64748b!important;
  font-size:12px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary b{
  flex:0 0 auto!important;
  color:#2563eb!important;
  font-size:12px!important;
}
.at-execution-worksheet .at-plan-passport-compact[open]>summary{
  border-bottom:1px solid #e2e8f0!important;
}
.at-execution-worksheet .at-plan-passport-compact .at-passport-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
}
.at-execution-worksheet .at-plan-passport-compact .at-passport-grid>div{
  padding:10px 12px!important;
}

/* 资料台账：状态条压缩、清单表格化、辅助区降噪 */
.pmat-simple-page .pmat-status-strip{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:0!important;
  margin:8px 0 10px!important;
  padding:8px 12px!important;
  border-radius:13px!important;
  box-shadow:none!important;
  background:#f8fbff!important;
}
.pmat-simple-page .pmat-status-strip strong{
  font-size:17px!important;
}
.pmat-simple-page .pmat-status-strip p{
  display:block!important;
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.pmat-simple-page .pmat-status-strip dl{
  display:flex!important;
  gap:8px!important;
  margin:0!important;
}
.pmat-simple-page .pmat-status-strip dl div{
  min-width:54px!important;
  padding:5px 8px!important;
  border-radius:11px!important;
}
.pmat-simple-page .pmat-status-strip dt{
  font-size:16px!important;
}
.pmat-simple-page .pmat-status-strip dd{
  font-size:12px!important;
}
.pmat-simple-page .pmat-workspace{
  grid-template-columns:minmax(0,1.72fr) minmax(260px,330px)!important;
  gap:12px!important;
}
.pmat-simple-page .pmat-ledger,
.pmat-simple-page .pmat-reference>details,
.pmat-simple-page .pmat-insight-panel,
.pmat-simple-page .pmat-secondary-actions{
  border-radius:13px!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-list-head{
  padding:11px 14px!important;
}
.pmat-simple-page .pmat-list-head span{
  font-size:13px!important;
}
.pmat-simple-page .pmat-ledger-mode{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:8px 14px!important;
  border-top:1px solid #e2e8f0!important;
  border-bottom:1px solid #e2e8f0!important;
  background:linear-gradient(135deg,#f8fafc,#f8fbff)!important;
}
.pmat-simple-page .pmat-ledger-mode span{
  display:block!important;
  color:#0f766e!important;
  font-size:13px!important;
  font-weight:950!important;
}
.pmat-simple-page .pmat-ledger-mode strong{
  display:block!important;
  margin-top:3px!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.3!important;
}
.pmat-simple-page .pmat-ledger-mode p{
  margin:3px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.42!important;
}
.pmat-simple-page .pmat-ledger-mode .btn{white-space:nowrap!important}
.pmat-simple-page .pmat-ledger-filters{
  grid-template-columns:minmax(0,1fr) 160px!important;
  gap:10px!important;
  padding:10px 14px!important;
}
.pmat-simple-page .pmat-batch-bar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:8px 14px!important;
  border-top:1px solid #e2e8f0!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#f8fafc!important;
}
.pmat-simple-page .pmat-batch-bar label{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:850!important;
}
.pmat-simple-page .pmat-batch-bar>span{
  flex:1 1 auto!important;
  color:#64748b!important;
  font-size:13px!important;
}
.pmat-simple-page .pmat-batch-bar>div{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:7px!important;
}
.pmat-simple-page .pmat-row-check{
  flex:0 0 auto!important;
  width:16px!important;
  height:16px!important;
  margin-top:3px!important;
}
.pmat-simple-page .pmat-table-wrap{
  max-height:620px!important;
}
.pmat-simple-page .pmat-compact-table{
  min-width:760px!important;
}
.pmat-simple-page .pmat-compact-table th,
.pmat-simple-page .pmat-compact-table td{
  padding:9px 10px!important;
}
.pmat-simple-page .pmat-compact-table .pmat-name-cell{
  display:flex!important;
  gap:9px!important;
  align-items:flex-start!important;
}
.pmat-simple-page .pmat-compact-table .pmat-name-cell strong{
  font-size:14px!important;
  white-space:normal!important;
}
.pmat-simple-page .pmat-compact-table .pmat-name-cell small{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-top:5px!important;
}
.pmat-simple-page .pmat-compact-table .pmat-name-cell small b{
  max-width:220px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.pmat-simple-page .pmat-assist-stack{
  gap:8px!important;
}
.pmat-simple-page .pmat-operation-rail{
  padding:8px!important;
  border:1px solid #d8e5f3!important;
  border-radius:15px!important;
  background:#fff!important;
}
.pmat-simple-page .pmat-operation-rail-head{
  padding:2px 2px 9px!important;
  border-bottom:1px solid #e2e8f0!important;
}
.pmat-simple-page .pmat-operation-rail-head span,
.pmat-simple-page .pmat-optional-tools>span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.04em!important;
}
.pmat-simple-page .pmat-operation-rail-head strong{
  display:block!important;
  margin-top:3px!important;
  color:#0f172a!important;
  font-size:17px!important;
  line-height:1.28!important;
}
.pmat-simple-page .pmat-operation-rail-head p{
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.42!important;
}
.pmat-simple-page .pmat-optional-tools{
  display:grid!important;
  gap:8px!important;
  padding-top:0!important;
}
.pmat-simple-page .pmat-optional-tools>span{
  color:#64748b!important;
}
.pmat-simple-page .pmat-current-material{
  display:grid!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid #bfdbfe!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#eff6ff,#fff)!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-current-material span{color:#2563eb!important;font-size:12px!important;font-weight:950!important}
.pmat-simple-page .pmat-current-material strong{display:block!important;margin-top:3px!important;color:#0f172a!important;font-size:16px!important;line-height:1.35!important}
.pmat-simple-page .pmat-current-material p{margin:4px 0 0!important;color:#64748b!important;font-size:13px!important;line-height:1.42!important}
.pmat-simple-page .pmat-current-material dl{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
.pmat-simple-page .pmat-current-material dl div{padding:7px!important;border:1px solid #dbeafe!important;border-radius:10px!important;background:#fff!important}
.pmat-simple-page .pmat-current-material dt{overflow:hidden!important;color:#0f172a!important;font-size:13px!important;font-weight:900!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.pmat-simple-page .pmat-current-material dd{margin:2px 0 0!important;color:#64748b!important;font-size:12px!important}
.pmat-simple-page .pmat-current-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
.pmat-simple-page .pmat-current-actions button{min-height:34px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#1f3b5f!important;font-size:13px!important;font-weight:850!important;cursor:pointer!important}
.pmat-simple-page .pmat-current-actions button:hover{border-color:#93c5fd!important;background:#f8fbff!important}
.pmat-simple-page .pmat-current-actions button:disabled{opacity:.48!important;cursor:not-allowed!important}
.pmat-simple-page tr.is-selected{background:#eff6ff!important;box-shadow:inset 3px 0 0 #2563eb!important}
.pmat-simple-page tr[data-pmat-id]{cursor:pointer!important}
.pmat-simple-page .pmat-reference-collapsed>details>summary,
.pmat-simple-page .pmat-insight-panel>summary,
.pmat-simple-page .pmat-secondary-actions>summary{
  min-height:48px!important;
  padding:10px 12px!important;
  box-shadow:none!important;
}
.pmat-simple-page .pmat-reference-collapsed>details>summary strong,
.pmat-simple-page .pmat-insight-panel>summary strong,
.pmat-simple-page .pmat-secondary-actions>summary strong{
  font-size:15px!important;
}
.pmat-simple-page .pmat-reference-collapsed>details>summary small,
.pmat-simple-page .pmat-insight-panel>summary small{
  display:none!important;
}
.pmat-simple-page .pmat-secondary-actions>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.pmat-simple-page .pmat-secondary-actions>summary::-webkit-details-marker{
  display:none!important;
}
.pmat-simple-page .pmat-secondary-actions>summary span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pmat-simple-page .pmat-secondary-actions>summary b{
  color:#2563eb!important;
  font-size:12px!important;
}
html[data-theme="dark"] .pmat-simple-page .pmat-operation-rail{
  background:#111827!important;
  border-color:#314158!important;
}
html[data-theme="dark"] .pmat-simple-page .pmat-operation-rail-head{
  border-color:#314158!important;
}
html[data-theme="dark"] .pmat-simple-page .pmat-operation-rail-head strong{
  color:#f1f5f9!important;
}
html[data-theme="dark"] .pmat-simple-page .pmat-operation-rail-head p{
  color:#9fb0c7!important;
}
@media(max-width:980px){
  .pmat-simple-page .pmat-workspace{grid-template-columns:1fr!important}
  .pmat-simple-page .pmat-status-strip{grid-template-columns:1fr!important}
  .pmat-simple-page .pmat-status-strip dl{width:100%!important}
}

/* Stage-one risk assessment: one clear line from module selection to candidate judgement. */
.pra-one-screen-flow .pra-project-baseline{
  margin-bottom:10px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-one-screen-flow .pra-task-strip{
  margin-bottom:10px!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-stage-one .pra-thin-steps{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.pra-one-screen-flow .pra-planning-layout{
  align-items:start!important;
  gap:12px!important;
}
.pra-one-screen-flow .pra-module-panel,
.pra-one-screen-flow .pra-module-workarea{
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-one-screen-flow .pra-module-card{
  min-height:0!important;
  padding:10px 12px!important;
  border-radius:11px!important;
}
.pra-one-screen-flow .pra-module-card strong{
  font-size:15px!important;
}
.pra-one-screen-flow .pra-module-card small{
  font-size:12px!important;
}
.pra-stage-one .pra-active-next{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.pra-stage-one .pra-active-next small{
  flex:0 0 auto!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:13px!important;
  font-weight:900!important;
}
.pra-one-screen-flow .pra-form-grid{
  gap:10px!important;
}
.pra-one-screen-flow .pra-field{
  padding:10px 11px!important;
  border-radius:12px!important;
}
.pra-one-screen-flow .pra-field textarea{
  min-height:68px!important;
}
.pra-one-screen-flow .pra-primary-action{
  margin-top:10px!important;
  padding:11px 13px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pra-one-screen-flow .pra-primary-action strong{
  font-size:18px!important;
}
.pra-one-screen-flow .pra-reference-drawer{
  margin-top:10px!important;
}
.pra-one-screen-flow .pra-reference-drawer>summary{
  min-height:42px!important;
  padding:9px 12px!important;
}
.pra-one-screen-flow .pra-reference-drawer .pra-candidate-preview{
  padding:10px!important;
}
.pra-stage-one .pra-risk-worktable .prd-head p{
  display:none!important;
}
.pra-stage-one .pra-risk-worktable .prd-head h3{
  font-size:19px!important;
}
@media(max-width:900px){
  .pra-stage-one .pra-active-next{align-items:flex-start!important;flex-direction:column!important}
  .pra-stage-one .pra-thin-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Stage-one execution: compact current-program status strip, not a command card gallery. */
.at-execution-worksheet .at-exec-strip{
  display:grid!important;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr)!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 12px!important;
  padding:10px 12px!important;
  border:1px solid #d8e5f3!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.at-execution-worksheet .at-exec-strip-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
}
.at-execution-worksheet .at-exec-strip-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.at-execution-worksheet .at-exec-strip-head strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.3!important;
}
.at-execution-worksheet .at-exec-strip-head small{
  display:block!important;
  margin-top:2px!important;
  overflow:hidden!important;
  color:#64748b!important;
  font-size:12px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-execution-worksheet .at-exec-strip-head b{
  flex:0 0 auto!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#ecfdf5!important;
  color:#047857!important;
  font-size:12px!important;
}
.at-execution-worksheet .at-exec-strip-pills{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:7px!important;
}
.at-execution-worksheet .at-exec-pill{
  min-height:0!important;
  padding:7px 9px!important;
  border:1px solid #e2e8f0!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  color:#334155!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.at-execution-worksheet .at-exec-pill.is-ok{
  border-color:#bbf7d0!important;
  background:#f0fdf4!important;
}
.at-execution-worksheet .at-exec-pill.is-warn{
  border-color:#fed7aa!important;
  background:#fff7ed!important;
}
.at-execution-worksheet .at-exec-pill span{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:900!important;
}
.at-execution-worksheet .at-exec-pill strong{
  display:block!important;
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.3!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
@media(max-width:1100px){
  .at-execution-worksheet .at-exec-strip{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  .at-execution-worksheet .at-exec-strip-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* 批次38：风险清单首页极简化，只保留四步导航、六个模块和一键生成 */
.preaudit-workbench-nav.is-lean{
  margin:0 0 14px!important;
  padding:0!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.preaudit-workbench-nav.is-lean .preaudit-current{
  min-height:48px!important;
  padding:10px 14px!important;
  border-bottom:1px solid #e5edf7!important;
  background:#fbfdff!important;
}
.preaudit-workbench-nav.is-lean .preaudit-current span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}
.preaudit-workbench-nav.is-lean .preaudit-current strong{
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:19px!important;
}
.preaudit-workbench-nav.is-lean .preaudit-steps{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  padding:0!important;
}
.preaudit-workbench-nav.is-lean .preaudit-step{
  min-height:52px!important;
  padding:10px 12px!important;
  border:0!important;
  border-right:1px solid #e5edf7!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
.preaudit-workbench-nav.is-lean .preaudit-step:last-child{
  border-right:0!important;
}
.preaudit-workbench-nav.is-lean .preaudit-step b{
  width:26px!important;
  height:26px!important;
  border-radius:999px!important;
  font-size:12px!important;
}
.preaudit-workbench-nav.is-lean .preaudit-step strong{
  color:#172033!important;
  font-size:15px!important;
}
.preaudit-workbench-nav.is-lean .preaudit-step.is-active{
  background:#eff6ff!important;
}
.pra-risk-clean-board{
  display:grid!important;
  gap:14px!important;
  padding:0!important;
}
.pra-clean-module-panel{
  width:100%!important;
  padding:16px!important;
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.pra-clean-module-panel .pra-section-head{
  margin-bottom:12px!important;
}
.pra-clean-module-panel .pra-section-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}
.pra-clean-module-panel .pra-section-head h3{
  margin:2px 0 0!important;
  color:#0f172a!important;
  font-size:22px!important;
}
.pra-six-module-list{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.pra-six-module-list .pra-module-card{
  min-height:58px!important;
  padding:13px 14px!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.pra-six-module-list .pra-module-card strong{
  font-size:17px!important;
}
.pra-six-module-list .pra-module-card em{
  font-size:12px!important;
}
.pra-clean-action-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:14px 16px!important;
  border:1px solid #bfdbfe!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}
.pra-active-minimal{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.pra-active-minimal span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
}
.pra-active-minimal h3{
  margin:0!important;
  color:#0f172a!important;
  font-size:20px!important;
}
.pra-active-minimal .pra-existing-assessment{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.pra-clean-action-row #pra-load-risk-candidates{
  flex:0 0 auto!important;
  min-width:180px!important;
  min-height:44px!important;
  font-size:16px!important;
  font-weight:900!important;
}
.pra-one-screen-flow .pra-project-baseline,
.pra-one-screen-flow .pra-task-strip,
.pra-one-screen-flow .pra-planning-layout,
.pra-one-screen-flow .pra-module-workarea{
  display:none!important;
}
html[data-theme="dark"] .preaudit-workbench-nav.is-lean,
html[data-theme="dark"] .preaudit-workbench-nav.is-lean .preaudit-step,
html[data-theme="dark"] .pra-clean-module-panel,
html[data-theme="dark"] .pra-clean-action-row{
  background:#1b2940!important;
  border-color:#314158!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .preaudit-workbench-nav.is-lean .preaudit-current,
html[data-theme="dark"] .preaudit-workbench-nav.is-lean .preaudit-step.is-active{
  background:#172235!important;
}
html[data-theme="dark"] .preaudit-workbench-nav.is-lean .preaudit-current strong,
html[data-theme="dark"] .preaudit-workbench-nav.is-lean .preaudit-step strong,
html[data-theme="dark"] .pra-clean-module-panel .pra-section-head h3,
html[data-theme="dark"] .pra-active-minimal h3{
  color:#f1f5f9!important;
}
@media(max-width:900px){
  .preaudit-workbench-nav.is-lean .preaudit-steps,
  .pra-six-module-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pra-clean-action-row{align-items:stretch!important;flex-direction:column!important}
  .pra-clean-action-row #pra-load-risk-candidates{width:100%!important}
}

/* 批次39：项目风险清单改为左模块导航 + 右侧表格清单，停止大卡片堆砌 */
.pra-risk-split-board{
  grid-template-columns:260px minmax(0,1fr)!important;
  align-items:start!important;
  gap:16px!important;
}
.pra-risk-split-board .pra-clean-module-panel{
  padding:14px!important;
}
.pra-risk-split-board .pra-clean-module-panel .pra-section-head h3{
  font-size:18px!important;
}
.pra-risk-split-board .pra-six-module-list{
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.pra-risk-split-board .pra-six-module-list .pra-module-card{
  min-height:44px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  text-align:left!important;
}
.pra-risk-split-board .pra-six-module-list .pra-module-card strong{
  font-size:15px!important;
}
.pra-risk-split-board .pra-six-module-list .pra-module-card em{
  font-size:11px!important;
}
.pra-module-risk-board{
  display:grid!important;
  gap:12px!important;
  min-width:0!important;
}
.pra-risk-table-action{
  min-height:58px!important;
  padding:10px 12px!important;
}
.pra-risk-table-buttons{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.pra-risk-table-buttons .btn{
  white-space:nowrap!important;
}
.pra-module-risk-table{
  overflow:hidden!important;
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#fff!important;
}
.pra-risk-table-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
  border-bottom:1px solid #e6edf7!important;
}
.pra-risk-table-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}
.pra-risk-table-head-actions small{
  margin-right:4px;
  color:#64748b;
  font-size:12px;
}
.pra-risk-table-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pra-risk-table-head h3{
  margin:2px 0 0!important;
  font-size:20px!important;
  color:#0f172a!important;
}
.pra-module-risk-table table,
.pra-simple-risk-list table{
  width:100%!important;
  border-collapse:collapse!important;
}
.pra-module-risk-table th,
.pra-module-risk-table td,
.pra-simple-risk-list th,
.pra-simple-risk-list td{
  padding:12px 14px!important;
  border-bottom:1px solid #edf2f7!important;
  vertical-align:top!important;
  text-align:left!important;
}
.pra-module-risk-table th,
.pra-simple-risk-list th{
  color:#64748b!important;
  background:#f8fafc!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pra-module-risk-table td strong,
.pra-simple-risk-list td strong{
  display:block!important;
  color:#0f172a!important;
  font-size:15px!important;
  line-height:1.45!important;
}
.pra-simple-risk-list td b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  height:24px!important;
  margin:0 8px 0 0!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
  vertical-align:top!important;
}
.pra-simple-risk-list td b+strong{
  display:inline!important;
}
.pra-module-risk-table td small,
.pra-simple-risk-list td small{
  display:block!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.55!important;
}
.pra-module-risk-table textarea,
.pra-module-risk-table select{
  width:100%!important;
  min-height:38px!important;
  padding:8px 9px!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0f172a!important;
  font:inherit!important;
  font-size:13px!important;
  line-height:1.4!important;
}
.pra-module-risk-table textarea{
  min-height:58px!important;
  resize:vertical!important;
}
.pra-module-risk-table textarea:focus,
.pra-module-risk-table select:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.1)!important;
  outline:0!important;
}
.pra-module-risk-table th:nth-child(1),
.pra-module-risk-table td:nth-child(1){
  width:74px!important;
}
.pra-module-risk-table th:nth-child(3),
.pra-module-risk-table td:nth-child(3),
.pra-module-risk-table th:nth-child(5),
.pra-module-risk-table td:nth-child(5){
  width:132px!important;
}
.pra-module-risk-table th:nth-child(6),
.pra-module-risk-table td:nth-child(6){
  width:92px!important;
}
.pra-module-risk-table tr.is-custom td:first-child strong:after{
  content:"自定义"!important;
  display:inline-flex!important;
  margin-left:8px!important;
  padding:2px 6px!important;
  border-radius:999px!important;
  background:#ecfdf5!important;
  color:#047857!important;
  font-size:11px!important;
}
.pra-risk-table-empty{
  padding:34px!important;
  color:#64748b!important;
  text-align:center!important;
}
.pra-simple-risk-register{
  display:grid!important;
  gap:12px!important;
}
.pra-simple-risk-head,
.pra-simple-risk-next{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#fff!important;
}
.pra-simple-risk-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pra-simple-risk-head h2{
  margin:2px 0 4px!important;
  font-size:24px!important;
  color:#0f172a!important;
}
.pra-simple-risk-head p,
.pra-simple-risk-next span{
  margin:0!important;
  color:#64748b!important;
}
.pra-simple-risk-head>div:last-child{
  display:flex!important;
  gap:10px!important;
}
.pra-simple-risk-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 360px!important;
  gap:14px!important;
  align-items:start!important;
}
.pra-simple-risk-list,
.pra-simple-risk-note{
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.pra-simple-risk-toolbar{
  display:flex!important;
  justify-content:space-between!important;
  padding:12px 14px!important;
  border-bottom:1px solid #e6edf7!important;
}
.pra-simple-risk-list tr{
  cursor:pointer!important;
}
.pra-simple-risk-list tr.is-active{
  background:#eff6ff!important;
}
.pra-simple-risk-note{
  display:grid!important;
  gap:10px!important;
  padding:16px!important;
  overflow:visible!important;
}
.pra-simple-risk-note>span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pra-simple-risk-note h3{
  margin:0!important;
  color:#0f172a!important;
  font-size:20px!important;
}
.pra-simple-risk-note p{
  margin:0!important;
  color:#64748b!important;
  line-height:1.55!important;
}
.pra-simple-risk-note label{
  display:grid!important;
  gap:6px!important;
  color:#334155!important;
  font-weight:800!important;
}
.pra-simple-risk-note select,
.pra-simple-risk-note textarea{
  width:100%!important;
  border:1px solid #cbd5e1!important;
  border-radius:10px!important;
  padding:9px 10px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.pra-simple-risk-note textarea{
  min-height:74px!important;
  resize:vertical!important;
}
.pra-simple-risk-support{
  display:grid!important;
  gap:6px!important;
  padding:12px!important;
  border-radius:12px!important;
  background:#f8fafc!important;
}
.pra-simple-risk-support summary{
  cursor:pointer!important;
  color:#0f172a!important;
  font-weight:900!important;
}
.pra-simple-risk-support:not([open]){
  padding:10px 12px!important;
}
.pra-simple-risk-support:not([open]) strong,
.pra-simple-risk-support:not([open]) p,
.pra-simple-risk-support:not([open]) ol{
  display:none!important;
}
.pra-simple-risk-support ol{
  margin:0 0 0 18px!important;
  padding:0!important;
}

/* 批次41：审计方案回到主审视角，展示范围、模块、风险和业务分工 */
.wf-scheme-detail-page .stage-one-split-workbench{
  grid-template-columns:minmax(300px,.48fr) minmax(0,1.52fr)!important;
  align-items:start!important;
}
.wf-scheme-detail-page .wf-scheme-right-panel{
  display:grid!important;
  gap:12px!important;
}
.wf-scheme-detail-page .wf-scheme-left-panel{
  display:grid!important;
  gap:10px!important;
  position:sticky!important;
  top:12px!important;
  align-self:start!important;
}
.wf-scheme-side-nav{
  display:grid!important;
  gap:6px!important;
  padding:10px!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:#fff!important;
}
.wf-scheme-side-head{
  padding:6px 6px 8px!important;
  border-bottom:1px solid #edf2f7!important;
}
.wf-scheme-side-head span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-side-head strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:17px!important;
  line-height:1.3!important;
}
.wf-scheme-side-head small{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:13px!important;
}
.wf-scheme-side-nav button{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  grid-template-areas:"no label" "no hint"!important;
  align-items:center!important;
  gap:1px 9px!important;
  width:100%!important;
  padding:9px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#0f172a!important;
  text-align:left!important;
  cursor:pointer!important;
}
.wf-scheme-side-nav button:hover{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
}
.wf-scheme-side-nav button b{
  grid-area:no!important;
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  background:#eaf2ff!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-side-nav button span{
  grid-area:label!important;
  color:#0f172a!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:1.2!important;
}
.wf-scheme-side-nav button small{
  grid-area:hint!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.3!important;
}
.wf-scheme-detail-page .wf-scheme-right-panel .wf-module-assign-card,
.wf-scheme-detail-page .wf-scheme-right-panel .wf-program-ledger{
  height:auto!important;
  margin:0!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  padding:12px 14px!important;
  border-top:1px solid #e2e8f0!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board article{
  padding:12px!important;
  border:1px solid #e2e8f0!important;
  border-radius:13px!important;
  background:#f8fafc!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board article>span{
  display:block!important;
  margin-bottom:5px!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board article strong{
  display:block!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.35!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board article p,
.wf-scheme-detail-page .wf-scheme-chief-board article small{
  display:block!important;
  margin:6px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board ul{
  margin:8px 0 0 18px!important;
  padding:0!important;
  color:#334155!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.wf-scheme-detail-page .wf-scheme-module-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin-top:8px!important;
}
.wf-scheme-detail-page .wf-scheme-module-chips span,
.wf-scheme-detail-page .wf-ma-risks span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:4px 8px!important;
  border:1px solid #bfdbfe!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit{
  border-top:1px solid #e2e8f0!important;
}
.wf-scheme-detail-page .wf-module-assign-card{
  padding:0!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.wf-scheme-detail-page .wf-module-assign-head{
  margin:0!important;
  padding:12px 14px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fbfdff!important;
}
.wf-scheme-detail-page .wf-module-assign-head h3{
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-module-assign-head p{
  max-width:720px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.wf-scheme-detail-page .wf-ma-grid{
  border:0!important;
  border-radius:0!important;
}
.wf-scheme-detail-page .wf-ma-row{
  grid-template-columns:minmax(130px,.72fr) minmax(220px,1.35fr) minmax(118px,.62fr) minmax(150px,.78fr) 128px 112px!important;
  gap:8px!important;
  padding:9px 12px!important;
}
.wf-scheme-detail-page .wf-ma-risks{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
}
.wf-scheme-detail-page .wf-ma-risks span{
  border-color:#e2e8f0!important;
  background:#f8fafc!important;
  color:#334155!important;
}
html[data-theme="dark"] .wf-scheme-detail-page .wf-scheme-chief-board,
html[data-theme="dark"] .wf-scheme-detail-page .wf-module-assign-card,
html[data-theme="dark"] .wf-scheme-side-nav{
  background:#1b2940!important;
  border-color:#314158!important;
}
html[data-theme="dark"] .wf-scheme-detail-page .wf-scheme-chief-board article,
html[data-theme="dark"] .wf-scheme-detail-page .wf-module-assign-head{
  background:#172235!important;
  border-color:#314158!important;
}
html[data-theme="dark"] .wf-scheme-detail-page .wf-scheme-chief-board article strong{
  color:#f1f5f9!important;
}
html[data-theme="dark"] .wf-scheme-side-head{
  border-color:#314158!important;
}
html[data-theme="dark"] .wf-scheme-side-head strong,
html[data-theme="dark"] .wf-scheme-side-nav button span{
  color:#f1f5f9!important;
}
html[data-theme="dark"] .wf-scheme-side-nav button:hover{
  background:#172235!important;
  border-color:#3b4f6b!important;
}
@media(max-width:1100px){
  .wf-scheme-detail-page .stage-one-split-workbench,
  .wf-scheme-detail-page .wf-ma-row{
    grid-template-columns:1fr!important;
  }
  .wf-scheme-detail-page .wf-scheme-left-panel{
    position:static!important;
  }
  .wf-scheme-detail-page .wf-ma-header{display:none!important}
}
html[data-theme="dark"] .pra-module-risk-table,
html[data-theme="dark"] .pra-simple-risk-head,
html[data-theme="dark"] .pra-simple-risk-next,
html[data-theme="dark"] .pra-simple-risk-list,
html[data-theme="dark"] .pra-simple-risk-note{
  background:#1b2940!important;
  border-color:#314158!important;
}
html[data-theme="dark"] .pra-risk-table-head,
html[data-theme="dark"] .pra-simple-risk-toolbar,
html[data-theme="dark"] .pra-module-risk-table th,
html[data-theme="dark"] .pra-simple-risk-list th,
html[data-theme="dark"] .pra-simple-risk-support{
  background:#172235!important;
  border-color:#314158!important;
}
html[data-theme="dark"] .pra-risk-table-head h3,
html[data-theme="dark"] .pra-simple-risk-head h2,
html[data-theme="dark"] .pra-simple-risk-note h3,
html[data-theme="dark"] .pra-module-risk-table td strong,
html[data-theme="dark"] .pra-simple-risk-list td strong{
  color:#f1f5f9!important;
}
@media(max-width:1100px){
  .pra-risk-split-board,
  .pra-simple-risk-layout{
    grid-template-columns:1fr!important;
  }
}

/* 批次40：资料台账和审计方案去重复标题、去大任务卡，回到清单/方案本体 */
.pmat-clean-page .preaudit-workbench-nav.is-lean,
.wf-stage-one .preaudit-workbench-nav.is-lean,
.wf-scheme-detail-page .preaudit-workbench-nav.is-lean{
  margin-bottom:12px!important;
}
.pmat-clean-command{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:14px!important;
  margin:0 0 12px!important;
  padding:12px 14px!important;
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.pmat-clean-command span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.pmat-clean-command strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:19px!important;
  line-height:1.3!important;
}
.pmat-clean-command small{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:13px!important;
}
.pmat-clean-command dl{
  display:flex!important;
  gap:8px!important;
  margin:0!important;
}
.pmat-clean-command dl div{
  min-width:64px!important;
  padding:6px 9px!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  text-align:center!important;
}
.pmat-clean-command dt{
  color:#0f172a!important;
  font-size:18px!important;
  font-weight:950!important;
}
.pmat-clean-command dd{
  margin:1px 0 0!important;
  color:#64748b!important;
  font-size:12px!important;
}
.pmat-clean-workspace{
  grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr)!important;
  gap:14px!important;
}
.pmat-clean-page .pmat-ledger-brief{
  margin:0!important;
  padding:9px 11px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.pmat-clean-page .pmat-ledger-brief p{
  display:none!important;
}
.pmat-clean-page .pmat-ledger-brief strong{
  font-size:16px!important;
}
.pmat-clean-page .pmat-reference-primary{
  order:1!important;
}
.pmat-clean-page .pmat-current-material{
  order:2!important;
}
.pmat-clean-page .pmat-insight-drawer{
  order:3!important;
}
.pmat-clean-page .pmat-optional-tools{
  order:4!important;
}
.pmat-clean-page .pmat-reference-primary>details{
  border:1px solid #cfe0f5!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.pmat-clean-page .pmat-reference-primary>details>summary{
  border:0!important;
  border-bottom:1px solid #e6edf7!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.pmat-clean-page .pmat-reference-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 14px!important;
}
.pmat-clean-page .pmat-reference-head h3{
  margin:2px 0 0!important;
  font-size:18px!important;
}
.pmat-clean-page .pmat-reference-head p{
  margin:4px 0 0!important;
  font-size:13px!important;
}
.pmat-clean-page .pmat-reference-actions{
  display:flex!important;
  gap:8px!important;
  flex:0 0 auto!important;
}
.pmat-clean-page .pmat-reference-filters{
  padding:0 14px 10px!important;
}
.pmat-clean-page .pmat-reference-count{
  margin:0 14px 10px!important;
  font-size:12px!important;
}
.pmat-clean-page .pmat-reference-list{
  padding:0 14px 14px!important;
}
.wf-clean-header{
  margin-bottom:10px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.wf-clean-header .wf-title{
  margin:2px 0 0!important;
  font-size:22px!important;
}
.wf-clean-header .wf-page-desc{
  display:none!important;
}
.wf-clean-context{
  margin:0 0 10px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
  font-size:13px!important;
}
.wf-scheme-clean-action{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:10px!important;
  margin:0 0 12px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-scheme-clean-action .wf-scheme-action-main p{
  display:none!important;
}
.wf-scheme-clean-action .wf-scheme-action-main strong{
  font-size:17px!important;
}
.wf-scheme-clean-action .wf-scheme-todo-item{
  min-height:34px!important;
  padding:6px 9px!important;
}
.wf-clean-detail-toolbar{
  margin-bottom:10px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-clean-detail-toolbar .wf-detail-toolbar-main span{
  font-size:12px!important;
}
.wf-clean-detail-toolbar .wf-detail-toolbar-main strong{
  font-size:17px!important;
}
.wf-scheme-detail-page .wf-scheme-compact-summary{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html[data-theme="dark"] .pmat-clean-command,
html[data-theme="dark"] .pmat-clean-page .pmat-reference-primary>details{
  background:#1b2940!important;
  border-color:#314158!important;
}
html[data-theme="dark"] .pmat-clean-command strong,
html[data-theme="dark"] .wf-clean-header .wf-title{
  color:#f1f5f9!important;
}
@media(max-width:1100px){
  .pmat-clean-command,
  .pmat-clean-workspace,
  .wf-scheme-clean-action{
    grid-template-columns:1fr!important;
  }
  .pmat-clean-command dl{width:100%!important}
  .pmat-clean-command dl div{flex:1!important}
  .pmat-clean-page .pmat-reference-actions{width:100%!important;flex-direction:column!important}
}

/* 批次42：审前规划三页统一使用页头 + 当前项目阶段条，旧重复流程定位不再占用首屏 */
#view-home .preaudit-workbench-nav.is-lean,
#view-materials .preaudit-workbench-nav.is-lean,
#view-taskarrange .preaudit-workbench-nav.is-lean{
  display:none!important;
}
.preaudit-workbench-nav.is-lean .preaudit-current{
  min-height:54px!important;
  border-right:1px solid #e5edf7!important;
  border-bottom:0!important;
}
.preaudit-workbench-nav.is-lean .preaudit-current strong{
  font-size:17px!important;
}
.preaudit-workbench-nav.is-lean .preaudit-steps{
  min-width:0!important;
}
.pmat-clean-command{
  grid-template-columns:minmax(0,1fr) auto!important;
  padding:10px 12px!important;
}
.pmat-clean-command small{
  display:none!important;
}
.pmat-clean-command dl div{
  min-width:56px!important;
  padding:5px 8px!important;
}
.pmat-clean-workspace{
  grid-template-columns:minmax(0,1.45fr) minmax(420px,.85fr)!important;
  align-items:start!important;
}
.pmat-clean-page .pmat-list-head{
  padding:12px 14px!important;
}
.pmat-clean-page .pmat-list-head span{
  display:none!important;
}
.pmat-clean-page .pmat-ledger-brief{
  display:none!important;
}
.pmat-clean-page .pmat-reference-primary{
  min-width:420px!important;
}
.pmat-clean-page .pmat-reference-primary>details>summary{
  min-height:46px!important;
  padding:10px 12px!important;
}
.pmat-clean-page .pmat-reference-primary>details>summary small{
  display:none!important;
}
.pmat-clean-page .pmat-reference-head{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  padding:12px!important;
}
.pmat-clean-page .pmat-reference-head p{
  display:none!important;
}
.pmat-clean-page .pmat-reference-actions{
  width:100%!important;
}
.pmat-clean-page .pmat-reference-actions .btn{
  flex:1 1 0!important;
  justify-content:center!important;
}
.pmat-clean-page .pmat-reference-list{
  max-height:560px!important;
  overflow:auto!important;
}
.pmat-clean-page .pmat-compact-table{
  min-width:980px!important;
}
.pmat-clean-page .pmat-compact-table .pmat-name-cell small b{
  max-width:180px!important;
}
.wf-scheme-detail-page .wf-clean-detail-toolbar{
  grid-template-columns:minmax(0,1fr) auto!important;
}
.wf-scheme-detail-page .wf-clean-detail-toolbar .wf-back-btn{
  display:none!important;
}
@media(max-width:1100px){
  #view-home .preaudit-workbench-nav.is-lean,
  #view-materials .preaudit-workbench-nav.is-lean,
  #view-taskarrange .preaudit-workbench-nav.is-lean,
  .pmat-clean-workspace{
    grid-template-columns:1fr!important;
  }
  .pmat-clean-page .pmat-reference-primary{
    min-width:0!important;
  }
}

/* 批次39：审计工具箱快速检查差异化工具页 */
  .toolbox-tool-use,
  .toolbox-tool-card .toolbox-tool-use{
  width:auto!important;
  min-width:104px!important;
  padding:0 16px!important;
  white-space:nowrap!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.toolbox-task-current .toolbox-tool-use{
  min-width:116px!important;
}
.tb-data-panel{
  display:grid;
  gap:14px;
}
.tb-data-panel .tb-panel-head{
  display:grid;
  gap:5px;
}
.tb-data-blueprint{
  border:1px solid #d7e5f7;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#eef6ff);
  padding:16px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.tb-data-blueprint header,
.tb-rule-window-board,
.tb-sampling-board{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
}
.tb-data-blueprint span{
  display:block;
  color:#2563eb;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.04em;
}
.tb-data-blueprint strong{
  display:block;
  margin-top:2px;
  color:#0f172a;
  font-size:1rem;
  font-weight:900;
}
.tb-data-blueprint p,
.tb-data-blueprint small{
  margin:6px 0 0;
  color:#52637a;
  line-height:1.55;
}
.tb-health-dimensions,
.tb-concentration-metrics,
.tb-sample-methods{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.tb-health-board .tb-health-dimensions{grid-template-columns:repeat(4,minmax(0,1fr))}
.tb-health-purpose{display:grid;grid-template-columns:minmax(150px,.35fr) minmax(220px,.65fr);gap:6px 14px;align-items:center;margin-top:14px;padding:12px 14px;border:1px solid #cfe0f4;border-radius:13px;background:#fff}
.tb-health-purpose>span{color:#243b56;font-size:.78rem}
.tb-health-purpose select{width:100%;min-height:38px;border:1px solid #cbd9ea;border-radius:9px;background:#fff;padding:0 10px;color:#172b46;font:inherit;font-weight:800}
.tb-health-purpose small{grid-column:2;margin:0;color:#60738c}
.tb-health-template-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;margin-top:12px;padding:12px 14px;border:1px solid #cfe0f4;border-radius:12px;background:#fff}
.tb-health-template-note strong{margin:0;font-size:.84rem}
.tb-health-template-note span{color:#536983;font-size:.78rem;letter-spacing:0}
.tb-health-template-note[hidden],.tb-health-dimensions[hidden],.tb-field-drawer[hidden]{display:none!important}
.tb-health-dimensions article,
.tb-concentration-metrics article,
.tb-sample-methods article,
.tb-duplicate-rules,
.tb-duplicate-review{
  border:1px solid #dce8f5;
  border-radius:13px;
  background:#fff;
  padding:12px;
}
.tb-health-dimensions b,
.tb-concentration-metrics b{
  display:block;
  color:#0f172a;
  font-size:.88rem;
}
.tb-duplicate-board{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.55fr);
  gap:14px;
  background:linear-gradient(135deg,#fff7ed,#eff6ff);
}
.tb-duplicate-rules,
.tb-duplicate-review{
  display:grid;
  gap:9px;
}
.tb-duplicate-rules label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#334155;
  font-size:.82rem;
  font-weight:800;
}
.tb-duplicate-review ol{
  margin:4px 0 0 18px;
  color:#52637a;
  line-height:1.65;
}
.tb-rule-window-board{
  background:linear-gradient(135deg,#ecfeff,#f8fafc);
}
.tb-rule-params{
  display:grid;
  grid-template-columns:repeat(2,minmax(130px,1fr));
  gap:10px;
  min-width:320px;
}
.tb-rule-params label,
.tb-sample-methods label{
  display:grid;
  gap:6px;
  color:#334155;
  font-size:.78rem;
  font-weight:900;
}
.tb-rule-params input,
.tb-sample-methods input{
  height:40px;
  border:1px solid #cfe0f4;
  border-radius:10px;
  padding:0 10px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
}
.tb-concentration-board{
  background:linear-gradient(135deg,#f0fdf4,#eef6ff);
}
.tb-sampling-board{
  background:linear-gradient(135deg,#f5f3ff,#f8fafc);
  grid-template-columns:minmax(250px,.58fr) minmax(520px,1fr);
  align-items:start;
}
.tb-sample-methods{
  grid-template-columns:minmax(220px,1fr) 140px;
  align-items:end;
  margin-top:0;
  min-width:0;
}
.tb-sample-methods select{
  height:40px;
  border:1px solid #cfe0f4;
  border-radius:10px;
  padding:0 10px;
  background:#fff;
  color:#0f172a;
  font-weight:800;
}
.tb-sample-strategies{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.tb-sample-methods .tb-sample-strategies article{
  min-height:74px;
  display:grid;
  align-content:center;
  justify-content:stretch;
  gap:4px;
  color:#334155;
  font-size:.82rem;
  text-align:left;
  transition:.18s ease;
}
.tb-sample-strategies article b{
  color:#1e293b;
  font-size:.84rem;
}
.tb-sample-strategies article small{
  margin:0;
  color:#64748b;
  font-size:.74rem;
  line-height:1.45;
}
.tb-sample-strategies article.is-active{
  border-color:#8b5cf6;
  background:#f5f3ff;
  box-shadow:0 0 0 2px rgba(139,92,246,.08);
}
.tb-sample-strategies article.is-active b{
  color:#6d28d9;
}
.tb-data-workspace{
  display:grid;
  gap:14px;
}
.tb-screening-setup{
  border:1px solid #d7e5f7;
  border-radius:16px;
  background:#f8fbff;
  overflow:hidden;
}
.tb-screening-setup>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
  background:#f4f8fd;
}
.tb-screening-setup>summary::-webkit-details-marker{display:none}
.tb-screening-setup>summary div{display:grid;gap:3px}
.tb-screening-setup>summary span{color:#2563eb;font-size:.72rem;font-weight:950}
.tb-screening-setup>summary strong{color:#17233c;font-size:.94rem}
.tb-screening-setup>summary::after{
  content:"展开设置";
  flex:0 0 auto;
  color:#2563eb;
  font-size:.76rem;
  font-weight:900;
}
.tb-screening-setup[open]>summary::after{content:"收起设置"}
.tb-screening-setup-body{
  display:grid;
  gap:12px;
  padding:14px;
  border-top:1px solid #e3ebf5;
  background:#fff;
}
html[data-theme="dark"] .tb-screening-setup{border-color:#314158;background:#172235}
html[data-theme="dark"] .tb-screening-setup>summary{background:#192337}
html[data-theme="dark"] .tb-screening-setup>summary strong{color:#e6eefb}
html[data-theme="dark"] .tb-screening-setup-body{border-color:#314158;background:#121a28}
.tb-data-upload-block{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.tb-upload-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid #d7e5f7;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);
}
.tb-data-upload-block .tb-file-drop{
  min-height:94px;
  padding:16px;
}
.tb-data-upload-block .tb-file-drop span{
  font-size:.72rem;
}
.tb-data-upload-block .tb-file-drop strong{
  font-size:1.18rem;
}
.tb-data-upload-block .tb-file-drop small{
  max-width:520px;
  font-size:.82rem;
}
.tb-template-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.tb-template-actions .btn{
  min-height:34px;
  white-space:nowrap;
}
.tb-upload-note{
  grid-column:1/-1;
  margin:0;
  color:#52637a;
  font-size:.76rem;
  line-height:1.55;
}
.tb-data-upload-block.is-health-upload{
  display:block;
}
.tb-health-upload-stage{
  overflow:hidden;
  border:1px solid #b8d2ef;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 28px rgba(30,78,132,.08);
}
.tb-health-upload-stage>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border-bottom:1px solid #dce8f5;
  background:#f8fbff;
}
.tb-health-upload-stage>header div{
  display:grid;
  gap:3px;
}
.tb-health-upload-stage>header span,
.tb-upload-secondary-card>span{
  color:#2563eb;
  font-size:.72rem;
  font-weight:900;
}
.tb-health-upload-stage>header strong{
  color:#152a44;
  font-size:1rem;
  font-weight:950;
}
.tb-health-upload-stage>header small{
  color:#60738a;
  font-size:.76rem;
  line-height:1.5;
}
.tb-health-upload-stage>header em{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:#e8f2ff;
  color:#1d5fae;
  font-size:.7rem;
  font-style:normal;
  font-weight:900;
}
.tb-health-upload-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(220px,.55fr);
  gap:14px;
  padding:18px;
}
.tb-data-upload-block .tb-file-drop-health{
  position:relative;
  align-items:flex-start;
  min-height:160px;
  padding:24px;
  border:2px dashed #75a8e5;
  border-radius:14px;
  background:#f3f8ff;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease;
}
.tb-data-upload-block .tb-file-drop-health:hover,
.tb-data-upload-block .tb-file-drop-health:focus-within{
  border-color:#2563eb;
  background:#edf5ff;
  box-shadow:0 0 0 4px rgba(37,99,235,.08);
}
.tb-data-upload-block .tb-file-drop-health span{
  color:#31689f;
  font-size:.74rem;
  letter-spacing:0;
}
.tb-data-upload-block .tb-file-drop-health strong{
  max-width:560px;
  color:#102a49;
  font-size:1.25rem;
  line-height:1.35;
}
.tb-data-upload-block .tb-file-drop-health small{
  max-width:600px;
  color:#55708f;
  font-size:.82rem;
}
.tb-upload-primary-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin-top:5px;
  padding:0 18px;
  border-radius:9px;
  background:#2563eb;
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  box-shadow:0 5px 12px rgba(37,99,235,.2);
}
.tb-file-drop-health:active .tb-upload-primary-action{
  transform:translateY(1px);
}
.tb-upload-secondary-card{
  display:grid;
  align-content:center;
  gap:7px;
  min-width:0;
  padding:18px;
  border:1px solid #dbe5f1;
  border-radius:14px;
  background:#f8fafc;
}
.tb-upload-secondary-card>strong{
  color:#233852;
  font-size:.92rem;
}
.tb-upload-secondary-card>small{
  color:#68798f;
  font-size:.75rem;
  line-height:1.55;
}
.tb-upload-secondary-card .tb-template-actions{
  justify-content:flex-start;
  margin-top:6px;
}
.tb-upload-secondary-card .tb-template-actions .btn{
  width:100%;
  min-height:38px;
  background:#fff;
}
.tb-upload-secondary-card .tb-upload-demo-action{
  width:100%;
  min-height:38px;
  border-color:#cdd9e7;
  background:transparent;
  color:#3f5874;
  box-shadow:none;
}
.tb-data-panel-health-report .tb-data-preview.is-empty{
  min-height:148px;
  border-style:dashed;
  border-color:#d8e3ef;
  background:#fbfcfe;
}
.tb-data-panel-health-report .tb-data-preview.is-empty>div{
  max-width:560px;
}
.tb-health-upload-stage>.tb-upload-note{
  margin:0 18px 16px;
  padding-top:12px;
  border-top:1px solid #e5edf6;
  color:#65788f;
}
.tb-data-secondary-options.is-health-secondary{
  grid-template-columns:1fr;
}
.tb-data-secondary-options.is-health-secondary>.tb-raw-data{
  max-width:560px;
  border-style:solid;
  border-color:#e1e8f0;
  background:#fafbfd;
}
.tb-data-secondary-options.is-health-secondary>.tb-raw-data summary{
  padding:11px 13px;
}
html[data-theme="dark"] .tb-health-upload-stage{
  border-color:#3b5676;
  background:#142033;
  box-shadow:none;
}
html[data-theme="dark"] .tb-health-upload-stage>header{
  border-color:#31465f;
  background:#17263a;
}
html[data-theme="dark"] .tb-health-upload-stage>header strong,
html[data-theme="dark"] .tb-upload-secondary-card>strong{
  color:#e7eef8;
}
html[data-theme="dark"] .tb-health-upload-stage>header small,
html[data-theme="dark"] .tb-upload-secondary-card>small,
html[data-theme="dark"] .tb-health-upload-stage>.tb-upload-note{
  color:#a6b5c8;
}
html[data-theme="dark"] .tb-data-upload-block .tb-file-drop-health{
  border-color:#507fb8;
  background:#172b43;
}
html[data-theme="dark"] .tb-data-upload-block .tb-file-drop-health:hover,
html[data-theme="dark"] .tb-data-upload-block .tb-file-drop-health:focus-within{
  border-color:#7eade5;
  background:#1a314d;
}
html[data-theme="dark"] .tb-data-upload-block .tb-file-drop-health strong{
  color:#eef5ff;
}
html[data-theme="dark"] .tb-data-upload-block .tb-file-drop-health small{
  color:#aec0d5;
}
html[data-theme="dark"] .tb-upload-secondary-card,
html[data-theme="dark"] .tb-data-secondary-options.is-health-secondary>.tb-raw-data{
  border-color:#31465f;
  background:#172235;
}
html[data-theme="dark"] .tb-upload-secondary-card .tb-template-actions .btn{
  border-color:#49627e;
  background:#1d3048;
  color:#e7eef8;
}
html[data-theme="dark"] .tb-upload-secondary-card .tb-upload-demo-action{
  border-color:#3f5871;
  background:transparent;
  color:#c8d5e5;
}
html[data-theme="dark"] .tb-data-panel-health-report .tb-data-preview.is-empty{
  border-color:#31465f;
  background:#142033;
}
html[data-theme="dark"] .tb-health-upload-stage>.tb-upload-note{
  border-color:#31465f;
}
.tb-data-secondary-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  align-items:start;
}
.tb-field-drawer{
  min-width:0;
  border:1px solid #d7e5f7;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.tb-field-drawer[open]{
  grid-column:1/-1;
}
.tb-field-drawer summary,
.tb-tool-guidance-drawer summary{
  cursor:pointer;
  list-style:none;
  padding:13px 14px;
  color:#0f172a;
  font-size:.86rem;
  font-weight:900;
}
.tb-field-drawer summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 12px;
  align-items:center;
}
.tb-field-drawer summary span{
  grid-column:1;
  color:#0f172a;
}
.tb-field-drawer summary small{
  grid-column:1;
  color:#64748b;
  font-size:.72rem;
  line-height:1.4;
  font-weight:700;
}
.tb-field-drawer summary::-webkit-details-marker,
.tb-tool-guidance-drawer summary::-webkit-details-marker{
  display:none;
}
.tb-field-drawer summary::after,
.tb-tool-guidance-drawer summary::after{
  content:"展开";
  grid-column:2;
  grid-row:1/3;
  color:#2563eb;
  font-size:.72rem;
}
.tb-field-drawer[open] summary::after,
.tb-tool-guidance-drawer[open] summary::after{
  content:"收起";
}
.tb-data-field-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 14px 12px;
}
.tb-data-field-chips span{
  border-radius:999px;
  background:#eef6ff;
  color:#1d4ed8;
  padding:5px 9px;
  font-size:.72rem;
  font-weight:900;
}
.tb-field-checklist{
  margin:0 14px 14px;
  border-radius:12px;
}
.tb-field-checklist-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid #e2e8f0;
  background:#fbfdff;
}
.tb-field-checklist-head>div{
  display:grid;
  gap:3px;
}
.tb-field-checklist-head strong{
  color:#0f172a;
  font-size:.82rem;
  font-weight:950;
}
.tb-field-checklist-head span{
  color:#2563eb;
  font-size:.72rem;
  font-weight:900;
}
.tb-field-checklist table{
  min-width:980px;
}
.tb-field-meaning{
  max-width:360px;
  margin:5px 0 0;
  color:#52637a;
  font-size:.7rem;
  line-height:1.5;
}
.tb-field-map-select{
  width:100%;
  min-width:180px;
  height:32px;
  border:1px solid #cfe0f4;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  font-size:.72rem;
  outline:none;
}
.tb-field-map-select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}
.tb-field-choice{
  display:inline-grid;
  place-items:center;
  position:relative;
  width:26px;
  height:26px;
  cursor:pointer;
}
.tb-field-choice input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  pointer-events:auto;
  z-index:1;
}
.tb-field-choice span{
  display:block;
  width:18px;
  height:18px;
  border:1px solid #b9c9dc;
  border-radius:6px;
  background:#fff;
}
.tb-field-choice input:checked + span{
  border-color:#2563eb;
  background:#2563eb;
  box-shadow:inset 0 0 0 3px #fff;
}
.tb-field-checklist em{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  font-style:normal;
  font-size:.68rem;
  font-weight:950;
}
.tb-field-checklist em.required{
  background:#fff7ed;
  color:#c2410c;
}
.tb-field-checklist em.optional{
  background:#f1f5f9;
  color:#475569;
}
.tb-field-checklist tr.is-matched td{
  background:#f0fdf4;
}
.tb-field-checklist tr.is-matched td:first-child::after{
  content:"已识别";
  display:inline-block;
  margin-left:4px;
  color:#15803d;
  font-size:.64rem;
  font-weight:950;
}
.tb-field-checklist tr.is-manual-mapped td:first-child::after{
  content:"已映射";
  color:#1d4ed8;
}
.tb-field-checklist tr.is-missing td{
  background:#fff7ed;
}
.tb-field-checklist tr.is-missing td:first-child::after{
  content:"缺失";
  display:inline-block;
  margin-left:4px;
  color:#c2410c;
  font-size:.64rem;
  font-weight:950;
}
.tb-data-preview{
  min-height:220px;
  border:1px solid #d7e5f7;
  border-radius:15px;
  background:#fff;
  overflow:hidden;
}
.tb-data-preview.is-empty{
  display:grid;
  place-items:center;
  min-height:220px;
  padding:16px;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
}
.tb-data-preview.is-empty div{
  text-align:center;
}
.tb-data-preview span,
.tb-data-preview-head span{
  display:block;
  color:#2563eb;
  font-size:.72rem;
  font-weight:950;
}
.tb-data-preview strong,
.tb-data-preview-head strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:.96rem;
  font-weight:950;
}
.tb-data-preview small,
.tb-data-preview-head small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.76rem;
  line-height:1.45;
}
.tb-data-preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid #e2e8f0;
  background:#f8fbff;
}
.tb-data-preview-head b{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.72rem;
  font-weight:950;
}
.tb-data-preview-table{
  overflow:auto;
  max-height:420px;
}
.tb-data-preview-table table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}
.tb-data-preview-table th,
.tb-data-preview-table td{
  padding:9px 11px;
  border-bottom:1px solid #edf2f7;
  text-align:left;
  color:#334155;
  font-size:.76rem;
  line-height:1.45;
  white-space:nowrap;
}
.tb-data-preview-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f8fafc;
  color:#0f172a;
  font-weight:950;
}
.tb-data-preview-table tr:last-child td{
  border-bottom:0;
}
.tb-tool-guidance-drawer{
  border:1px solid #d7e5f7;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.tb-tool-guidance-drawer .tb-tool-guidance{
  border:0;
  border-top:1px solid #e8eef7;
  border-radius:0;
}
.tb-data-run-strip{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
}
.tb-raw-data{
  min-width:0;
  border:1px dashed #cbd5e1;
  border-radius:13px;
  background:#fff;
  overflow:hidden;
}
.tb-raw-data summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 12px;
  align-items:center;
  cursor:pointer;
  list-style:none;
  padding:12px 14px;
  color:#334155;
  font-weight:900;
}
.tb-raw-data summary::-webkit-details-marker{display:none}
.tb-raw-data summary::after{
  content:"展开";
  grid-column:2;
  grid-row:1/3;
  color:#2563eb;
  font-size:.72rem;
}
.tb-raw-data[open] summary::after{content:"收起"}
.tb-raw-data summary span{
  grid-column:1;
  display:block;
  color:#0f172a;
  font-size:.84rem;
}
.tb-raw-data summary small{
  grid-column:1;
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.72rem;
  line-height:1.45;
  font-weight:700;
}
.tb-raw-data textarea{
  min-height:180px;
  border:0;
  border-top:1px solid #e2e8f0;
  border-radius:0;
  background:#fbfdff;
}
.tb-run-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.tb-data-run-strip.is-actions-only{
  display:flex;
  justify-content:flex-end;
}
.tb-preview-empty-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}
.tb-result-lens{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
.tb-result-lens article{
  border:1px solid #dbeafe;
  border-radius:13px;
  background:#f8fbff;
  padding:12px;
}
.tb-result-lens span{
  display:block;
  color:#2563eb;
  font-size:.72rem;
  font-weight:900;
}
.tb-result-lens strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:1.05rem;
  font-weight:950;
}
.tb-result-lens small{
  display:block;
  margin-top:4px;
  color:#52637a;
  line-height:1.45;
}
.tb-result-lens.is-waiting{
  grid-template-columns:minmax(0,1fr);
}
.tb-result-lens.is-waiting article{
  background:#f8fafc;
}
.tb-result-workflow{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) auto minmax(360px,.95fr);
  gap:12px;
  align-items:center;
  margin:12px 0;
  padding:13px 14px;
  border:1px solid #bfdbfe;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
}
.tb-result-workflow-main span{
  display:block;
  color:#2563eb;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-result-workflow-main strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:1rem;
  font-weight:950;
  line-height:1.3;
}
.tb-result-workflow-main p{
  margin:5px 0 0;
  color:#52637a;
  font-size:.78rem;
  line-height:1.55;
}
.tb-result-workflow-state{
  display:grid;
  gap:4px;
  justify-items:center;
  min-width:126px;
  padding:9px 11px;
  border-radius:14px;
  background:#eff6ff;
  color:#1d4ed8;
}
.tb-result-workflow-state b{
  font-size:.88rem;
  font-weight:950;
  white-space:nowrap;
}
.tb-result-workflow-state small{
  max-width:170px;
  color:#2563eb;
  font-size:.68rem;
  line-height:1.35;
  text-align:center;
}
.tb-result-workflow ol{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.tb-result-workflow li{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 9px;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#fff;
  color:#334155;
  font-size:.72rem;
  font-weight:900;
  white-space:nowrap;
}
.tb-result-workflow li i{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#2563eb;
  color:#fff;
  font-style:normal;
  font-size:.62rem;
  font-weight:950;
}
.tb-result-workflow-actions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.tb-result-workflow-actions .btn{
  white-space:nowrap;
}
.tb-result-workflow-quality{
  border-color:#fed7aa;
  background:linear-gradient(135deg,#fff7ed,#ffffff);
}
.tb-result-workflow-quality .tb-result-workflow-state{
  background:#ffedd5;
  color:#c2410c;
}
.tb-result-workflow-quality .tb-result-workflow-state small,
.tb-result-workflow-quality .tb-result-workflow-main span{
  color:#c2410c;
}
.tb-result-workflow-review{
  border-color:#c7ddff;
  background:linear-gradient(135deg,#eff6ff,#ffffff);
}
.tb-result-workflow-workpaper{
  border-color:#bbf7d0;
  background:linear-gradient(135deg,#f0fdf4,#ffffff);
}
.tb-result-workflow-workpaper .tb-result-workflow-state{
  background:#dcfce7;
  color:#15803d;
}
.tb-result-workflow-workpaper .tb-result-workflow-state small,
.tb-result-workflow-workpaper .tb-result-workflow-main span{
  color:#15803d;
}
html[data-theme="dark"] .tb-result-workflow{
  background:#1b2940;
  border-color:#314158;
}
html[data-theme="dark"] .tb-result-workflow-main strong{
  color:#f1f5f9;
}
html[data-theme="dark"] .tb-result-workflow-main p{
  color:#9fb0c7;
}
html[data-theme="dark"] .tb-result-workflow-state,
html[data-theme="dark"] .tb-result-workflow li{
  background:#172235;
  border-color:#314158;
}
.tb-data-panel-duplicate-review .tb-result-lens article{
  border-color:#fed7aa;
  background:#fff7ed;
}
.tb-data-panel-rule-window .tb-result-lens article{
  border-color:#a5f3fc;
  background:#ecfeff;
}
.tb-data-panel-concentration-dashboard .tb-result-lens article{
  border-color:#bbf7d0;
  background:#f0fdf4;
}
.tb-data-panel-sampling-workbench .tb-result-lens article{
  border-color:#ddd6fe;
  background:#f5f3ff;
}
@media(max-width:1200px){
  .tb-health-dimensions,
  .tb-concentration-metrics,
  .tb-result-lens{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tb-result-workflow{
    grid-template-columns:1fr;
  }
  .tb-result-workflow-state{
    justify-items:start;
    width:fit-content;
  }
  .tb-data-upload-block,
  .tb-duplicate-board,
  .tb-data-run-strip,
  .tb-data-blueprint header,
  .tb-rule-window-board,
  .tb-sampling-board{
    grid-template-columns:1fr;
  }
  .tb-rule-params,
  .tb-sample-methods{
    min-width:0;
  }
  .tb-sample-methods{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .tb-health-dimensions,
  .tb-concentration-metrics,
  .tb-result-lens{
    grid-template-columns:1fr;
  }
  .tb-rule-params,
  .tb-sample-methods{
    grid-template-columns:1fr;
  }
  .tb-health-purpose,.tb-health-template-note{grid-template-columns:1fr}
  .tb-health-purpose small{grid-column:auto}
  .tb-sample-strategies{
    grid-template-columns:1fr;
  }
  .tb-result-workflow ol{
    grid-template-columns:1fr;
  }
  .tb-result-workflow-actions{
    justify-content:stretch;
  }
  .tb-result-workflow-actions .btn{
    flex:1 1 100%;
  }
  .tb-run-actions{
    justify-content:stretch;
  }
  .tb-run-actions .btn{
    flex:1 1 100%;
  }
  .tb-upload-entry,
  .tb-data-secondary-options{
    grid-template-columns:1fr;
  }
  .tb-health-upload-stage>header{
    padding:14px;
  }
  .tb-health-upload-grid{
    grid-template-columns:1fr;
    padding:14px;
  }
  .tb-data-upload-block .tb-file-drop-health{
    min-height:150px;
    padding:20px;
  }
  .tb-upload-primary-action{
    width:100%;
  }
  .tb-health-upload-stage>.tb-upload-note{
    margin:0 14px 14px;
  }
  .tb-data-secondary-options.is-health-secondary>.tb-raw-data{
    max-width:none;
  }
  .tb-template-actions{
    justify-content:flex-start;
  }
  .tb-field-drawer[open]{
    grid-column:auto;
  }
  .tb-field-checklist-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* 批次40：快速检查结果复核台，解决跑出疑点后不能逐项复核的问题 */
.tb-tool-review-console{
  margin:14px 0;
  border:1px solid #c7ddff;
  border-radius:16px;
  background:linear-gradient(135deg,#fff,#f8fbff);
  overflow:hidden;
}
.tb-tool-review-console>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid #dbeafe;
}
.tb-tool-review-console>header span{
  display:block;
  color:#2563eb;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-tool-review-console>header strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:1rem;
  font-weight:950;
}
.tb-tool-review-console>header p{
  margin:5px 0 0;
  color:#52637a;
  font-size:.82rem;
  line-height:1.55;
}
.tb-tool-review-console>header b{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.74rem;
  font-weight:950;
}
.tb-review-workspace{
  display:grid;
  grid-template-columns:minmax(280px,.58fr) minmax(420px,1fr);
  min-height:260px;
}
.tb-review-list{
  display:grid;
  align-content:start;
  gap:8px;
  max-height:420px;
  overflow:auto;
  padding:12px;
  border-right:1px solid #dbeafe;
  background:#f8fbff;
}
.tb-review-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px 10px;
  align-items:center;
  width:100%;
  padding:10px 11px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.tb-review-item:hover{
  border-color:#93c5fd;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
}
.tb-review-item.is-active{
  border-color:#2563eb;
  box-shadow:inset 3px 0 0 #2563eb;
}
.tb-review-item.is-reviewed{
  border-color:#bbf7d0;
  background:#f7fef9;
}
.tb-review-item span{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.7rem;
  font-weight:950;
}
.tb-review-item strong{
  min-width:0;
  color:#0f172a;
  font-size:.82rem;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tb-review-item small{
  min-width:0;
  color:#64748b;
  font-size:.72rem;
  line-height:1.4;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tb-review-item em{
  grid-row:1/3;
  align-self:center;
  white-space:nowrap;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:.68rem;
  font-style:normal;
  font-weight:900;
}
.tb-review-item.is-reviewed em{
  background:#dcfce7;
  color:#15803d;
}
.tb-review-editor{
  display:grid;
  grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);
  gap:12px;
  align-content:start;
  padding:14px;
  background:#fff;
}
.tb-review-current{
  grid-column:1/-1;
  padding:11px 12px;
  border:1px solid #dbeafe;
  border-radius:13px;
  background:#f8fbff;
}
.tb-review-current span,
.tb-review-focus>span{
  display:block;
  color:#2563eb;
  font-size:.7rem;
  font-weight:950;
}
.tb-review-current strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:.95rem;
  line-height:1.35;
}
.tb-review-current small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.74rem;
}
.tb-review-editor label{
  display:grid;
  gap:6px;
  color:#334155;
  font-size:.76rem;
  font-weight:950;
}
.tb-review-editor label.wide{
  grid-column:1/-1;
}
.tb-review-editor select,
.tb-review-editor textarea{
  width:100%;
  border:1px solid #cfe0f4;
  border-radius:11px;
  background:#fff;
  color:#0f172a;
  font-size:.84rem;
  outline:none;
  box-sizing:border-box;
}
.tb-review-editor select{
  height:40px;
  padding:0 10px;
}
.tb-review-editor textarea{
  min-height:104px;
  padding:10px;
  resize:vertical;
  line-height:1.55;
}
.tb-review-focus{
  grid-column:1/-1;
  padding:11px 12px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fbfdff;
}
.tb-review-focus>div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.tb-review-focus>div span{
  padding:5px 9px;
  border-radius:999px;
  background:#eef6ff;
  color:#1d4ed8;
  font-size:.72rem;
  font-weight:900;
}
.tb-review-editor footer{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:2px;
}
.tb-review-editor footer small{
  color:#64748b;
  font-size:.74rem;
  line-height:1.45;
}
.tb-review-duplicate-payment{
  border-color:#fed7aa;
}
.tb-review-duplicate-payment>header{
  background:#fff7ed;
  border-bottom-color:#fed7aa;
}
.tb-duplicate-workbench{
  margin-top:14px;
  border:1px solid #fed7aa;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 14px 32px rgba(15,23,42,.05);
}
.tb-duplicate-workbench>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:15px 16px;
  background:linear-gradient(135deg,#fff7ed,#f8fbff);
  border-bottom:1px solid #fed7aa;
}
.tb-duplicate-workbench>header span,
.tb-duplicate-action span,
.tb-duplicate-groups-head strong{
  display:block;
  color:#c2410c;
  font-size:.7rem;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-duplicate-workbench>header strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:1.02rem;
}
.tb-duplicate-workbench>header p{
  margin:5px 0 0;
  color:#52637a;
  font-size:.78rem;
  line-height:1.55;
}
.tb-duplicate-workbench>header b{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  color:#c2410c;
  font-size:.74rem;
  font-weight:950;
  border:1px solid #fed7aa;
}
.tb-duplicate-flow{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:11px 12px;
  background:#fffaf5;
  border-bottom:1px solid #ffedd5;
}
.tb-duplicate-flow span{
  padding:8px 10px;
  border-radius:999px;
  background:#fff;
  color:#9a3412;
  font-size:.72rem;
  font-weight:900;
  text-align:center;
  border:1px solid #fed7aa;
}
.tb-duplicate-layout{
  display:grid;
  grid-template-columns:minmax(330px,.85fr) minmax(460px,1.15fr);
  min-height:420px;
}
.tb-duplicate-groups{
  border-right:1px solid #e8eef7;
  background:#fbfdff;
  max-height:560px;
  overflow:auto;
}
.tb-duplicate-groups-head{
  position:sticky;
  top:0;
  z-index:1;
  padding:12px 14px;
  background:#fbfdff;
  border-bottom:1px solid #e8eef7;
}
.tb-duplicate-groups-head small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.72rem;
}
.tb-duplicate-group-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:stretch;
  padding:9px 11px;
  border-bottom:1px solid #edf2f7;
}
.tb-duplicate-group-row.is-active{
  background:#fff7ed;
}
.tb-duplicate-group-row.is-reviewed{
  background:#f0fdf4;
}
.tb-duplicate-group-row .tb-transfer-check{
  align-self:center;
}
.tb-duplicate-group-row .tb-review-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 11px;
  border:1px solid #dce8f5;
  border-radius:13px;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.tb-duplicate-group-row .tb-review-item:hover,
.tb-duplicate-group-row .tb-review-item.is-active{
  border-color:#fb923c;
  box-shadow:0 10px 22px rgba(251,146,60,.12);
}
.tb-duplicate-group-row .tb-review-item i{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:#ffedd5;
  color:#c2410c;
  font-style:normal;
  font-size:.72rem;
  font-weight:950;
}
.tb-duplicate-group-row .tb-review-item strong{
  display:block;
  color:#0f172a;
  font-size:.82rem;
  line-height:1.35;
}
.tb-duplicate-group-row .tb-review-item small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.7rem;
  line-height:1.35;
}
.tb-duplicate-group-row .tb-review-item em{
  white-space:nowrap;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:.68rem;
  font-style:normal;
  font-weight:900;
}
.tb-duplicate-detail{
  display:grid;
  gap:12px;
  align-content:start;
  padding:14px;
}
.tb-duplicate-action{
  padding:12px;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fffaf5;
}
.tb-duplicate-action p{
  margin:6px 0 0;
  color:#334155;
  font-size:.78rem;
  line-height:1.55;
}
.tb-duplicate-source{
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
}
.tb-duplicate-source-table{
  max-height:220px;
  overflow:auto;
}
.tb-duplicate-source-table table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
}
.tb-duplicate-source-table th,
.tb-duplicate-source-table td{
  padding:8px 10px;
  border-bottom:1px solid #edf2f7;
  color:#334155;
  font-size:.72rem;
  white-space:nowrap;
  text-align:left;
}
.tb-duplicate-source-table th{
  position:sticky;
  top:0;
  background:#f8fafc;
  color:#0f172a;
  font-weight:950;
}
.tb-duplicate-source-empty{
  padding:14px;
  color:#64748b;
  font-size:.76rem;
  background:#f8fafc;
}
.tb-duplicate-review-form{
  display:grid;
  grid-template-columns:180px minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
}
.tb-duplicate-review-form label{
  display:grid;
  gap:6px;
  color:#475569;
  font-size:.72rem;
  font-weight:900;
}
.tb-duplicate-review-form select,
.tb-duplicate-review-form textarea{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:11px;
  background:#fff;
  color:#172033;
  font-size:.76rem;
  box-sizing:border-box;
  outline:none;
}
.tb-duplicate-review-form select{
  height:38px;
  padding:0 10px;
}
.tb-duplicate-review-form textarea{
  min-height:72px;
  padding:9px 10px;
  line-height:1.45;
  resize:vertical;
}
.tb-split-workbench{
  margin-top:14px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 14px 32px rgba(15,23,42,.05);
}
.tb-split-workbench>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:15px 16px;
  border-bottom:1px solid #dbeafe;
}
.tb-split-workbench>header{background:linear-gradient(135deg,#ecfeff,#f8fafc);}
.tb-split-workbench>header span,
.tb-deep-action span,
.tb-deep-groups-head strong{
  display:block;
  font-size:.7rem;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-split-workbench>header span,
.tb-split-workbench .tb-deep-action span,
.tb-split-workbench .tb-deep-groups-head strong{color:#0e7490;}
.tb-split-workbench>header strong{
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:1.02rem;
}
.tb-split-workbench>header p{
  margin:5px 0 0;
  color:#52637a;
  font-size:.78rem;
  line-height:1.55;
}
.tb-split-workbench>header b{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  font-size:.74rem;
  font-weight:950;
}
.tb-split-workbench>header b{color:#0e7490;border:1px solid #a5f3fc;}
.tb-deep-flow{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:11px 12px;
  border-bottom:1px solid #e8eef7;
}
.tb-split-workbench .tb-deep-flow{background:#ecfeff;}
.tb-deep-flow span{
  padding:8px 10px;
  border-radius:999px;
  background:#fff;
  font-size:.72rem;
  font-weight:900;
  text-align:center;
}
.tb-split-workbench .tb-deep-flow span{color:#0e7490;border:1px solid #a5f3fc;}
.tb-deep-layout{
  display:grid;
  grid-template-columns:minmax(340px,.9fr) minmax(500px,1.1fr);
  min-height:420px;
}
.tb-deep-groups{
  border-right:1px solid #e8eef7;
  background:#fbfdff;
  max-height:560px;
  overflow:auto;
}
.tb-deep-groups-head{
  position:sticky;
  top:0;
  z-index:1;
  padding:12px 14px;
  background:#fbfdff;
  border-bottom:1px solid #e8eef7;
}
.tb-deep-groups-head small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:.72rem;
}
.tb-deep-group-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:stretch;
  padding:9px 11px;
  border-bottom:1px solid #edf2f7;
}
.tb-split-group-row.is-active{background:#ecfeff;}
.tb-deep-group-row.is-reviewed{background:#f0fdf4;}
.tb-deep-group-row .tb-transfer-check{align-self:center;}
.tb-deep-group-row .tb-review-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 11px;
  border:1px solid #dce8f5;
  border-radius:13px;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.tb-split-group-row .tb-review-item:hover,
.tb-split-group-row .tb-review-item.is-active{border-color:#22d3ee;box-shadow:0 10px 22px rgba(34,211,238,.12);}
.tb-deep-group-row .tb-review-item i{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  font-style:normal;
  font-size:.72rem;
  font-weight:950;
}
.tb-split-group-row .tb-review-item i{background:#cffafe;color:#0e7490;}
.tb-deep-group-row .tb-review-item strong{
  display:block;
  color:#0f172a;
  font-size:.82rem;
  line-height:1.35;
}
.tb-deep-group-row .tb-review-item small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.7rem;
  line-height:1.35;
}
.tb-deep-group-row .tb-review-item em{
  white-space:nowrap;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:.68rem;
  font-style:normal;
  font-weight:900;
}
.tb-deep-detail{
  display:grid;
  gap:12px;
  align-content:start;
  padding:14px;
}
.tb-review-worksheet{
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.tb-review-worksheet>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-bottom:1px solid #e2e8f0;
  background:#f8fbff;
}
.tb-review-worksheet>header span{
  display:block;
  color:#2563eb;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-review-worksheet>header strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:.9rem;
}
.tb-review-worksheet>header b{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.7rem;
  font-weight:950;
}
.tb-review-worksheet-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
}
.tb-review-worksheet-grid article{
  min-height:98px;
  padding:11px 12px;
  border-right:1px solid #edf2f7;
  border-bottom:1px solid #edf2f7;
  background:#fff;
}
.tb-review-worksheet-grid article:nth-child(2n){
  border-right:0;
}
.tb-review-worksheet-grid article:nth-last-child(-n+2){
  border-bottom:0;
}
.tb-review-worksheet-grid span{
  display:block;
  color:#475569;
  font-size:.7rem;
  font-weight:950;
}
.tb-review-worksheet-grid p{
  margin:6px 0 0;
  color:#172033;
  font-size:.78rem;
  line-height:1.55;
}
html[data-theme="dark"] .tb-result-register,
html[data-theme="dark"] .tb-review-worksheet,
html[data-theme="dark"] .tb-review-worksheet-grid article{
  background:#1b2940;
  border-color:#314158;
}
html[data-theme="dark"] .tb-result-register>header,
html[data-theme="dark"] .tb-review-worksheet>header{
  background:#172235;
  border-color:#314158;
}
html[data-theme="dark"] .tb-result-register>header strong,
html[data-theme="dark"] .tb-review-worksheet>header strong,
html[data-theme="dark"] .tb-review-worksheet-grid p{
  color:#f1f5f9;
}
html[data-theme="dark"] .tb-result-register>header small,
html[data-theme="dark"] .tb-review-worksheet-grid span{
  color:#9fb0c7;
}
.tb-deep-action{
  padding:12px;
  border-radius:14px;
}
.tb-split-workbench .tb-deep-action{border:1px solid #a5f3fc;background:#ecfeff;}
.tb-deep-action p{
  margin:6px 0 0;
  color:#334155;
  font-size:.78rem;
  line-height:1.55;
}
.tb-deep-source{
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
}
.tb-deep-source-table{
  max-height:230px;
  overflow:auto;
}
.tb-deep-source-table table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}
.tb-deep-source-table th,
.tb-deep-source-table td{
  padding:8px 10px;
  border-bottom:1px solid #edf2f7;
  color:#334155;
  font-size:.72rem;
  white-space:nowrap;
  text-align:left;
}
.tb-deep-source-table th{
  position:sticky;
  top:0;
  background:#f8fafc;
  color:#0f172a;
  font-weight:950;
}
.tb-deep-review-form{
  display:grid;
  grid-template-columns:180px minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
}
.tb-deep-review-form label{
  display:grid;
  gap:6px;
  color:#475569;
  font-size:.72rem;
  font-weight:900;
}
.tb-deep-review-form select,
.tb-deep-review-form textarea{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:11px;
  background:#fff;
  color:#172033;
  font-size:.76rem;
  box-sizing:border-box;
  outline:none;
}
.tb-deep-review-form select{
  height:38px;
  padding:0 10px;
}
.tb-deep-review-form textarea{
  min-height:72px;
  padding:9px 10px;
  line-height:1.45;
  resize:vertical;
}
@media(max-width:1100px){
  .tb-deep-layout,
  .tb-duplicate-layout{
    grid-template-columns:1fr;
  }
  .tb-deep-groups,
  .tb-duplicate-groups{
    border-right:0;
    border-bottom:1px solid #e8eef7;
    max-height:320px;
  }
}
@media(max-width:760px){
  .tb-deep-workbench>header,
  .tb-duplicate-workbench>header,
  .tb-split-workbench>header{
    display:grid;
  }
  .tb-deep-flow,
  .tb-duplicate-flow{
    grid-template-columns:1fr 1fr;
  }
  .tb-review-worksheet-grid{
    grid-template-columns:1fr;
  }
  .tb-review-worksheet-grid article,
  .tb-review-worksheet-grid article:nth-child(2n){
    border-right:0;
  }
  .tb-review-worksheet-grid article:nth-last-child(2){
    border-bottom:1px solid #edf2f7;
  }
  .tb-deep-review-form,
  .tb-duplicate-review-form{
    grid-template-columns:1fr;
  }
  .tb-deep-review-form .btn,
  .tb-duplicate-review-form .btn{
    width:100%;
    justify-content:center;
  }
}
.tb-review-split-procurement{
  border-color:#a5f3fc;
}
.tb-review-split-procurement>header{
  background:#ecfeff;
  border-bottom-color:#a5f3fc;
}
@media(max-width:1100px){
  .tb-review-workspace{
    grid-template-columns:1fr;
  }
  .tb-review-list{
    border-right:0;
    border-bottom:1px solid #dbeafe;
    max-height:280px;
  }
}
@media(max-width:760px){
  .tb-tool-review-console>header,
  .tb-review-editor footer{
    display:grid;
  }
  .tb-review-editor{
    grid-template-columns:1fr;
  }
  .tb-review-editor footer .btn{
    width:100%;
    justify-content:center;
  }
}

/* Tool result landing: keep project handoff visible without adding large cards */
.tb-result-landing{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:12px 0 0;
  padding:12px 14px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:linear-gradient(135deg,#eff6ff,#ffffff);
}
.tb-result-landing-copy span,
.ff-transfer-notice span{
  display:block;
  color:#2563eb;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
}
.tb-result-landing-copy strong,
.ff-transfer-notice strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:17px;
  line-height:1.3;
}
.tb-result-landing-copy p,
.ff-transfer-notice p{
  margin:4px 0 0;
  color:#536579;
  font-size:14px;
  line-height:1.55;
}
.tb-result-landing-copy small{
  display:block;
  margin-top:5px;
  color:#0f766e;
  font-size:13px;
  font-weight:850;
}
.tb-result-landing-actions,
.finding-source-actions,
.rpsw-source-strip,
.ff-transfer-notice>div:last-child{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.finding-source-actions{
  justify-content:flex-start;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(37,99,235,.16);
}
.ff-transfer-notice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 14px;
  padding:13px 16px;
  border:1px solid #bfdbfe;
  border-left:4px solid #2563eb;
  border-radius:14px;
  background:#f8fbff;
}
.rpsw-source-strip{
  justify-content:space-between;
  margin:10px 0 12px;
  padding:9px 11px;
  border:1px solid #dbeafe;
  border-radius:10px;
  background:#f8fbff;
  color:#475569;
  font-size:13px;
  line-height:1.45;
}
.rpsw-source-strip span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html[data-theme="dark"] .tb-result-landing,
html[data-theme="dark"] .ff-transfer-notice,
html[data-theme="dark"] .rpsw-source-strip{
  background:#172235;
  border-color:#314158;
}
html[data-theme="dark"] .tb-result-landing-copy strong,
html[data-theme="dark"] .ff-transfer-notice strong{
  color:#eef4ff;
}
html[data-theme="dark"] .tb-result-landing-copy p,
html[data-theme="dark"] .ff-transfer-notice p,
html[data-theme="dark"] .rpsw-source-strip{
  color:#9fb0c7;
}
@media(max-width:760px){
  .tb-result-landing,
  .ff-transfer-notice,
  .rpsw-source-strip{
    align-items:flex-start;
    flex-direction:column;
  }
  .tb-result-landing-actions .btn,
  .ff-transfer-notice .btn,
  .rpsw-source-strip .btn{
    width:100%;
    justify-content:center;
  }
  .rpsw-source-strip span{
    white-space:normal;
  }
}

/* 批次43：审前规划三页继续减法，首屏只保留主操作区 */
.pra-risk-mainline{
  grid-template-columns:minmax(220px,250px) minmax(0,1fr)!important;
  gap:12px!important;
  margin-top:8px!important;
}
.pra-risk-mainline .pra-clean-module-panel{
  position:sticky!important;
  top:84px!important;
}
.pra-risk-mainline .pra-section-head h3{
  font-size:17px!important;
}
.pra-risk-mainline .pra-module-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-height:42px!important;
}
.pra-risk-mainline .pra-risk-table-action{
  border-left:4px solid #2563eb!important;
  background:#fff!important;
}
.pra-risk-mainline .pra-active-minimal h3{
  font-size:18px!important;
}
.pra-risk-mainline .pra-active-minimal span{
  min-width:58px!important;
}
.pra-risk-mainline .pra-module-risk-table{
  min-height:420px!important;
}
.pra-risk-mainline .pra-module-risk-table th:nth-child(1),
.pra-risk-mainline .pra-module-risk-table td:nth-child(1){
  width:42%!important;
}
.pra-risk-mainline .pra-module-risk-table th:nth-child(3),
.pra-risk-mainline .pra-module-risk-table td:nth-child(3){
  width:30%!important;
}
.pra-risk-mainline .pra-risk-table-empty{
  display:grid!important;
  min-height:340px!important;
  place-items:center!important;
  font-size:15px!important;
}

.pmat-command-strip{
  grid-template-columns:minmax(0,1fr) auto auto!important;
  min-height:0!important;
  margin:0 0 10px!important;
  padding:9px 12px!important;
  border-left:4px solid #2563eb!important;
}
.pmat-command-strip strong{
  font-size:17px!important;
}
.pmat-command-strip small{
  display:block!important;
  max-width:760px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.pmat-command-strip dl div{
  min-width:54px!important;
  padding:4px 8px!important;
}
.pmat-command-strip .btn{
  min-height:38px!important;
  padding:0 14px!important;
}
.pmat-ledger-mainline{
  grid-template-columns:minmax(0,1fr) minmax(360px,.46fr)!important;
  gap:12px!important;
}
.pmat-ledger-mainline .pmat-ledger{
  min-height:640px!important;
}
.pmat-ledger-mainline .pmat-reference-primary{
  min-width:0!important;
  width:100%!important;
}
.pmat-clean-page .pmat-reference-collapsed>details>summary,
.pmat-clean-page .pmat-reference-head{
  grid-template-columns:minmax(0,1fr) auto!important;
}
.pmat-clean-page .pmat-reference-collapsed>details>summary>div,
.pmat-clean-page .pmat-reference-head>div{
  min-width:0!important;
  writing-mode:horizontal-tb!important;
}
.pmat-clean-page .pmat-reference-collapsed>details>summary strong,
.pmat-clean-page .pmat-reference-head h3{
  white-space:normal!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  line-height:1.35!important;
}
.pmat-clean-page .pmat-reference-actions{
  align-self:start!important;
}
.pmat-clean-page .pmat-reference-list{
  max-height:590px!important;
}
.pmat-clean-page .pmat-reference-item span{
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

.wf-scheme-detail-page .wf-scheme-action-bar{
  grid-template-columns:minmax(0,.88fr) minmax(0,1.2fr) auto!important;
  border-left:4px solid #2563eb!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-scheme-action-main small{
  display:block!important;
  margin-top:2px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.35!important;
}
.wf-scheme-detail-page .stage-one-split-workbench{
  grid-template-columns:minmax(390px,.86fr) minmax(0,1.14fr)!important;
  gap:12px!important;
}
.wf-scheme-detail-page .wf-scheme-brief{
  overflow:hidden!important;
  border:1px solid #dbe7f5!important;
  border-radius:15px!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head{
  padding:12px 14px!important;
  border-bottom:1px solid #e6edf7!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head h3{
  margin:2px 0 0!important;
  font-size:20px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head small{
  display:block!important;
  margin-top:4px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.wf-scheme-detail-page .wf-scheme-compact-summary{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  padding:10px 14px!important;
  border-bottom:1px solid #e6edf7!important;
  background:#f8fbff!important;
}
.wf-scheme-detail-page .wf-scheme-compact-summary span{
  min-width:0!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:#fff!important;
  font-size:12px!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board{
  gap:8px!important;
  padding:10px 12px!important;
  border-top:0!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board article{
  padding:9px 10px!important;
  border-radius:10px!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-scheme-chief-board article strong{
  font-size:15px!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit{
  padding:12px 14px!important;
  background:#fbfdff!important;
}
.wf-scheme-detail-page .wf-scheme-support-drawer>summary{
  padding:10px 14px!important;
}
@media(max-width:1100px){
  .pra-risk-mainline,
  .pmat-ledger-mainline,
  .wf-scheme-detail-page .wf-scheme-action-bar,
  .wf-scheme-detail-page .stage-one-split-workbench{
    grid-template-columns:1fr!important;
  }
  .pra-risk-mainline .pra-clean-module-panel{
    position:static!important;
  }
  .pmat-command-strip{
    grid-template-columns:1fr!important;
  }
  .pmat-command-strip small{
    white-space:normal!important;
  }
}

/* 批次44：审前规划三张真实工作表——风险登记、资料跟踪、方案分工 */
.pra-risk-mainline .pra-module-risk-table th:nth-child(1),
.pra-risk-mainline .pra-module-risk-table td:nth-child(1){
  width:78px!important;
  text-align:center!important;
}
.pra-risk-mainline .pra-module-risk-table th:nth-child(2),
.pra-risk-mainline .pra-module-risk-table td:nth-child(2){
  width:34%!important;
}
.pra-risk-mainline .pra-module-risk-table th:nth-child(3),
.pra-risk-mainline .pra-module-risk-table td:nth-child(3){
  width:112px!important;
}
.pra-risk-mainline .pra-module-risk-table th:nth-child(4),
.pra-risk-mainline .pra-module-risk-table td:nth-child(4){
  width:auto!important;
}
.pra-risk-mainline .pra-module-risk-table th:nth-child(5),
.pra-risk-mainline .pra-module-risk-table td:nth-child(5){
  width:92px!important;
}
.pra-risk-include{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#334155!important;
  font-size:13px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.pra-risk-include input{
  width:17px!important;
  height:17px!important;
  accent-color:#2563eb!important;
}
.pra-add-module-card{
  border-style:dashed!important;
  background:#f8fbff!important;
  color:#1d4ed8!important;
}
.pra-new-risk-form{
  display:grid!important;
  grid-template-columns:minmax(180px,.9fr) minmax(240px,1.25fr) minmax(210px,1fr) minmax(210px,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  padding:14px!important;
  border-top:1px solid #dbe7f5!important;
  background:#f8fbff!important;
}
.pra-new-risk-form[hidden]{
  display:none!important;
}
.pra-new-risk-form label{
  display:grid!important;
  gap:5px!important;
  color:#334155!important;
  font-size:12px!important;
  font-weight:900!important;
}
.pra-new-risk-form input,
.pra-new-risk-form textarea{
  width:100%!important;
  min-height:38px!important;
  padding:8px 10px!important;
  border:1px solid #cbd5e1!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.pra-new-risk-form>div{
  display:flex!important;
  gap:7px!important;
  align-items:center!important;
}
.pmat-command-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.pmat-command-actions .btn{
  white-space:nowrap!important;
}
.pmat-ledger-mainline .pmat-reference-head{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.pmat-ledger-mainline .pmat-reference-head>div:first-child{
  min-width:0!important;
}
.pmat-ledger-mainline .pmat-reference-head>div:first-child span,
.pmat-ledger-mainline .pmat-reference-head>div:first-child h3,
.pmat-ledger-mainline .pmat-reference-head>div:first-child p{
  display:block!important;
  width:auto!important;
  writing-mode:horizontal-tb!important;
  word-break:normal!important;
}
.pmat-ledger-mainline .pmat-reference-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  width:100%!important;
}
.pmat-ledger-mainline .pmat-reference-actions .btn{
  width:100%!important;
  white-space:normal!important;
}
.wf-scheme-detail-page .stage-one-split-workbench{
  grid-template-columns:minmax(330px,.66fr) minmax(0,1.34fr)!important;
  align-items:start!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.wf-container.wf-scheme-detail-page:not(.wf-stage-one) .wf-scheme-quick-edit{
  grid-template-columns:1fr!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit>label{
  display:grid!important;
  gap:5px!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit textarea{
  min-height:76px!important;
}
.wf-scheme-team-line,
.wf-scheme-module-line{
  display:grid!important;
  gap:5px!important;
  padding:10px 11px!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#fff!important;
}
.wf-scheme-team-line>span,
.wf-scheme-module-line>span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-scheme-team-line strong{
  color:#0f172a!important;
  font-size:15px!important;
}
.wf-scheme-team-line small{
  color:#64748b!important;
  font-size:12px!important;
}
.wf-module-assign-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.wf-module-assign-actions .btn{
  white-space:nowrap!important;
}
.wf-scheme-detail-page .wf-ma-row{
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  align-items:start!important;
}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header){
  margin:10px 12px!important;
  padding:12px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fbfdff!important;
}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(1){grid-column:span 4}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(2){grid-column:span 8}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(3){grid-column:span 8}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(4){grid-column:span 4}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(5){grid-column:span 4}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>.wf-ma-remove{
  grid-column:10 / 13;
  align-self:end!important;
}
.wf-scheme-detail-page .wf-ma-header{
  display:none!important;
}
.wf-scheme-detail-page .wf-ma-row label{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.wf-scheme-detail-page .wf-ma-row label>span{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:900!important;
}
.wf-scheme-detail-page .wf-ma-row input,
.wf-scheme-detail-page .wf-ma-row textarea{
  width:100%!important;
  min-height:38px!important;
  padding:8px 9px!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#0f172a!important;
  font:inherit!important;
  font-size:13px!important;
  line-height:1.4!important;
  resize:vertical!important;
}
.wf-scheme-detail-page .wf-ma-row textarea{
  min-height:58px!important;
}
.wf-scheme-detail-page .wf-ma-row input:focus,
.wf-scheme-detail-page .wf-ma-row textarea:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.1)!important;
  outline:0!important;
}
.wf-ma-remove{
  margin-top:2px!important;
  color:#b42318!important;
  white-space:nowrap!important;
}
.wf-ma-empty{
  padding:30px 18px!important;
  color:#64748b!important;
  text-align:center!important;
}
.wf-program-drawer{
  border:1px solid #dbe7f5!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.wf-program-drawer>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:13px 15px!important;
  cursor:pointer!important;
  list-style:none!important;
}
.wf-program-drawer>summary::-webkit-details-marker{
  display:none!important;
}
.wf-program-drawer>summary span,
.wf-program-drawer>summary strong{
  display:block!important;
}
.wf-program-drawer>summary span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.wf-program-drawer>summary strong{
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:15px!important;
}
.wf-program-drawer>summary b{
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#eff6ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
}
.wf-program-drawer[open]>summary{
  border-bottom:1px solid #e2e8f0!important;
}
.wf-program-drawer .wf-program-ledger{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
}
@media(max-width:1180px){
  .pra-new-risk-form{
    grid-template-columns:1fr 1fr!important;
  }
}

/* Report closeout: one role-aware task, one controlled version flow. */
.report-stage-two .rp-lifecycle-desk{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  margin:0 0 12px;
  border:1px solid #d8e3ef;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.report-stage-two .rpl-steps{
  padding:18px;
  border-right:1px solid #d8e3ef;
  background:#f8fafc;
}
.report-stage-two .rpl-steps>span,
.report-stage-two .rpl-task-head span,
.report-stage-two .rpcp-head span{
  display:block;
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.report-stage-two .rpl-steps>strong{
  display:block;
  margin:4px 0 14px;
  color:#0f172a;
  font-size:18px;
}
.report-stage-two .rpl-steps nav{display:grid;gap:7px}
.report-stage-two .rpl-steps button{
  display:grid;
  grid-template-columns:32px 1fr auto;
  gap:9px;
  align-items:center;
  min-height:48px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#475569;
  text-align:left;
  cursor:pointer;
}
.report-stage-two .rpl-steps button.current{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.report-stage-two .rpl-steps button.done{color:#047857}
.report-stage-two .rpl-steps button b{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#e2e8f0;
  font-size:12px;
}
.report-stage-two .rpl-steps button.current b{background:#2563eb;color:#fff}
.report-stage-two .rpl-steps button.done b{background:#d1fae5;color:#047857}
.report-stage-two .rpl-steps button span{font-size:15px;font-weight:800}
.report-stage-two .rpl-steps button em{font-size:11px;font-style:normal}
.report-stage-two .rpl-task{padding:20px 22px}
.report-stage-two .rpl-task-head{display:flex;justify-content:space-between;gap:20px}
.report-stage-two .rpl-task-head h3{margin:4px 0 5px;color:#0f172a;font-size:24px}
.report-stage-two .rpl-task-head p{margin:0;max-width:760px;color:#64748b;font-size:14px;line-height:1.65}
.report-stage-two .rpl-task-head>b{
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
}
.report-stage-two .rpl-task dl{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin:18px 0 0;
  border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
}
.report-stage-two .rpl-task dl>div{padding:11px 13px;border-right:1px solid #e2e8f0}
.report-stage-two .rpl-task dl>div:last-child{border-right:0}
.report-stage-two .rpl-task dt{color:#64748b;font-size:12px}
.report-stage-two .rpl-task dd{margin:3px 0 0;color:#0f172a;font-size:14px;font-weight:800}
.report-stage-two .rpl-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.report-stage-two .rp-report-composer{
  margin:12px 0;
  padding:16px 18px;
  border:1px solid #d8e3ef;
  border-radius:14px;
  background:#fff;
}
.report-stage-two .rpcp-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.report-stage-two .rpcp-head strong{display:block;margin-top:3px;color:#0f172a;font-size:18px}
.report-stage-two .rpcp-head p{margin:3px 0 0;color:#64748b;font-size:13px}
.report-stage-two .rpcp-head>b{color:#1d4ed8;font-size:16px}
.report-stage-two .rpcp-fields{
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) minmax(230px,1.2fr) auto auto;
  gap:10px;
  align-items:end;
  margin-top:14px;
}
.report-stage-two .rpcp-fields>label{display:grid;gap:5px;color:#334155;font-size:12px;font-weight:800}
.report-stage-two #rp-type-help{min-height:30px;color:#64748b;font-size:11px;font-weight:500;line-height:1.4}
.report-stage-two .rpcp-fields select,
.report-stage-two .rpcp-template{
  min-height:40px;
}
.report-stage-two .rpcp-template{
  position:relative;
  padding:7px 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  cursor:pointer;
}
.report-stage-two .rpcp-template span{color:#64748b;font-size:11px;font-weight:500}
.report-stage-two .rpcp-template input{position:absolute;inset:0;opacity:0;cursor:pointer}
.report-stage-two .rpcp-check{display:flex!important;grid-auto-flow:column;align-items:center;white-space:nowrap;min-height:40px}
.report-stage-two .rpcp-generation-message{
  margin-top:12px;
  padding:11px 13px;
  border:1px solid #f4c37d;
  border-left:4px solid #d97706;
  border-radius:9px;
  background:#fffaf0;
  color:#7c2d12;
}
.report-stage-two .rpcp-generation-message[hidden]{display:none}
.report-stage-two .rpcp-generation-message strong{display:block;font-size:14px}
.report-stage-two .rpcp-generation-message p{margin:4px 0 0;font-size:13px;line-height:1.55}
.report-stage-two .rpcp-generation-message details{margin-top:7px;color:#92400e;font-size:12px}
.report-stage-two .rpcp-generation-message summary{cursor:pointer;font-weight:800}
.report-stage-two .rpcp-generation-message ul{margin:6px 0 0;padding-left:18px;line-height:1.55}
.report-stage-two .rpv-role-note{font-size:12px;line-height:1.35;color:#92400e;white-space:nowrap}
.wpm-paper-row.withdrawn{opacity:.76;background:#f8fafc}
.wpm-closeout-exceptions{margin-top:12px;border-top:1px solid #dbe4f0;padding-top:10px}
.wpm-closeout-exceptions summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#475569}
.wpm-closeout-exceptions summary strong{color:#9a3412}
.wpm-closeout-exceptions>p{margin:6px 0 8px;font-size:11px;line-height:1.45;color:#64748b}
.report-stage-two .rpcp-export{display:flex;gap:8px;margin-top:10px}
.report-stage-two .rps-trace-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.report-stage-two .rps-trace-actions button{
  padding:5px 8px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  background:#fff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
@media(max-width:980px){
  .report-stage-two .rp-lifecycle-desk{grid-template-columns:1fr}
  .report-stage-two .rpl-steps{border-right:0;border-bottom:1px solid #d8e3ef}
  .report-stage-two .rpl-steps nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  .report-stage-two .rpl-steps button{grid-template-columns:32px 1fr}
  .report-stage-two .rpl-steps button em{display:none}
  .report-stage-two .rpl-task dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-stage-two .rpcp-fields{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .report-stage-two .rpl-steps nav,
  .report-stage-two .rpl-task dl,
  .report-stage-two .rpcp-fields{grid-template-columns:1fr}
  .report-stage-two .rpl-task-head{display:block}
  .report-stage-two .rpl-task-head>b{display:inline-block;margin-top:10px}
}

/* 审计台账最终样式优先级：避免历史批次覆盖清单编制布局 */
.pmat-clean-page .pmat-ledger-mainline{
  grid-template-columns:minmax(0,1.5fr) minmax(360px,.8fr)!important;
  gap:12px!important;
  align-items:start!important;
}
.pmat-clean-page .pmat-ledger-mainline .pmat-ledger{
  min-height:520px!important;
}
.pmat-clean-page .pmat-reference-primary{
  min-width:0!important;
  width:100%!important;
  border:1px solid #dbe3ef!important;
  border-radius:12px!important;
  background:#fff!important;
}
.pmat-clean-page .pmat-reference-head{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.pmat-clean-page .pmat-reference-list{
  max-height:520px!important;
}
.pmat-clean-page .pmat-composer-table{
  min-width:0!important;
}
@media(max-width:1100px){
  .pmat-clean-page .pmat-ledger-mainline{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:760px){
  .pra-new-risk-form,
  .wf-scheme-detail-page .stage-one-split-workbench,
  .wf-scheme-detail-page .wf-ma-row{
    grid-template-columns:1fr!important;
  }
  .wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label,
  .wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>.wf-ma-remove{
    grid-column:1!important;
  }
  .pmat-command-actions,
  .wf-module-assign-actions{
    align-items:stretch!important;
    flex-direction:column!important;
  }
}

/* 2026-07-25：审前规划三页最终收敛。首屏只放主操作，辅助信息默认让位。 */
.pra-one-screen-flow,
.pmat-clean-page,
.wf-scheme-detail-page{
  font-size:15px!important;
}
.pra-risk-split-board{
  grid-template-columns:260px minmax(0,1fr)!important;
  gap:14px!important;
}
.pra-risk-split-board .pra-clean-module-panel{
  position:sticky!important;
  top:12px!important;
  align-self:start!important;
  padding:12px!important;
}
.pra-risk-split-board .pra-section-head h3{
  font-size:18px!important;
}
.pra-risk-split-board .pra-section-head small{
  font-size:12px!important;
}
.pra-risk-split-board .pra-six-module-list{
  grid-template-columns:1fr!important;
}
.pra-risk-split-board .pra-module-card{
  min-height:42px!important;
  padding:9px 10px!important;
}
.pra-risk-table-action{
  margin:0!important;
  min-height:50px!important;
  padding:9px 12px!important;
}
.pra-active-minimal h3{
  font-size:18px!important;
}
.pra-active-minimal .pra-existing-assessment strong{
  font-size:13px!important;
}
.pra-module-risk-table{
  box-shadow:none!important;
}
.pra-risk-table-head{
  padding:11px 14px!important;
}
.pra-risk-table-head h3{
  font-size:18px!important;
}
.pra-module-risk-table th,
.pra-module-risk-table td{
  padding:10px 12px!important;
}
.pra-module-risk-table td strong{
  font-size:14px!important;
}
.pra-module-risk-table td small{
  font-size:12px!important;
}
.pra-module-risk-table textarea{
  min-height:52px!important;
}

.pmat-clean-page .pmat-ledger-toolbar{
  margin:0 0 10px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.pmat-clean-page .pmat-ledger-toolbar strong{
  font-size:18px!important;
}
.pmat-clean-page .pmat-ledger-mainline{
  grid-template-columns:minmax(0,1.65fr) minmax(340px,.7fr)!important;
  gap:12px!important;
}
.pmat-clean-page .pmat-list-head{
  padding:10px 12px!important;
}
.pmat-clean-page .pmat-list-head strong{
  font-size:18px!important;
}
.pmat-clean-page .pmat-ledger-filters{
  padding:10px 12px!important;
}
.pmat-clean-page .pmat-table-wrap{
  max-height:calc(100vh - 330px)!important;
}
.pmat-clean-page .pmat-composer-table th,
.pmat-clean-page .pmat-composer-table td{
  padding:9px 10px!important;
}
.pmat-clean-page .pmat-composer-table .pmat-order-cell{
  width:62px!important;
}
.pmat-clean-page .pmat-composer-table .pmat-name-cell strong{
  font-size:14px!important;
}
.pmat-clean-page .pmat-reference-rail{
  display:block!important;
  min-width:0!important;
}
.pmat-clean-page .pmat-reference-primary{
  position:sticky!important;
  top:12px!important;
  max-height:calc(100vh - 150px)!important;
  min-width:0!important;
}
.pmat-clean-page .pmat-reference-head{
  padding:10px 12px!important;
}
.pmat-clean-page .pmat-reference-head h3{
  font-size:17px!important;
}
.pmat-clean-page .pmat-reference-filters{
  grid-template-columns:1fr!important;
  padding:0 12px 10px!important;
}
.pmat-clean-page .pmat-reference-list{
  max-height:calc(100vh - 330px)!important;
  padding:0 10px 12px!important;
}
.pmat-clean-page .pmat-reference-item{
  grid-template-columns:18px minmax(0,1fr) 52px!important;
  padding:8px!important;
  font-size:13px!important;
}
.pmat-clean-page .pmat-reference-item span{
  white-space:normal!important;
  word-break:normal!important;
  writing-mode:horizontal-tb!important;
}
.pmat-clean-page .pmat-tracking-panel{
  margin-top:10px!important;
}

.wf-scheme-detail-page .stage-one-split-workbench{
  grid-template-columns:300px minmax(0,1fr)!important;
  gap:12px!important;
}
.wf-scheme-detail-page .wf-scheme-side-nav{
  padding:8px!important;
}
.wf-scheme-detail-page .wf-scheme-side-head strong{
  font-size:16px!important;
}
.wf-scheme-detail-page .wf-scheme-side-nav button{
  padding:8px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head{
  padding:12px 14px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-head h3{
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit{
  gap:8px!important;
  padding:12px!important;
}
.wf-scheme-detail-page .wf-scheme-chief-edit textarea{
  min-height:76px!important;
}
.wf-scheme-detail-page .wf-module-assign-head,
.wf-scheme-detail-page .wf-program-ledger-head{
  padding:11px 14px!important;
}
.wf-scheme-detail-page .wf-module-assign-head h3,
.wf-scheme-detail-page .wf-program-ledger-head h3{
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-module-assign-head p,
.wf-scheme-detail-page .wf-program-ledger-head p{
  display:none!important;
}
.wf-scheme-detail-page .wf-program-ledger-summary{
  padding:8px 12px!important;
}
.wf-scheme-detail-page .wf-program-row{
  grid-template-columns:minmax(220px,1.1fr) minmax(220px,1.1fr) minmax(160px,.75fr) minmax(230px,1fr) 86px 92px!important;
}
.wf-scheme-detail-page .wf-advanced-drawer{
  margin-top:10px!important;
}

@media(max-width:1100px){
  .pra-risk-split-board,
  .pmat-clean-page .pmat-ledger-mainline,
  .wf-scheme-detail-page .stage-one-split-workbench{
    grid-template-columns:1fr!important;
  }
  .pra-risk-split-board .pra-clean-module-panel,
  .pmat-clean-page .pmat-reference-primary,
  .wf-scheme-detail-page .wf-scheme-left-panel{
    position:static!important;
    top:auto!important;
  }
}

/* 2026-07-25：项目风险评估改为“审计对象—风险判断—下游承接”。 */
.pra-object-risk-board{
  align-items:start!important;
}
.pra-object-panel{
  max-height:calc(100vh - 150px)!important;
  overflow:auto!important;
}
.pra-object-list{
  grid-template-columns:1fr!important;
  gap:6px!important;
  margin:10px 0!important;
}
.pra-object-card{
  padding-left:calc(10px + var(--pra-object-depth,0) * 16px)!important;
}
.pra-object-card small{
  font-size:12px!important;
}
.pra-object-empty{
  display:grid;
  gap:5px;
  padding:14px 10px;
  border:1px dashed #c8d6e8;
  border-radius:10px;
  color:#637188;
  line-height:1.5;
}
.pra-object-empty strong{
  color:#243653;
  font-size:15px;
}
.pra-add-object-button{
  width:100%;
  min-height:38px;
}
.pra-object-editor{
  display:grid;
  gap:9px;
  margin-top:10px;
  padding:11px;
  border:1px solid #c8d8ed;
  border-radius:12px;
  background:#f8fbff;
}
.pra-object-editor[hidden]{
  display:none!important;
}
.pra-object-editor label,
.pra-risk-detail label{
  display:grid;
  gap:5px;
  color:#4b5c74;
  font-size:12px;
  font-weight:700;
}
.pra-object-editor input,
.pra-object-editor select,
.pra-risk-detail input,
.pra-risk-detail select,
.pra-risk-detail textarea{
  width:100%;
  min-height:38px;
  padding:8px 10px;
  border:1px solid #cbd8e8;
  border-radius:8px;
  background:#fff;
  color:#1f2d43;
  font:inherit;
  font-weight:500;
}
.pra-object-editor>div:last-child{
  display:flex;
  justify-content:flex-end;
  gap:7px;
}
.pra-active-minimal>small{
  display:block;
  margin-top:3px;
  color:#6b788c;
  font-size:12px;
}
.pra-object-risk-board .pra-risk-table-action{
  flex-wrap:wrap!important;
}
.pra-object-risk-board .pra-active-minimal{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:center!important;
  justify-content:start!important;
  flex:1 1 230px!important;
  min-width:230px!important;
  margin:0!important;
  padding:0!important;
}
.pra-object-risk-board .pra-active-minimal span{
  min-width:0!important;
}
.pra-object-risk-board .pra-active-minimal h3{
  min-width:0!important;
  overflow-wrap:anywhere;
  line-height:1.35!important;
}
.pra-object-panel .pra-section-head p{
  margin:4px 0 0;
  color:#6b788c;
  font-size:11px;
  line-height:1.45;
}
.pra-object-panel .pra-add-object-button{
  width:100%;
}
.pra-object-entry-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.pra-object-entry-actions .pra-add-object-button{
  grid-column:1/-1;
}
.pra-object-entry-actions .btn-ghost,
.pra-risk-empty-actions .btn-ghost,
.pra-risk-table-head-actions .btn-ghost{
  border:1px dashed #aebed2;
  background:#fff;
  color:#52637a;
}
.pra-object-entry-actions .btn-ghost:hover,
.pra-risk-empty-actions .btn-ghost:hover,
.pra-risk-table-head-actions .btn-ghost:hover{
  border-color:#6f91bd;
  background:#f8fbff;
  color:#1d4ed8;
}
.pra-object-editor label>small,
.pra-reference-range-field>small,
.pra-risk-detail-grid label>small{
  color:#718096;
  font-size:11px;
  font-weight:500;
  line-height:1.45;
}
.pra-object-risk-board .pra-risk-table-buttons{
  flex:0 0 auto!important;
  margin-left:auto;
}
.pra-object-risk-workspace{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
  min-width:0;
}
.pra-object-risk-workspace:has(.pra-risk-detail:not([hidden])){
  grid-template-columns:minmax(520px,1fr) minmax(330px,390px);
}
.pra-object-risk-table{
  min-width:0!important;
  overflow:auto!important;
}
.pra-risk-empty-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}
.pra-reference-picker-note{
  margin:0;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  border-radius:10px;
  background:#eff6ff;
  color:#334155;
  font-size:13px;
  line-height:1.6;
}
.pra-reference-range-field{
  padding:11px 12px;
  border:1px solid #dbe5f1;
  border-radius:10px;
  background:#fff;
}
.pra-reference-match-basis{
  display:grid;
  gap:4px;
  padding:10px 12px;
  border-left:4px solid #2563eb;
  border-radius:8px;
  background:#f8fbff;
}
.pra-reference-match-basis strong{
  color:#1d4ed8;
  font-size:12px;
}
.pra-reference-match-basis span{
  color:#52637a;
  font-size:12px;
  line-height:1.55;
}
.pra-reference-suggestion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px dashed #f3bd74;
  border-radius:10px;
  background:#fffaf2;
}
.pra-reference-suggestion>div{
  display:grid;
  gap:3px;
}
.pra-reference-suggestion strong{
  color:#9a5b08;
  font-size:12px;
}
.pra-reference-suggestion span{
  color:#725b3d;
  font-size:11px;
  line-height:1.5;
}
.pra-reference-risk-list{
  display:grid;
  gap:8px;
  max-height:520px;
  overflow:auto;
  padding-right:3px;
}
.pra-reference-risk-list label{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:10px;
  padding:11px 12px;
  border:1px solid #dbe5f1;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
}
.pra-reference-risk-list label:hover{
  border-color:#93c5fd;
  background:#f8fbff;
}
.pra-reference-risk-list input{
  width:17px;
  height:17px;
  margin-top:2px;
  accent-color:#2563eb;
}
.pra-reference-risk-list strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  line-height:1.4;
}
.pra-reference-risk-list small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
}
.pra-project-reference-content{
  display:grid;
  gap:5px;
  min-width:0;
}
.pra-project-reference-module{
  color:#52637a;
  font-size:11px;
  font-weight:750;
  line-height:1.35;
}
.pra-project-reference-list small{
  margin-top:0;
  color:#52637a;
}
.pra-project-reference-list small b{
  margin-right:7px;
  color:#334155;
  font-size:11px;
}
.pra-object-reference-list label{
  min-height:82px;
}
.pra-reference-risk-list em{
  display:inline-flex;
  margin-top:7px;
  padding:3px 7px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.pra-object-risk-table table{
  min-width:760px!important;
}
.pra-object-risk-table th:nth-child(1),
.pra-object-risk-table td:nth-child(1){
  width:31%!important;
}
.pra-object-risk-table th:nth-child(2),
.pra-object-risk-table td:nth-child(2){
  width:30%!important;
}
.pra-object-risk-table th:nth-child(3),
.pra-object-risk-table td:nth-child(3){
  width:8%!important;
  text-align:center!important;
}
.pra-object-risk-table th:nth-child(4),
.pra-object-risk-table td:nth-child(4){
  width:18%!important;
}
.pra-object-risk-table th:nth-child(5),
.pra-object-risk-table td:nth-child(5){
  width:13%!important;
}
.pra-object-risk-table tr.is-selected td{
  background:#f1f6ff!important;
}
.pra-risk-title-button{
  display:grid;
  gap:4px;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.pra-risk-title-button strong{
  color:#20324d!important;
  font-size:14px!important;
}
.pra-risk-title-button>em{
  display:inline-flex;
  justify-self:start;
  margin-top:2px;
  padding:2px 6px;
  border-radius:999px;
  background:#fff2dc;
  color:#9a5b08;
  font-size:10px;
  font-style:normal;
  font-weight:800;
}
.pra-next-risk-task{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:10px 12px 4px;
  padding:10px 12px;
  border-left:4px solid #2563eb;
  border-radius:8px;
  background:#f5f9ff;
}
.pra-next-risk-task>div{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  gap:2px 8px;
  min-width:0;
}
.pra-next-risk-task span{
  color:#2563eb;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}
.pra-next-risk-task strong{
  overflow:hidden;
  color:#172033;
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-next-risk-task small{
  grid-column:1/-1;
  color:#64748b;
  font-size:11px;
  line-height:1.45;
}
.pra-next-risk-task.is-complete{
  border-left-color:#16a34a;
  background:#f4fbf7;
}
.pra-next-risk-task.is-complete span{color:#15803d}
.pra-risk-trace-section .pra-risk-responsibility-chain{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
@media(max-width:720px){
  .pra-next-risk-task{align-items:stretch;flex-direction:column}
  .pra-next-risk-task .btn{width:100%}
  .pra-next-risk-task>div{grid-template-columns:1fr}
  .pra-next-risk-task small{grid-column:auto}
  .pra-assessment-support>summary>em{display:none}
}
.pra-risk-score{
  display:inline-grid;
  min-width:64px;
  gap:1px;
  padding:5px 8px;
  border-radius:9px;
  text-align:center;
}
.pra-risk-score strong{
  font-size:13px;
  white-space:nowrap;
}
.pra-risk-score small{
  font-size:11px;
  color:inherit;
  opacity:.78;
}
.pra-risk-score.is-low{background:#eaf8ef;color:#18733c}
.pra-risk-score.is-medium{background:#fff4d8;color:#90600b}
.pra-risk-score.is-high{background:#ffeadf;color:#b54708}
.pra-risk-score.is-critical{background:#fee4e2;color:#b42318}
.pra-risk-score.is-pending{
  border:1px solid #dbe3ee;
  background:#f8fafc;
  color:#64748b;
}
.pra-risk-score.is-unrated{
  border:1px solid #cbd5e1;
  background:#f1f5f9;
  color:#475569;
}
.pra-risk-workbench-empty{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:12px 14px;
  padding:16px 18px;
  border:1px dashed #b9c9dc;
  border-radius:12px;
  background:#f8fbff;
}
.pra-risk-workbench-empty span,
.pra-risk-workbench-empty strong{
  display:block;
}
.pra-risk-workbench-empty span{
  color:#2563eb;
  font-size:11px;
  font-weight:850;
}
.pra-risk-workbench-empty strong{
  margin-top:3px;
  color:#172033;
  font-size:16px;
}
.pra-risk-workbench-empty p{
  margin:4px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
}
.pra-object-risk-table .is-missing{
  color:#9a5b11;
}
.pra-decision-label{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#eef2f7;
  color:#536177;
  font-size:12px;
  font-weight:800;
}
.pra-decision-label.is-priority{
  background:#feecec;
  color:#b42318;
}
.pra-decision-label.is-general{
  background:#eaf2ff;
  color:#2459b5;
}
.pra-decision-label.is-excluded{
  background:#f1f3f5;
  color:#667085;
}
.pra-decision-label.is-pending-evidence{
  background:#fff4df;
  color:#94610b;
}
.pra-risk-detail{
  position:sticky;
  top:12px;
  display:grid;
  gap:10px;
  max-height:calc(100vh - 155px);
  overflow:auto;
  padding:14px;
  border:1px solid #bfd2ee;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 28px rgba(32,62,108,.09);
}
.pra-risk-detail[hidden]{
  display:none!important;
}
.pra-risk-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:8px;
  border-bottom:1px solid #e2e9f2;
}
.pra-risk-detail-head span{
  color:#2f65d5;
  font-size:12px;
  font-weight:800;
}
.pra-risk-detail-head h3{
  margin:3px 0 0;
  color:#1d2b42;
  font-size:18px;
  line-height:1.35;
}
.pra-detail-close{
  width:30px;
  height:30px;
  border:1px solid #d4deea;
  border-radius:8px;
  background:#fff;
  color:#5c6b80;
  font-size:20px;
  cursor:pointer;
}
.pra-risk-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.pra-risk-detail label small{
  color:#7a8799;
  font-size:11px;
  font-weight:500;
  line-height:1.45;
}
.pra-risk-score-rule{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:3px 12px;
  padding:9px 11px;
  border:1px solid #d9e4f2;
  border-radius:10px;
  background:#f7faff;
}
.pra-risk-score-rule span{
  color:#40526c;
  font-size:12px;
  font-weight:800;
}
.pra-risk-score-rule strong{font-size:15px}
.pra-risk-score-rule strong.is-low{color:#18733c}
.pra-risk-score-rule strong.is-medium{color:#90600b}
.pra-risk-score-rule strong.is-high{color:#b54708}
.pra-risk-score-rule strong.is-critical{color:#b42318}
.pra-risk-score-rule small{
  grid-column:1/-1;
  color:#6d7b8e;
  font-size:11px;
}
.pra-risk-scale-guide{
  margin-top:-3px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fbfdff;
}
.pra-risk-scale-guide summary{
  padding:7px 10px;
  cursor:pointer;
  color:#53657c;
  font-size:11px;
  font-weight:800;
}
.pra-risk-scale-guide>div{
  display:grid;
  gap:5px;
  padding:0 10px 9px;
}
.pra-risk-scale-guide p{
  margin:0;
  color:#5f6f84;
  font-size:11px;
  line-height:1.55;
}
.pra-risk-scale-guide strong{color:#30445f}
.pra-risk-basis-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.pra-risk-matrix{
  border-top:1px solid #e5ebf3;
  background:#fbfdff;
}
.pra-risk-matrix summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  cursor:pointer;
  color:#36506f;
  font-size:12px;
  font-weight:800;
}
.pra-risk-matrix summary small{
  color:#7b8798;
  font-weight:500;
}
.pra-risk-matrix-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(48px,1fr));
  gap:4px;
  max-width:500px;
  padding:2px 14px 10px;
}
.pra-risk-matrix-grid>span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:34px;
  padding:5px 8px;
  border-radius:7px;
}
.pra-risk-matrix-grid b{font-size:13px}
.pra-risk-matrix-grid small{font-size:10px;opacity:.72}
.pra-risk-matrix-grid .is-low{background:#dff4e6;color:#176b38}
.pra-risk-matrix-grid .is-medium{background:#fff0bd;color:#835700}
.pra-risk-matrix-grid .is-high{background:#ffd9bf;color:#a23f00}
.pra-risk-matrix-grid .is-critical{background:#ffc8c5;color:#a61b16}
.pra-risk-matrix-legend{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:0 14px 12px;
}
.pra-risk-matrix-legend span{
  padding:3px 7px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
}
.pra-risk-matrix-legend .is-low{background:#dff4e6;color:#176b38}
.pra-risk-matrix-legend .is-medium{background:#fff0bd;color:#835700}
.pra-risk-matrix-legend .is-high{background:#ffd9bf;color:#a23f00}
.pra-risk-matrix-legend .is-critical{background:#ffc8c5;color:#a61b16}
.pra-risk-response-details{
  border-top:1px solid #e2e9f2;
  padding-top:8px;
}
.pra-risk-response-details summary{
  cursor:pointer;
  color:#315fd6;
  font-size:13px;
  font-weight:800;
}
.pra-risk-response-details[open]{
  display:grid;
  gap:9px;
}
.pra-risk-response-details[open] summary{
  margin-bottom:3px;
}
.pra-professional-reference{
  padding:10px;
  border:1px solid #d9e5ff;
  border-radius:10px;
  background:#f8fbff;
}
.pra-professional-reference>p,
.pra-professional-reference>small{
  margin:0;
  color:#60718a;
  font-size:11px;
  line-height:1.55;
}
.pra-professional-reference section{
  min-width:0;
  padding:8px 10px;
  border:1px solid #e3eaf5;
  border-radius:8px;
  background:#fff;
}
.pra-professional-reference section>strong{
  display:block;
  margin-bottom:5px;
  color:#283a54;
  font-size:12px;
}
.pra-professional-reference ul{
  display:grid;
  gap:4px;
  margin:0;
  padding-left:17px;
}
.pra-professional-reference li{
  color:#53657c;
  font-size:11px;
  line-height:1.5;
}
.pra-professional-reference li b,
.pra-professional-reference li span{
  display:block;
}
.pra-risk-detail-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:4px;
}
.pra-risk-row-actions{
  display:grid;
  grid-template-columns:1fr;
  align-items:stretch;
  justify-content:stretch;
  gap:6px;
  min-width:0;
}
.pra-risk-row-actions .btn{
  width:100%;
  min-width:0;
  padding-right:8px;
  padding-left:8px;
  white-space:normal;
}
.pra-selected-risk-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.pra-risk-handoffs{
  display:grid;
  grid-template-columns:auto auto minmax(250px,1fr);
  align-items:center;
  gap:18px;
  margin-top:10px;
  padding:9px 12px;
  border:1px solid #d6e2f0;
  border-radius:12px;
  background:#f8fbff;
}
.pra-inline-decision{
  width:100%;
  min-width:112px;
  min-height:36px;
  padding:6px 30px 6px 10px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  background:#fff;
  color:#334155;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}
.pra-inline-decision.is-priority{border-color:#f59e0b;background:#fff7ed;color:#b45309}
.pra-inline-decision.is-general{border-color:#60a5fa;background:#eff6ff;color:#1d4ed8}
.pra-inline-decision.is-excluded{border-color:#cbd5e1;background:#f8fafc;color:#64748b}
.pra-inline-decision:focus{outline:3px solid rgba(37,99,235,.16);border-color:#2563eb}
html[data-theme="dark"] .pra-inline-decision{border-color:#41536b;background:#101a2a;color:#e8eef7}

/* 审前主线：风险清单直接承接到审计方案，资料台账作为并行支持工作台 */
.preaudit-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.preaudit-workbench-nav.is-lean .preaudit-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.wf-inherited-risk-register{
  margin:14px 0;
  border:1px solid #cddbeb;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.wf-inherited-risk-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 20px;
  border-bottom:1px solid #e2e8f0;
  background:#f8fbff;
}
.wf-inherited-risk-head span{display:block;color:#2563eb;font-size:13px;font-weight:800}
.wf-inherited-risk-head h3{margin:3px 0;font-size:19px;color:#172033}
.wf-inherited-risk-head p{margin:0;color:#64748b;font-size:14px}
.wf-inherited-risk-head>strong{color:#1d4ed8;font-size:14px;white-space:nowrap}
.wf-inherited-risk-rows{display:grid}
.wf-inherited-risk-row{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 110px 90px;
  align-items:center;
  gap:16px;
  min-height:58px;
  padding:10px 20px;
  border-bottom:1px solid #edf2f7;
  color:#334155;
  font-size:14px;
}
.wf-inherited-risk-row:last-child{border-bottom:0}
.wf-inherited-risk-row span:first-child{display:flex;flex-direction:column;gap:2px}
.wf-inherited-risk-row strong{font-size:15px;color:#172033}
.wf-inherited-risk-row small{font-size:13px;color:#64748b}
html[data-theme="dark"] .wf-inherited-risk-register{background:#111827;border-color:#334155}
html[data-theme="dark"] .wf-inherited-risk-head{background:#172033;border-color:#334155}
html[data-theme="dark"] .wf-inherited-risk-row{border-color:#263244;color:#cbd5e1}
html[data-theme="dark"] .wf-inherited-risk-row strong,
html[data-theme="dark"] .wf-inherited-risk-head h3{color:#f8fafc}
@media(max-width:760px){
  .wf-inherited-risk-head{align-items:flex-start;flex-direction:column}
  .wf-inherited-risk-row{grid-template-columns:1fr 90px}
  .wf-inherited-risk-row span:last-child{display:none}
}
.pra-risk-handoffs>div:not(.pra-risk-handoff-actions){
  display:flex;
  align-items:baseline;
  gap:6px;
}
.pra-risk-handoffs strong{
  color:#255fd5;
  font-size:18px;
}
.pra-risk-handoffs span{
  color:#5f6d81;
  font-size:12px;
}
.pra-risk-handoff-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
.pra-risk-handoff-actions small{
  color:#64748b;
  font-size:11px;
  line-height:1.4;
  text-align:right;
}
html[data-theme="dark"] .pra-object-editor,
html[data-theme="dark"] .pra-risk-detail,
html[data-theme="dark"] .pra-risk-handoffs{
  border-color:#33445b;
  background:#172235;
}
html[data-theme="dark"] .pra-object-editor input,
html[data-theme="dark"] .pra-object-editor select,
html[data-theme="dark"] .pra-risk-detail input,
html[data-theme="dark"] .pra-risk-detail select,
html[data-theme="dark"] .pra-risk-detail textarea{
  border-color:#41536b;
  background:#101a2a;
  color:#e8eef7;
}
@media(max-width:1380px){
  .pra-object-risk-workspace:has(.pra-risk-detail:not([hidden])){
    grid-template-columns:minmax(0,1fr)!important;
  }
  .pra-risk-detail{
    position:static;
    max-height:none;
  }
}
@media(max-width:720px){
  .pra-risk-detail-grid,
  .pra-risk-basis-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .pra-risk-detail-grid,
  .pra-risk-handoffs{
    grid-template-columns:1fr!important;
  }
  .pra-risk-handoff-actions{
    justify-content:stretch;
  }
  .pra-risk-handoff-actions .btn{
    flex:1;
  }
}

/* 2026-07-25：审计方案以方案正文为主，人员分工降级为行内附属字段。 */
.wf-scheme-detail-page .wf-scheme-plan-first{
  margin:0 0 12px!important;
}
.wf-scheme-detail-page .wf-scheme-plan-first .wf-scheme-brief{
  margin:0!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.wf-scheme-detail-page .wf-scheme-plan-first .wf-scheme-chief-edit{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
}
.wf-scheme-detail-page .wf-scheme-plan-first .wf-scheme-quick-dates,
.wf-scheme-detail-page .wf-scheme-plan-first .wf-scheme-team-line,
.wf-scheme-detail-page .wf-scheme-plan-first .wf-scheme-module-line,
.wf-scheme-detail-page .wf-scheme-plan-first [data-wf-quick-feedback]{
  grid-column:1/-1!important;
}
.wf-scheme-detail-page .wf-scheme-workbench.stage-one-split-workbench{
  grid-template-columns:240px minmax(0,1fr)!important;
}
.wf-scheme-detail-page .wf-scheme-left-panel{
  position:sticky!important;
  top:12px!important;
}
.wf-scheme-detail-page .wf-module-assign-card{
  border:1px solid #cfe0f5!important;
}
.wf-scheme-detail-page .wf-module-assign-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.wf-scheme-detail-page .wf-module-assign-head h3{
  font-size:20px!important;
}
.wf-scheme-detail-page .wf-module-assign-head p{
  display:block!important;
  margin:4px 0 0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.wf-scheme-detail-page .wf-ma-row{
  grid-template-columns:160px minmax(220px,1.15fr) minmax(300px,1.45fr) 130px 126px 72px!important;
}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(1),
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(4),
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(5){
  grid-column:auto!important;
}
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(2),
.wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header)>label:nth-child(3){
  grid-column:auto!important;
}
.wf-scheme-detail-page .wf-ma-row textarea{
  min-height:64px!important;
}
.wf-scheme-detail-page .wf-ma-row .wf-ma-owner,
.wf-scheme-detail-page .wf-ma-row .wf-ma-due{
  min-height:38px!important;
}
@media(max-width:1180px){
  .wf-scheme-detail-page .wf-scheme-plan-first .wf-scheme-chief-edit,
  .wf-scheme-detail-page .wf-scheme-workbench.stage-one-split-workbench,
  .wf-scheme-detail-page .wf-ma-row{
    grid-template-columns:1fr!important;
  }
  .wf-scheme-detail-page .wf-scheme-left-panel{
    position:static!important;
  }
}

/* 2026-07-27：风险判断表以风险事项和项目事实为主，避免历史规则把标题列压成竖排。 */
.pra-risk-mainline .pra-object-risk-table table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.pra-risk-mainline .pra-object-risk-table{
  min-height:0!important;
  overflow-x:hidden!important;
}
.pra-risk-mainline .pra-object-risk-table th,
.pra-risk-mainline .pra-object-risk-table td{
  padding:10px 11px!important;
}
.pra-risk-mainline .pra-object-risk-table th:nth-child(1),
.pra-risk-mainline .pra-object-risk-table td:nth-child(1){
  width:25%!important;
  text-align:left!important;
}
.pra-risk-mainline .pra-object-risk-table th:nth-child(2),
.pra-risk-mainline .pra-object-risk-table td:nth-child(2){
  width:29%!important;
}
.pra-risk-mainline .pra-object-risk-table th:nth-child(3),
.pra-risk-mainline .pra-object-risk-table td:nth-child(3){
  width:12%!important;
  text-align:center!important;
  vertical-align:middle!important;
}
.pra-risk-mainline .pra-object-risk-table th:nth-child(4),
.pra-risk-mainline .pra-object-risk-table td:nth-child(4){
  width:16%!important;
  text-align:center!important;
  vertical-align:middle!important;
}
.pra-risk-mainline .pra-object-risk-table th:nth-child(5),
.pra-risk-mainline .pra-object-risk-table td:nth-child(5){
  width:18%!important;
  text-align:center!important;
  vertical-align:middle!important;
}
.pra-risk-mainline .pra-object-risk-table .pra-risk-title-button{
  min-width:0!important;
}
.pra-risk-mainline .pra-object-risk-table .pra-risk-title-button strong{
  word-break:normal!important;
  overflow-wrap:break-word!important;
  font-size:15px!important;
  line-height:1.45!important;
}
.pra-risk-mainline .pra-object-risk-table td:nth-child(2){
  color:#475569!important;
  line-height:1.55!important;
}
.pra-risk-mainline .pra-object-risk-table td:nth-child(5) .btn{
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
}
.wf-risk-scheme-table{border:1px solid #d9e4f2;border-radius:14px;background:#fff;overflow:hidden;margin-bottom:16px}
.wf-risk-scheme-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #e5edf6}
.wf-risk-scheme-head span{display:block;color:#2563eb;font-size:13px;font-weight:700;margin-bottom:4px}
.wf-risk-scheme-head h3{font-size:19px;margin:0 0 5px;color:#172033}
.wf-risk-scheme-head p{margin:0;color:#64748b;font-size:14px}
.wf-risk-scheme-head>strong{min-width:54px;padding:7px 10px;border-radius:999px;background:#eef5ff;color:#1d4ed8;text-align:center}
.wf-risk-scheme-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.wf-risk-scheme-head-actions>strong{min-width:54px;padding:7px 10px;border-radius:999px;background:#eef5ff;color:#1d4ed8;text-align:center}
.wf-risk-scheme-grid{overflow:auto}
.wf-risk-scheme-row{display:grid;grid-template-columns:minmax(135px,.85fr) minmax(180px,1.15fr) minmax(190px,1.2fr) minmax(240px,1.5fr) minmax(100px,.65fr) minmax(105px,.65fr);min-width:1040px;border-bottom:1px solid #e9eff6}
.wf-risk-scheme-row:last-child{border-bottom:0}
.wf-risk-scheme-row>span{padding:13px 14px;color:#334155;font-size:14px;line-height:1.55}
.wf-risk-scheme-row>span strong,.wf-risk-scheme-row>span small{display:block}
.wf-risk-scheme-row>span small{color:#7b8798;margin-top:3px}
.wf-risk-scheme-row>span:nth-child(2) small:last-child{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.wf-risk-scheme-row.is-head{background:#f6f8fb;color:#526075;font-weight:700}
.wf-risk-scheme-row.is-head>span{padding-top:10px;padding-bottom:10px}
.wf-risk-scheme-row.is-missing{background:#fffaf2}
.wf-risk-scheme-row.is-source-stale{background:#fff8eb;box-shadow:inset 3px 0 0 #d97706}
.wf-risk-scheme-row.is-source-stale>span small{color:#a15c08}
.wf-scheme-detail-page .wf-plan-matrix{
  border:1px solid #d8e2ef!important;
  background:#fff!important;
  overflow:hidden!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-table{
  overflow-x:auto!important;
  padding:0!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
  grid-template-columns:minmax(210px,1.05fr) minmax(190px,.95fr) minmax(235px,1.18fr) minmax(220px,1.05fr) minmax(175px,.82fr) minmax(110px,.55fr)!important;
  min-width:1160px!important;
  gap:0!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid #e5ebf3!important;
  border-radius:0!important;
  align-items:stretch!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row:last-child{border-bottom:0!important}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row>span{
  min-width:0!important;
  padding:12px!important;
  border-right:1px solid #edf1f6!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row>span:last-child{border-right:0!important}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-head{
  background:#f5f8fc!important;
  color:#475569!important;
  font-size:13px!important;
  font-weight:800!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-risk-gap{
  background:#fffaf0!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-source-stale{
  background:#fff8eb!important;
  box-shadow:inset 3px 0 0 #d97706!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row strong,
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row small,
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row em{
  display:block!important;
  white-space:normal!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row em{
  margin-top:6px!important;
  color:#64748b!important;
  font-size:12px!important;
  font-style:normal!important;
  line-height:1.45!important;
}
.wf-scheme-detail-page .wf-program-cell-edit{
  display:grid!important;
  gap:6px!important;
}
.wf-scheme-detail-page .wf-program-cell-edit input,
.wf-scheme-detail-page .wf-program-cell-edit select,
.wf-scheme-detail-page .wf-program-cell-edit textarea{
  width:100%!important;
  box-sizing:border-box!important;
  border:1px solid #d6e0ec!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#172033!important;
  font:inherit!important;
  font-size:13px!important;
  line-height:1.45!important;
  padding:8px 9px!important;
  resize:vertical!important;
}
.wf-scheme-detail-page .wf-program-cell-edit input:focus,
.wf-scheme-detail-page .wf-program-cell-edit select:focus,
.wf-scheme-detail-page .wf-program-cell-edit textarea:focus{
  outline:0!important;
  border-color:#6ea1f8!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.1)!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-inline-edit{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row-actions{
  align-content:start!important;
}
.wf-scheme-module-drawer{border:1px solid #dfe7f1;border-radius:12px;background:#fff;margin-bottom:16px}
.wf-scheme-module-drawer>summary{display:flex;align-items:center;gap:12px;padding:13px 16px;cursor:pointer;list-style:none}
.wf-scheme-module-drawer>summary span{color:#2563eb;font-size:13px;font-weight:700}
.wf-scheme-module-drawer>summary strong{font-size:14px;color:#334155}
.wf-scheme-module-drawer>summary b{margin-left:auto;color:#64748b;font-size:13px}
.wf-scheme-module-drawer .wf-module-assign-card{border:0;border-top:1px solid #e5edf6;border-radius:0}
.wf-risk-program-matrix{border-top:1px solid #dfe7f1;background:#fbfdff}
.wf-risk-program-matrix-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:16px 18px}
.wf-risk-program-matrix-head span{display:block;margin-bottom:4px;color:#2563eb;font-size:13px;font-weight:800}
.wf-risk-program-matrix-head h3{margin:0;color:#172033;font-size:17px}
.wf-risk-program-matrix-head p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.55}
.wf-risk-program-matrix-head>strong{flex:none;padding:7px 10px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:13px}
.wf-risk-program-matrix-scroll{overflow:auto;border-top:1px solid #e5ebf3}
.wf-risk-program-matrix table{width:100%;min-width:760px;border-collapse:collapse;background:#fff}
.wf-risk-program-matrix th,.wf-risk-program-matrix td{padding:10px 12px;border-right:1px solid #e8eef5;border-bottom:1px solid #e8eef5;text-align:center;vertical-align:middle}
.wf-risk-program-matrix th:first-child{position:sticky;left:0;z-index:2;width:260px;min-width:260px;background:#f7f9fc;text-align:left}
.wf-risk-program-matrix thead th{background:#f7f9fc;color:#475569;font-size:12px}
.wf-risk-program-matrix thead th b,.wf-risk-program-matrix thead th small{display:block}
.wf-risk-program-matrix thead th b{color:#2563eb;font-size:12px}
.wf-risk-program-matrix thead th small{max-width:150px;margin:3px auto 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-risk-program-matrix tbody th strong,.wf-risk-program-matrix tbody th small{display:block}
.wf-risk-program-matrix tbody th strong{color:#172033;font-size:13px}
.wf-risk-program-matrix tbody th small{margin-top:3px;color:#64748b;font-size:12px}
.wf-risk-program-check{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #dbe4ef;border-radius:8px;background:#fff;color:#64748b;font-size:12px;cursor:pointer}
.wf-risk-program-check:has(input:checked){border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;font-weight:700}
.wf-risk-program-check input{width:15px;height:15px;accent-color:#2563eb}
.wf-scheme-integrity{border-top:1px solid #dfe7f1;background:#fff}
.wf-scheme-integrity>summary{display:flex;align-items:center;gap:18px;padding:15px 18px;cursor:pointer;list-style:none}
.wf-scheme-integrity>summary>div{min-width:0}
.wf-scheme-integrity>summary span,.wf-scheme-integrity>summary strong,.wf-scheme-integrity>summary small{display:block}
.wf-scheme-integrity>summary span{color:#2563eb;font-size:13px;font-weight:800}
.wf-scheme-integrity>summary strong{margin-top:3px;color:#172033;font-size:15px}
.wf-scheme-integrity>summary small{margin-top:3px;color:#64748b;font-size:12px}
.wf-scheme-integrity>summary>b{margin-left:auto;flex:none;color:#1d4ed8;font-size:13px}
.wf-scheme-integrity-body{padding:0 18px 18px}
.wf-scheme-integrity-list{display:grid;gap:7px}
.wf-scheme-integrity-list button{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:10px 12px;border:1px solid #e3eaf2;border-radius:9px;background:#fbfdff;text-align:left;cursor:pointer}
.wf-scheme-integrity-list button:hover{border-color:#93c5fd;background:#f5f9ff}
.wf-scheme-integrity-list button span{color:#64748b;font-size:12px}
.wf-scheme-integrity-list button strong{color:#334155;font-size:13px}
.wf-scheme-integrity-list button b{color:#2563eb;font-size:12px}
.wf-scheme-integrity-pass{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #bbf7d0;border-radius:9px;background:#f0fdf4}
.wf-scheme-integrity-pass strong{color:#15803d}
.wf-scheme-integrity-pass span{color:#4b6354;font-size:13px}
@media(max-width:900px){.wf-risk-scheme-head{display:block}.wf-risk-scheme-head>strong{display:inline-block;margin-top:10px}.wf-risk-scheme-head-actions{margin-top:10px;justify-content:flex-start}}

/* 2026-07-27：审计方案阅读态优先，编辑工具按需展开。 */
.wf-scheme-detail-page .wf-scheme-plan-first{margin-bottom:12px!important}
.wf-scheme-detail-page .wf-scheme-brief-compact{
  overflow:hidden;
  border:1px solid #dce5f0!important;
  border-radius:12px!important;
  background:#fff!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head{
  min-height:0!important;
  padding:14px 18px!important;
  border-bottom:1px solid #e7edf4!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head h3{
  margin:2px 0!important;
  font-size:20px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head>div:first-child>span,
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head>div:first-child>small{
  font-size:12px!important;
}
.wf-scheme-summary-line{
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) minmax(220px,1.35fr) minmax(155px,.72fr) minmax(190px,.9fr);
  background:#fbfcfe;
}
.wf-scheme-summary-line>div{
  min-width:0;
  padding:12px 16px;
  border-right:1px solid #e7edf4;
}
.wf-scheme-summary-line>div:last-child{border-right:0}
.wf-scheme-summary-line span,.wf-scheme-summary-line strong,.wf-scheme-summary-line small{display:block}
.wf-scheme-summary-line span{margin-bottom:4px;color:#64748b;font-size:11px;font-weight:800}
.wf-scheme-summary-line strong{
  overflow:hidden;
  color:#1e293b;
  font-size:13px;
  font-weight:750;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wf-scheme-summary-line small{margin-top:3px;overflow:hidden;color:#64748b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.wf-scheme-content-focus{
  margin-bottom:12px;
  padding:18px;
  border:1px solid #dce5f0;
  border-radius:12px;
  background:#fff;
}
.wf-scheme-content-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.wf-scheme-content-head span{display:block;margin-bottom:3px;color:#2563eb;font-size:12px;font-weight:850}
.wf-scheme-content-head h3{margin:0;color:#172033;font-size:20px}
.wf-scheme-content-stats{display:flex;align-items:center;gap:5px;color:#64748b;font-size:13px}
.wf-scheme-content-stats>b{color:#1e293b;font-size:15px}
.wf-scheme-draft-refresh{
  margin-left:10px;
  padding:7px 10px;
  border:1px solid #d7e1ed;
  border-radius:8px;
  background:#fff;
  color:#2563eb;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.wf-integrity-trigger{
  margin-left:10px;
  padding:7px 10px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:#eff6ff;
  color:#1d4ed8;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}
.wf-scheme-module-list{display:grid;gap:8px}
.wf-scheme-module-card{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 130px 210px 130px;
  gap:16px;
  align-items:center;
  width:100%;
  padding:13px 15px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#fff;
  color:#334155;
  text-align:left;
  cursor:pointer;
}
.wf-scheme-module-card:hover{border-color:#93c5fd;background:#f8fbff}
.wf-scheme-module-card>div span,.wf-scheme-module-card>div strong{display:block}
.wf-scheme-module-card>div span{color:#172033;font-size:15px;font-weight:850}
.wf-scheme-module-card>div strong{margin-top:3px;overflow:hidden;color:#64748b;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.wf-scheme-module-card small{color:#64748b;font-size:12px}
.wf-scheme-module-card small b{color:#1e293b}
.wf-scheme-module-card em{justify-self:end;padding:5px 8px;border-radius:999px;background:#f0fdf4;color:#15803d;font-size:11px;font-style:normal;font-weight:750}
.wf-scheme-module-card.is-incomplete em{background:#fff7ed;color:#b45309}
.wf-scheme-add-module-link{
  margin-top:10px;
  padding:5px 0;
  border:0;
  background:transparent;
  color:#2563eb;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
.wf-scheme-module-empty{display:flex;align-items:center;gap:14px;padding:16px;border:1px dashed #bfdbfe;border-radius:10px;background:#f8fbff}
.wf-scheme-module-empty strong{color:#1e293b}
.wf-scheme-module-empty span{color:#64748b;font-size:13px}
.wf-scheme-module-empty .btn{margin-left:auto}
.wf-scheme-generate-empty{justify-content:space-between;padding:20px}
.wf-scheme-generate-empty>div:first-child{max-width:760px}
.wf-scheme-generate-empty strong,.wf-scheme-generate-empty span,.wf-scheme-generate-empty small{display:block}
.wf-scheme-generate-empty strong{font-size:17px}
.wf-scheme-generate-empty span{margin-top:5px;line-height:1.6}
.wf-scheme-generate-empty small{margin-top:8px;color:#2563eb;font-size:12px}
.wf-scheme-generate-empty>div:last-child{display:flex;align-items:center;gap:8px;flex:none}
.wf-scheme-generate-empty .btn{margin-left:0}
.wf-scheme-generate-empty label{display:grid;gap:4px}
.wf-scheme-generate-empty label span{font-size:11px}
.wf-scheme-generate-empty select{
  min-width:160px;
  height:38px;
  padding:0 30px 0 10px;
  border:1px solid #cbd9e8;
  border-radius:9px;
  background:#fff;
  color:#334155;
}
.wf-module-assign-actions select{
  min-width:150px;
  height:34px;
  padding:0 30px 0 10px;
  border:1px solid #d7e1ed;
  border-radius:8px;
  background:#fff;
  color:#334155;
  font-size:12px;
}
.wf-scheme-content-editor,.wf-scheme-tools{
  margin-bottom:12px;
  border:1px solid #dce5f0;
  border-radius:12px;
  background:#fff;
}
.wf-scheme-content-editor>summary,.wf-scheme-tools>summary{
  display:flex;
  align-items:center;
  gap:16px;
  padding:13px 16px;
  cursor:pointer;
  list-style:none;
}
.wf-scheme-content-editor>summary>div span,.wf-scheme-content-editor>summary>div strong,
.wf-scheme-tools>summary span,.wf-scheme-tools>summary strong{display:block}
.wf-scheme-content-editor>summary span,.wf-scheme-tools>summary span{color:#2563eb;font-size:12px;font-weight:800}
.wf-scheme-content-editor>summary strong,.wf-scheme-tools>summary strong{margin-top:2px;color:#334155;font-size:14px}
.wf-scheme-content-editor>summary>b,.wf-scheme-tools>summary>b{margin-left:auto;color:#64748b;font-size:12px}
.wf-scheme-content-editor-body{padding:0 14px 14px;border-top:1px solid #e7edf4}
.wf-scheme-content-editor-body>.wf-module-assign-card{margin-top:14px!important}
.wf-scheme-editor-actions{display:flex;justify-content:flex-end;padding:12px 2px 0}
.wf-scheme-tools>div{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 14px;border-top:1px solid #e7edf4}
.wf-scheme-tools>div button{margin-top:12px;padding:8px 11px;border:1px solid #d7e1ed;border-radius:8px;background:#fff;color:#334155;font-size:12px;font-weight:700;cursor:pointer}
.wf-scheme-tools>div button:hover{border-color:#93c5fd;color:#1d4ed8;background:#f8fbff}
@media(max-width:1050px){
  .wf-scheme-summary-line{grid-template-columns:1fr 1fr}
  .wf-scheme-summary-line>div:nth-child(2){border-right:0}
  .wf-scheme-summary-line>div:nth-child(-n+2){border-bottom:1px solid #e7edf4}
  .wf-scheme-module-card{grid-template-columns:minmax(220px,1fr) 120px 170px}
  .wf-scheme-module-card em{display:none}
}
@media(max-width:720px){
  .wf-scheme-summary-line,.wf-scheme-module-card{grid-template-columns:1fr}
  .wf-scheme-summary-line>div{border-right:0;border-bottom:1px solid #e7edf4}
  .wf-scheme-summary-line>div:last-child{border-bottom:0}
  .wf-scheme-content-head,.wf-scheme-module-empty{align-items:flex-start;flex-direction:column}
  .wf-scheme-content-stats{flex-wrap:wrap}
  .wf-scheme-module-empty .btn{margin-left:0}
  .wf-scheme-generate-empty>div:last-child,.wf-module-assign-actions{flex-wrap:wrap}
}

/* 2026-07-27：审计方案以一张可扫描程序表为主，编辑区按行展开。 */
.wf-scheme-detail-page .wf-scheme-command-line{
  padding:12px 16px!important;
}
.wf-scheme-detail-page .wf-scheme-command-line .wf-scheme-content-head{
  margin:0!important;
}
.wf-scheme-detail-page .wf-scheme-command-line h3{
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-scheme-command-line>p{
  margin:6px 0 0;
  color:#64748b;
  font-size:12px;
}
.wf-scheme-detail-page .wf-program-ledger{
  margin-bottom:12px!important;
  border-radius:12px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head{
  padding:14px 16px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head h3{
  font-size:19px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head p{
  margin-top:4px!important;
  font-size:12px!important;
}
.wf-scheme-detail-page .wf-program-ledger-summary{
  padding:8px 16px!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
  grid-template-columns:minmax(135px,.78fr) minmax(180px,1.08fr) minmax(175px,1fr) minmax(220px,1.25fr) minmax(190px,1.08fr) minmax(105px,.62fr) minmax(115px,.66fr)!important;
  min-width:1180px!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-program-summary>span{
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  min-height:66px;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-program-summary>span:nth-child(3){
  color:#475569;
  font-size:13px;
  line-height:1.5;
}
.wf-program-item{
  border-bottom:1px solid #e5ebf3;
}
.wf-program-item:last-child{
  border-bottom:0;
}
.wf-program-item>.wf-program-row{
  border-bottom:0!important;
}
.wf-program-item.is-source-stale>.wf-program-row{
  background:#fff8eb!important;
  box-shadow:inset 3px 0 0 #d97706!important;
}
.wf-program-edit-toggle{
  align-self:flex-start;
  margin-top:7px;
  padding:5px 10px;
  border:1px solid #bfdbfe;
  border-radius:7px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.wf-program-edit-toggle:hover{
  border-color:#60a5fa;
  background:#dbeafe;
}
.wf-program-edit-panel{
  padding:16px;
  border-top:1px solid #dbe7f4;
  background:#f8fbff;
}
.wf-program-edit-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.wf-program-edit-head span,
.wf-program-edit-head strong{
  display:block;
}
.wf-program-edit-head span{
  color:#2563eb;
  font-size:11px;
  font-weight:800;
}
.wf-program-edit-head strong{
  margin-top:2px;
  color:#172033;
  font-size:15px;
}
.wf-program-edit-head>button{
  padding:6px 10px;
  border:1px solid #d7e1ed;
  border-radius:7px;
  background:#fff;
  color:#475569;
  cursor:pointer;
}
.wf-program-edit-grid{
  display:grid;
  grid-template-columns:minmax(220px,.9fr) minmax(300px,1.2fr) minmax(260px,1.05fr) minmax(190px,.72fr);
  gap:12px;
}
.wf-program-edit-grid>label{
  display:grid;
  align-content:start;
  gap:6px;
  min-width:0;
}
.wf-program-edit-grid>label>span{
  color:#475569;
  font-size:12px;
  font-weight:800;
}
.wf-program-edit-grid input,
.wf-program-edit-grid select,
.wf-program-edit-grid textarea{
  width:100%;
  box-sizing:border-box;
  padding:8px 9px;
  border:1px solid #ccd9e8;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
  line-height:1.45;
}
.wf-program-edit-grid textarea{
  resize:vertical;
}
.wf-program-edit-grid input:focus,
.wf-program-edit-grid select:focus,
.wf-program-edit-grid textarea:focus{
  outline:0;
  border-color:#60a5fa;
  box-shadow:0 0 0 2px rgba(37,99,235,.1);
}
.wf-program-edit-foot{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:12px;
}
.wf-program-edit-foot>span{
  color:#64748b;
  font-size:12px;
}
.wf-scheme-tools>.wf-scheme-tool-actions{
  padding:0 16px 12px!important;
}
.wf-scheme-tools>.wf-scheme-module-drawer,
.wf-scheme-tools>.wf-scheme-secondary-drawer{
  margin:0 12px 10px;
  border:1px solid #e1e8f1;
  border-radius:9px;
  background:#fbfcfe;
}
.wf-scheme-tools>.wf-scheme-module-drawer>summary,
.wf-scheme-tools>.wf-scheme-secondary-drawer>summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  list-style:none;
  cursor:pointer;
}
.wf-scheme-tools>.wf-scheme-module-drawer>summary span,
.wf-scheme-tools>.wf-scheme-secondary-drawer>summary span{
  color:#2563eb;
  font-size:12px;
  font-weight:800;
}
.wf-scheme-tools>.wf-scheme-module-drawer>summary strong,
.wf-scheme-tools>.wf-scheme-secondary-drawer>summary strong{
  color:#334155;
  font-size:13px;
}
.wf-scheme-tools>.wf-scheme-module-drawer>summary b,
.wf-scheme-tools>.wf-scheme-secondary-drawer>summary b{
  margin-left:auto;
  color:#64748b;
  font-size:12px;
}
.wf-scheme-tools .wf-scheme-module-drawer .wf-module-assign-card{
  margin:0!important;
  border:0!important;
  border-top:1px solid #e5ebf3!important;
  border-radius:0!important;
}
.wf-scheme-tools .wf-scheme-secondary-drawer>.wf-risk-program-matrix,
.wf-scheme-tools .wf-scheme-secondary-drawer>.wf-scheme-integrity{
  margin:0;
  border:0;
  border-top:1px solid #e5ebf3;
  border-radius:0;
}
.wf-scheme-detail-page .wf-ma-row{
  grid-template-columns:170px minmax(300px,1fr) 150px 130px 72px!important;
}
@media(max-width:1050px){
  .wf-program-edit-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:720px){
  .wf-program-edit-grid{
    grid-template-columns:1fr;
  }
  .wf-program-edit-foot{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Project risk workbench: matrix, factor drivers and risk path share one record. */
.pra-risk-visual-workbench{margin:0 0 16px;border-top:1px solid #dbe5f0;border-bottom:1px solid #dbe5f0;background:#fbfdff}
.pra-workbench-tabs{display:flex;align-items:center;gap:4px;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.pra-workbench-tabs button{padding:8px 14px;border:0;border-radius:7px;background:transparent;color:#526277;font-size:14px;font-weight:750;cursor:pointer}
.pra-workbench-tabs button:hover{background:#eaf2ff;color:#1d4ed8}
.pra-workbench-tabs button.is-active{background:#fff;color:#1d4ed8;box-shadow:0 0 0 1px #bfdbfe}
.pra-workbench-tabs>span{margin-left:auto;color:#708197;font-size:12px}

/* 2026-07-28：审计方案回归“项目基线 + 一张方案表”，风险仅作为建议来源。 */
.wf-scheme-detail-page .wf-program-ledger-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.wf-scheme-detail-page .wf-program-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head{
  padding:10px 14px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head h3{
  font-size:18px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-summary-line>div{
  padding:9px 13px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-summary-line strong{
  font-size:12px!important;
}
.wf-scheme-detail-page .wf-program-ledger-summary{
  display:flex!important;
  align-items:center;
  gap:0!important;
  min-height:44px;
  padding:0 16px!important;
  border-top:1px solid #e7edf4;
  border-bottom:1px solid #e7edf4;
  background:#fbfcfe;
}
.wf-scheme-detail-page .wf-program-ledger-summary>span{
  display:flex!important;
  align-items:baseline;
  gap:5px;
  min-width:150px;
  padding:0 18px;
  border-right:1px solid #e4eaf2;
  color:#64748b;
  font-size:12px;
}
.wf-scheme-detail-page .wf-program-ledger-summary>span:first-child{padding-left:0}
.wf-scheme-detail-page .wf-program-ledger-summary>span:last-child{border-right:0}
.wf-scheme-detail-page .wf-program-ledger-summary strong{color:#172033;font-size:17px}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
  grid-template-columns:66px minmax(210px,1.25fr) minmax(190px,1.05fr) minmax(200px,1.1fr) minmax(220px,1.2fr) minmax(140px,.72fr) minmax(118px,.64fr)!important;
  min-width:1160px!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-head{
  min-height:42px!important;
  background:#f5f8fc!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-program-summary>span{
  min-height:70px!important;
  padding:10px 12px!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-program-summary>span:first-child{
  align-items:center;
}
.wf-scheme-priority{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:8px;
  font-size:13px;
}
.wf-scheme-priority.is-high{background:#fee2e2;color:#b91c1c}
.wf-scheme-priority.is-medium{background:#fff2cc;color:#a16207}
.wf-scheme-priority.is-low{background:#dcfce7;color:#15803d}
.wf-scheme-task-state{
  display:inline-flex;
  align-self:flex-start;
  padding:4px 8px;
  border-radius:999px;
  background:#eef2f7;
  color:#526277;
  font-size:11px;
  font-weight:800;
}
.wf-scheme-task-state.is-progress{background:#dbeafe;color:#1d4ed8}
.wf-scheme-task-state.is-completed{background:#dcfce7;color:#15803d}
.wf-scheme-task-state.is-adjusted,.wf-scheme-task-state.is-added{background:#fef3c7;color:#a16207}
.wf-scheme-task-state.is-cancelled{background:#f1f5f9;color:#64748b}
.wf-program-item.is-cancelled>.wf-program-row{opacity:.62;background:#f8fafc!important}
.wf-program-edit-primary{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) 110px minmax(170px,.8fr) minmax(150px,.68fr) 150px;
  gap:10px;
  margin-bottom:10px;
}
.wf-program-edit-main{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:10px;
}
.wf-program-edit-primary label,.wf-program-edit-main label{
  display:grid;
  gap:6px;
  min-width:0;
}
.wf-program-edit-primary label>span,.wf-program-edit-main label>span{
  color:#475569;
  font-size:12px;
  font-weight:800;
}
.wf-program-edit-primary input,.wf-program-edit-primary select,
.wf-program-edit-main textarea{
  width:100%;
  box-sizing:border-box;
  padding:8px 9px;
  border:1px solid #ccd9e8;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
  line-height:1.45;
}
.wf-program-detail-more{
  margin-top:12px;
  border-top:1px solid #dce5f0;
}
.wf-program-detail-more>summary{
  padding:11px 0 4px;
  color:#2563eb;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.wf-program-detail-more .wf-program-edit-grid{margin-top:8px}
.wf-program-risk-links{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #dce5f0;
}
.wf-program-risk-links>span{display:block;margin-bottom:8px;color:#475569;font-size:12px;font-weight:800}
.wf-program-risk-links>div{display:flex;gap:7px;flex-wrap:wrap}
.wf-program-risk-links label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border:1px solid #d7e1ed;
  border-radius:999px;
  background:#fff;
  color:#526277;
  font-size:12px;
  cursor:pointer;
}
.wf-program-risk-links label:has(input:checked){border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.wf-program-risk-links input{accent-color:#2563eb}
.wf-program-empty>div{display:flex;gap:8px;margin-top:12px}
.wf-scheme-integrity-recommend{
  display:grid;
  gap:4px;
  margin-top:9px;
  padding:11px 12px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#f8fafc;
}
.wf-scheme-integrity-recommend strong{color:#475569;font-size:12px}
.wf-scheme-integrity-recommend span{color:#64748b;font-size:12px;line-height:1.55}
.wf-scheme-dialog-backdrop{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.44);
  backdrop-filter:blur(2px);
}
.wf-scheme-dialog{
  width:min(680px,calc(100vw - 36px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  border:1px solid #dbe5f0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
}
.wf-scheme-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 16px;
  border-bottom:1px solid #e7edf4;
}
.wf-scheme-dialog-head span{display:block;color:#2563eb;font-size:12px;font-weight:850}
.wf-scheme-dialog-head h3{margin:3px 0 0;color:#172033;font-size:21px}
.wf-scheme-dialog-head p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.55}
.wf-scheme-dialog-head>button{
  width:34px;
  height:34px;
  border:0;
  border-radius:8px;
  background:#f1f5f9;
  color:#64748b;
  font-size:20px;
  cursor:pointer;
}
.wf-scheme-dialog-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:18px 22px 8px;
}
.wf-scheme-dialog-grid label{display:grid;gap:6px;min-width:0}
.wf-scheme-dialog-grid label.is-wide{grid-column:1/-1}
.wf-scheme-dialog-grid label>span{color:#475569;font-size:12px;font-weight:800}
.wf-scheme-dialog-grid input,.wf-scheme-dialog-grid select,.wf-scheme-dialog-grid textarea{
  width:100%;
  box-sizing:border-box;
  padding:9px 10px;
  border:1px solid #cbd9e8;
  border-radius:9px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
}
.wf-scheme-dialog>[data-dialog-feedback]{display:block;min-height:18px;padding:2px 22px;color:#b45309;font-size:12px}
.wf-scheme-dialog-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:14px 22px 20px;
}
.wf-risk-suggestion-list{
  display:grid;
  gap:7px;
  max-height:390px;
  overflow:auto;
  padding:16px 22px 8px;
}
.wf-risk-suggestion-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:11px 12px;
  border:1px solid #dfe7f0;
  border-radius:10px;
  background:#fbfdff;
  cursor:pointer;
}
.wf-risk-suggestion-row:has(input:checked){border-color:#93c5fd;background:#eff6ff}
.wf-risk-suggestion-row input{margin-top:2px;accent-color:#2563eb}
.wf-risk-suggestion-row strong,.wf-risk-suggestion-row small{display:block}
.wf-risk-suggestion-row strong{color:#1e293b;font-size:13px}
.wf-risk-suggestion-row small{margin-top:3px;color:#64748b;font-size:12px}
.wf-risk-suggestion-row strong em{display:inline-flex;margin-left:8px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#047857;font-size:11px;font-style:normal}
.wf-risk-suggestion-row strong em.is-pending{background:#fef3c7;color:#92400e}
.wf-risk-suggestion-row b{display:block;margin-top:8px;color:#334155;font-size:12px;line-height:1.5}
.wf-risk-suggestion-row p{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.5}
.wf-risk-suggestion-row.is-linked{background:#f8fafc;cursor:default}
.wf-risk-suggestion-row.is-pending{border-color:#fde68a;background:#fffbeb}
.wf-risk-suggestion-row.is-linked input{opacity:.45}
.wf-form-hint{display:block;margin-top:5px;color:#64748b;font-size:12px;line-height:1.55;font-weight:500}
.wf-scheme-preview{width:min(1040px,calc(100vw - 36px))}
.wf-version-dialog{width:min(900px,calc(100vw - 36px))}
.wf-version-list{
  display:grid;
  gap:10px;
  max-height:65vh;
  overflow:auto;
  padding:18px 22px;
  background:#f8fafc;
}
.wf-version-record{
  display:grid;
  gap:10px;
  padding:14px 16px;
  border:1px solid #dbe5f0;
  border-radius:12px;
  background:#fff;
}
.wf-version-record.is-current{border-color:#93c5fd;box-shadow:0 0 0 2px rgba(37,99,235,.07)}
.wf-version-record>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.wf-version-record>header span,.wf-version-record>header strong{display:block}
.wf-version-record>header span{color:#2563eb;font-size:12px;font-weight:900}
.wf-version-record>header strong{margin-top:3px;color:#172033;font-size:16px}
.wf-version-record>header small{color:#64748b;font-size:12px}
.wf-version-record-meta{display:flex;flex-wrap:wrap;gap:8px}
.wf-version-record-meta span{padding:5px 8px;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:12px}
.wf-version-record-meta b{color:#1e293b}
.wf-version-record>p{margin:0;color:#475569;font-size:13px;line-height:1.6}
.wf-version-record details{border-top:1px solid #edf2f7;padding-top:9px}
.wf-version-record summary{color:#334155;font-size:12px;font-weight:800;cursor:pointer}
.wf-version-programs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.wf-version-programs>div,.wf-version-programs>span{padding:8px 10px;border-radius:8px;background:#f8fafc}
.wf-version-programs strong,.wf-version-programs small{display:block}
.wf-version-programs strong{color:#1e293b;font-size:12px}
.wf-version-programs small{margin-top:3px;color:#64748b;font-size:11px}
.wf-version-legacy,.wf-version-pending{padding:10px 22px;color:#92400e;font-size:12px;line-height:1.55;background:#fffbeb;border-top:1px solid #fde68a;border-bottom:1px solid #fde68a}
@media(max-width:680px){.wf-version-programs{grid-template-columns:1fr}.wf-version-record>header{flex-direction:column}}
.wf-scheme-preview-body{display:grid;gap:18px;padding:20px 22px}
.wf-scheme-preview-body>section{display:grid;gap:10px}
.wf-scheme-preview-body h4{margin:0;color:#172033;font-size:17px}
.wf-scheme-preview-grid{display:grid;grid-template-columns:1fr 1fr;margin:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.wf-scheme-preview-grid>div{padding:12px 14px;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
.wf-scheme-preview-grid>div:nth-child(2n){border-right:0}
.wf-scheme-preview-grid>div:nth-last-child(-n+2){border-bottom:0}
.wf-scheme-preview-grid dt{color:#64748b;font-size:12px;font-weight:800}
.wf-scheme-preview-grid dd{margin:5px 0 0;color:#1e293b;font-size:14px;line-height:1.65;white-space:pre-wrap}
.wf-scheme-preview-programs{display:grid;gap:10px}
.wf-scheme-preview-programs article{padding:14px;border:1px solid #dbe5f0;border-radius:12px;background:#fbfdff}
.wf-scheme-preview-program-head{display:flex;align-items:flex-start;gap:10px}
.wf-scheme-preview-program-head>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf2ff;color:#2563eb;font-size:12px;font-weight:900}
.wf-scheme-preview-program-head>div{min-width:0;flex:1}
.wf-scheme-preview-program-head strong,.wf-scheme-preview-program-head small{display:block}
.wf-scheme-preview-program-head strong{color:#172033;font-size:15px}
.wf-scheme-preview-program-head small{margin-top:3px;color:#64748b;font-size:12px}
.wf-scheme-preview-programs dl{display:grid;grid-template-columns:1fr 1fr;margin:12px 0 0;border-top:1px solid #e2e8f0}
.wf-scheme-preview-programs dl>div{padding:10px 10px 0 0}
.wf-scheme-preview-programs dt{color:#64748b;font-size:11px;font-weight:800}
.wf-scheme-preview-programs dd{margin:4px 0 0;color:#334155;font-size:13px;line-height:1.55}
.wf-scheme-preview-programs ol{margin:10px 0 0 44px;padding-left:18px;color:#475569;font-size:13px;line-height:1.7}
.wf-scheme-preview-empty{display:grid;gap:4px;padding:18px;border:1px dashed #cbd5e1;border-radius:10px;color:#64748b}
.wf-scheme-preview-empty strong{color:#334155}
.wf-scheme-preview-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px 20px;border-top:1px solid #e7edf4}
.wf-scheme-preview-foot>span{color:#475569;font-size:13px;font-weight:800}
.wf-scheme-preview-foot>div,.at-focus-actions{display:flex;align-items:center;gap:8px}
.at-scheme-loaded{display:inline-flex;padding:7px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:800}
.wf-risk-merge-option{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 22px 2px;
  padding:10px 12px;
  border-radius:9px;
  background:#f8fafc;
  color:#475569;
  font-size:13px;
  cursor:pointer;
}
@media(max-width:1050px){
  .wf-program-edit-primary{grid-template-columns:1fr 1fr 1fr}
  .wf-program-edit-primary label:first-child{grid-column:1/-1}
}
@media(max-width:720px){
  .wf-scheme-detail-page .wf-program-ledger-head{align-items:flex-start;flex-direction:column}
  .wf-scheme-detail-page .wf-program-actions{justify-content:flex-start}
  .wf-scheme-detail-page .wf-program-ledger-summary{overflow:auto}
  .wf-scheme-detail-page .wf-program-ledger-summary>span{min-width:130px}
  .wf-program-edit-primary,.wf-program-edit-main,.wf-scheme-dialog-grid{grid-template-columns:1fr}
  .wf-program-edit-primary label:first-child,.wf-scheme-dialog-grid label.is-wide{grid-column:auto}
  .wf-scheme-preview-grid,.wf-scheme-preview-programs dl{grid-template-columns:1fr}
  .wf-scheme-preview-grid>div{border-right:0;border-bottom:1px solid #e2e8f0}
  .wf-scheme-preview-grid>div:nth-last-child(-n+2){border-bottom:1px solid #e2e8f0}
  .wf-scheme-preview-grid>div:last-child{border-bottom:0}
  .wf-scheme-preview-foot,.at-focus-actions{align-items:stretch;flex-direction:column}
}
.pra-workbench-body{padding:16px}
.pra-visual-head,.pra-selected-risk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.pra-visual-head span,.pra-selected-risk-head span{color:#2563eb;font-size:11px;font-weight:800}
.pra-visual-head h4,.pra-selected-risk-head h4{margin:3px 0 0;color:#172033;font-size:17px}
.pra-visual-head small,.pra-selected-risk-head p{margin:4px 0 0;color:#708197;font-size:12px;line-height:1.55}
.pra-landscape-layout{display:grid;grid-template-columns:minmax(360px,1fr) minmax(210px,.52fr);gap:12px}
.pra-heatmap-panel,.pra-risk-ranking{min-width:0;padding:16px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}
.pra-heatmap-wrap{position:relative;margin:18px 10px 0 32px;padding-bottom:22px}
.pra-heatmap-grid{display:grid;grid-template-columns:repeat(5,minmax(48px,1fr));grid-template-rows:repeat(5,58px);gap:3px}
.pra-heat-cell{position:relative;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#edf5ee}
.pra-heat-cell.is-medium{background:#fff3c9}.pra-heat-cell.is-high{background:#ffe0c7}.pra-heat-cell.is-critical{background:#ffd0cd}
.pra-heat-cell>small{position:absolute;left:5px;top:4px;color:rgba(15,23,42,.42);font-size:9px}
.pra-heat-cell>div{display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap}
.pra-risk-bubble{width:27px;height:27px;padding:0;border:2px solid #fff;border-radius:50%;background:#275fe9;color:#fff;font-size:11px;font-weight:800;box-shadow:0 2px 7px rgba(15,23,42,.22);cursor:pointer}
.pra-risk-bubble:hover,.pra-risk-bubble.is-active{transform:scale(1.12);background:#0f2f68;outline:2px solid rgba(37,99,235,.25)}
.pra-axis-y{position:absolute;left:-40px;top:50%;transform:rotate(-90deg) translateY(-50%);transform-origin:center;color:#64748b;font-size:11px;white-space:nowrap}
.pra-axis-x{position:absolute;left:50%;bottom:0;transform:translateX(-50%);color:#64748b;font-size:11px}
.pra-risk-matrix-legend{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}
.pra-risk-matrix-legend span{padding:3px 7px;border-radius:999px;font-size:10px;font-weight:750}
.pra-risk-ranking ol{max-height:342px;margin:12px 0 0;padding:0;overflow:auto;list-style:none}
.pra-risk-ranking li+li{border-top:1px solid #edf1f6}
.pra-risk-ranking li button{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;width:100%;padding:10px 4px;border:0;background:transparent;text-align:left;cursor:pointer}
.pra-risk-ranking li button:hover,.pra-risk-ranking li button.is-active{background:#f2f7ff}
.pra-risk-ranking li button>b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e9f1ff;color:#2563eb;font-size:11px}
.pra-risk-ranking li span strong,.pra-risk-ranking li span small{display:block}
.pra-risk-ranking li span strong{overflow:hidden;color:#253047;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.pra-risk-ranking li span small{margin-top:3px;color:#7b8797;font-size:10px}
.pra-risk-ranking .pra-risk-score{grid-column:2;text-align:left}.pra-risk-score{display:grid;gap:2px;text-align:right;white-space:nowrap}.pra-risk-score strong{font-size:12px}.pra-risk-score small{color:#7b8797;font-size:9px}
.pra-risk-score.is-low strong{color:#16804c}.pra-risk-score.is-medium strong{color:#9a6500}.pra-risk-score.is-high strong{color:#b64a00}.pra-risk-score.is-critical strong{color:#ba2420}
.pra-risk-register-head{display:flex;align-items:center;gap:12px;padding:13px 14px 9px}.pra-risk-register-head strong{font-size:15px}.pra-risk-register-head span{color:#748197;font-size:12px}
.pra-factor-summary{display:grid;grid-template-columns:110px 110px 110px minmax(240px,1fr);gap:8px;margin:14px 0}
.pra-factor-summary>div{padding:12px;border:1px solid #dbe5f0;border-radius:9px;background:#fff}.pra-factor-summary span,.pra-factor-summary strong,.pra-factor-summary small{display:block}.pra-factor-summary span{color:#708197;font-size:10px}.pra-factor-summary strong{margin-top:3px;color:#172033;font-size:21px}.pra-factor-summary small{margin-top:2px;color:#708197;font-size:10px}.pra-factor-summary .pra-calibration-state strong{font-size:14px}
.pra-factor-groups{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pra-factor-groups section{padding:14px;border:1px solid #dbe5f0;border-radius:10px;background:#fff}.pra-factor-groups section.is-modifier{grid-column:1/-1}.pra-factor-group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.pra-factor-group-head span{font-size:13px;font-weight:800}.pra-factor-group-head small{color:#7b8797;font-size:10px}
.pra-factor-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,1fr) 36px;align-items:center;gap:10px;padding:7px 0}.pra-factor-row span strong,.pra-factor-row span small{display:block}.pra-factor-row span strong{font-size:12px}.pra-factor-row span small{margin-top:2px;color:#8390a1;font-size:9px}.pra-factor-track{height:7px;border-radius:999px;background:#e8eef6;overflow:hidden}.pra-factor-track i{display:block;width:var(--pra-factor-width);height:100%;border-radius:inherit;background:#3271ed}.pra-factor-row>b{font-size:12px;text-align:right}.pra-factor-row>b small{color:#8a96a6;font-size:8px}
.pra-path-view{display:grid;gap:12px;min-width:0}.pra-path-view>.pra-selected-risk-head{padding:2px 0 4px}.pra-path-groups{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:12px}.pra-path-group{min-width:0;padding:12px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}.pra-path-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.pra-path-group-head strong{color:#172033;font-size:13px}.pra-path-group-head span{color:#748197;font-size:10px}.pra-risk-path{display:grid;grid-template-columns:repeat(var(--pra-path-count,4),minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.pra-path-group:nth-child(1) .pra-risk-path{--pra-path-count:4}.pra-path-group:nth-child(2) .pra-risk-path{--pra-path-count:3}.pra-risk-path li{position:relative;min-width:0}.pra-risk-path li:not(:last-child)::after{content:"›";position:absolute;right:-7px;top:50%;z-index:2;transform:translateY(-50%);color:#6b86b4;font-size:17px;font-weight:800}.pra-risk-path button{display:block;width:100%;min-height:112px;padding:11px;border:1px solid #dbe5f0;border-radius:9px;background:#fbfdff;color:inherit;text-align:left;cursor:pointer}.pra-risk-path button:hover{border-color:#93c5fd;background:#f6f9ff}.pra-risk-path li.is-active button{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.1)}.pra-risk-path li.is-event button{border-left:3px solid #2563eb}.pra-risk-path span,.pra-risk-path strong,.pra-risk-path small{display:block}.pra-risk-path span{color:#2563eb;font-size:10px;font-weight:800}.pra-risk-path strong{margin-top:7px;overflow:hidden;color:#1f2937;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.pra-risk-path small{display:-webkit-box;margin-top:6px;overflow:hidden;color:#748197;font-size:9px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pra-path-detail{display:grid;grid-template-columns:minmax(230px,.42fr) minmax(0,1fr);gap:18px;align-items:start;padding:14px 16px;border:1px solid #bfdbfe;border-radius:11px;background:#f7fbff}.pra-path-detail span{color:#2563eb;font-size:10px;font-weight:800}.pra-path-detail h5{margin:4px 0 0;color:#172033;font-size:15px}.pra-path-detail p{margin:0;color:#475569;font-size:12px;line-height:1.65}.pra-path-boundary{display:flex;gap:10px;padding:10px 12px;border-left:3px solid #4b7ff2;background:#f1f6ff;font-size:11px}.pra-path-boundary span{color:#60718a}
.pra-risk-portrait{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.9fr) minmax(0,1fr);grid-template-areas:"basis event impact" "cause event control";gap:10px}.pra-portrait-card,.pra-portrait-event{min-width:0;padding:14px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}.pra-portrait-card.is-basis{grid-area:basis}.pra-portrait-card.is-cause{grid-area:cause}.pra-portrait-card.is-impact{grid-area:impact}.pra-portrait-card.is-control{grid-area:control}.pra-portrait-event{grid-area:event;display:flex;flex-direction:column;justify-content:center;border-color:#7aa7ff;background:linear-gradient(145deg,#edf5ff,#fff);box-shadow:0 10px 28px rgba(37,99,235,.08);text-align:center}.pra-portrait-card>span,.pra-portrait-event>span{display:block;color:#2563eb;font-size:11px;font-weight:800}.pra-portrait-card>strong{display:block;margin-top:7px;color:#172033;font-size:14px}.pra-portrait-event h5{margin:8px 0 6px;color:#12223b;font-size:19px;line-height:1.35}.pra-portrait-card p,.pra-portrait-event p,.pra-portrait-card li{color:#475569;font-size:12px;line-height:1.6}.pra-portrait-card p{margin:7px 0 0}.pra-portrait-card ul{margin:8px 0 0;padding-left:18px}.pra-portrait-card small{display:block;margin-top:8px;color:#748197}.pra-portrait-card .is-pending{color:#9aa5b5}.pra-risk-decision-bar{display:grid;grid-template-columns:minmax(120px,.7fr) auto minmax(120px,.7fr) auto minmax(150px,.9fr) minmax(180px,1.1fr) minmax(220px,1.4fr);gap:10px;align-items:stretch;padding:12px;border:1px solid #cbdcf8;border-radius:12px;background:#f7faff}.pra-risk-decision-bar>div{min-width:0;padding:10px 12px;border-radius:9px;background:#fff}.pra-risk-decision-bar>div>span,.pra-risk-decision-bar>div>strong,.pra-risk-decision-bar>div>small{display:block}.pra-risk-decision-bar>div>span{color:#64748b;font-size:10px;font-weight:700}.pra-risk-decision-bar>div>strong{margin-top:5px;color:#172033;font-size:13px;line-height:1.45}.pra-risk-decision-bar>div>small{margin-top:5px;color:#7b8799;font-size:10px;line-height:1.45}.pra-risk-decision-bar>b{align-self:center;color:#7c91b1;font-size:18px}.pra-risk-decision-bar .is-result{background:#eaf2ff}.wf-risk-program-group-head{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr) auto;gap:18px;align-items:center;margin:12px 0 0;padding:13px 14px;border:1px solid #bfd5f8;border-left:4px solid #2563eb;border-radius:10px;background:#f4f8ff}.wf-risk-program-group-head>div>span,.wf-risk-program-group-head>div>strong,.wf-risk-program-group-head>div>small{display:block}.wf-risk-program-group-head>div>span{color:#2563eb;font-size:10px;font-weight:800}.wf-risk-program-group-head>div>strong{margin-top:4px;color:#172033;font-size:14px}.wf-risk-program-group-head>div>small{margin-top:4px;color:#64748b;font-size:10px}.wf-risk-program-snapshot{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wf-risk-program-snapshot span{overflow:hidden;color:#536277;font-size:11px;line-height:1.5;text-overflow:ellipsis;white-space:nowrap}.wf-risk-program-snapshot b{margin-right:6px;color:#263b59}.wf-risk-program-group-head>em{padding:5px 9px;border-radius:999px;background:#e5efff;color:#1d4ed8;font-size:10px;font-style:normal;font-weight:800;white-space:nowrap}.wf-risk-program-group-head.is-unlinked{border-left-color:#94a3b8;background:#f8fafc}
.pra-portrait-fact{margin-top:10px;padding-top:10px;border-top:1px solid #e3eaf3}.pra-portrait-fact>span{color:#61728a;font-size:10px;font-weight:800}.pra-portrait-fact>p{margin-top:5px}.pra-portrait-fact>small{margin-top:5px}
.pra-visual-empty{padding:40px;text-align:center;color:#708197}
.pra-factor-editor{margin:13px 0;border:1px solid #dbe5f0;border-radius:10px;background:#f8fafc;overflow:hidden}.pra-factor-editor-head{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-bottom:1px solid #e3eaf2;background:#fff}.pra-factor-editor-head span,.pra-factor-editor-head strong{display:block}.pra-factor-editor-head span{color:#2563eb;font-size:10px;font-weight:800}.pra-factor-editor-head strong{margin-top:2px;font-size:13px}.pra-factor-editor-head>small{color:#728097;font-size:10px}.pra-factor-editor-grid{display:grid;grid-template-columns:1fr 1fr;padding:4px 12px 10px}.pra-factor-editor-group{padding:8px 10px}.pra-factor-editor-group:nth-child(3){grid-column:1/-1;border-top:1px solid #e3eaf2}.pra-factor-editor-group>div{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.pra-factor-editor-group>div strong{font-size:12px}.pra-factor-editor-group>div small{color:#7b8797;font-size:9px}.pra-factor-editor-group .pra-factor-slider-row{display:grid!important;grid-template-columns:minmax(145px,.82fr) minmax(170px,1.18fr);align-items:center;gap:12px;margin-top:9px!important}.pra-factor-slider-row>span strong,.pra-factor-slider-row>span em{display:block}.pra-factor-slider-row>span strong{font-size:11px}.pra-factor-slider-row>span small{display:inline;margin-left:5px;color:#8b97a7;font-size:8px}.pra-factor-slider-row>span em{margin-top:2px;color:#8491a3;font-size:8px;font-style:normal;line-height:1.35}.pra-factor-slider-control{position:relative;padding-top:22px}.pra-factor-slider-control output{position:absolute;top:0;left:calc(((var(--pra-factor-value,3) - 1) / 4) * (100% - 28px) + 14px);transform:translateX(-50%);min-width:54px;color:#235dcc;font-size:9px;font-weight:800;text-align:center;white-space:nowrap}.pra-factor-slider-control input[type="range"]{width:100%;height:18px;margin:0;padding:0!important;border:0!important;background:transparent;accent-color:#2f68e8;cursor:pointer}.pra-factor-slider-control input[type="range"]::-webkit-slider-runnable-track{height:5px;border-radius:999px;background:linear-gradient(90deg,#2f68e8 0%,#2f68e8 calc((var(--pra-factor-value,3) - 1) * 25%),#dbe4ef calc((var(--pra-factor-value,3) - 1) * 25%),#dbe4ef 100%)}.pra-factor-slider-control input[type="range"]::-webkit-slider-thumb{width:17px;height:17px;margin-top:-6px;border:3px solid #fff;border-radius:50%;background:#2f68e8;box-shadow:0 1px 5px rgba(30,64,175,.35);-webkit-appearance:none}.pra-factor-slider-ticks{display:flex;justify-content:space-between;padding:0 5px;color:#8a96a7;font-size:8px}.pra-factor-confirm-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:10px 14px;border-top:1px solid #e3eaf2;background:#fff}.pra-factor-confirm-row>span{margin-right:auto;color:#64748b;font-size:11px;line-height:1.5}
.pra-risk-score-rule #pra-risk-preview-state{display:inline-flex;align-items:center;width:max-content;margin-top:5px;padding:3px 7px;border-radius:999px;background:#fff7ed;color:#b45309;font-size:9px;font-style:normal;font-weight:800}
.pra-risk-score-rule #pra-risk-preview-state[hidden]{display:none}
.pra-risk-bubble.is-preview{outline:2px solid #f59e0b;outline-offset:2px;box-shadow:0 0 0 5px rgba(245,158,11,.16)}
.pra-factor-analysis.is-editable{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start;width:100%;min-width:0}
.pra-factor-risk-nav{overflow:hidden;border:1px solid #dbe5f0;border-radius:12px;background:#fff}
.pra-factor-risk-nav>div:first-child{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-bottom:1px solid #e5ebf3}
.pra-factor-risk-nav>div:first-child span{color:#64748b;font-size:11px;font-weight:800}.pra-factor-risk-nav>div:first-child strong{color:#1d4ed8;font-size:12px}
.pra-factor-risk-list{display:grid;gap:4px;padding:6px}
.pra-factor-risk-list>button{display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;align-items:start;width:100%;padding:9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#1e293b;text-align:left;cursor:pointer}
.pra-factor-risk-list>button:hover{background:#f8fafc}.pra-factor-risk-list>button.is-active{border-color:#93c5fd;background:#eff6ff}
.pra-factor-risk-list>button>b{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#e2e8f0;color:#475569;font-size:10px}
.pra-factor-risk-list>button.is-active>b{background:#2563eb;color:#fff}
.pra-factor-risk-list>button>span{min-width:0}.pra-factor-risk-list>button>span>strong{display:block;overflow:hidden;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.pra-factor-risk-list .pra-risk-score{display:flex;gap:5px;align-items:center;margin-top:4px}.pra-factor-risk-list .pra-risk-score strong{font-size:10px}.pra-factor-risk-list .pra-risk-score small{font-size:8px}
.pra-factor-edit-surface{width:100%;min-width:0}.pra-factor-live-panel{display:grid;grid-template-columns:minmax(0,1fr) 228px;gap:12px;align-items:stretch;margin:12px 0}
.pra-factor-live-values{display:grid;grid-template-columns:repeat(3,minmax(82px,112px)) minmax(190px,1fr);border:1px solid #dbe5f0;border-radius:11px;background:#fff}
.pra-factor-live-values>div{padding:12px;border-right:1px solid #e5ebf3}.pra-factor-live-values>div:last-child{border-right:0}
.pra-factor-live-values span,.pra-factor-live-values strong,.pra-factor-live-values small{display:block}.pra-factor-live-values span{color:#64748b;font-size:10px}.pra-factor-live-values strong{margin-top:3px;color:#172033;font-size:22px}.pra-factor-live-values small{margin-top:2px;color:#64748b;font-size:9px;line-height:1.4}
.pra-factor-live-values .pra-calibration-state strong{font-size:13px}.pra-factor-analysis.is-dirty .pra-factor-live-values .pra-calibration-state strong{color:#b45309}
.pra-factor-mini-wrap{padding:9px 10px;border:1px solid #dbe5f0;border-radius:11px;background:#fff}
.pra-factor-mini-matrix{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}
.pra-factor-mini-matrix>div{position:relative;display:grid;place-items:center;height:25px;border-radius:3px}
.pra-factor-mini-matrix>div.is-low{background:#e8f6ec}.pra-factor-mini-matrix>div.is-medium{background:#fff3c7}.pra-factor-mini-matrix>div.is-high{background:#ffe1c2}.pra-factor-mini-matrix>div.is-critical{background:#ffd7d2}
.pra-factor-mini-matrix small{color:#64748b;font-size:7px}.pra-factor-mini-matrix [data-pra-inline-matrix-point]{position:absolute;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 1px 4px rgba(37,99,235,.45)}
.pra-factor-mini-axis{display:flex;justify-content:space-between;margin-top:5px;color:#64748b;font-size:8px}
.pra-factor-editor-inline{margin-bottom:0}.pra-factor-inline-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:11px}
.pra-factor-inline-actions>span{margin-right:auto;color:#64748b;font-size:10px}.pra-factor-analysis.is-dirty .pra-factor-inline-actions>span{color:#b45309;font-weight:800}
.pra-factor-risk-switch{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:9px 11px;border:1px solid #dbe5f0;border-radius:10px;background:#fff}
.pra-factor-risk-switch label{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.pra-factor-risk-switch label>span{flex:0 0 auto;color:#475569;font-size:11px;font-weight:800}
.pra-factor-risk-switch select{min-width:0;max-width:520px;height:34px;flex:1;padding:0 30px 0 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font:inherit;font-size:11px;font-weight:700}
.pra-factor-risk-switch>small{flex:0 0 auto;padding-bottom:8px;color:#64748b;font-size:9px}
@media(max-width:1180px){.pra-landscape-layout{grid-template-columns:1fr}.pra-factor-summary{grid-template-columns:repeat(2,1fr)}.pra-path-groups{grid-template-columns:1fr}}
@media(max-width:1500px){.pra-factor-risk-list{grid-template-columns:repeat(4,minmax(0,1fr))}.pra-factor-live-panel{grid-template-columns:minmax(0,1fr) 210px}}
@media(max-width:1180px){.pra-factor-live-panel{grid-template-columns:1fr}}
@media(max-width:900px){.pra-factor-risk-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.pra-risk-portrait{grid-template-columns:1fr 1fr;grid-template-areas:"event event" "basis impact" "cause control"}.pra-risk-decision-bar{grid-template-columns:1fr 1fr}.pra-risk-decision-bar>b{display:none}.wf-risk-program-group-head{grid-template-columns:1fr}.wf-risk-program-snapshot{grid-template-columns:1fr}}
@media(max-width:760px){.pra-workbench-tabs{overflow:auto}.pra-workbench-tabs>span{display:none}.pra-workbench-body{padding:10px}.pra-heatmap-grid{grid-template-columns:repeat(5,minmax(48px,1fr))}.pra-factor-groups,.pra-factor-editor-grid{grid-template-columns:1fr}.pra-factor-groups section.is-modifier,.pra-factor-editor-group:nth-child(3){grid-column:auto}.pra-factor-summary{grid-template-columns:1fr 1fr}.pra-factor-editor-group .pra-factor-slider-row{grid-template-columns:1fr}.pra-factor-risk-list{grid-template-columns:1fr}.pra-factor-live-values{grid-template-columns:repeat(2,1fr)}.pra-factor-live-values>div:nth-child(2){border-right:0}.pra-factor-live-values>div:nth-child(-n+2){border-bottom:1px solid #e5ebf3}.pra-path-group-head{align-items:flex-start;flex-direction:column}.pra-risk-path{grid-template-columns:1fr}.pra-risk-path li:not(:last-child)::after{content:none}.pra-risk-path button{min-height:0}.pra-path-detail{grid-template-columns:1fr}.pra-risk-portrait{grid-template-columns:1fr;grid-template-areas:"event" "basis" "cause" "impact" "control"}.pra-risk-decision-bar{grid-template-columns:1fr}}

/* 2026-07-28：风险判断先完成项目取舍，评分和画像按需展开。 */
.pra-object-risk-workspace:has(.pra-risk-detail:not([hidden])){
  grid-template-columns:minmax(0,1fr)!important;
}
.pra-risk-detail{
  position:fixed;
  top:92px;
  right:22px;
  z-index:1200;
  width:min(570px,calc(100vw - 44px));
  max-height:calc(100vh - 116px);
  padding:16px;
  border-color:#abc7ef;
  box-shadow:0 24px 64px rgba(15,23,42,.24);
}
.pra-risk-decision-panel{
  display:grid;
  gap:9px;
  padding:13px;
  border:1px solid #93b9f4;
  border-radius:12px;
  background:#f5f9ff;
}
.pra-risk-candidate-editor{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid #d5e1f0;
  border-radius:12px;
  background:#fff;
}
.pra-risk-candidate-editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid #e6edf5;
}
.pra-risk-candidate-editor-head span,
.pra-risk-candidate-editor-head strong{display:block}
.pra-risk-candidate-editor-head span{color:#2563eb;font-size:11px;font-weight:850}
.pra-risk-candidate-editor-head strong{margin-top:3px;color:#172033;font-size:15px}
.pra-risk-candidate-editor-head em{
  flex:0 0 auto;
  padding:4px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#2b64bf;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.pra-risk-candidate-basis{
  border:1px solid #e1e8f2;
  border-radius:9px;
  background:#f8fafc;
}
.pra-risk-candidate-basis>summary{
  padding:9px 10px;
  color:#40536c;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.pra-risk-candidate-basis>div{display:grid;gap:9px;padding:0 10px 10px}
.pra-risk-decision-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid #d9e6f8;
}
.pra-risk-decision-panel-head span,
.pra-risk-decision-panel-head strong{
  display:block;
}
.pra-risk-decision-panel-head span{
  color:#2563eb;
  font-size:11px;
  font-weight:850;
}
.pra-risk-decision-panel-head strong{
  margin-top:3px;
  color:#172033;
  font-size:15px;
}
.pra-risk-decision-panel-head em{
  padding:4px 8px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:11px;
  font-style:normal;
  font-weight:850;
}
.pra-risk-material-picker{
  display:grid;
  gap:8px;
  margin:2px 0 4px;
  padding:11px;
  border:1px solid #cbdcf7;
  border-radius:10px;
  background:#fff;
}
.pra-risk-material-picker legend{
  padding:0 5px;
  color:#1d4ed8;
  font-size:12px;
  font-weight:850;
}
.pra-risk-material-picker>p,
.pra-risk-material-picker.is-empty small{
  margin:0;
  color:#64748b;
  font-size:11px;
  line-height:1.5;
}
.pra-risk-material-list{
  display:grid;
  gap:6px;
  max-height:176px;
  overflow:auto;
}
.pra-risk-material-group{
  display:grid;
  gap:6px;
  padding-top:7px;
  border-top:1px solid #edf2f7;
}
.pra-risk-material-group>div:first-child{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.pra-risk-material-group>div:first-child strong{
  color:#26374f;
  font-size:12px;
}
.pra-risk-material-group>div:first-child small{
  color:#64748b;
  font-size:10px;
  text-align:right;
}
.pra-risk-material-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.pra-risk-material-list label{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px 9px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
  cursor:pointer;
}
.pra-risk-material-list label:has(input:checked){
  border-color:#93b9f4;
  background:#eff6ff;
}
.pra-risk-material-list input[type="checkbox"]{
  flex:0 0 16px;
  width:16px!important;
  min-width:16px!important;
  height:16px!important;
  margin-top:3px;
  padding:0!important;
}
.pra-risk-material-list span,
.pra-risk-material-list strong,
.pra-risk-material-list small{
  display:block;
}
.pra-risk-material-list strong{
  color:#26374f;
  font-size:12px;
}
.pra-risk-material-list small{
  margin-top:2px;
  color:#64748b;
  font-size:10px;
}
.pra-risk-material-picker.is-empty{
  grid-template-columns:1fr auto;
  align-items:center;
}
.pra-risk-material-picker.is-empty>div:last-child{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}
.pra-risk-editor-section{
  border:1px solid #dbe5f0;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}
.pra-risk-editor-section>summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 12px;
  align-items:center;
  padding:11px 12px;
  cursor:pointer;
  list-style:none;
}
.pra-risk-editor-section>summary::-webkit-details-marker{display:none}
.pra-risk-editor-section>summary span{
  color:#2563eb;
  font-size:11px;
  font-weight:850;
}
.pra-risk-editor-section>summary strong{
  grid-column:1;
  color:#26374f;
  font-size:13px;
}
.pra-risk-editor-section>summary em{
  grid-column:2;
  grid-row:1/3;
  color:#64748b;
  font-size:11px;
  font-style:normal;
}
.pra-risk-editor-section[open]>summary{
  border-bottom:1px solid #e2e8f0;
  background:#f8fafc;
}
.pra-risk-editor-section-body{
  display:grid;
  gap:10px;
  padding:12px;
}
.pra-risk-scoring-panel>summary strong.is-low{color:#18733c}
.pra-risk-scoring-panel>summary strong.is-medium{color:#90600b}
.pra-risk-scoring-panel>summary strong.is-high{color:#b54708}
.pra-risk-scoring-panel>summary strong.is-critical{color:#b42318}
.pra-risk-scoring-panel .pra-risk-score-rule{
  grid-template-columns:1fr;
}
.pra-risk-detail-actions{
  position:sticky;
  bottom:-16px;
  z-index:2;
  margin:0 -16px -16px;
  padding:12px 16px;
  border-top:1px solid #dbe5f0;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
}
.pra-object-risk-table table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed;
}
.pra-object-risk-table th,
.pra-object-risk-table td{
  vertical-align:top!important;
}
.pra-object-risk-table td{
  overflow-wrap:break-word;
  word-break:normal;
}
.pra-object-risk-table .pra-risk-title-button strong{
  line-height:1.45!important;
  word-break:normal;
  overflow-wrap:break-word;
}
.pra-risk-decision-bar{
  grid-template-columns:minmax(190px,.85fr) minmax(150px,.65fr) minmax(220px,1fr) minmax(240px,1.1fr);
}
.pra-risk-decision-bar>div>strong{
  overflow-wrap:break-word;
  word-break:normal;
}
.pra-portrait-card,
.pra-portrait-event{
  overflow-wrap:break-word;
  word-break:normal;
}
.wf-risk-suggestion-empty{
  display:grid;
  gap:6px;
  margin:14px 0;
  padding:26px;
  border:1px dashed #cbd5e1;
  border-radius:12px;
  background:#f8fafc;
  text-align:center;
}
.wf-risk-suggestion-empty strong{color:#172033;font-size:18px}
.wf-risk-suggestion-empty span{color:#64748b;font-size:13px;line-height:1.6}
html[data-theme="dark"] .pra-risk-decision-panel,
html[data-theme="dark"] .pra-risk-candidate-editor,
html[data-theme="dark"] .pra-risk-editor-section{
  border-color:#334155;
  background:#111827;
}
html[data-theme="dark"] .pra-risk-material-picker,
html[data-theme="dark"] .pra-risk-material-list label{
  border-color:#334155;
  background:#0f172a;
}
@media(max-width:760px){
  .pra-risk-detail{
    top:76px;
    right:10px;
    width:calc(100vw - 20px);
    max-height:calc(100vh - 88px);
  }
  .pra-risk-editor-section>summary{
    grid-template-columns:1fr;
  }
  .pra-risk-editor-section>summary em{
    grid-column:1;
    grid-row:auto;
  }
}
/* execution evidence workbench: source files stay read-only; audit judgments are stored separately */
.at-evidence-workbench {
  margin: 14px 0;
  border: 1px solid #cbdcf7;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.at-evidence-workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe7f7;
  background: linear-gradient(90deg, #f7fbff 0%, #fff 58%);
}
.at-evidence-workbench-head > div:first-child > span,
.at-fact-register-head span,
.at-evidence-preview-head span {
  color: #2563eb;
  font-size: .72rem;
  font-weight: 800;
}
.at-evidence-workbench-head h3 {
  margin: 3px 0 4px;
  font-size: 1.08rem;
}
.at-evidence-workbench-head p {
  margin: 0;
  color: #64748b;
  font-size: .8rem;
}
.at-evidence-kpis,
.at-evidence-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.at-evidence-kpis span {
  min-width: 58px;
  padding: 7px 9px;
  border: 1px solid #dbe7f7;
  border-radius: 9px;
  color: #64748b;
  text-align: center;
  font-size: .7rem;
  background: #fff;
}
.at-evidence-kpis b {
  display: block;
  color: #0f172a;
  font-size: .96rem;
}
.at-evidence-actions label {
  margin: 0;
  cursor: pointer;
}
.at-capability-pilot {
  margin: 12px 14px;
  border: 1px solid #bfd3f3;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}
.at-capability-pilot > header,
.at-capability-source,
.at-capability-result-head,
.at-capability-screening-summary,
.at-capability-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.at-capability-pilot > header {
  padding: 14px 16px 10px;
}
.at-capability-pilot > header span,
.at-capability-source span,
.at-capability-result-head span,
.at-capability-screening-summary span {
  display: block;
  color: #2563eb;
  font-size: .7rem;
  font-weight: 800;
}
.at-capability-pilot > header strong,
.at-capability-source strong,
.at-capability-result-head strong,
.at-capability-screening-summary strong {
  display: block;
  margin-top: 2px;
  color: #172033;
  font-size: .9rem;
}
.at-capability-pilot p,
.at-capability-pilot small {
  margin: 3px 0 0;
  color: #64748b;
  font-size: .74rem;
}
.at-capability-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid #dce8f8;
  border-bottom: 1px solid #dce8f8;
  background: #fff;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
}
.at-capability-flow span { display: flex; align-items: center; gap: 6px; }
.at-capability-flow b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ff;
  color: #2563eb;
  font-size: .68rem;
}
.at-capability-flow i { color: #94a3b8; font-style: normal; }
.at-capability-program,
.at-capability-match,
.at-capability-run-trace,
.at-capability-synthesis,
.at-execution-queue-trace,
.at-orchestration-intent,
.at-orchestration-branches,
.at-orchestration-disclosure,
.at-orchestration-triggered,
.at-orchestration-runtime {
  margin: 10px 14px;
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  background: #fff;
}
.at-orchestration-intent {
  display: grid;
  grid-template-columns: minmax(220px,.8fr) minmax(300px,1.5fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-left: 4px solid #7c3aed;
}
.at-orchestration-intent span,
.at-orchestration-branches header span,
.at-orchestration-disclosure header span,
.at-orchestration-triggered header span {
  display: block;
  color: #6d28d9;
  font-size: .66rem;
  font-weight: 850;
}
.at-orchestration-intent strong,
.at-orchestration-branches header strong,
.at-orchestration-disclosure header strong,
.at-orchestration-triggered header strong {
  display: block;
  margin-top: 2px;
  color: #1e293b;
  font-size: .8rem;
}
.at-orchestration-intent textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
}
.at-capability-program {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border-left: 4px solid #1d4ed8;
}
.at-capability-program span,
.at-capability-match header span,
.at-capability-run-trace > header span,
.at-capability-synthesis > header span,
.at-capability-step-list article > div > span,
.at-capability-proposition-list article > div > span {
  display: block;
  color: #2563eb;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .03em;
}
.at-capability-program strong { display: block; margin-top: 2px; color: #172033; font-size: .84rem; }
.at-capability-program > b,
.at-capability-match header > b,
.at-capability-run-trace > header > b,
.at-capability-synthesis > header > b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #e7f0ff;
  font-size: .66rem;
}
.at-capability-match { padding: 12px; }
.at-capability-match > header,
.at-capability-run-trace > header,
.at-capability-synthesis > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.at-execution-queue-trace { margin: 10px 14px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; }
.at-execution-queue-trace > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.at-execution-queue-trace > header span { display: block; color: #1d4ed8; font-size: .66rem; font-weight: 850; }
.at-execution-queue-trace > header strong { display: block; margin-top: 2px; color: #172033; font-size: .88rem; }
.at-execution-queue-trace > header p { margin: 3px 0 0; color: #64748b; font-size: .68rem; }
.at-execution-queue-trace > header > b { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: .66rem; }
.at-execution-queue-trace > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.at-execution-queue-trace article { min-width: 0; padding: 10px; border: 1px solid #dbeafe; border-left: 3px solid #2563eb; border-radius: 8px; background: #fff; }
.at-execution-run-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.at-execution-run-head span { color: #2563eb; font-size: .62rem; font-weight: 850; }
.at-execution-run-head b { color: #047857; font-size: .62rem; }
.at-execution-queue-trace article > strong { display: block; margin-top: 5px; color: #1e293b; font-size: .76rem; }
.at-execution-queue-trace article > small { display: block; margin-top: 2px; color: #64748b; font-size: .64rem; }
.at-execution-queue-trace dl { display: grid; gap: 5px; margin: 9px 0 0; }
.at-execution-queue-trace dl div { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 7px; padding-top: 5px; border-top: 1px solid #eff6ff; }
.at-execution-queue-trace dt { color: #64748b; font-size: .61rem; font-weight: 800; }
.at-execution-queue-trace dd { margin: 0; overflow-wrap: anywhere; color: #334155; font-size: .64rem; }
.at-execution-ref { display: grid; min-width: 0; gap: 2px; }
.at-execution-ref strong { display: block; color: #1e293b; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.at-execution-ref code { display: block; color: #64748b; font-family: inherit; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.at-execution-queue-trace footer { margin-top: 9px; color: #64748b; font-size: .65rem; }
.at-capability-match header strong,
.at-capability-run-trace > header strong,
.at-capability-synthesis > header strong {
  display: block;
  margin-top: 2px;
  color: #172033;
  font-size: .88rem;
}
.at-capability-match > ul { margin: 9px 0 0; padding-left: 18px; color: #56677d; font-size: .71rem; line-height: 1.55; }
.at-capability-agent-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 11px; border: 1px solid #e2e8f0; }
.at-capability-agent-list article { min-width: 0; padding: 10px; border-left: 1px solid #e2e8f0; background: #fbfdff; }
.at-capability-agent-list article:first-child { border-left: 0; }
.at-capability-agent-list article.is-synthesis { background: #f4f7ff; }
.at-capability-agent-list span { display: block; color: #64748b; font-size: .62rem; font-weight: 800; }
.at-capability-agent-list strong { display: block; margin-top: 3px; color: #1e293b; font-size: .75rem; }
.at-capability-agent-list p { min-height: 30px; }
.at-orchestration-branches,
.at-orchestration-disclosure,
.at-orchestration-triggered { padding: 12px; }
.at-orchestration-branches > header,
.at-orchestration-disclosure > header,
.at-orchestration-triggered > header,
.at-orchestration-triggered article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.at-orchestration-branches header > b,
.at-orchestration-disclosure header > b,
.at-orchestration-triggered header > b {
  color: #6d28d9;
  font-size: .66rem;
}
.at-orchestration-disclosure header > b.is-local { color: #047857; }
.at-orchestration-disclosure header > b.is-warning { color: #9a3412; }
.at-orchestration-branches > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.at-orchestration-branches article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr);
  gap: 7px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e6e0f5;
  background: #fcfaff;
}
.at-orchestration-branches article span { color: #7c3aed; font-size: .64rem; font-weight: 850; }
.at-orchestration-branches article strong,
.at-orchestration-branches article p { margin: 0; color: #334155; font-size: .7rem; }
.at-orchestration-branches article i { color: #7c3aed; font-style: normal; }
.at-orchestration-disclosure dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 10px 0 0; }
.at-orchestration-disclosure dl div { padding: 8px; border: 1px solid #e2e8f0; background: #fbfdff; }
.at-orchestration-disclosure dt { color: #64748b; font-size: .62rem; font-weight: 800; }
.at-orchestration-disclosure dd { margin: 3px 0 0; color: #1e293b; font-size: .7rem; }
.at-orchestration-triggered { border-color: #c4b5fd; background: #fcfaff; }
.at-orchestration-triggered > div { display: grid; gap: 7px; margin-top: 10px; }
.at-orchestration-triggered article { align-items: center; padding: 9px; border: 1px solid #ddd6fe; background: #fff; }
.at-orchestration-triggered article > div { flex: 1; }
.at-orchestration-triggered article > div span { color: #047857; font-size: .62rem; font-weight: 850; }
.at-orchestration-triggered article > b { max-width: 240px; color: #5b21b6; font-size: .72rem; text-align: right; }
.at-orchestration-triggered article > i { color: #7c3aed; font-style: normal; }
.at-orchestration-triggered footer { margin-top: 9px; color: #7c2d12; font-size: .66rem; }
.at-orchestration-runtime { padding: 12px; border-color: #b9d8cf; background: #fbfffd; }
.at-orchestration-runtime > header,
.at-orchestration-unit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.at-orchestration-runtime > header span { display: block; color: #047857; font-size: .66rem; font-weight: 850; }
.at-orchestration-runtime > header strong { display: block; margin-top: 2px; color: #1e293b; font-size: .82rem; }
.at-orchestration-runtime > header > b { padding: 5px 8px; border-radius: 999px; color: #047857; background: #dcfce7; font-size: .66rem; }
.at-orchestration-runtime > header > b.is-waiting-input,
.at-orchestration-runtime > header > b.is-waiting-human { color: #92400e; background: #fef3c7; }
.at-orchestration-runtime > header > b.is-blocked,
.at-orchestration-runtime > header > b.is-failed { color: #b42318; background: #fee2e2; }
.at-orchestration-unit-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.at-orchestration-unit-list article { min-width: 0; padding: 9px; border: 1px solid #dbe7e2; border-radius: 8px; background: #fff; }
.at-orchestration-unit-list article.is-waiting-input,
.at-orchestration-unit-list article.is-waiting-human { border-color: #fde68a; background: #fffdf5; }
.at-orchestration-unit-list article.is-blocked,
.at-orchestration-unit-list article.is-failed { border-color: #fecaca; background: #fffafa; }
.at-orchestration-unit-list article.is-manual-task { grid-column: 1 / -1; }
.at-orchestration-unit-head span { color: #64748b; font-size: .61rem; font-weight: 850; }
.at-orchestration-unit-head b { color: #047857; font-size: .62rem; }
.at-orchestration-unit-list article.is-waiting-input .at-orchestration-unit-head b,
.at-orchestration-unit-list article.is-waiting-human .at-orchestration-unit-head b { color: #92400e; }
.at-orchestration-unit-list article > strong { display: block; margin-top: 5px; color: #1e293b; font-size: .74rem; }
.at-orchestration-unit-list article > small { display: block; overflow-wrap: anywhere; }
.at-orchestration-unit-list details { margin-top: 7px; color: #475569; font-size: .66rem; }
.at-orchestration-unit-list summary { color: #9a6700; font-weight: 800; cursor: pointer; }
.at-orchestration-unit-list ul { margin: 6px 0 0; padding-left: 17px; line-height: 1.45; }
.at-runtime-input-gate,
.at-runtime-manual-decision,
.at-runtime-completed {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid #fde68a;
  background: #fffef8;
}
.at-runtime-input-gate > strong,
.at-runtime-manual-decision > div > strong,
.at-runtime-completed > strong { color: #334155; font-size: .7rem; }
.at-runtime-requirements,
.at-runtime-evidence-refs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.at-runtime-requirements label,
.at-runtime-evidence-refs label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: .68rem;
  cursor: pointer;
}
.at-runtime-requirements input,
.at-runtime-evidence-refs input { margin-top: 2px; }
.at-runtime-evidence-refs label > span { display: grid; gap: 2px; }
.at-runtime-evidence-refs label b { color: #1e293b; font-size: .68rem; }
.at-runtime-evidence-refs label small { color: #64748b; font-size: .61rem; }
.at-runtime-input-gate > button,
.at-runtime-manual-decision > button { justify-self: start; }
.at-runtime-input-gate > small,
.at-runtime-empty { margin: 0; color: #64748b; font-size: .64rem; }
.at-runtime-manual-decision label { display: grid; gap: 4px; }
.at-runtime-manual-decision label > span { color: #475569; font-size: .64rem; font-weight: 800; }
.at-runtime-manual-decision select,
.at-runtime-manual-decision textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.at-runtime-completed { border-color: #bbf7d0; background: #f7fff9; }
.at-runtime-completed > span { color: #047857; font-size: .63rem; font-weight: 850; }
.at-runtime-completed p { margin: 0; color: #334155; }
.at-capability-restored {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #166534 !important;
  background: #dcfce7;
  font-weight: 800;
}
.at-runtime-returned {
  margin-top: 8px;
  padding: 8px 9px;
  border-left: 3px solid #d97706;
  background: #fff7ed;
}
.at-runtime-returned strong { color: #9a3412; font-size: .68rem; }
.at-runtime-returned p { margin: 3px 0; color: #7c2d12; }
.at-runtime-returned small { color: #92400e; }
.at-runtime-decision-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.at-runtime-return { margin-top: 3px !important; padding-top: 7px; border-top: 1px solid #d1fae5; }
.at-runtime-return label { display: grid; gap: 4px; margin-top: 7px; }
.at-runtime-return label span { color: #475569; font-size: .64rem; font-weight: 800; }
.at-runtime-return textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.at-runtime-return button { margin-top: 7px; }

.at-runtime-independent-review { margin-top: 7px !important; padding-top: 7px; border-top: 1px dashed #cbd5e1; }
.at-runtime-independent-review summary { color: #475569; font-weight: 750; }
.at-runtime-independent-review label { display: grid; gap: 4px; margin-top: 7px; }
.at-runtime-independent-review label span { color: #475569; font-size: .64rem; font-weight: 800; }
.at-runtime-independent-review textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.at-runtime-independent-review button { margin-top: 7px; }

.at-runtime-failure {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  display: grid;
  gap: 12px;
}
.at-runtime-failure span,
.at-runtime-failure label > span { color: #b91c1c; font-size: 12px; font-weight: 700; }
.at-runtime-failure strong { display: block; margin: 4px 0; color: #7f1d1d; }
.at-runtime-failure p { margin: 0; color: #7f1d1d; line-height: 1.65; }
.at-runtime-failure label { display: grid; gap: 6px; }

.at-orchestration-conflicts {
  margin: 14px;
  border: 1px solid #fdba74;
  border-radius: 14px;
  background: #fffaf5;
  overflow: hidden;
}
.at-orchestration-conflicts > header {
  padding: 14px 16px;
  border-bottom: 1px solid #fed7aa;
  background: #fff7ed;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.at-orchestration-conflicts > header span { display: block; color: #c2410c; font-size: 12px; font-weight: 700; }
.at-orchestration-conflicts > header strong { display: block; margin-top: 3px; color: #7c2d12; }
.at-orchestration-conflicts > header b { color: #9a3412; white-space: nowrap; }
.at-orchestration-conflicts > article { display: block; margin: 14px; padding: 14px; border: 1px solid #fed7aa; border-radius: 12px; background: #fff; }
.at-conflict-positions { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.at-conflict-positions section { padding: 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.at-conflict-positions span { color: #7c3aed; font-size: 12px; font-weight: 700; }
.at-conflict-positions p { margin: 5px 0; line-height: 1.6; }
.at-conflict-positions small { color: #64748b; }
.at-conflict-form { margin-top: 12px; display: grid; grid-template-columns: minmax(190px, .45fr) minmax(280px, 1fr); gap: 10px; align-items: end; }
.at-conflict-form label { display: grid; gap: 6px; }
.at-conflict-form label > span { color: #475569; font-size: 12px; font-weight: 700; }
.at-conflict-form button { justify-self: start; }
.at-conflict-resolution { margin-top: 12px; padding: 12px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.at-conflict-resolution span { color: #047857; font-size: 12px; font-weight: 700; }
.at-conflict-resolution strong { display: block; margin: 4px 0; color: #065f46; }
.at-capability-manual-review > header b.is-conflict { color: #c2410c; background: #ffedd5; }

@media (max-width: 900px) {
  .at-conflict-positions,
  .at-conflict-form { grid-template-columns: 1fr; }
}
.at-capability-manual-review { margin-top: 10px; padding: 10px; border: 1px solid #bbf7d0; border-radius: 8px; background: #f7fff9; }
.at-capability-manual-review > header,
.at-capability-manual-review > div > article { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.at-capability-manual-review > header span,
.at-capability-manual-review > div > article span { display: block; color: #047857; font-size: .63rem; font-weight: 850; }
.at-capability-manual-review > header strong,
.at-capability-manual-review > div > article strong { display: block; margin-top: 2px; color: #1e293b; font-size: .72rem; }
.at-capability-manual-review > header > b { color: #047857; font-size: .64rem; }
.at-capability-manual-review > div { display: grid; gap: 7px; margin-top: 8px; }
.at-capability-manual-review > div > article { padding-top: 7px; border-top: 1px solid #d1fae5; }
.at-capability-manual-review > div > article > div { flex: 1; }
.at-capability-manual-review > div > article p { margin: 3px 0 0; color: #475569; }
.at-capability-manual-review > div > article > small { color: #64748b; white-space: nowrap; }
.at-orchestration-runtime > footer { margin-top: 10px; padding-top: 8px; border-top: 1px solid #dbe7e2; color: #64748b; font-size: .67rem; }
.at-capability-run-trace,
.at-capability-synthesis { padding: 12px; }
.at-capability-step-list,
.at-capability-proposition-list { margin-top: 11px; border-top: 1px solid #e2e8f0; }
.at-capability-step-list article,
.at-capability-proposition-list article { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(180px,.55fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.at-capability-step-list article > small { align-self: start; margin: 2px 0 0; padding: 3px 7px; border-radius: 999px; color: #047857; background: #dcfce7; font-size: .62rem; }
.at-capability-step-list article.is-blocked > small,
.at-capability-step-list article.is-not-run > small { color: #9a3412; background: #ffedd5; }
.at-capability-step-list article strong,
.at-capability-proposition-list article strong { display: block; margin-top: 2px; color: #1e293b; font-size: .75rem; }
.at-capability-step-list details,
.at-capability-proposition-list details,
.at-capability-reasoning { font-size: .68rem; }
.at-capability-step-list summary,
.at-capability-proposition-list summary,
.at-capability-reasoning > summary { color: #2454a6; font-weight: 800; cursor: pointer; }
.at-capability-step-list dl,
.at-capability-proposition-list dl { margin: 7px 0 0; color: #64748b; }
.at-capability-step-list dl div,
.at-capability-proposition-list dl div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 6px; padding-top: 3px; }
.at-capability-step-list dt,
.at-capability-proposition-list dt { font-weight: 800; }
.at-capability-step-list dd,
.at-capability-proposition-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.at-capability-synthesis { border-color: #b9cdf4; background: #fbfdff; }
.at-capability-synthesis > header > b { color: #8a4b08; background: #fff2d6; }
.at-capability-proposition-list article { grid-template-columns: minmax(0,1fr) minmax(220px,.65fr); }
.at-capability-reasoning { margin-top: 10px; }
.at-capability-reasoning > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 9px; }
.at-capability-reasoning section { padding: 9px; border: 1px solid #e2e8f0; background: #fff; }
.at-capability-reasoning section strong { color: #334155; font-size: .7rem; }
.at-capability-reasoning ul { margin: 6px 0 0; padding-left: 16px; color: #64748b; line-height: 1.5; }
.at-capability-synthesis > footer { margin-top: 10px; padding-top: 9px; border-top: 1px solid #d8e4f4; color: #8a4b08; font-size: .68rem; font-weight: 750; }
.at-capability-source,
.at-capability-result-head,
.at-capability-screening,
.at-capability-issues,
.at-capability-message {
  margin: 10px 14px;
  padding: 12px;
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  background: #fff;
}
.at-capability-source label {
  display: grid;
  grid-template-columns: auto 120px;
  gap: 2px 8px;
  align-items: center;
  color: #475569;
  font-size: .72rem;
  font-weight: 800;
}
.at-capability-source label input {
  width: 120px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.at-capability-source label small { grid-column: 1 / -1; text-align: right; }
.at-capability-result-head > b {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: .7rem;
}
.at-capability-result-head > b.is-usable { color: #047857; background: #dcfce7; }
.at-capability-result-head > b.is-limited { color: #9a6700; background: #fef3c7; }
.at-capability-result-head > b.is-blocked { color: #b42318; background: #fee2e2; }
.at-capability-issues strong { color: #9a3412; font-size: .8rem; }
.at-capability-issues ul { margin: 8px 0 12px; padding-left: 20px; color: #475569; font-size: .76rem; }
.at-capability-screening-summary { padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.at-capability-signal-list { display: grid; gap: 7px; margin-top: 10px; }
.at-capability-signal-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfdff;
}
.at-capability-signal-list article > b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: .7rem;
}
.at-capability-signal-list article strong { color: #1e293b; font-size: .78rem; }
.at-capability-signal-list article p { margin: 2px 0; }
.at-capability-review { align-items: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.at-capability-review label { flex: 1; }
.at-capability-review label > span { display: block; margin-bottom: 5px; color: #334155; font-size: .75rem; font-weight: 800; }
.at-capability-review label em { color: #dc2626; font-style: normal; }
.at-capability-review textarea { width: 100%; resize: vertical; }
.at-capability-review > div { display: flex; gap: 6px; }
.at-capability-message strong { color: #334155; font-size: .8rem; }
.at-capability-message.is-warning { border-color: #fed7aa; background: #fffaf3; }
.at-capability-message.is-warning strong { color: #9a3412; }
.at-capability-message.is-success { border-color: #bbf7d0; background: #f4fff8; }
.at-capability-message.is-success strong { color: #047857; }
.at-capability-reuse {
  margin: 10px 14px;
  padding: 12px;
  border: 1px solid #c8d8f0;
  border-radius: 10px;
  background: #fff;
}
.at-capability-reuse > header,
.at-capability-reuse article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.at-capability-reuse > header { padding-bottom: 9px; border-bottom: 1px solid #e2e8f0; }
.at-capability-reuse > header span { color: #2563eb; font-size: .66rem; font-weight: 850; }
.at-capability-reuse > header strong,
.at-capability-reuse article strong { display: block; color: #1e293b; font-size: .78rem; }
.at-capability-reuse > header > b { color: #1d4ed8; font-size: .68rem; }
.at-capability-reuse article { padding: 9px 0; border-bottom: 1px solid #eef2f7; }
.at-capability-reuse article:last-child { padding-bottom: 0; border-bottom: 0; }
.at-capability-reuse article p,
.at-capability-reuse article small { margin: 2px 0 0; }
.at-capability-value-trial {
  margin: 10px 14px;
  border: 1px solid #d9d5c7;
  border-radius: 10px;
  background: #fffefb;
}
.at-capability-value-trial > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  cursor: pointer;
  list-style-position: inside;
}
.at-capability-value-trial > summary span { color: #8a5b18; font-size: .66rem; font-weight: 850; }
.at-capability-value-trial > summary strong { display: block; margin-top: 2px; color: #1e293b; font-size: .82rem; }
.at-capability-value-trial > summary p { margin: 3px 0 0; }
.at-capability-value-trial > summary > b { flex: 0 0 auto; color: #8a5b18; font-size: .66rem; }
.at-capability-value-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid #eee8d8;
  border-bottom: 1px solid #eee8d8;
  background: #fff;
}
.at-capability-value-metrics span { padding: 9px 12px; border-left: 1px solid #eee8d8; color: #64748b; font-size: .66rem; }
.at-capability-value-metrics span:first-child { border-left: 0; }
.at-capability-value-metrics b { display: block; margin-bottom: 2px; color: #1e293b; font-size: .88rem; }
.at-capability-value-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 12px; }
.at-capability-value-form label { display: grid; gap: 5px; }
.at-capability-value-form label.is-wide { grid-column: 1 / -1; }
.at-capability-value-form label > span { color: #475569; font-size: .66rem; font-weight: 800; }
.at-capability-value-form input,
.at-capability-value-form select,
.at-capability-value-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.at-capability-value-form textarea { resize: vertical; }
.at-capability-value-trial > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 12px; }
.at-capability-value-trial > footer small { margin: 0; }
.at-capability-pilot > footer {
  padding: 0 16px 12px;
  color: #64748b;
  font-size: .7rem;
}
@media (max-width: 820px) {
  .at-capability-pilot > header,
  .at-capability-source,
  .at-capability-result-head,
  .at-capability-screening-summary,
  .at-capability-review { align-items: stretch; flex-direction: column; }
  .at-capability-flow { align-items: flex-start; flex-direction: column; }
  .at-capability-flow i { display: none; }
  .at-capability-program,
  .at-capability-match > header,
  .at-capability-run-trace > header,
  .at-capability-synthesis > header,
  .at-execution-queue-trace > header,
  .at-orchestration-branches > header,
  .at-orchestration-disclosure > header,
  .at-orchestration-triggered > header,
  .at-orchestration-runtime > header,
  .at-orchestration-triggered article { align-items: flex-start; flex-direction: column; }
  .at-orchestration-intent,
  .at-orchestration-branches > div,
  .at-orchestration-disclosure dl { grid-template-columns: 1fr; }
  .at-orchestration-unit-list { grid-template-columns: 1fr; }
  .at-execution-queue-trace > div { grid-template-columns: 1fr; }
  .at-runtime-requirements,
  .at-runtime-evidence-refs { grid-template-columns: 1fr; }
  .at-orchestration-branches article { grid-template-columns: auto minmax(0,1fr); }
  .at-orchestration-branches article i { display: none; }
  .at-capability-agent-list,
  .at-capability-reasoning > div { grid-template-columns: 1fr; }
  .at-capability-agent-list article { border-top: 1px solid #e2e8f0; border-left: 0; }
  .at-capability-agent-list article:first-child { border-top: 0; }
  .at-capability-step-list article,
  .at-capability-proposition-list article { grid-template-columns: 1fr; }
  .at-capability-reuse > header,
  .at-capability-reuse article { align-items: flex-start; flex-direction: column; }
  .at-capability-review > div { flex-wrap: wrap; }
  .at-capability-manual-review article { flex-direction: column; }
  .at-capability-manual-review article > small { white-space: normal; }
  .at-capability-value-trial > summary,
  .at-capability-value-trial > footer { align-items: stretch; flex-direction: column; }
  .at-capability-value-metrics,
  .at-capability-value-form { grid-template-columns: 1fr; }
  .at-capability-value-metrics span { border-top: 1px solid #eee8d8; border-left: 0; }
  .at-capability-value-metrics span:first-child { border-top: 0; }
}
.at-evidence-dropzone {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  margin: 12px 14px;
  padding: 14px 16px;
  border: 1.5px dashed #8eb5f4;
  border-radius: 12px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.at-evidence-dropzone:hover,
.at-evidence-dropzone:focus-visible,
.at-evidence-dropzone.is-drag-over {
  border-color: #2563eb;
  background: #eef5ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  outline: none;
}
.at-evidence-dropzone.is-loading {
  border-style: solid;
  border-color: #2563eb;
  background: linear-gradient(90deg, #eef5ff, #f8fbff, #eef5ff);
  background-size: 200% 100%;
  animation: at-evidence-loading 1.2s linear infinite;
  cursor: progress;
}
.at-evidence-dropzone.is-complete { border-color: #22a06b; background: #f2fbf6; }
.at-evidence-dropzone.is-error { border-color: #e38b30; background: #fff9ee; }
.at-evidence-dropzone.is-disabled { opacity: .66; cursor: not-allowed; }
.at-evidence-drop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}
.at-evidence-dropzone strong {
  display: block;
  color: #10233f;
  font-size: 15px;
}
.at-evidence-dropzone p {
  margin: 3px 0 7px;
  color: #5f7088;
  font-size: 12px;
  line-height: 1.5;
}
.at-evidence-format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.at-evidence-format-list b {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e5efff;
  color: #2457a6;
  font-size: 10px;
  font-weight: 800;
}
.at-evidence-dropzone > em {
  max-width: 220px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
  text-align: right;
}
.at-evidence-dropzone.is-loading > em { color: #1d4ed8; font-weight: 800; }
.at-evidence-dropzone.is-complete > em { color: #16824c; font-weight: 800; }
.at-evidence-dropzone.is-error > em { color: #a45712; font-weight: 800; }
@keyframes at-evidence-loading {
  from { background-position: 0 0; }
  to { background-position: -200% 0; }
}
.at-evidence-work-area {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 360px;
}
.at-evidence-sources {
  padding: 14px;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}
.at-evidence-sources > strong {
  display: block;
  margin: 0 0 10px;
  font-size: .82rem;
}
.at-evidence-source {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.at-evidence-source:hover,
.at-evidence-source.active {
  border-color: #9bc0ff;
  background: #eaf3ff;
}
.at-evidence-source > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}
.at-evidence-source strong,
.at-evidence-source small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.at-evidence-source strong { font-size: .78rem; }
.at-evidence-source small { margin-top: 3px; color: #64748b; font-size: .68rem; }
.at-project-material-link {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 1px dashed #94a3b8;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-weight: 700;
}
.at-evidence-empty,
.at-evidence-preview-empty {
  padding: 18px 10px;
  color: #64748b;
  font-size: .76rem;
  line-height: 1.6;
}
.at-evidence-empty span,
.at-evidence-empty small { display: block; }
.at-evidence-preview {
  min-width: 0;
  padding: 14px;
}
.at-evidence-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
.at-evidence-preview-head strong { display: block; margin-top: 2px; }
.at-evidence-preview-head small { color: #64748b; }
.at-evidence-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.at-evidence-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: .74rem;
}
.at-evidence-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px;
  border-bottom: 1px solid #cbd5e1;
  background: #f1f5f9;
  text-align: left;
  white-space: nowrap;
}
.at-evidence-table td {
  max-width: 260px;
  padding: 8px 9px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  word-break: break-word;
}
.at-evidence-table tr.is-exception { background: #fff1f2; }
.at-evidence-table tr.is-pass { background: #f0fdf4; }
.at-evidence-table tr.is-pending { background: #fffbeb; }
.at-evidence-table select,
.at-evidence-table input {
  min-width: 92px;
  padding: 6px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  font-size: .72rem;
}
.at-evidence-table input { min-width: 180px; }
.at-evidence-limit {
  margin: 8px 0 0;
  color: #64748b;
  font-size: .72rem;
}
.at-document-preview {
  min-height: 280px;
  max-height: 430px;
  padding: 20px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: .84rem;
  line-height: 1.8;
  white-space: pre-wrap;
  user-select: text;
}
.at-document-citation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.at-document-citation label span { display: block; margin-bottom: 5px; font-size: .74rem; font-weight: 700; }
.at-document-citation textarea { width: 100%; }
.at-fact-register {
  padding: 14px 18px 18px;
  border-top: 1px solid #dbe7f7;
}
.at-fact-register-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.at-fact-register-head strong { display: block; margin-top: 2px; }
.at-fact-register-head em {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-style: normal;
  font-weight: 800;
}
.at-fact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.at-fact-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 9px;
}
.at-fact-list article.is-exception { border-left-color: #dc2626; }
.at-fact-list article.is-pass { border-left-color: #16a34a; }
.at-fact-list article.is-pending { border-left-color: #d97706; }
.at-fact-list article > span { color: #64748b; font-size: .72rem; font-weight: 800; }
.at-fact-list p,
.at-fact-list small { display: block; margin: 3px 0 0; color: #475569; }
.at-fact-list small { color: #64748b; }
.at-professional-fact-lineage{margin-top:8px;color:#526176;font-size:.73rem}
.at-professional-fact-lineage summary{cursor:pointer;font-weight:700}
.at-professional-fact-lineage ul{display:grid;gap:5px;margin:8px 0 0;padding-left:20px;overflow-wrap:anywhere}
.at-fact-actions {
  display: flex;
  gap: 4px;
}
.at-fact-actions button {
  min-width: 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  cursor: pointer;
}
.at-fact-actions button:hover { color: #1d4ed8; background: #dbeafe; }
.at-fact-actions button:last-child:hover { color: #b91c1c; background: #fee2e2; }
.at-fact-add summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  color: #526174;
}
.at-fact-add summary span { font-size: 11px; }
.at-fact-add summary strong { color: #2563eb; font-size: 12px; }
.at-fact-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, .7fr);
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
}
.at-fact-form label span { display: block; margin-bottom: 5px; font-size: .74rem; font-weight: 700; }
.at-fact-form input,
.at-fact-form select,
.at-fact-form textarea { width: 100%; }
.at-fact-form .wide { grid-column: 1 / -1; }
.at-fact-form-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: flex-start;
}
.at-conclusion-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.at-conclusion-head-actions small { max-width: 260px; text-align: right; }
.at-fact-form button { justify-self: start; }
.at-method-record-body { padding: 12px; }
.at-execution-conclusion { margin-top: 14px; }

@media (max-width: 1100px) {
  .at-evidence-workbench-head { grid-template-columns: 1fr; }
  .at-evidence-work-area { grid-template-columns: 1fr; }
  .at-evidence-sources { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .at-evidence-kpis,
  .at-evidence-actions { flex-wrap: wrap; }
  .at-evidence-dropzone { grid-template-columns: 42px minmax(0, 1fr); }
  .at-evidence-dropzone > em { grid-column: 2; max-width: none; text-align: left; }
}

/* 程序执行减负：留在当前工作表完成方案核对、资料选择、证据分析和底稿查看 */
#view-walkthrough>.page-heading{
  display:none!important;
}
#view-walkthrough>.project-flow-nav{
  margin-top:0!important;
}
.at-notebook-shell .at-scheme-gate-inline{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-height:38px!important;
  margin:0 0 8px!important;
  padding:7px 12px!important;
  border-radius:9px!important;
}
.at-notebook-shell .at-scheme-gate-inline span,
.at-notebook-shell .at-scheme-gate-inline strong,
.at-notebook-shell .at-scheme-gate-inline p{
  display:inline!important;
  margin:0!important;
  font-size:13px!important;
}
.at-notebook-shell .at-scheme-gate-inline p{color:#92400e!important}
.at-current-program-bar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:58px!important;
  padding:10px 14px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fff!important;
}
.at-current-program-bar>div:first-child{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:baseline!important;
  gap:2px 10px!important;
  min-width:0!important;
}
.at-current-program-bar span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:900!important;
}
.at-current-program-bar strong{
  min-width:0!important;
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:17px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-current-program-bar small{
  grid-column:2!important;
  overflow:hidden!important;
  color:#64748b!important;
  font-size:12px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-current-program-meta{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  white-space:nowrap!important;
}
.at-current-program-meta>span{
  padding:4px 8px!important;
  border-radius:999px!important;
  color:#475569!important;
  background:#f1f5f9!important;
}
.at-execution-worksheet .at-plan-passport-compact{
  margin:8px 10px 0!important;
}
.at-execution-worksheet .at-plan-passport-compact>summary{
  min-height:42px!important;
  padding:7px 10px!important;
}
.at-execution-worksheet .at-plan-passport-compact .at-passport-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.at-execution-worksheet .at-evidence-workbench{
  margin:8px 10px!important;
}
.at-inline-materials,
.at-inline-workpaper,
.at-execution-adjustments{
  margin:10px!important;
  border:1px solid #dbe7f4!important;
  border-radius:11px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.at-inline-materials{
  margin:0!important;
  border-width:1px 0 0!important;
  border-radius:0!important;
}
.at-inline-materials>summary,
.at-inline-workpaper>summary,
.at-execution-adjustments>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:44px!important;
  padding:9px 12px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fafc!important;
}
.at-inline-materials>summary::-webkit-details-marker,
.at-inline-workpaper>summary::-webkit-details-marker,
.at-execution-adjustments>summary::-webkit-details-marker{
  display:none!important;
}
.at-inline-materials>summary span,
.at-inline-workpaper>summary span,
.at-execution-adjustments>summary span{
  display:block!important;
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:900!important;
}
.at-inline-materials>summary strong,
.at-inline-workpaper>summary strong,
.at-execution-adjustments>summary strong{
  display:block!important;
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:14px!important;
}
.at-inline-materials>summary b,
.at-inline-workpaper>summary b,
.at-execution-adjustments>summary b{
  color:#2563eb!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.at-inline-materials[open]>summary,
.at-inline-workpaper[open]>summary,
.at-execution-adjustments[open]>summary{
  border-bottom:1px solid #e2e8f0!important;
}
.at-inline-materials-body{
  padding:12px!important;
}
.at-inline-materials-body .at-evidence-options{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.at-inline-materials-body .at-material-option{
  min-height:42px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
}
.at-inline-material-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px solid #e2e8f0!important;
}
.at-inline-material-actions>p{
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.6!important;
}
.at-inline-material-actions>button{
  flex:0 0 auto!important;
}
.at-linked-material{
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:8px!important;
  border:1px solid #dbe7f4!important;
  border-radius:8px!important;
  background:#f8fbff!important;
}
.at-linked-material>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  border-radius:6px!important;
  color:#2563eb!important;
  background:#eaf2ff!important;
  font-size:11px!important;
  font-weight:900!important;
}
.at-linked-material strong,
.at-linked-material small{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-linked-material strong{color:#1e293b!important;font-size:12px!important}
.at-linked-material small{margin-top:2px!important;color:#64748b!important;font-size:11px!important}
.at-execution-adjustments .at-notebook-scope{
  border:0!important;
}
.at-inline-workpaper-body{
  max-height:420px!important;
  padding:14px!important;
  overflow:auto!important;
}
.at-inline-workpaper-body pre{
  margin:0!important;
  color:#334155!important;
  font:13px/1.75 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
  white-space:pre-wrap!important;
}
.at-inline-workpaper-body p{
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
}
@media(max-width:900px){
  .at-current-program-bar{grid-template-columns:1fr!important}
  .at-current-program-meta{justify-content:flex-start!important;flex-wrap:wrap!important}
  .at-inline-materials-body .at-evidence-options{grid-template-columns:1fr!important}
  .at-evidence-option-group{grid-template-columns:1fr!important}
  .at-inline-material-actions{align-items:stretch!important;flex-direction:column!important}
  .at-execution-worksheet .at-plan-passport-compact .at-passport-grid{grid-template-columns:1fr!important}
}

/* Audit method center and process understanding package */
.am-shell{max-width:1680px;margin:0 auto;padding:22px 28px 56px;color:#172033}
.am-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:26px 30px;border:1px solid #dfe7f2;border-radius:18px;background:linear-gradient(135deg,#f8fbff 0%,#fff 60%,#f4f7ff 100%);box-shadow:0 12px 34px rgba(40,63,105,.06)}
.am-hero>div:first-child{max-width:820px}.am-hero span,.am-section-head span,.am-panel-head>span,.am-side-panel>span,.am-editor-head>div>span{color:#3265d5;font-size:13px;font-weight:700;letter-spacing:.08em}
.am-hero h1{margin:7px 0 8px;font-size:30px;line-height:1.2}.am-hero p{margin:0;color:#667085;font-size:15px;line-height:1.75}
.am-project-context{min-width:240px;padding:15px 18px;border:1px solid #dce5f3;border-radius:13px;background:#fff}.am-project-context small,.am-project-context span{display:block;color:#7b879b;font-size:12px;letter-spacing:0}.am-project-context strong{display:block;margin:5px 0;color:#1d2a44;font-size:16px}
.am-tabs{display:flex;gap:6px;margin:18px 0 20px;padding:5px;border:1px solid #e2e8f0;border-radius:12px;background:#f4f7fb;width:max-content}.am-tabs button{border:0;border-radius:8px;padding:9px 18px;background:transparent;color:#5d687b;font-size:14px;font-weight:650;cursor:pointer}.am-tabs button.is-active{background:#fff;color:#2456c6;box-shadow:0 2px 8px rgba(46,67,108,.12)}
.am-section{padding:24px 0}.am-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.am-section-head h2{margin:4px 0 5px;font-size:24px}.am-section-head p{margin:0;color:#6b768a;font-size:14px}
.am-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.am-pack-card{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:14px 15px;min-height:245px;padding:20px;border:1px solid #dfe6f0;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(31,53,87,.045)}.am-pack-card.is-featured{border-color:#9cb8f6;background:linear-gradient(150deg,#f5f8ff,#fff)}.am-pack-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;color:#3367d6;background:#edf3ff}.am-pack-icon svg{width:21px;height:21px}.am-pack-copy>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.am-pack-copy small{color:#7a8699}.am-pack-copy h3{margin:10px 0 7px;font-size:18px}.am-pack-copy p{margin:0;color:#687386;line-height:1.65}.am-pack-capability{display:block;margin-top:10px;padding-top:9px;border-top:1px dashed #dce4ef;font-size:11px;line-height:1.6}.am-pack-next{display:block;margin-top:8px;padding:8px 9px;border-radius:8px;background:#f7f9fc;font-size:11px;line-height:1.55}.am-pack-next b{margin-right:6px;color:#395a8f}.am-pack-action{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.am-status{display:inline-flex;padding:3px 8px;border-radius:999px;background:#f0f2f5;color:#7b8494;font-size:11px;font-weight:700}.am-status.is-do{background:#edf3ff;color:#3564ca}.am-status.is-check{background:#fff2df;color:#9b5c0b}.am-status.is-act{background:#e8f7ef;color:#14804a}
.am-empty{padding:70px 24px;text-align:center;border:1px dashed #cad5e5;border-radius:16px;background:#fbfcfe}.am-empty strong{display:block;font-size:20px}.am-empty p{margin:10px 0 20px;color:#6c7789}
.am-record-list{display:grid;gap:11px}.am-record-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #dfe6ef;border-radius:13px;background:#fff}.am-record-card h3{margin:7px 0 4px;font-size:17px}.am-record-card p{margin:0 0 6px;color:#536074}.am-record-card small{color:#8993a3}.am-record-card>div:last-child{display:flex;gap:8px}.am-record-status{display:inline-flex;padding:3px 8px;border-radius:999px;background:#fff4d6;color:#946200;font-size:11px;font-weight:700}.am-record-status.is-completed{background:#e7f7ee;color:#137c46}.am-record-method{display:inline-flex;margin-left:7px;color:#49658f;font-size:11px;font-style:normal;font-weight:700}
.am-governance{margin-bottom:16px;padding:18px;border:1px solid #dce6f3;border-radius:14px;background:linear-gradient(145deg,#f8fbff,#fff)}.am-governance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.am-governance-head span{color:#3265d5;font-size:12px;font-weight:800;letter-spacing:.08em}.am-governance-head h3{margin:4px 0;font-size:18px}.am-governance-head p{margin:0;color:#6b768a;font-size:12px}.am-governance-head>strong{padding:7px 10px;border-radius:8px;background:#fff2df;color:#8f570c;font-size:11px}.am-pdca-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.am-pdca-grid article{display:grid;grid-template-columns:34px 1fr;gap:9px;padding:11px;border:1px solid #dfe6ef;border-radius:10px;background:#fff}.am-pdca-grid article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eef2f7;color:#526174;font-weight:900}.am-pdca-grid article.is-do>span{background:#eaf2ff;color:#2456c6}.am-pdca-grid article.is-check>span{background:#fff2df;color:#a35b08}.am-pdca-grid article.is-act>span{background:#e7f7ee;color:#137c46}.am-pdca-grid strong,.am-pdca-grid p,.am-pdca-grid small{display:block}.am-pdca-grid strong{color:#243248;font-size:12px}.am-pdca-grid p{margin:4px 0;color:#687386;font-size:11px;line-height:1.5}.am-pdca-grid small{color:#8792a3;font-size:10px;line-height:1.45}.am-template-table{overflow:hidden;border:1px solid #dfe6ef;border-radius:14px;background:#fff}.am-template-row{display:grid;grid-template-columns:1.1fr 1.8fr 1.15fr 1.7fr;gap:16px;align-items:start;padding:15px 18px;border-top:1px solid #edf1f6;color:#586477;font-size:13px;line-height:1.55}.am-template-row:first-child{border-top:0}.am-template-row.is-head{background:#f7f9fc;color:#38445a;font-weight:700}.am-template-row strong{color:#1e293b}.am-template-row strong small{display:block;margin-top:4px;color:#7a8699;font-size:11px;font-weight:500}.am-version-state{display:inline-flex;padding:4px 7px;border-radius:7px;background:#f0f2f5;color:#687386;font-size:11px;font-style:normal;font-weight:750}.am-version-state.is-do{background:#edf3ff;color:#3564ca}.am-version-state.is-check{background:#fff2df;color:#9b5c0b}.am-version-state.is-act{background:#e8f7ef;color:#14804a}
.am-governance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.am-governance-summary article{padding:15px 16px;border:1px solid #dfe6ef;border-top:4px solid #94a3b8;border-radius:12px;background:#fff}.am-governance-summary article.is-check{border-top-color:#d99024}.am-governance-summary article.is-plan{border-top-color:#74839a}.am-governance-summary article.is-do{border-top-color:#4774d8}.am-governance-summary span{color:#667085;font-size:11px;font-weight:800}.am-governance-summary strong{display:block;margin-top:4px;color:#1f2e45;font-size:21px}.am-governance-summary p{margin:5px 0 0;color:#6c788b;font-size:12px;line-height:1.55}
.am-governance-list{display:grid;gap:13px;margin:16px 0}.am-governance-pack{padding:18px;border:1px solid #dfe6ef;border-left:5px solid #8c9aaf;border-radius:14px;background:#fff;scroll-margin-top:18px;transition:border-color .18s,box-shadow .18s}.am-governance-pack.is-check{border-left-color:#d99024}.am-governance-pack.is-do{border-left-color:#4774d8}.am-governance-pack.is-focused{border-color:#5f8ce8;box-shadow:0 0 0 4px rgba(50,101,213,.12),0 14px 34px rgba(31,53,87,.08)}.am-governance-pack>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.am-governance-pack>header>div{min-width:0}.am-governance-pack>header small{margin-left:8px;color:#7d899b;font-size:11px}.am-governance-pack h3{margin:8px 0 5px;color:#1e2d44;font-size:19px}.am-governance-pack>header p{max-width:920px;margin:0;color:#69768a;font-size:12px;line-height:1.55}.am-governance-next{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:start;margin:14px 0;padding:11px 13px;border:1px solid #d9e4f4;border-radius:10px;background:#f7faff}.am-governance-next span{color:#56709a;font-size:11px;font-weight:800}.am-governance-next strong{color:#263a59;font-size:13px;line-height:1.5}.am-governance-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.am-governance-body>section,.am-governance-scenario,.am-foundation-reason{padding:13px;border:1px solid #e2e7ef;border-radius:10px;background:#fbfcfe}.am-governance-body h4,.am-governance-scenario span,.am-foundation-reason span{display:block;margin:0 0 7px;color:#354761;font-size:12px;font-weight:850}.am-governance-body p{margin:0;color:#667387;font-size:12px;line-height:1.65}.am-governance-checklist,.am-governance-route,.am-governance-exit{display:grid;gap:7px;margin:0;padding-left:20px}.am-governance-checklist li,.am-governance-route li,.am-governance-exit li{padding-left:2px;color:#58667b;font-size:12px;line-height:1.58}.am-governance-checklist li::marker{color:#b46d12;font-weight:800}.am-governance-route li::marker{color:#3265d5;font-weight:800}.am-governance-exit li::marker{color:#17804b;font-weight:800}
.am-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin:4px 0 18px;padding:21px 23px;border:1px solid #dfe6ef;border-radius:15px;background:#fff}.am-editor-head>div:first-child{max-width:850px}.am-editor-head>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.am-editor-head h2{margin:6px 0;font-size:24px}.am-editor-head p{margin:0;color:#6a7587;line-height:1.6}.am-back{display:block;margin-bottom:13px;padding:0;border:0;background:none;color:#4a618d;cursor:pointer}
.am-work-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:7px;border:1px solid #dfe6ef;border-radius:13px;background:#f7f9fc}.am-work-steps span{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:9px;color:#667085;font-size:13px;font-weight:700}.am-work-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e2e8f0;color:#526174}.am-work-steps .is-done{background:#eef5ff;color:#2456c6}.am-work-steps .is-done b{background:#3265d5;color:#fff}.am-method-tag{display:inline-flex;margin-left:7px;padding:3px 7px;border-radius:999px;background:#eef3ff;color:#315fc3;font-size:11px;font-style:normal;font-weight:750;vertical-align:middle}
.am-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.am-editor-grid main{display:grid;gap:14px}.am-editor-grid aside{display:grid;gap:13px;position:sticky;top:16px}.am-panel,.am-side-panel{border:1px solid #dfe6ef;border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(31,53,87,.035)}.am-panel{padding:20px}.am-side-panel{padding:18px}.am-panel-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}.am-panel-head>span{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:9px;background:#edf3ff}.am-panel-head h3,.am-side-panel h3{margin:2px 0 4px;font-size:17px}.am-panel-head p,.am-side-panel p{margin:0;color:#748095;font-size:13px;line-height:1.55}.am-panel-head-action>button{margin-left:auto}
.am-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.am-form-grid label,.am-sipoc-grid label,.am-node-grid label,.am-side-panel label{display:grid;gap:6px}.am-form-grid label>span,.am-sipoc-grid label>span,.am-node-grid label>span,.am-side-panel label>span{color:#4d596d;font-size:12px;font-weight:700}.am-form-grid .is-wide{grid-column:1/-1}.am-form-grid input,.am-form-grid select,.am-node-grid input,.am-node-grid textarea,.am-sipoc-grid textarea,.am-side-panel select,.am-judgment{width:100%;box-sizing:border-box;border:1px solid #cfd9e7;border-radius:9px;padding:10px 11px;background:#fff;color:#1e293b;font:inherit}.am-form-grid input:focus,.am-form-grid select:focus,.am-node-grid input:focus,.am-node-grid textarea:focus,.am-sipoc-grid textarea:focus,.am-side-panel select:focus,.am-judgment:focus{outline:2px solid #cbdafe;border-color:#7297ed}.am-source-drawer{margin-top:14px;border:1px solid #e2e7ef;border-radius:10px}.am-source-drawer summary{display:flex;justify-content:space-between;padding:12px 14px;cursor:pointer;color:#48566c;font-weight:700}.am-material-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 12px}.am-material-options label{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e3e8f0;border-radius:9px}.am-material-options span{display:grid;gap:3px}.am-material-options small{color:#818b9a}
.am-sipoc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.am-sipoc-grid label{padding:11px;border:1px solid #e0e7f1;border-top:3px solid #7fa0eb;border-radius:10px;background:#fbfcff}.am-sipoc-grid textarea{min-height:115px;resize:vertical;border:0;background:transparent;padding:3px}
.am-flow-list{display:grid;gap:12px}.am-flow-node{border:1px solid #dbe4ef;border-radius:12px;background:#fbfcfe;overflow:hidden}.am-flow-node header{display:flex;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid #e4eaf2;background:#f4f7fb}.am-flow-node header>span{display:flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:8px;background:#315fc3;color:#fff;font-size:12px;font-weight:700}.am-flow-node header>input{flex:1;border:0;background:transparent;font-size:15px;font-weight:700;outline:0}.am-flow-node header>div{display:flex;gap:4px}.am-flow-node header button{width:28px;height:28px;border:1px solid #d5deea;border-radius:7px;background:#fff;color:#617086;cursor:pointer}.am-node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:13px}.am-node-grid .is-wide{grid-column:1/-1}.am-node-grid textarea{min-height:70px;resize:vertical}.am-node-grid .is-risk textarea{border-left:3px solid #e58a7b}.am-node-grid .is-control textarea{border-left:3px solid #5bb685}.am-judgment{min-height:130px;resize:vertical}
.am-analysis-results{border-color:#b9d0f4;background:linear-gradient(160deg,#fff,#f8fbff)}.am-result-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:16px}.am-result-summary span{display:grid;gap:3px;padding:11px;border:1px solid #dce7f7;border-radius:10px;background:#fff;color:#637087;font-size:11px}.am-result-summary b{color:#1e4fae;font-size:21px}.am-result-block{margin-top:14px}.am-result-block h4{margin:0 0 9px;color:#2d3b53;font-size:14px}.am-process-map{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:11px;border:1px solid #dbe6f4;border-radius:11px;background:#fff}.am-process-map>i{flex:none;color:#7b94bc;font-size:18px;font-style:normal}.am-process-step{display:grid;flex:0 0 170px;gap:4px;min-height:82px;padding:11px;border:1px solid #cfdcf0;border-left:4px solid #3265d5;border-radius:9px;background:#f8fbff}.am-process-step>span{color:#3265d5;font-size:11px;font-weight:800}.am-process-step>strong{color:#1f2f49;font-size:13px;line-height:1.4}.am-process-step>small{color:#778397;font-size:11px}.am-result-empty{margin:0;padding:18px;border:1px dashed #cbd8e9;border-radius:10px;background:#fff;color:#7b8797;text-align:center}.am-result-matrix{overflow:auto;border:1px solid #dce5f0;border-radius:10px;background:#fff}.am-result-matrix table{width:100%;min-width:850px;border-collapse:collapse}.am-result-matrix th,.am-result-matrix td{padding:10px 11px;border-right:1px solid #e8edf4;border-bottom:1px solid #e8edf4;color:#536074;font-size:12px;line-height:1.5;text-align:left;vertical-align:top}.am-result-matrix thead th{background:#f3f6fa;color:#34435a;font-weight:800}.am-result-matrix tbody th{width:150px;background:#fafbfd;color:#22324c}.am-result-matrix tr:last-child th,.am-result-matrix tr:last-child td{border-bottom:0}.am-method-note{border:1px solid #dfe6ef;border-radius:12px;background:#f8fafc}.am-method-note summary{padding:12px 14px;color:#465671;font-size:13px;font-weight:750;cursor:pointer}.am-method-note>div{padding:0 14px 12px}.am-method-note p{margin:7px 0 0;color:#657186;font-size:12px;line-height:1.65}
.am-handoff-actions{display:grid;gap:7px;margin-top:12px}.am-handoff-actions button{padding:10px 12px;border:1px solid #d7e0ec;border-radius:9px;background:#f7f9fc;color:#35445e;text-align:left;cursor:pointer}.am-handoff-actions button:hover{border-color:#91ace9;background:#f0f5ff}.am-help{color:#7a8597!important;font-size:12px!important}.am-handoff-history{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}.am-handoff-history li{display:grid;gap:2px;padding:9px;border:1px solid #e2e8f0;border-radius:8px}.am-handoff-history li span,.am-handoff-history li small{color:#7a8596;font-size:11px}.am-side-panel dl{display:grid;gap:8px;margin:12px 0 0}.am-side-panel dl div{display:flex;justify-content:space-between;gap:12px}.am-side-panel dt{color:#7c8798}.am-side-panel dd{margin:0;color:#344157;text-align:right}
.am-context-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 12px;padding:10px 14px;border:1px solid #dbe4f2;border-radius:11px;background:#f7faff}.am-context-entry>div{display:flex;align-items:center;gap:10px}.am-context-entry svg{width:20px;color:#376bd4}.am-context-entry span{display:grid;gap:2px}.am-context-entry small{color:#718096}
.am-control-candidates{display:grid;grid-template-columns:260px 1fr;gap:18px;margin:0 0 12px;padding:14px 16px;border:1px solid #cfe3d8;border-radius:11px;background:#f6fbf8}.am-control-candidates>div{display:grid;align-content:start;gap:3px}.am-control-candidates>div>span{color:#16804a;font-size:12px;font-weight:700}.am-control-candidates>div>small{color:#708078}.am-control-candidates ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.am-control-candidates li{display:grid;grid-template-columns:150px 1fr;gap:2px 10px;padding:9px 11px;border:1px solid #dbeae1;border-radius:8px;background:#fff}.am-control-candidates li>span{grid-row:1/3;color:#537161;font-size:12px}.am-control-candidates li>small{color:#74857b}

/* Risk control analysis 1.0 */
.rc-shell{max-width:1680px;margin:0 auto;padding:22px 28px 56px;color:#172033}.rc-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin:4px 0 16px;padding:22px 24px;border:1px solid #dfe6ef;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 7px 24px rgba(31,53,87,.05)}.rc-editor-head>div:first-child{max-width:900px}.rc-editor-head>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.rc-editor-head>div>span,.rc-panel-head>span,.rc-side-panel>span{color:#3265d5;font-size:13px;font-weight:750;letter-spacing:.06em}.rc-editor-head h2{margin:7px 0 6px;font-size:25px}.rc-editor-head p{margin:0;color:#667085;line-height:1.65}.rc-back{display:block;margin-bottom:13px;padding:0;border:0;background:none;color:#4a618d;cursor:pointer}
.rc-work-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:7px;border:1px solid #dfe6ef;border-radius:13px;background:#f7f9fc}.rc-work-steps span{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:9px;color:#667085;font-size:13px;font-weight:700}.rc-work-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e2e8f0;color:#526174}.rc-work-steps .is-done{background:#eef5ff;color:#2456c6}.rc-work-steps .is-done b{background:#3265d5;color:#fff}
.rc-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.rc-editor-grid main{display:grid;gap:14px}.rc-editor-grid aside{display:grid;gap:13px;position:sticky;top:16px}.rc-panel,.rc-side-panel{border:1px solid #dfe6ef;border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(31,53,87,.035)}.rc-panel{padding:20px}.rc-side-panel{padding:18px}.rc-panel-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}.rc-panel-head>span{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:9px;background:#edf3ff}.rc-panel-head h3,.rc-side-panel h3{margin:2px 0 4px;font-size:17px}.rc-panel-head p,.rc-side-panel p{margin:0;color:#748095;font-size:13px;line-height:1.55}.rc-panel-head-action>button{margin-left:auto}
.rc-editor-grid.is-embedded{grid-template-columns:minmax(0,1fr)}
.rc-risk-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);align-items:end;gap:18px}.rc-risk-context .rc-panel-head{margin:0}.rc-risk-context>label{display:grid;gap:6px}.rc-risk-context>label>span{color:#4d596d;font-size:12px;font-weight:750}.rc-risk-context>label select{width:100%;padding:10px 11px;border:1px solid #cfd9e7;border-radius:9px;background:#fff;color:#1e293b;font:inherit}
.rc-optional-relations,.rc-optional-analysis,.pra-control-understanding-optional{padding:0;overflow:hidden}
.rc-optional-relations>summary,.rc-optional-analysis>summary,.pra-control-understanding-optional>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;cursor:pointer;list-style:none}.rc-optional-relations>summary::-webkit-details-marker,.rc-optional-analysis>summary::-webkit-details-marker,.pra-control-understanding-optional>summary::-webkit-details-marker{display:none}.rc-optional-relations>summary span,.rc-optional-analysis>summary span,.pra-control-understanding-optional>summary span{display:block;color:#3265d5;font-size:11px;font-weight:850;letter-spacing:.06em}.rc-optional-relations>summary h3,.rc-optional-analysis>summary h3,.pra-control-understanding-optional>summary strong{margin:3px 0;color:#22324c;font-size:15px}.rc-optional-relations>summary p,.rc-optional-analysis>summary p,.pra-control-understanding-optional>summary small{margin:0;color:#748095;font-size:12px;line-height:1.5}.rc-optional-relations>summary>b,.rc-optional-analysis>summary>b,.pra-control-understanding-optional>summary>b{flex:0 0 auto;color:#3265d5;font-size:12px}.rc-optional-relations[open]>summary,.rc-optional-analysis[open]>summary,.pra-control-understanding-optional[open]>summary{border-bottom:1px solid #e5ebf3;background:#f8fbff}.rc-optional-relations .rc-cause-consequence,.rc-optional-analysis-body{padding:16px 18px 18px}.pra-control-understanding-optional .pra-method-evidence-actions{padding:0 14px 14px}
.rc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.rc-form-grid label,.rc-control-grid label,.rc-side-panel label{display:grid;gap:6px}.rc-form-grid label>span,.rc-control-grid label>span,.rc-side-panel label>span{color:#4d596d;font-size:12px;font-weight:700}.rc-form-grid .is-wide,.rc-control-grid .is-wide{grid-column:1/-1}.rc-form-grid input,.rc-form-grid select,.rc-form-grid textarea,.rc-control-grid input,.rc-control-grid select,.rc-control-grid textarea,.rc-side-panel select,.rc-judgment{width:100%;box-sizing:border-box;border:1px solid #cfd9e7;border-radius:9px;padding:10px 11px;background:#fff;color:#1e293b;font:inherit}.rc-form-grid textarea,.rc-control-grid textarea{min-height:76px;resize:vertical}.rc-form-grid input:focus,.rc-form-grid select:focus,.rc-form-grid textarea:focus,.rc-control-grid input:focus,.rc-control-grid select:focus,.rc-control-grid textarea:focus,.rc-side-panel select:focus,.rc-judgment:focus{outline:2px solid #cbdafe;border-color:#7297ed}
.rc-cause-consequence{display:grid;grid-template-columns:1fr 1fr;gap:13px}.rc-cause-consequence>section{padding:13px;border:1px solid #dfe6ef;border-radius:12px;background:#fbfcfe}.rc-cause-consequence>section:first-child{border-left:4px solid #e39a68}.rc-cause-consequence>section:last-child{border-right:4px solid #7b8fda}.rc-cause-consequence section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.rc-cause-consequence header span{color:#738097;font-size:11px;font-weight:700}.rc-cause-consequence h4{margin:3px 0 0}.rc-cause-consequence header button{padding:6px 9px;border:1px solid #d5deea;border-radius:8px;background:#fff;color:#40516d;cursor:pointer}.rc-cause-consequence section>div{display:grid;gap:8px}.rc-point{display:grid;grid-template-columns:29px minmax(0,1fr) 28px;gap:8px;align-items:start}.rc-point>span{display:grid;place-items:center;height:29px;border-radius:8px;background:#edf3ff;color:#315fc3;font-size:11px;font-weight:800}.rc-point textarea{width:100%;min-height:68px;box-sizing:border-box;padding:9px 10px;border:1px solid #d4deea;border-radius:8px;background:#fff;color:#26364d;font:inherit;resize:vertical}.rc-point button,.rc-control-row header button{width:28px;height:28px;border:1px solid #d6dfe9;border-radius:7px;background:#fff;color:#7c8797;cursor:pointer}
.rc-control-list{display:grid;gap:11px}.rc-control-row{overflow:hidden;border:1px solid #dbe4ef;border-radius:12px;background:#fbfcfe}.rc-control-row>header{display:flex;align-items:center;gap:9px;padding:11px 12px;border-bottom:1px solid #e4eaf2;background:#f4f7fb}.rc-control-row>header>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#315fc3;color:#fff;font-size:11px;font-weight:800}.rc-control-row>header>input{flex:1;border:0;background:transparent;color:#172033;font-size:15px;font-weight:750;outline:0}.rc-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:13px}
.rc-results{border-color:#b9d0f4;background:linear-gradient(160deg,#fff,#f8fbff)}.rc-result-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}.rc-result-summary span{display:grid;gap:3px;padding:11px;border:1px solid #dce7f7;border-radius:10px;background:#fff;color:#637087;font-size:11px}.rc-result-summary b{color:#1e4fae;font-size:21px}.rc-result-block{margin-top:15px}.rc-result-block h4{margin:0 0 9px;color:#2d3b53;font-size:14px}
.rc-bowtie{display:grid;grid-template-columns:minmax(150px,1fr) minmax(140px,.8fr) minmax(190px,1.1fr) minmax(140px,.8fr) minmax(150px,1fr);gap:8px;align-items:stretch;overflow:auto;padding:11px;border:1px solid #dbe6f4;border-radius:12px;background:#fff}.rc-bowtie>section{min-width:140px;padding:12px;border:1px solid #dce5ef;border-radius:10px;background:#f9fbfd}.rc-bowtie>section>span{display:block;color:#65758d;font-size:11px;font-weight:800}.rc-bowtie ul{margin:8px 0 0;padding-left:17px}.rc-bowtie li{margin-top:5px;color:#35445c;font-size:12px;line-height:1.45}.rc-bowtie small{display:block;margin-top:8px;color:#8a95a5;font-size:11px}.rc-bowtie-event{display:flex;flex-direction:column;justify-content:center;border-color:#7aa7ff!important;background:linear-gradient(145deg,#edf5ff,#fff)!important;text-align:center;box-shadow:0 8px 20px rgba(37,99,235,.08)}.rc-bowtie-event strong{margin:9px 0;color:#19345d;line-height:1.45}.rc-bowtie-barrier.is-left{border-left:4px solid #39a275}.rc-bowtie-barrier.is-right{border-right:4px solid #8d71cf}.rc-bowtie-side.is-left{border-left:4px solid #e39a68}.rc-bowtie-side.is-right{border-right:4px solid #7b8fda}
.rc-control-matrix{overflow:auto;border:1px solid #dce5f0;border-radius:10px;background:#fff}.rc-control-matrix table{width:100%;min-width:900px;border-collapse:collapse}.rc-control-matrix th,.rc-control-matrix td{padding:10px 11px;border-right:1px solid #e8edf4;border-bottom:1px solid #e8edf4;color:#536074;font-size:12px;line-height:1.5;text-align:left;vertical-align:top}.rc-control-matrix thead th{background:#f3f6fa;color:#34435a;font-weight:800}.rc-control-matrix tbody th{width:180px;background:#fafbfd;color:#22324c}.rc-control-matrix tr:last-child th,.rc-control-matrix tr:last-child td{border-bottom:0}.rc-gap-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}.rc-gap-list li{display:grid;grid-template-columns:58px 1fr;gap:9px;align-items:start;padding:9px 10px;border:1px solid #f0ddbd;border-radius:9px;background:#fffaf1}.rc-gap-list li>span{display:grid;place-items:center;padding:3px 6px;border-radius:999px;background:#fff0cf;color:#9a6100;font-size:10px;font-weight:800}.rc-gap-list strong{color:#5e4b2d;font-size:12px;line-height:1.5}.rc-result-empty{margin:0;padding:18px;border:1px dashed #cbd8e9;border-radius:10px;background:#fff;color:#7b8797;text-align:center}
.rc-method-note{border:1px solid #dfe6ef;border-radius:12px;background:#f8fafc}.rc-method-note summary{padding:12px 14px;color:#465671;font-size:13px;font-weight:750;cursor:pointer}.rc-method-note>div{padding:0 14px 12px}.rc-method-note p{margin:7px 0 0;color:#657186;font-size:12px;line-height:1.65}.rc-judgment{min-height:130px;resize:vertical}.rc-action-list{display:grid;gap:7px;margin-top:12px}.rc-action-list button{padding:10px 12px;border:1px solid #d7e0ec;border-radius:9px;background:#f7f9fc;color:#35445e;text-align:left;cursor:pointer}.rc-action-list button:hover{border-color:#91ace9;background:#f0f5ff}.rc-help{color:#7a8597!important;font-size:12px!important}.rc-handoff-list{display:grid;gap:8px;margin:10px 0 0;padding:0;list-style:none}.rc-handoff-list li{display:grid;gap:2px;padding:9px;border:1px solid #e2e8f0;border-radius:8px}.rc-handoff-list li span,.rc-handoff-list li small{color:#7a8596;font-size:11px}.rc-side-panel dl{display:grid;gap:8px;margin:12px 0 0}.rc-side-panel dl div{display:flex;justify-content:space-between;gap:12px}.rc-side-panel dt{color:#7c8798}.rc-side-panel dd{margin:0;color:#344157;text-align:right}
.rc-context-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 12px;padding:10px 14px;border:1px solid #d7e4f4;border-radius:11px;background:#f7faff}.rc-context-entry>div{display:flex;align-items:center;gap:10px}.rc-context-entry svg{width:20px;color:#376bd4}.rc-context-entry span{display:grid;gap:2px}.rc-context-entry small{color:#718096}
.rc-embedded-host{position:fixed;z-index:1200;inset:62px 18px 18px 220px;overflow:auto;border:1px solid #cfdbea;border-radius:18px;background:#f4f7fb;box-shadow:0 24px 70px rgba(15,23,42,.22)}
.rc-embedded-host .rc-shell{max-width:none}.rc-score-suggestion{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(300px,1.3fr);gap:16px;margin-top:16px;padding:15px;border:1px solid #bcd1f4;border-radius:12px;background:#f4f8ff}.rc-score-suggestion>div>span{color:#3265d5;font-size:11px;font-weight:800}.rc-score-suggestion h4{margin:4px 0;font-size:18px}.rc-score-suggestion p,.rc-score-suggestion small{margin:0;color:#637087;font-size:12px;line-height:1.55}.rc-score-suggestion ul{margin:0;padding-left:18px}.rc-score-suggestion li{margin:4px 0;color:#43536b;font-size:12px}.rc-score-suggestion>small{grid-column:1/-1;padding-top:10px;border-top:1px solid #d6e2f4}
.pra-method-evidence{margin:14px 0;padding:15px;border:1px solid #cbdaf1;border-radius:13px;background:linear-gradient(145deg,#f7faff,#fff)}.pra-method-evidence-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.pra-method-evidence-head>div>span{color:#3265d5;font-size:11px;font-weight:850;letter-spacing:.06em}.pra-method-evidence-head h4{margin:4px 0;font-size:16px}.pra-method-evidence-head p{margin:0;color:#68778d;font-size:12px;line-height:1.55}.pra-method-score-compare{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:10px;margin-top:13px}.pra-method-score-compare>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #dce5f1;border-radius:10px;background:#fff}.pra-method-score-compare>div.is-suggestion{border-color:#9ebcf2;background:#f1f6ff}.pra-method-score-compare>div>span{color:#738097;font-size:11px;font-weight:750}.pra-method-score-compare>div>strong{color:#1f3150;font-size:14px}.pra-method-score-compare>div>small{color:#66758b;font-size:11px}.pra-method-score-compare>i{align-self:center;color:#7491c7;font-style:normal}.pra-method-evidence-reasons{margin-top:10px;border-top:1px solid #e0e7f1}.pra-method-evidence-reasons summary{padding:10px 0 6px;color:#405474;font-size:12px;font-weight:750;cursor:pointer}.pra-method-evidence-reasons ul{margin:4px 0;padding-left:20px}.pra-method-evidence-reasons li,.pra-method-evidence-reasons p{margin:4px 0;color:#5b6a7f;font-size:12px;line-height:1.5}.pra-method-evidence-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.pra-method-evidence-actions>small{color:#758298;font-size:11px}
@media(max-width:1200px){.am-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am-editor-grid{grid-template-columns:1fr}.am-editor-grid aside{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.am-sipoc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am-template-row{grid-template-columns:1fr 1.5fr 1fr}.am-template-row>span:last-child{grid-column:1/-1}.am-pdca-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am-governance-body{grid-template-columns:repeat(2,minmax(0,1fr))}.am-result-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.am-shell{padding:14px}.am-hero,.am-editor-head,.am-section-head,.am-record-card,.am-context-entry,.am-governance-head,.am-governance-pack>header{align-items:stretch;flex-direction:column}.am-project-context{min-width:0}.am-pack-grid,.am-form-grid,.am-material-options,.am-node-grid,.am-editor-grid aside,.am-control-candidates,.am-work-steps,.am-result-summary,.am-pdca-grid,.am-governance-summary,.am-governance-body{grid-template-columns:1fr}.am-sipoc-grid{grid-template-columns:1fr}.am-node-grid .is-wide,.am-form-grid .is-wide{grid-column:auto}.am-template-row{grid-template-columns:1fr}.am-template-row>span:last-child{grid-column:auto}.am-template-row.is-head{display:none}.am-governance-next{grid-template-columns:1fr;gap:4px}.am-governance-pack>header .btn{width:100%}.am-tabs{width:100%;overflow:auto}.am-tabs button{white-space:nowrap}.am-control-candidates li{grid-template-columns:1fr}}

/* 数据重点识别 1.1 */
.dpa-shell{max-width:1680px;margin:0 auto;padding:20px 26px 52px;color:#172033}
.dpa-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:14px}
.dpa-topbar>div:first-child{max-width:960px}.dpa-back{display:block;margin:0 0 10px;padding:0;border:0;background:none;color:#4c638a;font-weight:700;cursor:pointer}.dpa-topbar span{color:#3265d5;font-size:12px;font-weight:800;letter-spacing:.06em}.dpa-topbar h1{margin:6px 0 7px;font-size:29px;line-height:1.22}.dpa-topbar p{margin:0;color:#647087;font-size:14px;line-height:1.65}
.dpa-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.dpa-top-actions .dpa-status{padding:5px 10px;border-radius:999px;background:#eef4ff;color:#2e62cf;font-size:11px;letter-spacing:0}
.dpa-boundary{display:flex;align-items:center;gap:11px;margin-bottom:14px;padding:12px 15px;border:1px solid #f1d49e;border-radius:11px;background:#fffaf0}.dpa-boundary svg{width:22px;color:#b7791f}.dpa-boundary div{display:grid;gap:2px}.dpa-boundary strong{color:#875b14;font-size:13px}.dpa-boundary span{color:#806b4a;font-size:12px}
.dpa-panel{padding:19px;border:1px solid #dfe6ef;border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(31,53,87,.035)}
.dpa-config{margin-bottom:13px}.dpa-config-grid{display:grid;grid-template-columns:1.35fr 1.25fr .8fr .8fr 1fr;gap:11px}.dpa-config-grid label{display:grid;gap:6px}.dpa-config-grid label>span,.dpa-judgment>span{color:#4d596d;font-size:11px;font-weight:800}.dpa-config-grid input,.dpa-config-grid select,.dpa-judgment textarea{width:100%;box-sizing:border-box;border:1px solid #cfd9e7;border-radius:9px;padding:10px 11px;background:#fff;color:#1e293b;font:inherit}.dpa-config-grid input:focus,.dpa-config-grid select:focus,.dpa-judgment textarea:focus{outline:2px solid #cbdafe;border-color:#7297ed}.dpa-threshold-input{display:flex;align-items:center;gap:10px;height:39px}.dpa-threshold-input input{padding:0;border:0;accent-color:#3265d5}.dpa-threshold-input b{min-width:38px;color:#2456c6;font-size:13px}
.dpa-source-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f6;color:#718096;font-size:11px}.dpa-source-meta span{padding-right:10px;border-right:1px solid #dce3ec}.dpa-source-meta em{padding:3px 7px;border-radius:999px;font-style:normal;font-weight:800}.dpa-source-meta em.is-demo{background:#fff3d6;color:#946200}.dpa-source-meta em.is-project{background:#e7f7ee;color:#167747}.dpa-source-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.dpa-source-actions .is-danger{color:#b42318}
.dpa-demo-entry{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 13px;padding:16px 18px;border:1px solid #bcd0f3;border-left:4px solid #3265d5;border-radius:12px;background:#f5f8ff}.dpa-demo-entry>div{display:grid;gap:3px;min-width:0}.dpa-demo-entry span{color:#3265d5;font-size:10px;font-weight:900;letter-spacing:.04em}.dpa-demo-entry strong{color:#203b6a;font-size:14px}.dpa-demo-entry p{max-width:920px;margin:0;color:#60708a;font-size:11px;line-height:1.55}.dpa-demo-entry .btn{flex:0 0 auto}
.dpa-import-layer{position:fixed;z-index:2400;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.48);backdrop-filter:blur(2px)}
.dpa-import-dialog{display:flex;flex-direction:column;width:min(920px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:hidden;border:1px solid #d8e1ed;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.25)}.dpa-import-dialog.is-mapping{width:min(1080px,calc(100vw - 48px))}
.dpa-import-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px 16px;border-bottom:1px solid #e6ebf2}.dpa-import-dialog>header span{color:#3265d5;font-size:11px;font-weight:850}.dpa-import-dialog>header h2{margin:4px 0 5px;color:#172033;font-size:22px}.dpa-import-dialog>header p{margin:0;color:#6b778b;font-size:12px;line-height:1.55}.dpa-import-dialog>header>button{flex:0 0 auto;width:32px;height:32px;border:0;border-radius:8px;background:#f2f5f9;color:#64748b;font-size:21px;cursor:pointer}.dpa-import-dialog>header>button:hover{background:#e8edf4;color:#1e293b}
.dpa-import-paths{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 22px;overflow:auto}.dpa-import-paths>article{min-width:0;padding:18px;border:1px solid #dce5f0;border-radius:12px;background:#fbfcfe}.dpa-import-paths>article>span{color:#3265d5;font-size:10px;font-weight:850}.dpa-import-paths h3{margin:5px 0;color:#22324c;font-size:17px}.dpa-import-paths p{min-height:38px;margin:0 0 14px;color:#6f7b8d;font-size:12px;line-height:1.55}
.dpa-file-trigger{display:inline-flex;align-items:center;justify-content:center;margin-right:8px;padding:8px 13px;border:1px solid #3265d5;border-radius:8px;background:#3265d5;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.dpa-file-trigger input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.dpa-material-list{display:grid;gap:7px;max-height:210px;overflow:auto}.dpa-material-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 11px;border:1px solid #dce4ee;border-radius:9px;background:#fff;text-align:left;cursor:pointer}.dpa-material-list button:hover{border-color:#8eaceb;background:#f4f8ff}.dpa-material-list button span{display:grid;min-width:0;gap:2px}.dpa-material-list strong,.dpa-material-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dpa-material-list strong{color:#2b3b54;font-size:12px}.dpa-material-list small{color:#7b8799;font-size:10px}.dpa-material-list b{color:#3265d5;font-size:11px}.dpa-material-empty{display:grid;gap:4px;padding:18px;border:1px dashed #ccd6e3;border-radius:9px;background:#fff;color:#6e7b8e;text-align:center}.dpa-material-empty strong{color:#45536a;font-size:12px}.dpa-material-empty span{font-size:10px;line-height:1.45}
.dpa-import-dialog>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid #e6ebf2;background:#f8fafc}
.dpa-import-summary{display:grid;grid-template-columns:1.4fr 1fr .65fr .65fr;gap:8px;padding:14px 22px 0}.dpa-import-summary>div{display:grid;gap:3px;min-width:0;padding:10px 12px;border-radius:9px;background:#f3f6fa}.dpa-import-summary span{color:#788599;font-size:10px;font-weight:750}.dpa-import-summary strong{overflow:hidden;color:#2b3a52;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.dpa-mapping-readiness{display:flex;align-items:flex-start;gap:10px;margin:10px 22px 0;padding:10px 12px;border:1px solid;border-radius:9px}.dpa-mapping-readiness strong{flex:0 0 auto;font-size:11px}.dpa-mapping-readiness span{font-size:10px;line-height:1.5}.dpa-mapping-readiness.is-ready{border-color:#b9dec9;background:#eff9f3;color:#1c6b43}.dpa-mapping-readiness.is-needs-confirmation{border-color:#efd29a;background:#fff8e8;color:#8a5b12}
.dpa-import-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 22px}.dpa-import-meta label,.dpa-mapping-grid label{display:grid;gap:6px}.dpa-import-meta span,.dpa-mapping-grid label>span{color:#4f5d72;font-size:11px;font-weight:800}.dpa-import-meta b,.dpa-mapping-grid b{color:#c4382d}.dpa-import-meta input,.dpa-mapping-grid select{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #cfd9e7;border-radius:8px;background:#fff;color:#1e293b;font:inherit}.dpa-import-meta input:focus,.dpa-mapping-grid select:focus{outline:2px solid #cbdafe;border-color:#7297ed}
.dpa-mapping-section,.dpa-preview-section{padding:0 22px 16px;overflow:auto}.dpa-mapping-section>div:first-child,.dpa-preview-section>div:first-child{display:flex;align-items:baseline;gap:10px;margin-bottom:9px}.dpa-mapping-section h3,.dpa-preview-section h3{margin:0;color:#26364f;font-size:14px}.dpa-mapping-section p,.dpa-preview-section p{margin:0;color:#7a8697;font-size:10px}.dpa-mapping-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.dpa-mapping-grid em{margin-left:4px;padding:2px 5px;border-radius:999px;background:#eef4ff;color:#3265d5;font-size:8px;font-style:normal}
.dpa-import-preview{overflow:auto;border:1px solid #dce5f0;border-radius:9px}.dpa-import-preview table{width:100%;min-width:720px;border-collapse:collapse}.dpa-import-preview th,.dpa-import-preview td{max-width:220px;padding:8px 9px;border-right:1px solid #e6ebf2;border-bottom:1px solid #e6ebf2;overflow:hidden;color:#536074;font-size:10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.dpa-import-preview th{background:#f3f6fa;color:#34435a;font-weight:800}.dpa-import-preview tr:last-child td{border-bottom:0}
.dpa-summary-grid{display:grid;grid-template-columns:.8fr 1.35fr repeat(3,1fr);gap:10px;margin-bottom:13px}.dpa-summary-grid article{padding:14px 15px;border:1px solid #dce5f1;border-radius:12px;background:linear-gradient(145deg,#fff,#f7faff)}.dpa-summary-grid span,.dpa-summary-grid strong,.dpa-summary-grid small{display:block}.dpa-summary-grid span{color:#66758b;font-size:11px;font-weight:800}.dpa-summary-grid strong{overflow:hidden;margin-top:7px;color:#1f4fac;font-size:21px;text-overflow:ellipsis;white-space:nowrap}.dpa-summary-grid small{margin-top:4px;color:#8994a5;font-size:10px}
.dpa-interpretations{margin-bottom:13px}.dpa-reference-badge{padding:4px 9px;border-radius:999px;background:#eef3ff;color:#315fc3!important;font-size:10px!important;font-weight:800;letter-spacing:0!important;white-space:nowrap}.dpa-interpret-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dpa-interpret-card{padding:14px;border:1px solid #dfe6ef;border-top:4px solid #7d9fe7;border-radius:11px;background:#fbfcfe}.dpa-interpret-card.is-low{border-top-color:#43a776}.dpa-interpret-card.is-guarded{border-top-color:#d1a13c}.dpa-interpret-card.is-medium{border-top-color:#e08335}.dpa-interpret-card.is-high{border-top-color:#dd6658}.dpa-interpret-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dpa-interpret-card header div{display:grid;gap:4px}.dpa-interpret-card header span{color:#6b768a;font-size:10px;font-weight:800}.dpa-interpret-card header strong{color:#1d355d;font-size:21px}.dpa-interpret-card header em{padding:4px 8px;border-radius:999px;background:#eef2f7;color:#516078;font-size:10px;font-style:normal;font-weight:800}.dpa-interpret-card.is-low header em{background:#e9f7ef;color:#167747}.dpa-interpret-card.is-medium header em,.dpa-interpret-card.is-guarded header em{background:#fff4dc;color:#9a650d}.dpa-interpret-card.is-high header em{background:#fff0ee;color:#b33d31}.dpa-indicator-scale{position:relative;height:8px;margin:12px 0 13px;border-radius:999px;background:linear-gradient(90deg,#56b786 0 20%,#d7b453 20% 35%,#e98b43 35% 50%,#dd6658 50% 100%)}.dpa-indicator-scale.is-cr{background:linear-gradient(90deg,#56b786 0 40%,#d7b453 40% 60%,#e98b43 60% 80%,#dd6658 80% 100%)}.dpa-indicator-scale.is-hhi{background:linear-gradient(90deg,#56b786 0 10%,#e3aa43 10% 18%,#dd6658 18% 100%)}.dpa-indicator-scale i{position:absolute;top:50%;width:3px;height:16px;border-radius:3px;background:#172033;box-shadow:0 0 0 2px #fff;transform:translate(-50%,-50%)}.dpa-interpret-card dl{display:grid;gap:8px;margin:0}.dpa-interpret-card dl div{display:grid;grid-template-columns:68px 1fr;gap:8px}.dpa-interpret-card dt{color:#718096;font-size:10px;font-weight:800}.dpa-interpret-card dd{margin:0;color:#4f5e74;font-size:11px;line-height:1.55}.dpa-interpret-card .is-boundary{padding-top:8px;border-top:1px dashed #dce3ec}.dpa-interpret-card .is-boundary dt{color:#b25d55}.dpa-interpret-card .is-boundary dd{color:#7c6868}
.dpa-guidance{margin-bottom:13px}.dpa-guidance-grid{display:grid;grid-template-columns:1.15fr 1fr .85fr;gap:10px}.dpa-guidance-grid>article{overflow:hidden;border:1px solid #dfe6ef;border-radius:11px;background:#fbfcfe}.dpa-guidance-grid>article>header{display:grid;gap:3px;padding:12px 14px;border-bottom:1px solid #e5ebf2}.dpa-guidance-grid>article>header strong{color:#243653;font-size:14px}.dpa-guidance-grid>article>header small{color:#778397;font-size:10px;line-height:1.5}.dpa-guidance-grid>article.is-recommended>header{background:#edf8f2}.dpa-guidance-grid>article.is-recommended>header strong{color:#167747}.dpa-guidance-grid>article.is-reference>header{background:#fff8e9}.dpa-guidance-grid>article.is-reference>header strong{color:#9a650d}.dpa-guidance-grid>article.is-unavailable>header{background:#f3f5f8}.dpa-guidance-grid>article.is-unavailable>header strong{color:#697589}.dpa-guidance-grid ul{display:grid;gap:0;margin:0;padding:0;list-style:none}.dpa-guidance-grid li{display:grid;gap:5px;padding:11px 13px;border-top:1px solid #edf1f5}.dpa-guidance-grid li:first-child{border-top:0}.dpa-guidance-grid li>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.dpa-guidance-grid li strong{color:#2d3c54;font-size:12px}.dpa-guidance-grid li em{padding:2px 6px;border-radius:999px;background:#eef2f8;color:#63718a;font-size:9px;font-style:normal;white-space:nowrap}.dpa-guidance-grid li>span{color:#758095;font-size:10px;line-height:1.55}.dpa-guidance-grid>article>p{margin:0;padding:15px;color:#8792a3;font-size:11px}
.dpa-auxiliary{margin:0 0 13px;border:1px solid #dfe6ef;border-radius:13px;background:#f8fafc}.dpa-auxiliary>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;cursor:pointer;list-style:none}.dpa-auxiliary>summary::-webkit-details-marker{display:none}.dpa-auxiliary>summary>div{display:grid;gap:3px}.dpa-auxiliary>summary span{color:#9a650d;font-size:10px;font-weight:800}.dpa-auxiliary>summary strong{color:#2f3e55;font-size:14px}.dpa-auxiliary>summary small{color:#788497;font-size:10px}.dpa-auxiliary>summary>b{color:#48618d;font-size:11px}.dpa-auxiliary[open]>summary{border-bottom:1px solid #e2e8f0}.dpa-auxiliary-body{display:grid;grid-template-columns:.8fr 2.2fr;gap:11px;padding:11px}.dpa-auxiliary-body .dpa-interpretations{margin-bottom:0}.dpa-main-grid.is-single{grid-template-columns:1fr}
.dpa-main-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(300px,.8fr);gap:13px;margin-bottom:13px}.dpa-main-grid.is-balanced{grid-template-columns:1.15fr .85fr}.dpa-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.dpa-panel-head>div:first-child>span{color:#3265d5;font-size:11px;font-weight:800}.dpa-panel-head h2{margin:4px 0;font-size:18px}.dpa-panel-head p{margin:0;color:#758095;font-size:12px;line-height:1.55}.dpa-legend{display:flex;align-items:center;gap:6px;color:#718096;font-size:10px;white-space:nowrap}.dpa-legend i{width:12px;height:8px;border-radius:2px;background:#3e73dc}.dpa-legend b{width:18px;height:2px;background:#e4843b}
.dpa-pareto svg,.dpa-lorenz svg,.dpa-main-grid svg{display:block;width:100%;height:auto;overflow:visible}.dpa-axis{stroke:#cbd5e1;stroke-width:1}.dpa-axis-label,.dpa-x-label{fill:#7b8798;font-size:10px}.dpa-value-label{fill:#44536b;font-size:9px;font-weight:700}.dpa-threshold{stroke:#f0a861;stroke-width:1;stroke-dasharray:5 5}.dpa-threshold-label{fill:#b96c27;font-size:10px;font-weight:700}.dpa-bar-group{cursor:pointer}.dpa-bar-group rect{fill:#b9c9e6;transition:.15s}.dpa-bar-group rect.is-priority{fill:#4779dc}.dpa-bar-group:hover rect{fill:#275ecb}.dpa-cumulative-line{fill:none;stroke:#e27b32;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.dpa-cumulative-point{fill:#fff;stroke:#e27b32;stroke-width:2}
.dpa-equality-line{stroke:#bac5d5;stroke-width:1.5;stroke-dasharray:6 5}.dpa-lorenz-line{fill:none;stroke:#3265d5;stroke-width:3;stroke-linejoin:round}.dpa-lorenz-reading{display:grid;gap:4px;margin-top:3px;padding:10px 12px;border-radius:9px;background:#f3f7ff}.dpa-lorenz-reading strong{color:#2456c6}.dpa-lorenz-reading span{color:#6c7890;font-size:11px;line-height:1.5}
.dpa-layer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.dpa-layer-grid button{display:grid;gap:5px;padding:13px 14px;border:1px solid #dce4ef;border-radius:10px;background:#fbfcfe;color:#172033;text-align:left;cursor:pointer}.dpa-layer-grid button:hover,.dpa-layer-grid button.is-active{border-color:#7ea1ed;background:#f0f5ff}.dpa-layer-grid span{color:#3265d5;font-size:11px;font-weight:800}.dpa-layer-grid strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.dpa-layer-grid small{color:#778397;font-size:10px;line-height:1.5}
.dpa-trend-line{fill:none;stroke:#3265d5;stroke-width:3;stroke-linejoin:round}.dpa-trend-point{fill:#fff;stroke:#3265d5;stroke-width:2}.dpa-reading ul{display:grid;gap:10px;margin:0;padding:3px 0 0 20px}.dpa-reading li{color:#59667b;font-size:13px;line-height:1.55}.dpa-reading strong{color:#204fae}
.dpa-table-wrap{overflow:auto;border:1px solid #dce5f0;border-radius:10px}.dpa-table-wrap table{width:100%;min-width:880px;border-collapse:collapse}.dpa-table-wrap th,.dpa-table-wrap td{padding:10px 11px;border-right:1px solid #e8edf4;border-bottom:1px solid #e8edf4;color:#536074;font-size:11px;line-height:1.45;text-align:left;white-space:nowrap}.dpa-table-wrap thead th{background:#f3f6fa;color:#34435a;font-weight:800}.dpa-table-wrap tbody th{color:#22324c}.dpa-table-wrap tr:last-child th,.dpa-table-wrap tr:last-child td{border-bottom:0}.dpa-table-wrap tr.is-priority{background:#f8fbff}.dpa-table-wrap input{accent-color:#3265d5}.dpa-range-tag{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f0f2f5;color:#7b8494;font-size:9px;font-weight:800}.dpa-range-tag.is-in{background:#e9f1ff;color:#295dc8}
.dpa-judgment{display:grid;gap:6px;margin-top:13px}.dpa-judgment textarea{min-height:92px;resize:vertical}.dpa-output-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:12px 14px;border-radius:10px;background:#f7f9fc}.dpa-output-actions div{display:grid;gap:3px}.dpa-output-actions strong{color:#2a3b56;font-size:13px}.dpa-output-actions small{color:#7c8798;font-size:11px}
.dpa-ai-review{margin-bottom:13px;border-color:#cbdcf8;background:linear-gradient(145deg,#fff,#f7faff)}.dpa-ai-review>.dpa-panel-head{padding-bottom:12px;border-bottom:1px solid #e2eaf6}.dpa-ai-review>.dpa-panel-head>button{flex:0 0 auto}.dpa-ai-empty{display:grid;gap:5px;padding:17px 18px;border:1px dashed #c5d4eb;border-radius:11px;background:#fff;color:#65748b}.dpa-ai-empty strong{color:#2c405f;font-size:13px}.dpa-ai-empty p{margin:0;font-size:12px;line-height:1.65}.dpa-ai-empty.is-running{border-style:solid;background:#f3f7ff}.dpa-ai-empty.is-error{border-color:#efc4c0;background:#fff7f6;color:#a3443b}.dpa-ai-summary{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:start;margin-bottom:12px;padding:13px 15px;border-radius:10px;background:#edf4ff}.dpa-ai-summary span{color:#2f63cb;font-size:11px;font-weight:850}.dpa-ai-summary p{margin:0;color:#30425f;font-size:13px;line-height:1.65}.dpa-ai-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.dpa-ai-directions article{overflow:hidden;border:1px solid #dce5f2;border-radius:11px;background:#fff}.dpa-ai-directions article>header{display:flex;align-items:center;gap:9px;padding:11px 13px;border-bottom:1px solid #e6ecf4;background:#fafcff}.dpa-ai-directions article>header span{display:grid;place-items:center;flex:0 0 auto;width:23px;height:23px;border-radius:50%;background:#3265d5;color:#fff;font-size:10px;font-weight:850}.dpa-ai-directions article>header strong{color:#243653;font-size:13px;line-height:1.45}.dpa-ai-directions dl{display:grid;margin:0}.dpa-ai-directions dl>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;padding:9px 12px;border-top:1px solid #edf1f6}.dpa-ai-directions dl>div:first-child{border-top:0}.dpa-ai-directions dt{color:#5b6c86;font-size:10px;font-weight:850}.dpa-ai-directions dd{margin:0;color:#4e5d72;font-size:11px;line-height:1.6}.dpa-ai-review>footer{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;margin-top:12px;padding:11px 13px;border-radius:9px;background:#f4f6f9}.dpa-ai-review>footer strong{color:#4c5d77;font-size:10px}.dpa-ai-review>footer span{color:#68758a;font-size:11px;line-height:1.55}.dpa-ai-write-boundary{display:block;margin-top:10px;color:#788598;font-size:10px;line-height:1.55}
.dpa-drilldown{margin-top:13px}.dpa-audit-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:13px;padding:11px 14px;border:1px solid #e0e7f0;border-radius:10px;background:#f8fafc;color:#758095;font-size:10px}.dpa-empty{padding:35px;text-align:center;color:#8994a5}
@media(max-width:1200px){.dpa-config-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dpa-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dpa-guidance-grid,.dpa-auxiliary-body{grid-template-columns:1fr}.dpa-interpret-grid{grid-template-columns:1fr}.dpa-main-grid,.dpa-main-grid.is-balanced{grid-template-columns:1fr}.dpa-layer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dpa-ai-directions{grid-template-columns:1fr}}
@media(max-width:760px){.dpa-shell{padding:14px}.dpa-topbar,.dpa-panel-head,.dpa-output-actions,.dpa-demo-entry{align-items:stretch;flex-direction:column}.dpa-top-actions{justify-content:flex-start}.dpa-config-grid,.dpa-summary-grid,.dpa-layer-grid{grid-template-columns:1fr}.dpa-source-meta span{border-right:0}.dpa-source-actions{width:100%;margin-left:0}.dpa-panel{padding:14px}.dpa-interpret-card dl div,.dpa-ai-summary,.dpa-ai-directions dl>div,.dpa-ai-review>footer{grid-template-columns:1fr}.dpa-reference-badge{width:max-content}.dpa-auxiliary>summary{align-items:flex-start;flex-direction:column}.dpa-guidance-grid li>div{align-items:flex-start;flex-direction:column}.dpa-import-layer{padding:8px}.dpa-import-dialog,.dpa-import-dialog.is-mapping{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.dpa-import-paths,.dpa-import-meta,.dpa-import-summary,.dpa-mapping-grid{grid-template-columns:1fr}.dpa-import-summary{max-height:190px;overflow:auto}.dpa-mapping-section>div:first-child,.dpa-preview-section>div:first-child{align-items:flex-start;flex-direction:column}.dpa-demo-entry .btn{width:100%}}
@media(max-width:1200px){.rc-editor-grid{grid-template-columns:1fr}.rc-editor-grid aside{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.rc-bowtie{grid-template-columns:repeat(5,minmax(160px,1fr))}}
@media(max-width:760px){.rc-shell{padding:14px}.rc-embedded-host{inset:8px}.rc-editor-head,.rc-context-entry,.pra-method-evidence-head,.pra-method-evidence-actions{align-items:stretch;flex-direction:column}.rc-risk-context,.rc-work-steps,.rc-form-grid,.rc-cause-consequence,.rc-control-grid,.rc-result-summary,.rc-editor-grid aside,.rc-score-suggestion,.pra-method-score-compare{grid-template-columns:1fr}.rc-form-grid .is-wide,.rc-control-grid .is-wide{grid-column:auto}.rc-bowtie{grid-template-columns:repeat(5,180px)}.rc-score-suggestion>small{grid-column:auto}.pra-method-score-compare>i{display:none}}

/* 2026-07-29：审计资料清单，压缩表格留白并让候选资料按组展开。 */
.pmat-clean-page .pmat-ledger-mainline{
  grid-template-columns:minmax(0,1.35fr) minmax(410px,.85fr)!important;
  gap:14px!important;
}
.pmat-clean-page .pmat-ledger,
.pmat-clean-page .pmat-reference-primary,
.pmat-clean-page .pmat-reference-head>div,
.pmat-clean-page .pmat-reference-group summary>div{
  min-width:0!important;
}
.pmat-clean-page .pmat-ledger-filters label.is-wide,
.pmat-clean-page .pmat-reference-filters label.is-wide{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:6px!important;
}
.pmat-clean-page .pmat-ledger-filters label.is-wide>span,
.pmat-clean-page .pmat-reference-filters label.is-wide>span{
  display:block!important;
  min-width:0!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.35!important;
}
.pmat-clean-page .pmat-ledger-filters input,
.pmat-clean-page .pmat-reference-filters input,
.pmat-clean-page .pmat-reference-filters select{
  min-width:0!important;
  box-sizing:border-box!important;
}
.pmat-clean-page .pmat-table-wrap{
  overflow:auto!important;
}
.pmat-clean-page .pmat-composer-table{
  width:100%!important;
  min-width:900px!important;
  table-layout:fixed!important;
}
.pmat-clean-page .pmat-composer-table .pmat-col-order{width:62px!important}
.pmat-clean-page .pmat-composer-table .pmat-col-name{width:31%!important}
.pmat-clean-page .pmat-composer-table .pmat-col-priority{width:88px!important}
.pmat-clean-page .pmat-composer-table .pmat-col-scope{width:17%!important}
.pmat-clean-page .pmat-composer-table .pmat-col-provider{width:116px!important}
.pmat-clean-page .pmat-composer-table .pmat-col-date{width:108px!important}
.pmat-clean-page .pmat-composer-table .pmat-col-actions{width:108px!important}
.pmat-clean-page .pmat-ledger-table{min-width:1180px!important}
.pmat-clean-page .pmat-ledger-table .pmat-col-name{width:23%!important}
.pmat-clean-page .pmat-ledger-table .pmat-col-source{width:14%!important}
.pmat-clean-page .pmat-ledger-table .pmat-col-scope{width:15%!important}
.pmat-clean-page .pmat-ledger-table .pmat-col-provider{width:13%!important}
.pmat-clean-page .pmat-ledger-table .pmat-col-status{width:128px!important}
.pmat-clean-page .pmat-ledger-table .pmat-col-received{width:132px!important}
.pmat-reference-secondary{margin-top:12px;border:1px solid var(--border-color,#dbe3ef);border-radius:12px;background:#fff}
.pmat-reference-secondary>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none;color:#334155}
.pmat-reference-secondary>summary::-webkit-details-marker{display:none}
.pmat-reference-secondary>summary span{font-size:12px;color:#64748b;font-weight:400}
.pmat-reference-secondary>.pmat-reference{margin:0 12px 12px;box-shadow:none}
.pmat-clean-page .pmat-composer-table th,
.pmat-clean-page .pmat-composer-table td{
  overflow-wrap:anywhere!important;
}
.pmat-clean-page .pmat-composer-table td>strong,
.pmat-clean-page .pmat-composer-table td>small{
  display:block!important;
}
.pmat-clean-page .pmat-composer-table td>strong{
  color:#334155!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.pmat-clean-page .pmat-composer-table td>small{
  margin-top:3px!important;
  color:#7a8798!important;
  font-size:10px!important;
  line-height:1.4!important;
}
.pmat-clean-page .pmat-tracking-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.pmat-clean-page .pmat-tracking-table th:nth-child(1){width:31%!important}
.pmat-clean-page .pmat-tracking-table th:nth-child(2){width:142px!important}
.pmat-clean-page .pmat-tracking-table th:nth-child(3){width:auto!important}
.pmat-clean-page .pmat-tracking-table th:nth-child(4){width:92px!important}
.pmat-clean-page .pmat-tracking-table td{
  overflow-wrap:anywhere!important;
}

/* 2026-08-31：资料台账收口。前台只保留清单、收件与按需补充。 */
#view-materials .pmat-clean-page{
  --pmat-border:#d9e1eb;
  --pmat-muted:#66758a;
  --pmat-ink:#17243a;
  --pmat-soft:#f6f8fb;
  gap:12px!important;
}
#view-materials .pmat-clean-page .pmat-ledger-mainline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  align-items:start!important;
}
#view-materials .pmat-clean-page .pmat-ledger-mainline .pmat-ledger{
  min-height:0!important;
  border-color:var(--pmat-border)!important;
  border-radius:12px!important;
}
#view-materials .pmat-clean-page .pmat-list-head{
  min-height:64px!important;
  padding:12px 14px!important;
  align-items:center!important;
}
#view-materials .pmat-clean-page .pmat-list-head strong{
  font-size:15px!important;
}
#view-materials .pmat-clean-page .pmat-list-head span,
#view-materials .pmat-clean-page .pmat-list-head small{
  font-size:11px!important;
}
#view-materials .pmat-clean-page .pmat-list-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:0!important;
}
#view-materials .pmat-clean-page .pmat-list-actions small{
  margin-right:4px!important;
  color:#66758a!important;
  white-space:nowrap!important;
}
#view-materials .pmat-clean-page .pmat-list-actions .btn{
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
#view-materials .pmat-supplement-panel{
  margin:0!important;
  border-bottom:1px solid #e6ecf2!important;
  background:#fafbfd!important;
}
#view-materials .pmat-supplement-panel>header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:10px 12px!important;
}
#view-materials .pmat-supplement-panel>header div{
  display:flex!important;
  align-items:baseline!important;
  gap:8px!important;
}
#view-materials .pmat-supplement-panel>header strong{
  color:#25354a!important;
  font-size:13px!important;
}
#view-materials .pmat-supplement-panel>header span{
  color:#718096!important;
  font-size:11px!important;
}
#view-materials .pmat-supplement-panel .pmat-reference-primary{
  position:static!important;
  width:auto!important;
  max-height:420px!important;
  margin:0 12px 12px!important;
  border:1px solid #dce4ee!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
#view-materials .pmat-supplement-panel .pmat-reference-list{
  max-height:230px!important;
}
#view-materials .pmat-action-panel{
  display:grid!important;
  gap:0!important;
  margin:0!important;
  border-bottom:1px solid #dce4ee!important;
  background:#fafbfd!important;
}
#view-materials .pmat-action-panel>header,
#view-materials .pmat-action-panel>footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:10px 14px!important;
}
#view-materials .pmat-action-panel>header{
  border-bottom:1px solid #e7edf4!important;
}
#view-materials .pmat-action-panel>header div{
  display:grid!important;
  gap:2px!important;
}
#view-materials .pmat-action-panel>header strong{
  color:#25354a!important;
  font-size:13px!important;
}
#view-materials .pmat-action-panel>header span,
#view-materials .pmat-action-panel>footer span{
  color:#6c7b8f!important;
  font-size:11px!important;
  line-height:1.45!important;
}
#view-materials .pmat-action-panel>footer{
  border-top:1px solid #e7edf4!important;
  background:#fff!important;
}
#view-materials .pmat-action-empty{
  display:grid!important;
  gap:3px!important;
  padding:14px!important;
  color:#64748b!important;
  font-size:11px!important;
}
#view-materials .pmat-action-empty strong{
  color:#334155!important;
  font-size:12px!important;
}
#view-materials .pmat-sync-list{
  display:grid!important;
  gap:8px!important;
  padding:12px 14px!important;
  color:#64748b!important;
  font-size:11px!important;
}
#view-materials .pmat-sync-list ul{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0 18px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
#view-materials .pmat-sync-list li{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
  padding:7px 0!important;
  border-top:1px solid #e8edf3!important;
}
#view-materials .pmat-sync-list li strong{
  min-width:0!important;
  overflow:hidden!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:650!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#view-materials .pmat-sync-list li small{
  color:#7a889b!important;
  font-size:10px!important;
  white-space:nowrap!important;
}
#view-materials .pmat-export-options{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  padding:12px 14px!important;
}
#view-materials .pmat-export-options fieldset{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
#view-materials .pmat-export-options legend{
  margin-right:4px!important;
  color:#52647b!important;
  font-size:10px!important;
  font-weight:800!important;
}
#view-materials .pmat-export-options label,
#view-materials .pmat-export-checklist label{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#334155!important;
  font-size:11px!important;
}
#view-materials .pmat-export-selection{
  display:grid!important;
  gap:8px!important;
  padding:0 14px 12px!important;
}
#view-materials .pmat-export-selection>div:first-child{
  display:flex!important;
  justify-content:space-between!important;
  color:#52647b!important;
  font-size:10px!important;
  font-weight:800!important;
}
#view-materials .pmat-export-checklist{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-height:164px!important;
  overflow:auto!important;
  border-top:1px solid #e7edf4!important;
}
#view-materials .pmat-export-checklist label{
  min-width:0!important;
  padding:8px 6px 8px 0!important;
  border-bottom:1px solid #edf1f5!important;
}
#view-materials .pmat-export-checklist label span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#view-materials .pmat-export-checklist label small{
  margin-left:auto!important;
  color:#7a889b!important;
  font-size:10px!important;
  white-space:nowrap!important;
}
#view-materials .pmat-clean-page .pmat-ledger-filters{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) 150px auto!important;
  align-items:end!important;
  gap:8px!important;
  padding:9px 12px!important;
  background:var(--pmat-soft)!important;
}
#view-materials .pmat-clean-page .pmat-ledger-filters label{
  display:grid!important;
  gap:4px!important;
  color:#52647b!important;
  font-size:10px!important;
  font-weight:800!important;
}
#view-materials .pmat-clean-page .pmat-ledger-filters label.is-wide{
  display:grid!important;
  grid-template-columns:1fr!important;
}
#view-materials .pmat-clean-page .pmat-ledger-filters input,
#view-materials .pmat-clean-page .pmat-ledger-filters select{
  height:34px!important;
  border-color:#cdd7e4!important;
  border-radius:7px!important;
  font-size:12px!important;
}
#view-materials .pmat-clean-page .pmat-table-wrap{
  max-height:none!important;
  overflow:auto!important;
  scrollbar-color:#aebbc9 #edf1f5!important;
  scrollbar-width:thin!important;
}
#view-materials .pmat-clean-page .pmat-table-wrap::-webkit-scrollbar,
#view-materials .pmat-clean-page .pmat-reference-list::-webkit-scrollbar{
  width:8px!important;
  height:8px!important;
}
#view-materials .pmat-clean-page .pmat-table-wrap::-webkit-scrollbar-track,
#view-materials .pmat-clean-page .pmat-reference-list::-webkit-scrollbar-track{
  background:#edf1f5!important;
}
#view-materials .pmat-clean-page .pmat-table-wrap::-webkit-scrollbar-thumb,
#view-materials .pmat-clean-page .pmat-reference-list::-webkit-scrollbar-thumb{
  border:2px solid #edf1f5!important;
  border-radius:8px!important;
  background:#aebbc9!important;
}
#view-materials .pmat-clean-page .pmat-ledger-table{
  width:100%!important;
  min-width:940px!important;
  table-layout:fixed!important;
}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-name{width:27%!important}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-scope{width:19%!important}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-provider{width:15%!important}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-date{width:92px!important}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-status{width:132px!important}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-received{width:144px!important}
#view-materials .pmat-clean-page .pmat-ledger-table .pmat-col-actions{width:168px!important}
#view-materials .pmat-clean-page .pmat-ledger-table th{
  padding:9px 10px!important;
  background:#f3f6fa!important;
  color:#4b5d74!important;
  font-size:11px!important;
}
#view-materials .pmat-clean-page .pmat-ledger-table td{
  padding:10px!important;
  color:#334155!important;
  font-size:12px!important;
  line-height:1.45!important;
}
#view-materials .pmat-clean-page .pmat-ledger-table td>strong{
  font-size:12px!important;
}
#view-materials .pmat-clean-page .pmat-ledger-table td>small{
  font-size:10px!important;
}
#view-materials .pmat-clean-page .pmat-name-cell{
  display:table-cell!important;
  min-width:0!important;
  background:transparent!important;
  vertical-align:top!important;
}
#view-materials .pmat-clean-page .pmat-name-cell>div{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
#view-materials .pmat-clean-page .pmat-source-label{
  display:block!important;
  overflow:hidden!important;
  color:#718096!important;
  font-size:10px!important;
  line-height:1.35!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#view-materials .pmat-clean-page .pmat-project-switch{
  color:#40536b!important;
  background:transparent!important;
}
#view-materials .pmat-clean-page .pmat-direct-upload{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}
#view-materials .pmat-clean-page .pmat-name-cell::before,
#view-materials .pmat-clean-page .pmat-name-cell::after{
  display:none!important;
  content:none!important;
}
#view-materials .pmat-clean-page .pmat-status-select{
  width:124px!important;
  min-width:124px!important;
  height:32px!important;
  padding:0 24px 0 8px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
#view-materials .pmat-clean-page .pmat-receipt-cell span{
  display:-webkit-box!important;
  margin-top:3px!important;
  overflow:hidden!important;
  color:#718096!important;
  font-size:10px!important;
  line-height:1.35!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
#view-materials .pmat-clean-page .pmat-field-hint{
  display:block!important;
  margin-top:4px!important;
  color:#6b7b90!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.45!important;
}
#view-materials .pmat-clean-page .pmat-compose-actions{
  width:auto!important;
  white-space:nowrap!important;
}
#view-materials .pmat-clean-page .pmat-row-action-line{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  white-space:nowrap!important;
}
#view-materials .pmat-clean-page .pmat-compose-actions button,
#view-materials .pmat-clean-page .pmat-compose-actions .pmat-upload-label{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:44px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0 8px!important;
  font-size:11px!important;
}
#view-materials .pmat-pagination{
  display:grid!important;
  grid-template-columns:1fr auto auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:48px!important;
  padding:8px 12px!important;
  border-top:1px solid #e5ebf2!important;
  background:#fff!important;
  color:#65758a!important;
  font-size:11px!important;
}
#view-materials .pmat-pagination>div strong{
  color:#26364d!important;
}
#view-materials .pmat-pagination label{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}
#view-materials .pmat-pagination select{
  height:30px!important;
  padding:0 24px 0 8px!important;
  border:1px solid #cdd7e4!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:11px!important;
}
#view-materials .pmat-pagination nav{
  display:flex!important;
  gap:4px!important;
}
#view-materials .pmat-pagination button{
  min-width:30px!important;
  height:30px!important;
  padding:0 8px!important;
  border:1px solid #cdd7e4!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#41536b!important;
  font-size:11px!important;
  cursor:pointer!important;
}
#view-materials .pmat-pagination button.is-current{
  border-color:#2d62bf!important;
  background:#eef4ff!important;
  color:#204f9d!important;
  font-weight:800!important;
}
#view-materials .pmat-pagination button:disabled{
  cursor:not-allowed!important;
  opacity:.45!important;
}
#view-materials .pmat-reference-rail{
  position:sticky!important;
  top:82px!important;
  overflow:hidden!important;
  max-height:calc(100vh - 104px)!important;
  border:1px solid var(--pmat-border)!important;
  border-radius:12px!important;
  background:#fff!important;
}
#view-materials .pmat-reference-rail>header{
  display:grid!important;
  gap:3px!important;
  padding:12px 13px!important;
  border-bottom:1px solid #e6ecf2!important;
  background:#f7f9fc!important;
}
#view-materials .pmat-reference-rail>header div{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:8px!important;
}
#view-materials .pmat-reference-rail>header strong{
  color:var(--pmat-ink)!important;
  font-size:14px!important;
}
#view-materials .pmat-reference-rail>header span,
#view-materials .pmat-reference-rail>header small{
  color:var(--pmat-muted)!important;
  font-size:10px!important;
  line-height:1.4!important;
}
#view-materials .pmat-clean-page .pmat-reference-rail .pmat-reference-primary{
  position:static!important;
  width:100%!important;
  max-height:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#view-materials .pmat-clean-page .pmat-reference-head{
  padding:10px 12px!important;
}
#view-materials .pmat-clean-page .pmat-reference-head span{
  color:#52647b!important;
  font-size:10px!important;
}
#view-materials .pmat-clean-page .pmat-reference-head h3{
  font-size:13px!important;
}
#view-materials .pmat-clean-page .pmat-reference-head .btn{
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
#view-materials .pmat-clean-page .pmat-reference-filters{
  gap:7px!important;
  padding:9px 11px!important;
  background:#fff!important;
}
#view-materials .pmat-clean-page .pmat-reference-filters label,
#view-materials .pmat-clean-page .pmat-reference-filters label.is-wide>span{
  color:#52647b!important;
  font-size:10px!important;
}
#view-materials .pmat-clean-page .pmat-reference-filters input,
#view-materials .pmat-clean-page .pmat-reference-filters select{
  height:32px!important;
  padding:0 8px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
#view-materials .pmat-clean-page .pmat-reference-list{
  max-height:calc(100vh - 390px)!important;
  min-height:150px!important;
  padding:0 10px 10px!important;
  scrollbar-color:#aebbc9 #edf1f5!important;
  scrollbar-width:thin!important;
}
#view-materials .pmat-clean-page .pmat-reference-item{
  padding:8px 2px!important;
}
#view-materials .pmat-clean-page .pmat-reference-item span{
  font-size:11px!important;
}
#view-materials .pmat-clean-page .pmat-reference-item small{
  font-size:9px!important;
}
#view-materials .pmat-reference-secondary{
  display:none!important;
}
@media(max-width:1180px){
  #view-materials .pmat-clean-page .pmat-ledger-mainline{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #view-materials .pmat-reference-rail{
    position:static!important;
    order:-1!important;
    max-height:360px!important;
  }
  #view-materials .pmat-clean-page .pmat-reference-list{
    max-height:180px!important;
  }
}
@media(max-width:760px){
  #view-materials .pmat-sync-list ul,
  #view-materials .pmat-export-options,
  #view-materials .pmat-export-checklist{
    grid-template-columns:1fr!important;
  }
  #view-materials .pmat-action-panel>header,
  #view-materials .pmat-action-panel>footer,
  #view-materials .pmat-export-options fieldset{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  #view-materials .pmat-ledger-toolbar{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  #view-materials .pmat-ledger-toolbar>div:last-child{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  #view-materials .pmat-lineage{
    grid-template-columns:1fr!important;
  }
  #view-materials .pmat-lineage li{
    border-top:1px solid #e7ecf2!important;
    border-left:0!important;
  }
  #view-materials .pmat-lineage li:first-child{
    border-top:0!important;
  }
  #view-materials .pmat-clean-page .pmat-ledger-filters,
  #view-materials .pmat-pagination{
    grid-template-columns:1fr!important;
  }
  #view-materials .pmat-clean-page .pmat-list-head{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  #view-materials .pmat-clean-page .pmat-list-actions{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
  #view-materials .pmat-pagination nav{
    overflow:auto!important;
  }
}
.pmat-clean-page .pmat-tracking-table .pmat-name-cell{
  min-width:0!important;
}
.pmat-priority.important{
  background:#fff7ed!important;
  color:#b45309!important;
}
.pmat-clean-page .pmat-reference-list{
  padding:0 12px 12px!important;
  overflow:auto!important;
}
.pmat-clean-page .pmat-reference-list .pmat-reference-group{
  display:block!important;
  margin:0!important;
  border:0!important;
  border-top:1px solid #e6edf5!important;
  background:#fff!important;
}
.pmat-clean-page .pmat-reference-group>summary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 34px!important;
  gap:8px!important;
  align-items:center!important;
  padding:11px 2px!important;
  color:#334155!important;
  cursor:pointer!important;
  list-style:none!important;
}
.pmat-clean-page .pmat-reference-group>summary::-webkit-details-marker{
  display:none!important;
}
.pmat-clean-page .pmat-reference-group>summary::after{
  content:"展开";
  color:#2563eb!important;
  font-size:11px!important;
  font-weight:800!important;
  text-align:right!important;
}
.pmat-clean-page .pmat-reference-group[open]>summary::after{
  content:"收起";
}
.pmat-clean-page .pmat-reference-group>summary div{
  display:grid!important;
  gap:2px!important;
}
.pmat-clean-page .pmat-reference-group>summary strong{
  min-width:0!important;
  color:#1e293b!important;
  font-size:13px!important;
  line-height:1.45!important;
  overflow-wrap:anywhere!important;
}
.pmat-clean-page .pmat-reference-group>summary small{
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.4!important;
}
.pmat-clean-page .pmat-reference-group>summary>span{
  min-width:46px!important;
  color:#475569!important;
  font-size:12px!important;
  font-weight:800!important;
  text-align:right!important;
  white-space:nowrap!important;
}
.pmat-clean-page .pmat-reference-group-body{
  display:grid!important;
  padding:0 0 8px!important;
}
.pmat-clean-page .pmat-reference-item{
  grid-template-columns:18px minmax(0,1fr) auto!important;
  min-width:0!important;
}
.pmat-clean-page .pmat-reference-item span{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.pmat-clean-page .pmat-reference-item small{
  max-width:92px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:1180px){
  .pmat-clean-page .pmat-ledger-mainline{
    grid-template-columns:1fr!important;
  }
  .pmat-clean-page .pmat-reference-primary{
    position:static!important;
    max-height:none!important;
  }
}

/* 程序执行闭环：资料 -> 预览/分析 -> 结论 -> 底稿 */
.at-execution-worksheet{
  container-type:inline-size!important;
}
.at-execution-worksheet .at-evidence-work-area{
  grid-template-columns:220px minmax(0,1fr)!important;
  min-height:620px!important;
}
.at-execution-worksheet .at-evidence-sources{min-width:0!important}
.at-execution-worksheet .at-evidence-preview{
  min-height:620px!important;
  border-right:0!important;
  background:#fff!important;
}
.at-execution-basis{
  margin:0 0 10px!important;
  border:1px solid #dbe7f4!important;
  border-radius:10px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.at-execution-basis>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:10px 14px!important;
  color:#475569!important;
  cursor:pointer!important;
  list-style:none!important;
}
.at-execution-basis>summary::-webkit-details-marker{display:none!important}
.at-execution-basis>summary span{font-size:13px!important;font-weight:800!important}
.at-execution-basis>summary small{color:#64748b!important;font-size:12px!important}
.at-execution-basis>div{padding:12px!important;border-top:1px solid #e2e8f0!important;background:#f8fafc!important}
.at-execution-basis .at-scheme-drift-notice{margin:0 0 10px!important}
.at-execution-basis .at-plan-passport{margin:0!important}
.at-evidence-source-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:4px!important;
  align-items:stretch!important;
  margin-bottom:8px!important;
}
.at-evidence-source-row .at-evidence-source{margin:0!important}
.at-execution-worksheet .at-evidence-remove{
  width:28px!important;
  min-width:28px!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#94a3b8!important;
  font-size:0!important;
  cursor:pointer!important;
}
.at-execution-worksheet .at-evidence-remove::before{
  content:"×"!important;
  font-size:18px!important;
  line-height:1!important;
}
.at-execution-worksheet .at-evidence-remove:hover{border-color:#fecaca!important;background:#fff1f2!important;color:#b91c1c!important}
.at-evidence-remove-confirm{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:6px!important;
  align-items:center!important;
  padding:9px!important;
  border:1px solid #fecaca!important;
  border-radius:9px!important;
  background:#fff7f7!important;
}
.at-evidence-remove-confirm span{color:#7f1d1d!important;font-size:11px!important;line-height:1.35!important}
.at-evidence-remove-confirm button{
  min-width:0!important;
  padding:5px 7px!important;
  border:1px solid #fecaca!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#991b1b!important;
  font-size:11px!important;
  cursor:pointer!important;
}
.at-evidence-mark-index{
  border-top:1px solid #dbe7f4!important;
  border-bottom:1px solid #dbe7f4!important;
  background:#fffbeb!important;
}
.at-evidence-mark-index>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:10px 16px!important;
  color:#92400e!important;
  cursor:pointer!important;
  list-style:none!important;
}
.at-evidence-mark-index>summary::-webkit-details-marker{display:none!important}
.at-evidence-mark-index>summary span{font-size:13px!important;font-weight:850!important}
.at-evidence-mark-index>summary b{color:#b45309!important}
.at-evidence-mark-index>summary small{font-size:12px!important}
.at-evidence-mark-index>div{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  max-height:260px!important;
  padding:0 14px 14px!important;
  overflow:auto!important;
}
.at-evidence-mark-index button{
  min-width:0!important;
  padding:10px 12px!important;
  border:1px solid #fde68a!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#334155!important;
  text-align:left!important;
  cursor:pointer!important;
}
.at-evidence-mark-index button:hover{border-color:#f59e0b!important;background:#fffdf3!important}
.at-evidence-mark-index button span{display:block!important;color:#b45309!important;font-size:11px!important;font-weight:900!important}
.at-evidence-mark-index button strong,
.at-evidence-mark-index button p,
.at-evidence-mark-index button small{display:block!important;margin:3px 0 0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.at-evidence-mark-index button p,
.at-evidence-mark-index button small{color:#64748b!important;font-size:12px!important}
.at-row-flag{
  min-width:54px!important;
  padding:5px 7px!important;
  border:1px solid #cbd5e1!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.at-row-flag.active{border-color:#f59e0b!important;background:#fef3c7!important;color:#92400e!important}
.at-evidence-row.is-flagged,
.at-evidence-table tr.is-flagged{box-shadow:inset 4px 0 0 #f59e0b!important;background:#fffbeb!important}
.at-evidence-table tr.is-focus{animation:at-evidence-focus 1.4s ease!important}
@keyframes at-evidence-focus{0%,100%{outline:0 solid transparent}40%{outline:3px solid #f59e0b}}
.at-document-citation-actions{display:flex!important;gap:8px!important;align-items:center!important}
.at-linked-material{
  width:100%!important;
  margin:0 0 8px!important;
  text-align:left!important;
  cursor:pointer!important;
}
.at-linked-material:hover,
.at-linked-material.active{
  border-color:#9bc0ff!important;
  background:#eaf3ff!important;
}
.at-material-preview{min-height:100%!important}
.at-material-preview-body{
  min-height:260px!important;
  max-height:360px!important;
  padding:16px!important;
  overflow:auto!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#fbfdff!important;
}
.at-material-preview-body pre{
  margin:0!important;
  color:#334155!important;
  font:inherit!important;
  font-size:13px!important;
  line-height:1.75!important;
  white-space:pre-wrap!important;
}
.at-material-preview-body p{
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.7!important;
}
.at-material-attachments{
  display:grid!important;
  gap:7px!important;
  margin-top:12px!important;
}
.at-material-attachments>strong{color:#475569!important;font-size:12px!important}
.at-material-attachments button{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:9px 11px!important;
  border:1px solid #dbe7f4!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#334155!important;
  text-align:left!important;
  cursor:pointer!important;
}
.at-material-attachments button:hover{border-color:#93b8ff!important;background:#f6f9ff!important}
.at-material-attachments button span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.at-material-attachments button b{flex:0 0 auto!important;color:#2563eb!important;font-size:12px!important}
.at-material-no-file{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:12px!important;
  padding:12px!important;
  border:1px dashed #cbd5e1!important;
  border-radius:9px!important;
  background:#f8fafc!important;
}
.at-material-no-file strong{color:#334155!important;font-size:13px!important}
.at-material-no-file p{margin:3px 0 0!important;color:#64748b!important;font-size:12px!important}
.at-evidence-result{
  min-width:0!important;
  padding:16px!important;
  border-top:1px solid #dbe7f4!important;
  background:#f8fafc!important;
}
.at-evidence-result-head{display:flex!important;align-items:baseline!important;gap:12px!important;margin-bottom:12px!important}
.at-evidence-result-head span{display:block!important;color:#2563eb!important;font-size:12px!important;font-weight:900!important}
.at-evidence-result-head strong{display:block!important;color:#0f172a!important;font-size:16px!important}
.at-evidence-result-head small{margin-left:auto!important;color:#64748b!important;font-size:12px!important}
.at-evidence-result-fields{
  display:grid!important;
  grid-template-columns:minmax(180px,.6fr) minmax(0,1.3fr) minmax(0,1fr)!important;
  gap:12px!important;
}
.at-evidence-result-fields .at-field{margin:0!important}
.at-evidence-result-fields textarea{min-height:96px!important;resize:vertical!important}
.at-evidence-result-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-top:12px!important;
}
.at-evidence-result-facts{margin-top:12px!important;border-top:1px solid #dbe7f7!important}
.at-evidence-result-facts>summary{padding:11px 0!important;color:#334155!important;font-size:13px!important;font-weight:850!important;cursor:pointer!important}
.at-evidence-result-facts>summary b{color:#2563eb!important}
.at-evidence-result .at-fact-register{margin-top:0!important;padding:4px 0 0!important;border-top:0!important}
.at-evidence-result .at-fact-register-head strong{font-size:13px!important}
.at-evidence-result .at-fact-list article{grid-template-columns:46px minmax(0,1fr)!important}
.at-evidence-result .at-fact-actions{grid-column:2!important}
.at-evidence-result .at-fact-form{grid-template-columns:1fr!important;padding:10px!important}
.at-evidence-result .at-fact-form .wide,
.at-evidence-result .at-fact-form-actions{grid-column:1!important}
.at-saved-workpaper{border-color:#b7e2ca!important}
.at-saved-workpaper>summary{background:#f3fbf6!important}
.at-saved-workpaper>summary span,
.at-saved-workpaper>summary b{color:#16824c!important}

/* 程序执行：底稿编号在首屏形成可选择目录，底稿内容留在当前页面查看 */
.at-scheme-task small .at-scheme-workpaper-code{
  display:inline!important;
  grid-column:auto!important;
  grid-row:auto!important;
  color:#1d4ed8!important;
  font-size:11px!important;
  font-weight:950!important;
}
.at-workpaper-directory{
  margin:8px 10px 0!important;
  border:1px solid #dbe7f4!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.at-workpaper-directory-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:46px!important;
  padding:8px 12px!important;
  border-bottom:1px solid #edf2f7!important;
  background:#fbfdff!important;
}
.at-workpaper-directory-head>div{
  display:flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:3px 10px!important;
}
.at-workpaper-directory-head span{
  color:#2563eb!important;
  font-size:12px!important;
  font-weight:950!important;
}
.at-workpaper-directory-head strong{
  color:#0f172a!important;
  font-size:15px!important;
}
.at-workpaper-directory-head small{
  color:#64748b!important;
  font-size:12px!important;
}
.at-workpaper-number-list{
  display:flex!important;
  gap:8px!important;
  padding:9px 12px!important;
  overflow-x:auto!important;
  scrollbar-width:thin!important;
}
.at-workpaper-number{
  display:grid!important;
  grid-template-columns:auto minmax(120px,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  min-width:250px!important;
  max-width:360px!important;
  min-height:42px!important;
  padding:7px 9px!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#334155!important;
  text-align:left!important;
  cursor:pointer!important;
}
.at-workpaper-number:hover,
.at-workpaper-number.is-active{
  border-color:#60a5fa!important;
  background:#eff6ff!important;
}
.at-workpaper-number.is-current{
  box-shadow:inset 3px 0 #2563eb!important;
}
.at-workpaper-number b{
  padding:4px 7px!important;
  border-radius:7px!important;
  background:#eaf2ff!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.at-workpaper-number span{
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:13px!important;
  font-weight:850!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-workpaper-number em{
  color:#64748b!important;
  font-size:11px!important;
  font-style:normal!important;
  white-space:nowrap!important;
}
.at-workpaper-directory-empty{
  padding:12px!important;
  color:#64748b!important;
  font-size:13px!important;
}
.at-workpaper-directory .at-inline-workpaper{
  margin:0!important;
  border-width:1px 0 0!important;
  border-radius:0!important;
}
.at-workpaper-directory .at-inline-workpaper>header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:11px 12px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#f3fbf6!important;
}
.at-workpaper-directory .at-inline-workpaper>header span,
.at-workpaper-directory .at-inline-workpaper>header strong,
.at-workpaper-directory .at-inline-workpaper>header small{
  display:block!important;
}
.at-workpaper-directory .at-inline-workpaper>header span{
  color:#16824c!important;
  font-size:12px!important;
  font-weight:950!important;
}
.at-workpaper-directory .at-inline-workpaper>header strong{
  margin-top:2px!important;
  color:#0f172a!important;
  font-size:16px!important;
}
.at-workpaper-directory .at-inline-workpaper>header small{
  margin-top:3px!important;
  color:#64748b!important;
  font-size:12px!important;
}
.at-workpaper-preview-close{
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  height:30px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#64748b!important;
  font-size:18px!important;
  cursor:pointer!important;
}
.at-workpaper-preview-meta{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fff!important;
}
.at-workpaper-preview-meta span{
  padding:9px 12px!important;
  border-right:1px solid #edf2f7!important;
  color:#64748b!important;
  font-size:11px!important;
}
.at-workpaper-preview-meta span:last-child{border-right:0!important}
.at-workpaper-preview-meta b{
  display:block!important;
  margin-bottom:2px!important;
  color:#0f172a!important;
  font-size:13px!important;
}
.at-workpaper-directory .at-inline-workpaper-body{
  max-height:320px!important;
  padding:12px!important;
  background:#fff!important;
}
.at-workpaper-directory .at-inline-workpaper>footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:9px 12px!important;
  border-top:1px solid #e2e8f0!important;
  background:#f8fafc!important;
}
.at-workpaper-directory .at-inline-workpaper>footer span{
  color:#64748b!important;
  font-size:12px!important;
}
.at-submit-blockers{
  display:grid;
  gap:7px;
  margin:10px 0 0;
  padding:0;
  list-style:none;
}
.at-submit-blockers li{
  display:grid;
  grid-template-columns:minmax(170px,.7fr) minmax(260px,1.3fr);
  gap:10px;
  padding:8px 10px;
  border:1px solid #fed7aa;
  border-radius:8px;
  background:#fff7ed;
}
.at-submit-blockers li strong{color:#9a3412!important;font-size:13px!important}
.at-submit-blockers li span{margin:0!important;color:#7c2d12!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important}
.at-workpaper-tree{display:grid;gap:8px;padding:10px 12px;background:#f8fafc}
.at-workpaper-module{border:1px solid #dbe3ef;border-radius:10px;background:#fff;overflow:hidden}
.at-workpaper-module>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer}
.at-workpaper-module>summary strong{font-size:14px;color:#0f172a}
.at-workpaper-module>summary span{font-size:11px!important;color:#64748b!important}
.at-workpaper-program{display:grid;grid-template-columns:220px minmax(0,1fr);border-top:1px solid #edf2f7}
.at-workpaper-program>div{display:flex;flex-direction:column;gap:3px;padding:11px 12px;background:#f8fafc}
.at-workpaper-program>div span{font-size:10px!important;color:#2563eb!important}
.at-workpaper-program>div strong{font-size:13px;color:#0f172a}
.at-workpaper-program>div em{font-style:normal;font-size:11px;color:#64748b}
.at-workpaper-program .at-workpaper-number-list{padding:8px!important}
.at-evidence-chain-preview{display:grid;grid-template-columns:1fr 1fr .8fr;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.at-evidence-chain-preview>section{padding:11px 12px;border-right:1px solid #e2e8f0;min-width:0}
.at-evidence-chain-preview>section:last-child{border-right:0}
.at-evidence-chain-preview span{display:block;margin-bottom:6px;color:#2563eb;font-size:11px;font-weight:900}
.at-evidence-chain-preview ul{display:grid;gap:5px;margin:0;padding-left:18px}
.at-evidence-chain-preview li,.at-evidence-chain-preview p{margin:0;color:#334155;font-size:12px;line-height:1.5}
.at-evidence-chain-preview li b,.at-evidence-chain-preview li small{display:block}
.at-evidence-chain-preview li small{color:#64748b}
@media(max-width:900px){
  .at-workpaper-number{min-width:220px!important}
  .at-workpaper-preview-meta{grid-template-columns:1fr!important}
  .at-workpaper-preview-meta span{border-right:0!important;border-bottom:1px solid #edf2f7!important}
  .at-workpaper-directory .at-inline-workpaper>footer{align-items:stretch!important;flex-direction:column!important}
  .at-submit-blockers li,.at-workpaper-program{grid-template-columns:1fr}
  .at-evidence-chain-preview{grid-template-columns:1fr}
  .at-evidence-chain-preview>section{border-right:0;border-bottom:1px solid #e2e8f0}
}
.at-execution-more{margin:10px!important}
.at-execution-more-body{padding:4px 0 10px!important}
.at-execution-more .at-execution-adjustments,
.at-execution-more .at-method-record,
.at-execution-more .at-advanced-drawer{margin:8px 10px!important}
.at-required-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:end;margin:12px 0 4px;padding:12px;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff}
.at-required-entry>div:first-child{grid-column:1/-1;display:flex;align-items:baseline;gap:10px}
.at-required-entry>div:first-child b{font-size:14px;color:#0f172a}
.at-required-entry>div:first-child small{font-size:13px;color:#64748b}
.at-required-entry-fields{display:grid;gap:8px}
.at-required-entry-fields label{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:center}
.at-required-entry-fields label span{font-size:13px;font-weight:800;color:#334155}
.at-required-entry-fields label span em{color:#dc2626;font-style:normal}
.at-required-entry-fields textarea,.at-required-entry-fields select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font:inherit}
.at-required-entry-fields textarea{min-height:54px;resize:vertical}
.at-required-entry-fields label small{grid-column:2;color:#64748b;font-size:11px;line-height:1.45}
@media(max-width:900px){.at-required-entry{grid-template-columns:1fr}.at-required-entry-fields label{grid-template-columns:1fr}.at-required-entry-fields label small{grid-column:1}.at-required-entry .btn{justify-self:start}}
@media(max-width:1280px){
  .at-execution-worksheet .at-evidence-work-area{
    grid-template-columns:200px minmax(0,1fr)!important;
  }
}
@container(max-width:900px){
  .at-execution-worksheet .at-evidence-workbench-head{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px 14px!important;
  }
  .at-execution-worksheet .at-evidence-workbench-head>div:first-child{
    grid-column:1/-1!important;
  }
  .at-execution-worksheet .at-evidence-kpis,
  .at-execution-worksheet .at-evidence-actions{
    flex-wrap:wrap!important;
  }
  .at-execution-worksheet .at-evidence-work-area{
    grid-template-columns:180px minmax(0,1fr)!important;
  }
  .at-execution-worksheet .at-evidence-preview{
    border-right:0!important;
  }
  .at-execution-worksheet .at-evidence-result{
    border-top:1px solid #e2e8f0!important;
  }
  .at-evidence-result-fields{grid-template-columns:1fr 1fr!important}
  .at-evidence-result-fields .at-field:last-child{grid-column:1/-1!important}
}

.wpm-evidence-chain{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:12px 0;
  border:1px solid #dbe3ef;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.wpm-evidence-chain-head{grid-column:1/-1;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.wpm-evidence-chain-head span,.wpm-evidence-chain-head strong{display:block}
.wpm-evidence-chain-head span{color:#2563eb;font-size:11px;font-weight:900}
.wpm-evidence-chain-head strong{margin-top:2px;color:#0f172a;font-size:14px}
.wpm-evidence-chain>section{padding:11px 12px;border-right:1px solid #e2e8f0}
.wpm-evidence-chain>section:last-child{border-right:0}
.wpm-evidence-chain>section>span{display:block;margin-bottom:6px;color:#64748b;font-size:11px;font-weight:900}
.wpm-evidence-chain ul{display:grid;gap:5px;margin:0;padding-left:18px}
.wpm-evidence-chain li,.wpm-evidence-chain p{margin:0;color:#334155;font-size:12px;line-height:1.5}
.wpm-evidence-chain li b,.wpm-evidence-chain li small{display:block}
.wpm-evidence-chain li small{color:#64748b}
@media(max-width:900px){
  .wpm-evidence-chain{grid-template-columns:1fr}
  .wpm-evidence-chain>section{border-right:0;border-bottom:1px solid #e2e8f0}
}

/* 程序执行：轻量汇总、跨表核对与分析结果表 */
.at-cross-check-option{
  grid-column:1 / -1!important;
  align-items:end!important;
}
.at-cross-check-fields{
  display:grid!important;
  grid-template-columns:minmax(180px,1.3fr) repeat(4,minmax(140px,1fr))!important;
  gap:7px!important;
  margin-top:9px!important;
}
.at-cross-check-fields label{
  display:grid!important;
  gap:4px!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:800!important;
}
.at-cross-check-fields select{
  width:100%!important;
  min-height:34px!important;
  padding:6px 8px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#172033!important;
  font-size:11px!important;
}
.at-group-summary-option{
  grid-column:1 / -1!important;
}
.at-group-summary-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(180px,260px))!important;
  gap:8px!important;
  margin-top:9px!important;
}
.at-group-summary-fields label{
  display:grid!important;
  gap:4px!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:800!important;
}
.at-group-summary-fields select{
  width:100%!important;
  min-height:34px!important;
  padding:6px 8px!important;
  border:1px solid #cbd5e1!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#172033!important;
  font-size:11px!important;
}
.at-analysis-table-note{
  margin:0 10px 8px!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:700!important;
}
.at-analysis-table-wrap{
  max-height:320px!important;
  margin:0 10px 10px!important;
  overflow:auto!important;
  border:1px solid #dfe7f1!important;
  border-radius:8px!important;
  background:#fff!important;
}
.at-analysis-table{
  width:100%!important;
  border-collapse:collapse!important;
  font-size:11px!important;
}
.at-analysis-table th{
  position:sticky!important;
  top:0!important;
  z-index:1!important;
  padding:8px 9px!important;
  border-bottom:1px solid #dfe7f1!important;
  background:#f3f7fc!important;
  color:#334155!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.at-analysis-table td{
  padding:8px 9px!important;
  border-bottom:1px solid #edf2f7!important;
  color:#475569!important;
  white-space:nowrap!important;
}
.at-analysis-table tr:last-child td{border-bottom:0!important}
@media(max-width:1100px){
  .at-cross-check-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .at-cross-check-fields,.at-group-summary-fields{grid-template-columns:1fr!important}
}
@media(max-width:1050px){
  .at-execution-worksheet .at-evidence-work-area{grid-template-columns:190px minmax(0,1fr)!important}
  .at-execution-worksheet .at-evidence-preview{border-right:0!important}
  .at-evidence-result{
    border-top:1px solid #e2e8f0!important;
  }
}
@media(max-width:760px){
  .at-execution-worksheet .at-evidence-work-area{grid-template-columns:1fr!important}
  .at-execution-worksheet .at-evidence-preview{min-height:360px!important}
  .at-evidence-result-head{align-items:flex-start!important;flex-direction:column!important}
  .at-evidence-result-head small{margin-left:0!important}
  .at-evidence-result-fields,
  .at-evidence-mark-index>div{grid-template-columns:1fr!important}
  .at-evidence-result-fields .at-field:last-child{grid-column:auto!important}
  .at-document-citation{grid-template-columns:1fr!important}
  .at-material-no-file,
  .at-evidence-result-actions{align-items:stretch!important;flex-direction:column!important}
}

/* 程序执行：字段校准与可解释分析留在当前资料页 */
.at-field-calibration{
  margin:0 0 12px!important;
  border:1px solid #c9dbf5!important;
  border-radius:10px!important;
  background:#f8fbff!important;
  overflow:hidden!important;
}
.at-field-calibration>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:52px!important;
  padding:10px 12px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.at-field-calibration>summary::-webkit-details-marker{display:none!important}
.at-field-calibration>summary span,
.at-tool-adapter>header span,
.at-analysis-result>header span,
.at-pdf-boundary span{
  display:block!important;
  color:#2563eb!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
.at-field-calibration>summary strong{display:block!important;margin-top:2px!important;color:#0f172a!important;font-size:14px!important}
.at-field-calibration>summary small{display:block!important;margin-top:2px!important;color:#64748b!important;font-size:11px!important}
.at-field-calibration>summary b{
  flex:0 0 auto!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:#fff3d6!important;
  color:#9a5a00!important;
  font-size:11px!important;
}
.at-field-calibration>summary b.is-confirmed{background:#e7f7ee!important;color:#16824c!important}
.at-field-calibration-body{padding:0 12px 12px!important;border-top:1px solid #dbe7f4!important;background:#fff!important}
.at-field-calibration-body>header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:10px 0!important;
}
.at-field-calibration-body>header p{margin:0!important;color:#334155!important;font-size:12px!important;line-height:1.55!important}
.at-field-calibration-body>header span{max-width:360px!important;color:#64748b!important;font-size:11px!important;text-align:right!important}
.at-field-map-list{display:grid!important;border:1px solid #e2e8f0!important;border-radius:9px!important;overflow:hidden!important}
.at-field-map-row{
  display:grid!important;
  grid-template-columns:92px minmax(180px,.8fr) minmax(220px,1fr)!important;
  gap:10px!important;
  align-items:center!important;
  min-height:52px!important;
  padding:8px 10px!important;
  border-bottom:1px solid #edf2f7!important;
}
.at-field-map-row:last-child{border-bottom:0!important}
.at-field-use{display:flex!important;align-items:center!important;gap:6px!important;color:#475569!important;font-size:11px!important;font-weight:800!important}
.at-field-map-row>div strong{display:block!important;color:#172033!important;font-size:12px!important}
.at-field-map-row>div strong em{color:#dc2626!important;font-size:10px!important;font-style:normal!important}
.at-field-map-row>div small{display:block!important;margin-top:2px!important;color:#64748b!important;font-size:10px!important;line-height:1.4!important}
.at-field-map-row select,
.at-field-map-actions select,
.at-data-toolbar input,
.at-data-toolbar select,
.at-tool-adapter>header select{
  width:100%!important;
  min-height:36px!important;
  padding:6px 9px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:12px!important;
}
.at-field-map-actions{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
  gap:10px!important;
  padding-top:10px!important;
}
.at-field-map-actions label{display:grid!important;gap:4px!important;min-width:240px!important;color:#475569!important;font-size:11px!important}
.at-data-toolbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(200px,.7fr) auto auto!important;
  gap:8px!important;
  align-items:end!important;
  margin:0 0 10px!important;
  padding:10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:9px!important;
  background:#f8fafc!important;
}
.at-data-toolbar label{display:grid!important;gap:4px!important;color:#475569!important;font-size:11px!important;font-weight:800!important}
.at-data-toolbar>span{align-self:center!important;color:#64748b!important;font-size:11px!important;white-space:nowrap!important}
.at-tool-adapter{
  margin-top:12px!important;
  border:1px solid #cbdcf7!important;
  border-radius:10px!important;
  background:#f8fbff!important;
  overflow:hidden!important;
}
.at-tool-adapter>header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:11px 12px!important;
  border-bottom:1px solid #dbe7f4!important;
}
.at-tool-adapter>header strong{display:block!important;margin-top:2px!important;color:#0f172a!important;font-size:14px!important}
.at-tool-adapter>header label{display:grid!important;grid-template-columns:auto minmax(150px,190px)!important;gap:8px!important;align-items:center!important;color:#475569!important;font-size:11px!important;font-weight:800!important}
.at-tool-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
.at-tool-options article{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  padding:11px!important;
  border:1px solid #dbe5f2!important;
  border-radius:9px!important;
  background:#fff!important;
}
.at-tool-options article.is-needs-confirmation{background:#fffcf5!important}
.at-tool-options strong{display:block!important;color:#172033!important;font-size:13px!important}
.at-tool-options p{margin:3px 0!important;color:#475569!important;font-size:11px!important;line-height:1.5!important}
.at-tool-options small{display:block!important;color:#64748b!important;font-size:10px!important}
.at-tool-options button{
  min-width:88px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  border:1px solid #93b8ff!important;
  border-radius:8px!important;
  background:#2563eb!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.at-tool-options button:disabled{border-color:#dbe3ed!important;background:#eef2f7!important;color:#8a99ad!important;cursor:not-allowed!important}
.at-analysis-result{border-top:1px solid #dbe7f4!important;background:#fff!important}
.at-analysis-result>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:11px 12px!important}
.at-analysis-result>header strong{display:block!important;color:#0f172a!important;font-size:14px!important}
.at-analysis-result>header p{margin:0!important;color:#475569!important;font-size:11px!important}
.at-analysis-quality-grid,
.at-analysis-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:0 10px 10px!important}
.at-analysis-quality-grid article,
.at-analysis-metrics article{padding:9px!important;border:1px solid #e2e8f0!important;border-radius:8px!important;background:#f8fafc!important}
.at-analysis-quality-grid strong,
.at-analysis-quality-grid span,
.at-analysis-quality-grid small,
.at-analysis-metrics span,
.at-analysis-metrics strong,
.at-analysis-metrics small{display:block!important}
.at-analysis-quality-grid strong,.at-analysis-metrics strong{color:#0f172a!important;font-size:12px!important}
.at-analysis-quality-grid span,.at-analysis-quality-grid small,.at-analysis-metrics span,.at-analysis-metrics small{margin-top:2px!important;color:#64748b!important;font-size:10px!important}
.at-analysis-result-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 12px!important;border-top:1px solid #e2e8f0!important;color:#64748b!important;font-size:11px!important}
.at-pdf-boundary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:10px!important;
  padding:11px 12px!important;
  border:1px solid #dbe5f2!important;
  border-radius:9px!important;
  background:#f8fafc!important;
}
.at-pdf-boundary strong{display:block!important;margin-top:2px!important;color:#0f172a!important;font-size:13px!important}
.at-pdf-boundary p{margin:3px 0 0!important;color:#64748b!important;font-size:11px!important}
@container(max-width:900px){
  .at-field-map-row{grid-template-columns:86px minmax(160px,.8fr) minmax(180px,1fr)!important}
  .at-data-toolbar{grid-template-columns:1fr 1fr auto!important}
  .at-data-toolbar>span{grid-column:1/-1!important}
  .at-tool-options{grid-template-columns:1fr!important}
  .at-analysis-quality-grid,.at-analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .at-field-calibration-body>header,.at-tool-adapter>header,.at-pdf-boundary,.at-analysis-result>header,.at-analysis-result-actions{align-items:stretch!important;flex-direction:column!important}
  .at-field-map-row,.at-data-toolbar,.at-tool-options{grid-template-columns:1fr!important}
  .at-field-map-actions{align-items:stretch!important;flex-direction:column!important}
  .at-field-map-actions label{min-width:0!important}
  .at-analysis-quality-grid,.at-analysis-metrics{grid-template-columns:1fr!important}
}

/* 审计工具箱收束与多表勾稽 1.0 */
.tb-reconciliation-panel,
.tb-data-priority-launch{display:grid;gap:16px}
.tb-reconciliation-restore-error{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border:1px solid #f0c9a8;border-radius:12px;background:#fff9f2;color:#6f3d16}
.tb-reconciliation-restore-error>div{min-width:0}
.tb-reconciliation-restore-error strong{display:block;font-size:13px}
.tb-reconciliation-restore-error span{display:block;margin-top:3px;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.tb-reconciliation-restore-error .btn{flex:0 0 auto;background:#fff;border-color:#d7a77d;color:#6f3d16}
.tb-reconciliation-board,
.tb-priority-launch-board{border:1px solid #cbdcf6;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eff6ff);padding:18px}
.tb-reconciliation-board header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.tb-reconciliation-board header span,
.tb-priority-launch-board>div>span{display:block;color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.08em}
.tb-reconciliation-board header strong,
.tb-priority-launch-board strong{display:block;margin-top:4px;color:#0f2748;font-size:18px}
.tb-reconciliation-board header p{max-width:620px;margin:0;color:#5b6f8d;font-size:13px;line-height:1.6}
.tb-reconciliation-board>div{display:flex;align-items:center;gap:10px;margin-top:16px}
.tb-reconciliation-board>div span{padding:7px 10px;border:1px solid #bfdbfe;border-radius:999px;background:#fff;color:#234365;font-size:12px;font-weight:800}
.tb-reconciliation-board>div i{color:#6b8bb4;font-style:normal}
.tb-recon-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tb-recon-upload-grid>section{min-width:0;border:1px solid #dbe5f2;border-radius:14px;background:#fff;padding:14px}
.tb-recon-file-drop{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center;padding:14px;border:1px dashed #93b4dc;border-radius:11px;background:#f8fbff;cursor:pointer}
.tb-recon-file-drop:hover{border-color:#2563eb;background:#eff6ff}
.tb-recon-file-drop input{display:none}
.tb-recon-file-drop span{grid-column:1;color:#2563eb;font-size:12px;font-weight:900}
.tb-recon-file-drop strong{grid-column:1;color:#0f172a;font-size:16px}
.tb-recon-file-drop small{grid-column:1;color:#64748b;font-size:12px;line-height:1.45}
.tb-recon-file-drop:after{content:"选择文件";grid-column:2;grid-row:1/4;padding:7px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;color:#1d4ed8;font-size:12px;font-weight:900}
.tb-recon-file-status{margin:8px 2px;color:#64748b;font-size:12px}
.tb-recon-file-status.is-loading{color:#2563eb}
.tb-recon-file-status.is-ok{color:#16824c}
.tb-recon-file-status.is-error{color:#b42318}
.tb-recon-preview{overflow:hidden;border:1px solid #e2e8f0;border-radius:10px}
.tb-recon-preview.is-empty{display:flex;min-height:118px;align-items:center;justify-content:center;flex-direction:column;color:#64748b}
.tb-recon-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.tb-recon-preview header strong{display:block;color:#17243b;font-size:13px}
.tb-recon-preview header small,
.tb-recon-preview header span{color:#64748b;font-size:11px}
.tb-recon-preview>div{overflow:auto}
.tb-recon-preview table{width:100%;border-collapse:collapse;font-size:11px}
.tb-recon-preview th,
.tb-recon-preview td{max-width:160px;padding:7px 8px;border-right:1px solid #edf2f7;border-bottom:1px solid #edf2f7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.tb-recon-preview th{background:#f8fafc;color:#42526a}
.tb-recon-mapping{border:1px solid #dbe5f2;border-radius:14px;background:#fff;padding:16px}
.tb-recon-mapping>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.tb-recon-mapping>header span{display:block;color:#2563eb;font-size:12px;font-weight:900}
.tb-recon-mapping>header strong{display:block;margin-top:3px;color:#0f172a;font-size:16px}
.tb-recon-mapping>header small{max-width:450px;color:#64748b;font-size:12px;line-height:1.5}
.tb-recon-mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tb-recon-mapping-grid label{display:grid;gap:6px;color:#334155;font-size:12px;font-weight:800}
.tb-recon-mapping-grid label b{color:#dc2626}
.tb-recon-mapping-grid select,
.tb-recon-mapping-grid input{width:100%;min-height:38px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:7px 9px;color:#0f172a;font:inherit}
.tb-recon-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.tb-recon-summary article{padding:13px;border:1px solid #dbe5f2;border-radius:11px;background:#f8fbff}
.tb-recon-summary span{display:block;color:#64748b;font-size:12px}
.tb-recon-summary strong{display:block;margin:3px 0;color:#0f2748;font-size:23px}
.tb-recon-summary small{display:block;color:#6b7f99;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-recon-run-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.tb-recon-run-meta span{padding:5px 8px;border-radius:999px;background:#eef4fb;color:#47627f;font-size:11px;font-weight:800}
.tb-recon-result-table{margin-top:14px;border:1px solid #dbe5f2;border-radius:12px;overflow:hidden}
.tb-recon-result-table>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 14px;border-bottom:1px solid #dbe5f2;background:#f8fafc}
.tb-recon-result-table>header span{display:block;color:#2563eb;font-size:11px;font-weight:900}
.tb-recon-result-table>header strong{display:block;color:#0f172a;font-size:15px}
.tb-recon-result-table>header small{color:#64748b;font-size:11px}
.tb-recon-result-table>div{overflow:auto}
.tb-recon-result-table table{width:100%;border-collapse:collapse;font-size:12px}
.tb-recon-result-table th,
.tb-recon-result-table td{padding:10px;border-right:1px solid #edf2f7;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top;white-space:nowrap}
.tb-recon-result-table thead th{background:#f8fafc;color:#42526a;font-size:11px}
.tb-recon-result-table tbody tr.is-matched{background:#f5fbf7}
.tb-recon-result-table td.is-difference{color:#b42318;font-weight:900}
.tb-recon-result-table td small{color:#7b8ca5;font-size:10px}
.tb-reconciliation-judgement-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff}
.tb-reconciliation-judgement-entry>div{display:grid;gap:3px;min-width:0}
.tb-reconciliation-judgement-entry strong{color:#172033;font-size:13px}
.tb-reconciliation-judgement-entry span{color:#64748b;font-size:11px;line-height:1.55}
.tb-reconciliation-judgement-entry .btn{flex:0 0 auto;white-space:nowrap}
.tb-recon-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff2d6;color:#9a5a00;font-size:10px;font-weight:900}
.tb-recon-status.is-matched{background:#e8f7ee;color:#16824c}
.tb-recon-status.is-amount-difference,
.tb-recon-status.is-left-only,
.tb-recon-status.is-right-only,
.tb-recon-status.is-missing-key{background:#feeceb;color:#b42318}
.tb-priority-launch-board{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:24px;align-items:center}
.tb-priority-launch-board p{margin:8px 0 0;color:#5b6f8d;font-size:13px;line-height:1.6}
.tb-priority-launch-board ul{margin:0;padding:0;list-style:none}
.tb-priority-launch-board li{padding:8px 0 8px 22px;border-bottom:1px solid #dbeafe;color:#405873;font-size:12px;position:relative}
.tb-priority-launch-board li:before{content:"✓";position:absolute;left:2px;color:#16824c;font-weight:900}
.tb-data-priority-boundary{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-left:3px solid #f59e0b;border-radius:8px;background:#fff8e7;color:#77520b;font-size:13px}
.tb-data-priority-boundary strong{white-space:nowrap}
@media(max-width:1050px){
  .tb-recon-mapping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-recon-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .tb-recon-upload-grid,
  .tb-recon-mapping-grid,
  .tb-priority-launch-board{grid-template-columns:1fr}
  .tb-reconciliation-board header,
  .tb-recon-mapping>header,
  .tb-recon-result-table>header{flex-direction:column}
  .tb-reconciliation-board>div{align-items:flex-start;flex-direction:column}
  .tb-reconciliation-board>div i{transform:rotate(90deg);margin-left:18px}
  .tb-reconciliation-restore-error{align-items:stretch;flex-direction:column}
}

/* Toolbox five-capability architecture and reusable analysis outcomes */
.tb-anomaly-screening-board{display:grid;gap:16px;padding:18px;border:1px solid #dbe6f3;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}
.tb-anomaly-screening-board>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.tb-anomaly-screening-board>header div{display:grid;gap:4px}
.tb-anomaly-screening-board>header span,.tb-reconciliation-templates>header span,.tb-analysis-outcome>header span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#2563eb;text-transform:uppercase}
.tb-anomaly-screening-board>header strong,.tb-reconciliation-templates>header strong{font-size:16px;color:#17233c}
.tb-anomaly-screening-board>header p{max-width:560px;margin:0;color:#60708a;font-size:12px;line-height:1.65}
.tb-rule-pack-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tb-rule-pack-picker label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:15px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;cursor:pointer;transition:.18s ease}
.tb-rule-pack-picker label:hover,.tb-rule-pack-picker label.is-selected{border-color:#4f7df3;box-shadow:0 8px 24px rgba(37,99,235,.09);transform:translateY(-1px)}
.tb-rule-pack-picker input{position:absolute;opacity:0;pointer-events:none}
.tb-rule-pack-picker i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef4ff;color:#2563eb;font-style:normal;font-weight:900}
.tb-rule-pack-picker label.is-selected i{background:#2563eb;color:#fff}
.tb-rule-pack-picker span{display:grid;gap:4px}
.tb-rule-pack-picker strong{font-size:14px;color:#18233a}
.tb-rule-pack-picker small{color:#6c7a91;line-height:1.5}
.tb-rule-pack-params{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;padding:14px;border-radius:12px;background:#f4f7fb}
.tb-rule-pack-params.is-three-column{grid-template-columns:repeat(3,minmax(0,1fr))}
.tb-rule-pack-params[hidden]{display:none!important}
.tb-rule-pack-params label{display:grid;min-width:0;gap:6px;font-size:13px;font-weight:800;color:#52627a}
.tb-rule-pack-params label>span:first-child{display:block}
.tb-param-control{position:relative;display:block;min-width:0}
.tb-rule-pack-params input{width:100%;height:40px;border:1px solid #ccd8e7;border-radius:9px;background:#fff;padding:0 42px 0 11px;color:#17233c;font:700 14px inherit}
.tb-param-control em{position:absolute;top:50%;right:12px;transform:translateY(-50%);color:#60708a;font-size:13px;font-style:normal;font-weight:800;pointer-events:none}
.tb-rule-pack-params>small{grid-column:1/-1;margin:0;color:#77859a;line-height:1.5}

.tb-reconciliation-templates{display:grid;gap:12px;padding:16px;border:1px solid #dce6f1;border-radius:15px;background:#fff}
.tb-reconciliation-templates>header{display:flex;align-items:end;justify-content:space-between;gap:16px}
.tb-reconciliation-templates>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tb-reconciliation-templates article,.tb-reconciliation-templates button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;min-height:72px;padding:12px 14px;border:1px solid #dce5f0;border-radius:13px;background:#f9fbfe;text-align:left}
.tb-reconciliation-templates article.is-active{border-color:#6d94f4;background:#f3f7ff}
.tb-reconciliation-templates button{cursor:pointer;font:inherit}
.tb-reconciliation-templates button:hover{border-color:#6d94f4;background:#f6f9ff}
.tb-reconciliation-templates i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e8f0ff;color:#2563eb;font-style:normal;font-weight:900}
.tb-reconciliation-templates span{display:grid;gap:3px}
.tb-reconciliation-templates span strong{font-size:13px;color:#1d2940}
.tb-reconciliation-templates span small{font-size:11px;color:#718096}
.tb-reconciliation-templates em{font-style:normal;font-size:11px;font-weight:800;color:#2563eb}
.tb-analysis-outcome{display:grid;gap:14px;margin:18px 0 4px;padding:18px;border:1px solid #cfdcf0;border-radius:16px;background:linear-gradient(145deg,#f8fbff 0%,#fff 58%,#f6f9ff 100%)}
.tb-analysis-outcome>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.tb-analysis-outcome>header div{display:grid;gap:4px}
.tb-analysis-outcome>header strong{font-size:16px;color:#17233c}
.tb-analysis-outcome>header em{padding:5px 8px;border-radius:999px;background:#fff4e5;color:#a85b00;font-size:10px;font-style:normal;font-weight:800}
.tb-analysis-ai-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tb-analysis-ai-actions .btn{white-space:nowrap}
.tb-analysis-outcome-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tb-analysis-outcome-grid article{padding:13px;border:1px solid #e0e8f3;border-radius:12px;background:#fff}
.tb-analysis-outcome-grid article span,.tb-analysis-outcome>label>span,.tb-analysis-outcome-fields label>span{display:block;margin-bottom:6px;font-size:11px;font-weight:800;color:#60708a}
.tb-analysis-outcome-grid p{margin:0;color:#25344d;font-size:12px;line-height:1.65}
.tb-analysis-structured{display:grid;gap:0;margin-top:2px}
.tb-analysis-structured section{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid #e7edf5}
.tb-analysis-structured section:first-child{padding-top:4px;border-top:0}
.tb-analysis-structured section>strong{color:#52647d;font-size:11px;line-height:1.65}
.tb-analysis-structured ul{display:grid;gap:6px;margin:0;padding-left:18px;color:#25344d}
.tb-analysis-structured li{padding-left:2px;font-size:12px;line-height:1.6}
.tb-analysis-structured li::marker{color:#4b74ba}
.tb-analysis-structured-empty{margin:4px 0 0!important;color:#65758b!important}
.tb-analysis-outcome textarea,.tb-analysis-outcome select{width:100%;border:1px solid #ccd8e7;border-radius:10px;background:#fff;color:#24324a}
.tb-analysis-outcome textarea{min-height:82px;padding:10px;resize:vertical;line-height:1.55}
.tb-analysis-outcome select{height:40px;padding:0 10px}
.tb-analysis-outcome-fields{display:grid;grid-template-columns:minmax(190px,.55fr) minmax(0,1.45fr);gap:10px}
.tb-analysis-outcome-fields textarea{min-height:40px}
.tb-ai-suggestion-layer{display:grid;gap:10px;padding:14px;border:1px solid #d8ccfa;border-radius:12px;background:#fbf9ff}
.tb-ai-suggestion-layer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tb-ai-suggestion-layer>header div{display:flex;align-items:center;gap:8px}
.tb-ai-suggestion-layer>header span{font-size:10px;font-weight:900;letter-spacing:.08em;color:#6d46c7;text-transform:uppercase}
.tb-ai-suggestion-layer>header strong{font-size:14px;color:#32225d}
.tb-ai-suggestion-layer>header em{padding:4px 8px;border-radius:999px;background:#eee8ff;color:#5c3ca5;font-size:10px;font-style:normal;font-weight:800}
.tb-ai-suggestion-layer>div{display:grid;gap:8px}
.tb-ai-suggestion-layer article{display:grid;gap:6px;padding:11px 12px;border:1px solid #e5ddf8;border-radius:10px;background:#fff}
.tb-ai-suggestion-layer article>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tb-ai-suggestion-layer article b{font-size:12px;color:#34265c}
.tb-ai-suggestion-layer article span,.tb-ai-suggestion-layer article small,.tb-ai-suggestion-layer>footer{font-size:10px;color:#766b92}
.tb-ai-suggestion-layer article p{margin:0;font-size:12px;line-height:1.6;color:#42375f}
.tb-ai-suggestion-layer>footer{padding-top:2px}
.tb-analysis-ai-disclosure{margin:0;padding:9px 11px;border-radius:9px;background:#f4f7fb;color:#526171;font-size:11px;line-height:1.55}
.tb-reconciliation-ai-layer>div{grid-template-columns:repeat(auto-fit,minmax(290px,1fr));align-items:start}
.tb-reconciliation-ai-layer article{gap:9px}
.tb-reconciliation-ai-layer article>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.tb-reconciliation-ai-layer article>header span{flex:none;padding:3px 7px;border-radius:999px;background:#f2edff;color:#6947b1;letter-spacing:0;text-transform:none}
.tb-reconciliation-ai-layer dl{display:grid;gap:0;margin:0}
.tb-reconciliation-ai-layer dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:8px 0;border-top:1px solid #eee9f8}
.tb-reconciliation-ai-layer dl>div:first-child{border-top:0}
.tb-reconciliation-ai-layer dt{font-size:11px;font-weight:800;color:#65577f}
.tb-reconciliation-ai-layer dd{margin:0;font-size:12px;line-height:1.65;color:#3f3652}
.tb-analysis-outcome.is-data-health-outcome{gap:12px;background:#f8fafc;border-color:#d8e1ec}
.tb-analysis-outcome.is-data-health-outcome>header>div:first-child{max-width:680px}
.tb-analysis-outcome.is-data-health-outcome>header p{margin:0;color:#6b7b90;font-size:11px;line-height:1.5}
.tb-data-health-decision{display:grid;grid-template-columns:190px minmax(0,1fr);gap:8px 18px;align-items:center;padding:15px 16px;border:1px solid #ead8ad;border-left:4px solid #d69a21;border-radius:12px;background:#fffaf0}
.tb-data-health-decision>div{grid-row:1/3;display:grid;gap:5px}
.tb-data-health-decision>div span{color:#7c6a40;font-size:10px;font-weight:800}
.tb-data-health-decision>div strong{color:#8b5b00;font-size:21px;letter-spacing:-.03em}
.tb-data-health-decision p{margin:0;color:#33445b;font-size:12px;line-height:1.55}
.tb-data-health-decision p[data-tb-artifact-system]{color:#66758a}
.tb-data-health-plan{display:grid;gap:10px}
.tb-data-health-plan>header{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:0 2px}
.tb-data-health-plan>header span{color:#61728a;font-size:10px;font-weight:850}
.tb-data-health-plan>header strong{color:#23344d;font-size:13px}
.tb-data-health-plan>ol{display:grid;gap:0;margin:0;padding:0;list-style:none;border:1px solid #dfe6ef;border-radius:12px;background:#fff;overflow:hidden}
.tb-data-health-plan>ol>li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:11px;padding:13px 15px;border-top:1px solid #e8edf3}
.tb-data-health-plan>ol>li:first-child{border-top:0}
.tb-data-health-plan>ol>li>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#edf3fb;color:#315f99;font-size:11px;font-weight:850}
.tb-data-health-plan li>div{display:grid;gap:7px;min-width:0}
.tb-data-health-plan li header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tb-data-health-plan li header b{color:#22344e;font-size:12px}
.tb-data-health-plan li header small{color:#718096;font-size:10px}
.tb-data-health-plan li p{display:grid;grid-template-columns:64px minmax(0,1fr);gap:9px;margin:0;color:#43536a;font-size:11px;line-height:1.55}
.tb-data-health-plan li p strong{color:#60718a;font-size:10px}
.tb-data-health-boundary{display:grid;grid-template-columns:110px minmax(0,1fr);gap:5px 14px;padding:12px 14px;border:1px solid #dfe6ef;border-radius:11px;background:#f1f4f8}
.tb-data-health-boundary strong{grid-row:1/3;color:#394b64;font-size:11px}
.tb-data-health-boundary p{margin:0;color:#5f6f83;font-size:11px;line-height:1.5}
.tb-analysis-outcome>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:4px}
.tb-analysis-outcome>footer>div{display:grid;gap:3px;margin-right:auto}
.tb-analysis-outcome>footer small{color:#75849a}
.tb-analysis-outcome>footer b{margin-right:auto;font-size:11px;color:#16805d}

html[data-theme="dark"] .tb-anomaly-screening-board,
html[data-theme="dark"] .tb-reconciliation-templates,
html[data-theme="dark"] .tb-analysis-outcome{background:#121a28;border-color:#314057}
html[data-theme="dark"] .tb-rule-pack-picker label,
html[data-theme="dark"] .tb-reconciliation-templates article,
html[data-theme="dark"] .tb-reconciliation-templates button,
html[data-theme="dark"] .tb-analysis-outcome-grid article,
html[data-theme="dark"] .tb-analysis-outcome textarea,
html[data-theme="dark"] .tb-analysis-outcome select{background:#182235;border-color:#35445d;color:#dce7f8}
html[data-theme="dark"] .tb-ai-suggestion-layer{background:#1b1628;border-color:#493b68}
html[data-theme="dark"] .tb-ai-suggestion-layer article{background:#211a31;border-color:#493b68}
html[data-theme="dark"] .tb-analysis-ai-disclosure{background:#182130;color:#aebed1}
html[data-theme="dark"] .tb-analysis-structured section{border-color:#35445d}
html[data-theme="dark"] .tb-analysis-structured section>strong{color:#b7c5d9}
html[data-theme="dark"] .tb-analysis-structured ul{color:#e6eefb}
html[data-theme="dark"] .tb-reconciliation-ai-layer dl>div{border-color:#3a304d}
html[data-theme="dark"] .tb-reconciliation-ai-layer dt{color:#c8bce5}
html[data-theme="dark"] .tb-reconciliation-ai-layer dd{color:#eee8ff}
html[data-theme="dark"] .tb-data-health-boundary{background:#182235;border-color:#35445d}
html[data-theme="dark"] .tb-data-health-plan>ol{background:#182235;border-color:#35445d}
html[data-theme="dark"] .tb-data-health-plan>ol>li{border-color:#35445d}
html[data-theme="dark"] .tb-data-health-decision{background:#2a2418;border-color:#5f4b22}
html[data-theme="dark"] .tb-ai-suggestion-layer>header strong,html[data-theme="dark"] .tb-ai-suggestion-layer article b,html[data-theme="dark"] .tb-ai-suggestion-layer article p{color:#eee8ff}
html[data-theme="dark"] .tb-rule-pack-picker strong,
html[data-theme="dark"] .tb-reconciliation-templates span strong,
html[data-theme="dark"] .tb-analysis-outcome>header strong,
html[data-theme="dark"] .tb-analysis-outcome-grid p{color:#e6eefb}
html[data-theme="dark"] .tb-rule-pack-params{background:#192337}
html[data-theme="dark"] .tb-rule-pack-params input{background:#111a29;border-color:#3b4a62;color:#e6eefb}

@media(max-width:900px){
  .tb-rule-pack-picker,.tb-reconciliation-templates>div,.tb-analysis-outcome-grid,.tb-analysis-outcome-fields{grid-template-columns:1fr}
  .tb-anomaly-screening-board>header,.tb-reconciliation-templates>header,.tb-analysis-outcome>header{display:grid}
  .tb-analysis-ai-actions{justify-content:flex-start}
  .tb-rule-pack-params.is-three-column{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-analysis-outcome>footer{align-items:stretch;flex-direction:column}
  .tb-analysis-outcome>footer>div{margin:0 0 4px}
  .tb-data-health-decision{grid-template-columns:1fr}
  .tb-data-health-decision>div{grid-row:auto}
  .tb-data-health-plan>header{display:grid;align-items:start}
  .tb-data-health-boundary{grid-template-columns:1fr}
  .tb-data-health-boundary strong{grid-row:auto}
  .tb-analysis-structured section{grid-template-columns:1fr;gap:5px}
}
@media(max-width:560px){
  .tb-rule-pack-params,.tb-rule-pack-params.is-three-column{grid-template-columns:1fr}
  .tb-rule-pack-params>small{grid-column:auto}
}
/* Audit tool reasoning: facts, permissible inference and conclusion boundary */
.tb-inference-boundary{margin:18px 0;border:1px solid #cbd5e1;border-radius:16px;background:#f8fafc;overflow:hidden}
.tb-inference-boundary>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e2e8f0;background:#fff}
.tb-inference-boundary>header div{display:grid;gap:3px}.tb-inference-boundary>header span{font-size:12px;color:#64748b}.tb-inference-boundary>header strong{font-size:15px;color:#0f172a}
.tb-inference-boundary>header em{font-style:normal;font-size:12px;color:#166534;background:#dcfce7;border-radius:999px;padding:5px 9px}
.tb-inference-method{margin:0;padding:14px 18px;color:#334155;line-height:1.7}.tb-inference-method b{margin-right:10px;color:#0f172a}
.tb-inference-ladder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 16px}
.tb-inference-ladder article{padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.tb-inference-ladder article span{display:block;margin-bottom:7px;font-size:12px;font-weight:700}
.tb-inference-ladder article p{margin:0;color:#334155;line-height:1.6}.tb-inference-ladder .is-fact{border-top:3px solid #2563eb}.tb-inference-ladder .is-fact span{color:#1d4ed8}
.tb-inference-ladder .is-support{border-top:3px solid #059669}.tb-inference-ladder .is-support span{color:#047857}.tb-inference-ladder .is-possible{border-top:3px solid #d97706}.tb-inference-ladder .is-possible span{color:#b45309}
.tb-inference-ladder .is-prohibited{border-top:3px solid #dc2626}.tb-inference-ladder .is-prohibited span{color:#b91c1c}
.tb-inference-boundary>details{border-top:1px solid #e2e8f0;background:#fff}.tb-inference-boundary>details>summary{cursor:pointer;padding:13px 18px;font-weight:700;color:#334155}
.tb-inference-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 18px 18px}.tb-inference-detail section{padding:12px;border-radius:10px;background:#f8fafc}.tb-inference-detail strong{font-size:13px}.tb-inference-detail ul{margin:8px 0 0;padding-left:18px;color:#475569;line-height:1.55}
.tb-population-confirm{grid-column:1/-1!important;display:flex!important;align-items:center;gap:8px;background:#fff7ed!important;border-color:#fed7aa!important}.tb-population-confirm input{width:auto!important}
.dpa-reasoning-boundary>.dpa-panel-head em{font-style:normal;color:#166534;background:#dcfce7;border-radius:999px;padding:6px 10px;white-space:nowrap}
.dpa-reasoning-ladder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dpa-reasoning-ladder article{padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.dpa-reasoning-ladder span{display:block;margin-bottom:6px;font-size:12px;font-weight:700;color:#1d4ed8}.dpa-reasoning-ladder p{margin:0;line-height:1.6;color:#334155}
.dpa-reasoning-boundary details{margin-top:12px;border-top:1px solid #e2e8f0}.dpa-reasoning-boundary summary{cursor:pointer;padding:12px 0 0;font-weight:700}.dpa-reasoning-boundary details>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.dpa-reasoning-boundary details section{padding:12px;border-radius:10px;background:#f8fafc}.dpa-reasoning-boundary ul{margin:8px 0 0;padding-left:18px;color:#475569}
@media(max-width:1000px){.tb-inference-ladder,.dpa-reasoning-ladder{grid-template-columns:1fr 1fr}.tb-inference-detail{grid-template-columns:1fr}}
@media(max-width:640px){.tb-inference-ladder,.dpa-reasoning-ladder,.dpa-reasoning-boundary details>div{grid-template-columns:1fr}.tb-inference-boundary>header{align-items:flex-start;flex-direction:column}}

/* Execution evidence to workpaper review closed loop */
.at-analysis-result-actions>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.at-fact-handoff{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 0;
  padding:9px 11px;
  border:1px solid #dbeafe;
  border-radius:9px;
  background:#f8fbff;
}
.at-fact-handoff strong{color:#1d4ed8;font-size:11px;white-space:nowrap}
.at-fact-handoff span{color:#475569;font-size:11px;line-height:1.5}
.at-fact-handoff .btn{margin-left:auto;white-space:nowrap}
.at-applied-analysis{grid-column:1/-1;display:grid;gap:8px;padding:11px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}
.at-applied-analysis>strong{color:#1d4ed8;font-size:12px}
.at-applied-analysis>div{display:flex;gap:7px;flex-wrap:wrap}
.at-applied-analysis>div span{padding:6px 9px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#1e3a8a;font-size:11px;font-weight:700}
.at-applied-analysis>small{color:#64748b;font-size:11px}
.at-inline-review{display:grid;gap:12px;margin:10px;padding:14px;border:1px solid #dbe7f4;border-radius:11px;background:#fff}
.at-inline-review.is-submitted{border-color:#bfdbfe;background:#f8fbff}
.at-inline-review.is-reviewed{border-color:#bbf7d0;background:#f6fff9}
.at-inline-review.is-returned{border-color:#fed7aa;background:#fffaf5}
.at-inline-review-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.at-inline-review-head>div{display:grid;gap:3px}
.at-inline-review-head span{color:#2563eb;font-size:11px;font-weight:900}
.at-inline-review-head strong{color:#0f172a;font-size:15px}
.at-inline-review-head em{padding:5px 9px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:11px;font-style:normal;font-weight:850}
.at-inline-review-form{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(0,1.55fr) auto;align-items:end;gap:10px}
.at-inline-review-form label{display:grid;gap:5px}
.at-inline-review-form label span{color:#475569;font-size:11px;font-weight:800}
.at-inline-review-form input,.at-inline-review-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font:inherit}
.at-inline-review-form input{height:38px;padding:0 10px}
.at-inline-review-form textarea{min-height:62px;padding:9px 10px;resize:vertical}
.at-inline-review-form>div{display:flex;gap:8px}
.at-inline-review>p,.at-inline-review-note p{margin:0;color:#475569;font-size:12px;line-height:1.65}
.at-inline-review-note{display:grid;gap:4px;padding:10px 12px;border-radius:9px;background:rgba(255,255,255,.75)}
.at-inline-review-note strong{color:#1e293b;font-size:12px}
.at-inline-review-next{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:10px;border-top:1px solid rgba(148,163,184,.25)}
.at-inline-review-next span{color:#475569;font-size:12px}
@media(max-width:900px){
  .at-inline-review-form{grid-template-columns:1fr}
  .at-inline-review-form>div,.at-inline-review-next,.at-fact-handoff{align-items:stretch;flex-direction:column}
}

/* Qianxun brand system: approved wind, calibration line and mountain mark */
.sidebar-brand .brand-mark,
.login-brand-mark,
.audit-brand-mark,
.pmvp-public-header>div>span {
  padding:0;
  overflow:hidden;
  background:#17191d!important;
  color:transparent!important;
  transform:none!important;
}
.sidebar-brand .brand-mark {
  border-radius:8px;
  box-shadow:0 8px 18px rgba(2,6,23,.28);
}
.login-brand-mark {
  display:inline-block;
  border-radius:14px;
  box-shadow:0 14px 30px rgba(2,6,23,.22);
}
.audit-brand-mark {
  display:block!important;
  border-radius:15px!important;
  box-shadow:0 16px 38px rgba(2,6,23,.42), 0 0 0 1px rgba(226,232,240,.16)!important;
}
.sidebar-brand .brand-mark img,
.login-brand-mark img,
.audit-brand-mark img,
.pmvp-public-header>div>span img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.pmvp-public-header>div>span {
  border-radius:7px;
  box-shadow:0 5px 12px rgba(2,6,23,.18);
}

/* Execution workspace: real material binding, document facts and compact table analysis */
.at-source-link-badge{display:block;margin-top:5px;color:#17694b!important;font-size:10px!important;font-style:normal;font-weight:750;line-height:1.35}
.at-source-link-badge.is-empty{color:#8a5b12!important}
.at-source-link-badge.is-package{color:#1d4ed8!important}
.at-evidence-option-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border:1px solid #dce6f2;border-radius:10px;background:#fbfdff}
.at-evidence-option-group+.at-evidence-option-group{margin-top:4px}
.at-evidence-option-group>header{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:1px 2px 5px}
.at-evidence-option-group>header>div{display:grid;gap:2px}
.at-evidence-option-group>header strong{color:#1e293b;font-size:12px}
.at-evidence-option-group>header small{color:#64748b;font-size:10px;line-height:1.5}
.at-evidence-option-group>header>b{padding:3px 7px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:10px;white-space:nowrap}
.at-package-option.is-legacy{background:#f8fafc;border-style:dashed;opacity:.76}
.at-package-option.is-legacy small{color:#b45309;background:#fff7ed}
.at-package-legacy-note{grid-column:1/-1;margin:0;padding:7px 9px;border-radius:8px;background:#fff7ed;color:#92400e;font-size:10px;line-height:1.55}
.at-package-option{border-color:#cbdcf6!important;background:#f7faff!important}
.at-package-option>span{display:grid!important;gap:2px;white-space:normal!important}
.at-package-option>span>strong{overflow:hidden;color:#26364f;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.at-package-option>span>em{color:#718096;font-size:9px;font-style:normal}
.at-source-material-links,.at-material-source-picker{margin:12px 14px;border:1px solid #d9e4f2;border-radius:11px;background:#f8fbff;overflow:hidden}
.at-source-material-links>summary,.at-material-source-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;list-style:none}
.at-source-material-links>summary>div{display:grid;gap:2px;min-width:0}
.at-source-material-links>summary span,.at-material-source-picker>summary span{color:#2563eb;font-size:10px;font-weight:850}
.at-source-material-links>summary strong{overflow:hidden;color:#1e293b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.at-source-material-links>summary small{color:#64748b;font-size:10px}
.at-source-material-links>summary b,.at-material-source-picker>summary b{padding:4px 7px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:10px;white-space:nowrap}
.at-source-material-link-body,.at-material-source-picker>div{display:grid;gap:10px;padding:12px;border-top:1px solid #e2e8f0;background:#fff}
.at-source-material-options,.at-material-source-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.at-source-material-options label,.at-material-source-options label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;cursor:pointer}
.at-source-material-options label span,.at-material-source-options label span{overflow:hidden;color:#26364f;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.at-source-material-options label small,.at-material-source-options label small{color:#718096;font-size:9px}
.at-source-material-actions,.at-material-source-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.at-source-material-actions>span,.at-material-source-actions>span{color:#64748b;font-size:10px}
.at-material-linked-files{display:grid;gap:8px;margin:12px}
.at-material-linked-files>strong{color:#334155;font-size:11px}
.at-material-linked-files>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.at-material-linked-files button{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;padding:10px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;text-align:left;cursor:pointer}
.at-material-linked-files button>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf2ff;color:#2563eb;font-size:11px;font-weight:900}
.at-material-linked-files button div{display:grid;min-width:0;gap:2px}
.at-material-linked-files button b,.at-material-linked-files button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.at-material-linked-files button b{color:#1e293b;font-size:11px}.at-material-linked-files button small{color:#718096;font-size:9px}
.at-material-ready{display:grid;gap:3px;margin:12px;padding:11px 12px;border-radius:10px;background:#eefbf4}
.at-material-ready strong{color:#137449;font-size:12px}.at-material-ready p{margin:0;color:#4b675b;font-size:10px}
.at-document-workbench{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px;margin:12px}
.at-document-citation,.at-document-fact-quick{padding:13px;border:1px solid #dce5f1;border-radius:12px;background:#fff}
.at-document-citation label,.at-document-fact-fields label{display:grid;gap:5px}
.at-document-citation label>span,.at-document-fact-fields label>span{color:#53647c;font-size:10px;font-weight:800}
.at-document-citation textarea,.at-document-fact-fields input,.at-document-fact-fields select,.at-document-fact-fields textarea{width:100%;border:1px solid #cbd8e8;border-radius:8px;background:#fff;color:#1e293b;font:inherit}
.at-document-citation textarea,.at-document-fact-fields textarea{padding:9px;resize:vertical}
.at-document-fact-fields input,.at-document-fact-fields select{height:38px;padding:0 9px}
.at-document-citation-actions,.at-document-fact-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:9px}
.at-document-fact-quick{display:grid;gap:10px;background:#f8fbff}
.at-document-fact-head{display:flex;align-items:start;justify-content:space-between;gap:10px}
.at-document-fact-head>div{display:grid;gap:2px}.at-document-fact-head span{color:#2563eb;font-size:10px;font-weight:850}.at-document-fact-head strong{color:#17233c;font-size:13px}.at-document-fact-head small{color:#718096;font-size:9px}
.at-document-fact-fields{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:9px}.at-document-fact-fields .wide{grid-column:1/-1}
.at-table-workflow{display:flex;align-items:center;gap:9px;margin:12px 14px;padding:10px 12px;border:1px solid #dce6f2;border-radius:11px;background:#f8fafc}
.at-table-workflow>span{display:grid;grid-template-columns:22px auto;align-items:center;gap:0 7px;color:#728197;font-size:11px;font-weight:800}
.at-table-workflow>span b{grid-row:1/3;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e2e8f0;color:#526176;font-size:10px}
.at-table-workflow>span small{font-size:9px;font-weight:600}.at-table-workflow>i{color:#a3b0c1;font-style:normal}
.at-table-workflow>span.active{color:#1d4ed8}.at-table-workflow>span.active b{background:#2563eb;color:#fff}
.at-table-workflow>span.done{color:#18794e}.at-table-workflow>span.done b{background:#dff7e9;color:#138052}
.at-table-preview-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:12px 14px 7px}
.at-table-preview-head>div{display:grid;gap:2px}.at-table-preview-head span{color:#2563eb;font-size:10px;font-weight:850}.at-table-preview-head strong{color:#1e293b;font-size:13px}.at-table-preview-head small{color:#718096;font-size:9px}
@media(max-width:900px){
  .at-source-material-options,.at-material-source-options,.at-material-linked-files>div,.at-document-workbench{grid-template-columns:1fr}
  .at-source-material-actions,.at-material-source-actions,.at-document-fact-head{align-items:stretch;flex-direction:column}
  .at-table-workflow{align-items:stretch;flex-direction:column}.at-table-workflow>i{display:none}
}

/* 程序执行：双侧栏可收起，优先把屏幕让给数据分析区 */
.at-notebook-shell .at-execution-workbench.is-program-collapsed{
  grid-template-columns:56px minmax(0,1fr)!important;
}
.at-notebook-shell .at-sidebar.is-collapsed{
  width:56px!important;
  padding:0!important;
  overflow:hidden!important;
}
.at-notebook-shell .at-scheme-programs{
  min-height:190px;
}
.at-notebook-shell .at-scheme-programs .at-side-head>div{
  display:flex;
  align-items:center;
  gap:7px;
}
.at-program-catalog-toggle,
.at-evidence-source-toggle{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  padding:0;
  border:1px solid #c9d7e9;
  border-radius:8px;
  background:#fff;
  color:#2563eb;
  font-size:20px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}
.at-program-catalog-toggle:hover,
.at-evidence-source-toggle:hover{
  border-color:#8ab4f8;
  background:#eff6ff;
}
.at-program-rail-label,
.at-evidence-source-rail{
  display:none;
}
.at-scheme-programs.is-collapsed{
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:14px;
  padding:10px 8px!important;
}
.at-scheme-programs.is-collapsed .at-side-head{
  padding:0;
}
.at-scheme-programs.is-collapsed .at-side-head>span,
.at-scheme-programs.is-collapsed .at-side-head em,
.at-scheme-programs.is-collapsed .at-scheme-program-body{
  display:none;
}
.at-scheme-programs.is-collapsed .at-program-rail-label{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:850;
  letter-spacing:4px;
  writing-mode:vertical-rl;
}
.at-evidence-source-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}
.at-evidence-source-head>strong{
  display:flex;
  align-items:baseline;
  gap:6px;
  color:#1e293b;
  font-size:.82rem;
}
.at-evidence-source-head>strong small{
  color:#8491a4;
  font-size:10px;
  font-weight:700;
}
.at-execution-worksheet .at-evidence-work-area.is-sources-collapsed{
  grid-template-columns:56px minmax(0,1fr)!important;
}
.at-evidence-sources.is-collapsed{
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:14px;
  width:56px;
  padding:10px 8px;
  overflow:hidden;
}
.at-evidence-sources.is-collapsed .at-evidence-source-head{
  margin:0;
}
.at-evidence-sources.is-collapsed .at-evidence-source-head>strong,
.at-evidence-sources.is-collapsed .at-evidence-source-body{
  display:none;
}
.at-evidence-sources.is-collapsed .at-evidence-source-rail{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:850;
  letter-spacing:4px;
  writing-mode:vertical-rl;
}
.at-table-stage-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 14px 12px;
  padding:10px 12px;
  border:1px solid #d8e6f8;
  border-radius:10px;
  background:#f7fbff;
}
.at-table-stage-actions>span{
  color:#53657c;
  font-size:11px;
  line-height:1.5;
}
.at-table-stage-actions>div{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
@media(max-width:1100px){
  .at-notebook-shell .at-execution-workbench.is-program-collapsed{
    grid-template-columns:1fr!important;
  }
  .at-notebook-shell .at-sidebar.is-collapsed{
    width:auto!important;
    min-height:52px!important;
    border-bottom:1px solid #e2e8f0!important;
  }
  .at-scheme-programs.is-collapsed{
    min-height:0;
    flex-direction:row;
    justify-content:space-between;
  }
  .at-scheme-programs.is-collapsed .at-program-rail-label{
    writing-mode:horizontal-tb;
  }
}
@media(max-width:760px){
  .at-execution-worksheet .at-evidence-work-area.is-sources-collapsed{
    grid-template-columns:1fr!important;
  }
  .at-evidence-sources.is-collapsed{
    width:auto;
    min-height:52px;
    flex-direction:row;
    justify-content:space-between;
    border-bottom:1px solid #e2e8f0;
  }
  .at-evidence-sources.is-collapsed .at-evidence-source-rail{
    writing-mode:horizontal-tb;
  }
  .at-table-stage-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .at-table-stage-actions>div{
    justify-content:flex-start;
  }
}

/* 知识库：当前项目资料是自动汇集的项目索引，不是第二套上传库 */
.qa-library-index-status span.is-formed{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}
.qa-library-index-status span.is-parsed{
  border-color:#ddd6fe;
  background:#f5f3ff;
  color:#6d28d9;
}
.qa-project-index-controls{
  display:grid;
  grid-template-columns:auto minmax(260px,1fr);
  align-items:end;
  gap:12px;
  padding:12px;
  border:1px solid #dbe5f1;
  border-radius:11px;
  background:#f8fafc;
}
.qa-project-index-controls>div{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.qa-project-index-controls button{
  min-height:36px;
  padding:0 11px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#475569;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
.qa-project-index-controls button.active{
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}
.qa-project-index-controls label{
  display:grid;
  gap:5px;
}
.qa-project-index-controls label>span{
  color:#53647c;
  font-size:11px;
  font-weight:800;
}
.qa-project-index-controls input{
  width:100%;
  height:38px;
  padding:0 11px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#1e293b;
  font:inherit;
}
.qa-project-index-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.qa-project-index-card{
  display:grid;
  gap:9px;
  min-width:0;
  padding:13px;
  border:1px solid #dbe3ed;
  border-radius:12px;
  background:#fff;
}
.qa-project-index-card.is-uploaded{
  border-top:3px solid #10b981;
}
.qa-project-index-card.is-formed{
  border-top:3px solid #3b82f6;
}
.qa-project-index-card>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.qa-project-index-card>header>div{
  display:grid;
  min-width:0;
  gap:5px;
}
.qa-project-index-card>header strong{
  overflow:hidden;
  color:#172033;
  font-size:14px;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.qa-project-index-card>header em,
.qa-project-kind-badge{
  width:max-content;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-style:normal;
  font-weight:850;
}
.qa-project-index-card>header em{
  flex:0 0 auto;
  background:#f1f5f9;
  color:#475569;
}
.qa-project-index-card.is-uploaded .qa-project-kind-badge{
  background:#ecfdf5;
  color:#047857;
}
.qa-project-index-card.is-formed .qa-project-kind-badge{
  background:#eff6ff;
  color:#1d4ed8;
}
.qa-project-index-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.qa-project-index-meta span{
  padding:3px 6px;
  border-radius:6px;
  background:#f8fafc;
  color:#64748b;
  font-size:10px;
}
.qa-project-index-card>p{
  display:-webkit-box;
  min-height:40px;
  margin:0;
  overflow:hidden;
  color:#475569;
  font-size:12px;
  line-height:1.65;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.qa-project-index-card>footer{
  display:flex;
  align-items:center;
  gap:7px;
  padding-top:8px;
  border-top:1px solid #edf2f7;
}
.qa-project-index-card>footer>span{
  margin-right:auto;
  color:#64748b;
  font-size:10px;
}
.qa-project-index-card>footer button{
  min-height:30px;
  padding:0 9px;
  border:1px solid #bfdbfe;
  border-radius:7px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.qa-project-index-card>footer button.is-primary{
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}
.qa-project-index-limit{
  grid-column:1/-1;
  margin:0;
  padding:8px;
  color:#64748b;
  font-size:11px;
  text-align:center;
}
.qa-project-index-boundary{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:9px;
  background:#f8fafc;
  color:#64748b;
  font-size:11px;
  line-height:1.55;
}
.qa-project-index-boundary strong{
  flex:0 0 auto;
  color:#334155;
}
.qa-project-record-preview-summary>small{
  display:block;
  margin-top:7px;
  color:#64748b;
  font-size:11px;
}
@media(max-width:1000px){
  .qa-project-index-list{grid-template-columns:1fr}
}
@media(max-width:760px){
  .qa-project-index-controls{grid-template-columns:1fr}
  .qa-project-index-card>footer{align-items:stretch;flex-direction:column}
  .qa-project-index-card>footer>span{margin:0}
}

/* 程序执行：首屏只保留资料、阅读/分析和判断，设置类能力按需展开 */
.at-execution-worksheet .at-evidence-workbench-head{
  grid-template-columns:minmax(300px,1fr) auto auto!important;
  gap:12px!important;
  padding:13px 16px!important;
}
.at-execution-worksheet .at-evidence-workbench-head h3{
  margin-top:2px!important;
  font-size:18px!important;
}
.at-execution-worksheet .at-evidence-workbench-head p{
  margin-top:3px!important;
  font-size:11px!important;
}
.at-execution-worksheet .at-evidence-kpis span{
  min-width:70px!important;
  padding:7px 9px!important;
}
.at-evidence-import-drawer{
  margin:0!important;
  border-top:1px solid #e2e8f0!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fff!important;
}
.at-evidence-import-drawer>summary,
.at-document-actions>summary,
.at-tool-adapter>summary,
.at-table-secondary-settings>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:9px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
}
.at-evidence-import-drawer>summary::-webkit-details-marker,
.at-document-actions>summary::-webkit-details-marker,
.at-tool-adapter>summary::-webkit-details-marker,
.at-table-secondary-settings>summary::-webkit-details-marker{
  display:none!important;
}
.at-evidence-import-drawer>summary>div,
.at-document-actions>summary>div,
.at-tool-adapter>summary>div{
  display:flex!important;
  align-items:baseline!important;
  min-width:0!important;
  gap:9px!important;
}
.at-evidence-import-drawer>summary span,
.at-document-actions>summary span,
.at-tool-adapter>summary span,
.at-table-secondary-settings>summary span{
  color:#2563eb!important;
  font-size:10px!important;
  font-weight:900!important;
}
.at-evidence-import-drawer>summary strong,
.at-document-actions>summary strong,
.at-tool-adapter>summary strong{
  color:#1e293b!important;
  font-size:12px!important;
}
.at-evidence-import-drawer>summary b,
.at-document-actions>summary b,
.at-tool-adapter>summary b,
.at-table-secondary-settings>summary b{
  flex:0 0 auto!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:800!important;
}
.at-evidence-import-drawer .at-evidence-dropzone{
  margin:0 14px 12px!important;
  min-height:92px!important;
  padding:12px 14px!important;
}
.at-execution-worksheet .at-evidence-work-area{
  grid-template-columns:220px minmax(0,1fr)!important;
  min-height:620px!important;
}
.at-execution-worksheet .at-evidence-work-area.is-sources-hidden{
  grid-template-columns:minmax(0,1fr)!important;
}
.at-evidence-sources.is-hidden{
  display:none!important;
}
.at-evidence-source-controls{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
}
.at-evidence-source-toggle,
.at-evidence-source-hide{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  padding:0!important;
  border:1px solid #c9d7e9!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#2563eb!important;
  font-size:14px!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.at-evidence-source-toggle svg,
.at-evidence-source-hide svg{
  width:15px;
  height:15px;
}
.at-evidence-source-hide{
  color:#64748b!important;
}
.at-evidence-sources.is-collapsed .at-evidence-source-controls{
  flex-direction:row!important;
}
.at-evidence-sources.is-collapsed .at-evidence-source-hide{
  display:none!important;
}
.at-execution-worksheet .at-evidence-preview{
  padding:14px 16px 18px!important;
}
.at-source-material-links{
  margin:0 0 10px!important;
  border-color:#e2e8f0!important;
  background:#fff!important;
}
.at-source-material-links>summary{
  min-height:38px!important;
  padding:7px 10px!important;
}
.at-source-material-links>summary small{
  display:none!important;
}
.at-document-reader{
  width:min(100%,920px)!important;
  min-height:520px!important;
  max-height:720px!important;
  margin:0 auto!important;
  padding:36px 46px!important;
  overflow:auto!important;
  border:1px solid #dce5f1!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(35,55,80,.06)!important;
  color:#26364f!important;
  white-space:normal!important;
}
.at-document-reader h4{
  margin:24px 0 9px!important;
  color:#172033!important;
  font-size:17px!important;
  line-height:1.5!important;
}
.at-document-reader h4:first-child{
  margin-top:0!important;
}
.at-document-reader h5{
  margin:18px 0 7px!important;
  color:#26364f!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.at-document-reader p{
  margin:0 0 12px!important;
  color:#34455f!important;
  font-size:14px!important;
  line-height:1.9!important;
  text-align:justify!important;
}
.at-document-actions{
  width:min(100%,920px)!important;
  margin:12px auto 0!important;
  border:1px solid #dce5f1!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  overflow:hidden!important;
}
.at-document-actions .at-document-workbench{
  margin:0!important;
  padding:12px!important;
  border-top:1px solid #e2e8f0!important;
}
.at-data-toolbar{
  margin:0 0 10px!important;
}
.at-table-preview-head{
  margin:8px 0 7px!important;
}
.at-evidence-table-wrap{
  max-height:560px!important;
}
.at-table-secondary-tools{
  display:grid!important;
  gap:8px!important;
  margin-top:12px!important;
}
.at-table-secondary-tools .at-field-calibration,
.at-table-secondary-tools .at-tool-adapter{
  margin:0!important;
  border-color:#dce5f1!important;
  background:#fff!important;
}
.at-tool-adapter>summary{
  min-height:50px!important;
}
.at-tool-adapter>summary small{
  overflow:hidden!important;
  color:#64748b!important;
  font-size:10px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-tool-adapter-body{
  border-top:1px solid #e2e8f0!important;
  background:#f8fbff!important;
}
.at-tool-field-step{
  margin:10px 10px 0!important;
  padding:10px!important;
  border:1px solid #d6e4f5!important;
  border-radius:10px!important;
  background:#fff!important;
}
.at-tool-field-step>header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:0 2px 9px!important;
}
.at-tool-field-step>header>div{
  display:flex!important;
  align-items:baseline!important;
  gap:8px!important;
}
.at-tool-field-step>header span{
  color:#2563eb!important;
  font-size:10px!important;
  font-weight:900!important;
}
.at-tool-field-step>header strong{
  color:#1e293b!important;
  font-size:12px!important;
}
.at-tool-field-step>header small{
  color:#64748b!important;
  font-size:10px!important;
  text-align:right!important;
}
.at-tool-field-step-action{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.at-tool-field-step-action b{
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#e7f7ee!important;
  color:#16824c!important;
  font-size:10px!important;
  font-weight:850!important;
}
.at-tool-field-step .at-field-calibration{
  margin:0!important;
  border-color:#dce5f1!important;
  box-shadow:none!important;
}
.at-analysis-candidates{
  margin:12px 0!important;
  padding:12px 14px!important;
  border:1px solid #d8e5f5!important;
  border-radius:10px!important;
  background:#f8fbff!important;
}
.at-analysis-candidates>header{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:9px!important;
}
.at-analysis-candidates>header strong{
  color:#1e293b!important;
  font-size:13px!important;
}
.at-analysis-candidates>header span,
.at-analysis-candidates>small{
  color:#64748b!important;
  font-size:10px!important;
}
.at-analysis-candidates ol{
  display:grid!important;
  gap:7px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.at-analysis-candidates li{
  display:grid!important;
  grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr)!important;
  gap:14px!important;
  padding:8px 10px!important;
  border-top:1px solid #e2e8f0!important;
}
.at-analysis-candidates li:first-child{border-top:0!important}
.at-analysis-candidates li b{
  color:#23324a!important;
  font-size:11px!important;
  line-height:1.5!important;
}
.at-analysis-candidates li p{
  margin:0!important;
  color:#52627a!important;
  font-size:11px!important;
  line-height:1.55!important;
}
.at-tool-adapter-body>header{
  display:flex!important;
  justify-content:flex-end!important;
  padding:9px 10px 0!important;
}
.at-tool-adapter-body>header label{
  display:grid!important;
  grid-template-columns:auto 180px!important;
  align-items:center!important;
  gap:8px!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:800!important;
}
.at-table-secondary-settings{
  border:1px solid #dce5f1!important;
  border-radius:10px!important;
  background:#fff!important;
}
.at-table-secondary-settings>div{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  padding:10px!important;
  border-top:1px solid #e2e8f0!important;
}
.at-evidence-result{
  padding:14px 16px!important;
  background:#fff!important;
}
.at-evidence-result-head{
  margin-bottom:10px!important;
}
.at-evidence-result-head strong{
  font-size:15px!important;
}
.at-evidence-result-head small{
  display:none!important;
}
@container(max-width:900px){
  .at-execution-worksheet .at-evidence-workbench-head{
    grid-template-columns:1fr!important;
  }
  .at-execution-worksheet .at-evidence-work-area{
    grid-template-columns:190px minmax(0,1fr)!important;
  }
  .at-document-reader{
    padding:28px 30px!important;
  }
}
@media(max-width:760px){
  .at-execution-worksheet .at-evidence-work-area,
  .at-execution-worksheet .at-evidence-work-area.is-sources-hidden{
    grid-template-columns:1fr!important;
  }
  .at-document-reader{
    min-height:420px!important;
    padding:22px!important;
  }
  .at-document-actions .at-document-workbench{
    grid-template-columns:1fr!important;
  }
  .at-tool-adapter-body>header label{
    grid-template-columns:1fr!important;
  }
  .at-tool-field-step>header{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .at-tool-field-step>header small{
    text-align:left!important;
  }
  .at-tool-field-step-action{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .at-analysis-candidates>header{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .at-analysis-candidates li{
    grid-template-columns:1fr!important;
    gap:3px!important;
  }
}

/* 待核实线索：作为程序执行中的工作对象，不再另设一套复核流程 */
.at-risk-event-queue{
  display:grid;
  gap:6px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #e2e8f0;
}
.at-risk-event-queue-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8px 4px;
  color:#475569;
  font-size:13px;
  font-weight:850;
}
.at-risk-event-queue-head em{
  display:grid;
  place-items:center;
  min-width:24px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:#fff7ed;
  color:#c2410c;
  font-size:12px;
  font-style:normal;
}
.at-risk-event-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:3px 8px;
  width:100%;
  padding:10px;
  border:1px solid transparent;
  border-left:3px solid #f59e0b;
  border-radius:9px;
  background:#fff;
  color:#334155;
  text-align:left;
  cursor:pointer;
}
.at-risk-event-item:hover,
.at-risk-event-item.active{
  border-color:#fdba74;
  background:#fff7ed;
}
.at-risk-event-item>span{
  grid-row:1 / span 2;
  align-self:start;
  padding:3px 6px;
  border-radius:999px;
  background:#ffedd5;
  color:#9a3412;
  font-size:11px;
  font-weight:850;
}
.at-risk-event-item strong{
  min-width:0;
  overflow:hidden;
  color:#0f172a;
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.at-risk-event-item small{
  color:#64748b;
  font-size:12px;
}
.at-risk-event-workspace{
  min-height:540px;
  padding:0!important;
  overflow:hidden;
  border:1px solid #cbd5e1;
  background:#fff;
}
.at-risk-event-title{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  padding:24px 26px;
  border-bottom:1px solid #e2e8f0;
}
.at-risk-event-title>div{
  display:grid;
  gap:7px;
}
.at-risk-event-title span{
  color:#c2410c;
  font-size:13px;
  font-weight:850;
}
.at-risk-event-title h2{
  margin:0;
  color:#0f172a;
  font-size:24px;
  line-height:1.25;
}
.at-risk-event-title p{
  max-width:900px;
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.7;
}
.at-risk-event-title>small{
  align-self:start;
  padding:5px 9px;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-size:12px;
  font-weight:850;
}
.at-risk-event-manage{
  border-bottom:1px solid #e2e8f0;
  background:#fbfdff;
}
.at-risk-event-manage>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 26px;
  color:#475569;
  font-size:13px;
  cursor:pointer;
}
.at-risk-event-manage>summary strong{color:#2563eb;font-size:13px}
.at-risk-event-manage-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,.55fr);
  gap:12px 16px;
  padding:4px 26px 18px;
}
.at-risk-event-manage-body label{display:grid;gap:6px}
.at-risk-event-manage-body label.wide{grid-column:1/-1}
.at-risk-event-manage-body label span{color:#475569;font-size:12px;font-weight:800}
.at-risk-event-manage-body input,
.at-risk-event-manage-body textarea{
  width:100%;
  padding:9px 11px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
  box-sizing:border-box;
}
.at-risk-event-manage-save,
.at-risk-event-manage-retire{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.at-risk-event-manage-save p,
.at-risk-event-manage-retire p{margin:0;color:#64748b;font-size:12px;line-height:1.5}
.at-risk-event-retire-reason{padding-top:10px;border-top:1px solid #e2e8f0}
.at-risk-event-manage-retire{padding-top:10px;border-top:1px solid #e2e8f0}
.at-risk-event-history{border-bottom:1px solid #e2e8f0;background:#fff}
.at-risk-event-history>summary{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:10px;padding:11px 26px;cursor:pointer;color:#475569;font-size:13px}
.at-risk-event-history>summary strong{padding:2px 7px;border-radius:999px;background:#eef4ff;color:#2458d3;font-size:12px}
.at-risk-event-history>summary small{color:#7a8a9e;font-size:12px;text-align:right}
.at-risk-event-history-list{display:grid;padding:2px 26px 16px}
.at-risk-event-history-list article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid #edf1f6}
.at-risk-event-history-list article>span{align-self:start;padding:3px 6px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:800;text-align:center}
.at-risk-event-history-list article.is-current>span{background:#e8f0ff;color:#2458d3}
.at-risk-event-history-list strong{display:block;color:#26364d;font-size:13px}
.at-risk-event-history-list p{margin:3px 0;color:#526174;font-size:12px;line-height:1.55}
.at-risk-event-history-list small{color:#7a8a9e;font-size:11px}
.at-risk-event-handoff{
  display:grid;
  grid-template-columns:minmax(180px,.55fr) minmax(320px,1.45fr) auto;
  align-items:center;
  gap:18px;
  padding:16px 26px;
  border-bottom:1px solid #dbe5f1;
  background:#f8fbff;
}
.at-risk-event-handoff-basis,
.at-risk-event-handoff-steps{display:grid;gap:4px}
.at-risk-event-handoff span{color:#2563eb;font-size:12px;font-weight:850}
.at-risk-event-handoff strong{color:#172033;font-size:14px}
.at-risk-event-handoff small{color:#64748b;font-size:12px;line-height:1.5}
.at-risk-event-handoff>small{max-width:150px;padding-left:16px;border-left:1px solid #dbe5f1}
.at-risk-event-handoff ol{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0;padding-left:18px;color:#334155;font-size:13px;line-height:1.55}
.at-risk-event-handoff li{padding-right:6px}
.at-risk-event-handoff-trace{grid-column:1/-1;border-top:1px solid #dbe5f1;padding-top:10px}
.at-risk-event-handoff-trace>summary{cursor:pointer;color:#2458d3;font-size:12px;font-weight:800;list-style:none}
.at-risk-event-handoff-trace>summary::-webkit-details-marker{display:none}
.at-risk-event-handoff-trace>summary::before{content:'›';display:inline-block;margin-right:6px;transition:transform .16s ease}
.at-risk-event-handoff-trace[open]>summary::before{transform:rotate(90deg)}
.at-risk-event-handoff-trace>div{display:grid;grid-template-columns:minmax(220px,.65fr) repeat(2,minmax(0,1fr));gap:14px;margin-top:10px;padding:12px 14px;border:1px solid #dbe5f1;border-radius:10px;background:#fff}
.at-risk-event-handoff-trace dl,.at-risk-event-handoff-trace section{margin:0;min-width:0}
.at-risk-event-handoff-trace dt,.at-risk-event-handoff-trace section>strong{display:block;margin-bottom:5px;color:#64748b;font-size:11px;font-weight:800}
.at-risk-event-handoff-trace dd{margin:0;overflow-wrap:anywhere;color:#25364d;font-size:12px}
.at-risk-event-handoff-trace ul{display:grid;gap:4px;margin:0;padding-left:18px;color:#334155;font-size:12px;line-height:1.5}
.at-risk-event-action{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  padding:24px 26px;
  border-bottom:1px solid #e2e8f0;
}
.at-risk-event-action>div:first-child{
  display:grid;
  gap:6px;
}
.at-risk-event-action span{
  color:#2563eb;
  font-size:12px;
  font-weight:850;
}
.at-risk-event-action strong{
  color:#0f172a;
  font-size:18px;
}
.at-risk-event-action p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
}
.at-risk-event-link{
  display:flex;
  align-items:center;
  gap:8px;
}
.at-risk-event-action-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.at-risk-event-link select{
  min-width:240px;
  min-height:38px;
  padding:0 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#1e293b;
  font-size:13px;
}
.at-risk-event-addition{
  margin:18px 26px;
  overflow:hidden;
  border:1px solid #bfdbfe;
  border-radius:10px;
  background:#f8fbff;
}
.at-risk-event-addition>summary{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:3px 10px;
  padding:15px 16px;
  color:#1e3a8a;
  cursor:pointer;
  list-style-position:inside;
}
.at-risk-event-addition>summary span{
  grid-row:1 / span 2;
  align-self:center;
  color:#2563eb;
  font-size:12px;
  font-weight:850;
}
.at-risk-event-addition>summary strong{
  color:#0f172a;
  font-size:15px;
}
.at-risk-event-addition>summary small{
  color:#64748b;
  font-size:12px;
}
.at-risk-event-addition-body{
  display:grid;
  grid-template-columns:minmax(180px,.7fr) minmax(240px,1fr);
  gap:14px 16px;
  padding:16px;
  border-top:1px solid #dbeafe;
  background:#fff;
}
.at-risk-event-addition-body label{
  display:grid;
  gap:6px;
}
.at-risk-event-addition-body label.wide{
  grid-column:1 / -1;
}
.at-risk-event-addition-body label span,
.at-risk-event-version span{
  color:#475569;
  font-size:12px;
  font-weight:800;
}
.at-risk-event-addition-body input,
.at-risk-event-addition-body textarea{
  width:100%;
  box-sizing:border-box;
  padding:9px 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#0f172a;
  font:inherit;
}
.at-risk-event-addition-body input:focus,
.at-risk-event-addition-body textarea:focus{
  border-color:#2563eb;
  outline:2px solid rgba(37,99,235,.12);
}
.at-risk-event-version{
  display:grid;
  align-content:center;
  gap:3px;
  padding:10px 12px;
  border-radius:8px;
  background:#eff6ff;
}
.at-risk-event-version strong{
  color:#1e3a8a;
  font-size:15px;
}
.at-risk-event-version small{
  color:#64748b;
  font-size:12px;
}
.at-risk-event-addition-action{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.at-risk-event-addition-action p{
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
}
.at-risk-event-addition-action>div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.at-addition-request-summary,
.at-addition-returned,
.at-addition-waiting{
  grid-column:1 / -1;
  display:grid;
  gap:5px;
  padding:13px 14px;
  border:1px solid #dbeafe;
  border-radius:9px;
  background:#f8fbff;
}
.at-addition-request-summary span,
.at-addition-returned span{
  color:#2563eb;
  font-size:12px;
  font-weight:850;
}
.at-addition-request-summary strong,
.at-addition-returned strong,
.at-addition-waiting strong{
  color:#172033;
  font-size:14px;
}
.at-addition-request-summary p{
  margin:0;
  color:#475569;
  font-size:13px;
  line-height:1.6;
}
.at-addition-request-summary small,
.at-addition-waiting span{
  color:#64748b;
  font-size:12px;
}
.at-addition-returned{
  border-color:#fed7aa;
  background:#fff7ed;
}
.at-addition-returned span{color:#c2410c}
.at-addition-waiting{
  border-style:dashed;
  background:#f8fafc;
}
.at-close-event-form{
  display:flex;
  align-items:stretch;
  gap:8px;
  min-width:min(620px,100%);
}
.at-close-event-form textarea{
  min-width:360px;
  min-height:62px;
  padding:9px 10px;
  resize:vertical;
  border:1px solid #bbf7d0;
  border-radius:9px;
  background:#fff;
  color:#172033;
  font:inherit;
}
.at-close-event-form textarea:focus{
  border-color:#16a34a;
  outline:2px solid rgba(22,163,74,.12);
}
.at-risk-event-outcomes{
  display:grid;
  gap:12px;
  padding:20px 26px;
  border-bottom:1px solid #e2e8f0;
}
.at-risk-event-outcomes>span{
  color:#475569;
  font-size:13px;
  font-weight:850;
}
.at-risk-event-outcomes>div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.at-risk-event-outcomes b{
  padding:7px 10px;
  border:1px solid #dbe3ee;
  border-radius:7px;
  background:#f8fafc;
  color:#475569;
  font-size:12px;
  font-weight:750;
}
.at-risk-event-method{
  margin:18px 26px;
  border:1px solid #dbe3ee;
  border-radius:9px;
  background:#f8fafc;
}
.at-risk-event-method summary{
  padding:12px 14px;
  color:#334155;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.at-risk-event-method>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 14px 14px;
}
.at-risk-event-method p{
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.55;
}
@media(max-width:980px){
  .at-risk-event-handoff{grid-template-columns:1fr 1.5fr}
  .at-risk-event-handoff>small{grid-column:1/-1;max-width:none;padding:0;border-left:0}
  .at-risk-event-action{grid-template-columns:1fr}
  .at-risk-event-link{align-items:stretch;flex-direction:column}
  .at-risk-event-handoff-trace>div{grid-template-columns:1fr}
  .at-risk-event-link select{width:100%;min-width:0}
}
@media(max-width:680px){
  .at-risk-event-handoff{grid-template-columns:1fr;padding:15px 18px}
  .at-risk-event-handoff>small{grid-column:auto}
  .at-risk-event-title,.at-risk-event-action{padding:18px}
  .at-risk-event-title{grid-template-columns:1fr}
  .at-risk-event-title h2{font-size:20px}
  .at-risk-event-outcomes{padding:16px 18px}
  .at-risk-event-method{margin:14px 18px}
  .at-risk-event-method>div{align-items:stretch;flex-direction:column}
  .at-risk-event-addition{margin:14px 18px}
  .at-risk-event-addition-body{grid-template-columns:1fr}
  .at-risk-event-addition-body label.wide,
  .at-risk-event-addition-action{grid-column:auto}
  .at-risk-event-addition-action{align-items:stretch;flex-direction:column}
  .at-risk-event-manage>summary{padding:11px 18px}
  .at-risk-event-manage-body{grid-template-columns:1fr;padding:4px 18px 16px}
  .at-risk-event-manage-body label.wide{grid-column:auto}
  .at-risk-event-manage-save,.at-risk-event-manage-retire{align-items:stretch;flex-direction:column}
  .at-risk-event-history>summary{grid-template-columns:auto auto;padding:11px 18px}
  .at-risk-event-history>summary small{grid-column:1/-1;text-align:left}
  .at-risk-event-history-list{padding:2px 18px 14px}
  .at-close-event-form{min-width:0;flex-direction:column}
  .at-close-event-form textarea{min-width:0;width:100%;box-sizing:border-box}
}

/* 2026-07-29：审计方案按实务收束为“项目基线 + 风险程序工作表”。 */
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
  grid-template-columns:66px minmax(210px,1.15fr) minmax(180px,.95fr) minmax(190px,1fr) minmax(210px,1.1fr) minmax(210px,1.05fr) minmax(140px,.7fr) minmax(112px,.6fr)!important;
  min-width:1360px!important;
}
.wf-member-picker>div{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border:1px solid #d7e1ed;
  border-radius:10px;
  background:#f8fafc;
}
.wf-member-picker>div:empty::before{
  content:"请先在工作台维护审计团队";
  color:#64748b;
  font-size:13px;
}
.wf-member-picker>div label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid #d7e1ed;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:13px;
  cursor:pointer;
}
.wf-member-picker>div label:has(input:checked){
  border-color:#93c5fd;
  background:#eff6ff;
  color:#1d4ed8;
}
.wf-member-picker input{accent-color:#2563eb}
.wf-stage-schedule-editor{
  padding:12px;
  border:1px solid #d7e1ed;
  border-radius:12px;
  background:#fbfdff;
}
.wf-stage-schedule-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.wf-stage-schedule-title span{color:#334155;font-size:13px;font-weight:850}
.wf-stage-schedule-title small{color:#64748b;font-size:12px}
.wf-stage-schedule-grid{display:grid;gap:6px}
.wf-stage-schedule-grid>div{
  display:grid;
  grid-template-columns:minmax(170px,1fr) 160px 160px;
  gap:8px;
  align-items:center;
}
.wf-stage-schedule-grid .is-head{
  padding:0 8px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.wf-stage-schedule-grid input{
  width:100%;
  box-sizing:border-box;
  padding:8px 9px;
  border:1px solid #ccd9e8;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
}
.wf-stage-schedule-preview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:10px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
}
.wf-stage-schedule-preview>div{
  display:grid;
  gap:4px;
  padding:11px 13px;
  border-right:1px solid #e2e8f0;
}
.wf-stage-schedule-preview>div:last-child{border-right:0}
.wf-stage-schedule-preview strong{color:#334155;font-size:13px}
.wf-stage-schedule-preview span{color:#64748b;font-size:12px}
@media(max-width:1050px){
  .wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
    grid-template-columns:1fr!important;
    min-width:0!important;
  }
  .wf-stage-schedule-preview{grid-template-columns:1fr 1fr}
  .wf-stage-schedule-preview>div:nth-child(2n){border-right:0}
}
@media(max-width:680px){
  .wf-stage-schedule-grid>div{grid-template-columns:1fr}
  .wf-stage-schedule-grid .is-head{display:none}
  .wf-stage-schedule-preview{grid-template-columns:1fr}
  .wf-stage-schedule-preview>div{border-right:0;border-bottom:1px solid #e2e8f0}
  .wf-stage-schedule-preview>div:last-child{border-bottom:0}
}

/* 2026-07-29：审计方案以“风险—程序—执行”正确承接为先，首层只保留主审需要比较的信息。 */
.wf-scheme-status.is-change-pending{
  background:#fff7ed!important;
  color:#b45309!important;
}
.wf-scheme-change-alert{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px 12px;
  align-items:center;
  padding:10px 14px;
  border-top:1px solid #fed7aa;
  background:#fffaf2;
}
.wf-scheme-change-alert strong{
  color:#9a3412;
  font-size:13px;
}
.wf-scheme-change-alert span{
  color:#7c4a16;
  font-size:12px;
  line-height:1.5;
}
.wf-scheme-change-alert button{
  min-height:32px;
  padding:0 10px;
  border:1px solid #fdba74;
  border-radius:8px;
  background:#fff;
  color:#9a3412;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
  grid-template-columns:60px minmax(160px,.9fr) minmax(170px,1fr) minmax(220px,1.35fr) 110px 92px!important;
  min-width:0!important;
}
.wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-program-summary>span:nth-child(4) small{
  display:-webkit-box;
  margin-top:4px;
  overflow:hidden;
  color:#64748b;
  font-weight:500;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.wf-program-risk-context{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border-bottom:1px solid #dbe5f0;
  background:#f8fbff;
}
.wf-program-risk-context>div{
  display:grid;
  gap:4px;
  padding:10px 14px;
  border-right:1px solid #dbe5f0;
}
.wf-program-risk-context>div:last-child{border-right:0}
.wf-program-risk-context span{
  color:#2563eb;
  font-size:11px;
  font-weight:850;
}
.wf-program-risk-context strong{
  color:#334155;
  font-size:13px;
  line-height:1.5;
}
.wf-program-source-line{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:9px 14px;
  border-bottom:1px solid #dbe5f0;
  background:#fff;
}
.wf-program-source-line>span{
  color:#2563eb;
  font-size:11px;
  font-weight:850;
}
.wf-program-source-line>div{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.wf-program-source-line b{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  padding:5px 8px;
  border:1px solid #dbeafe;
  border-radius:7px;
  background:#f8fbff;
  color:#1e3a5f;
  font-size:12px;
}
.wf-program-source-line b strong{
  overflow:hidden;
  max-width:280px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wf-program-source-line b small{
  color:#64748b;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}
.wf-program-source-line>em{
  color:#64748b;
  font-size:11px;
  font-style:normal;
  white-space:nowrap;
}
@media(max-width:1050px){
  .wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
    grid-template-columns:54px minmax(150px,.9fr) minmax(160px,1fr) minmax(200px,1.25fr) 104px 86px!important;
  }
}
@media(max-width:820px){
  .wf-scheme-change-alert,
  .wf-program-risk-context{
    grid-template-columns:1fr;
  }
  .wf-program-source-line{
    grid-template-columns:1fr;
    align-items:start;
  }
  .wf-program-source-line>em{white-space:normal}
  .wf-scheme-change-alert button{justify-self:start}
  .wf-program-risk-context>div{border-right:0;border-bottom:1px solid #dbe5f0}
  .wf-program-risk-context>div:last-child{border-bottom:0}
  .wf-scheme-detail-page .wf-plan-matrix .wf-program-row{
    grid-template-columns:1fr!important;
  }
}
@media print{
  body.wf-print-scheme>*:not(.wf-scheme-dialog-backdrop){display:none!important}
  body.wf-print-scheme .wf-scheme-dialog-backdrop{
    position:static!important;
    display:block!important;
    padding:0!important;
    background:#fff!important;
  }
  body.wf-print-scheme .wf-scheme-preview{
    width:100%!important;
    max-height:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.wf-print-scheme .wf-scheme-dialog-head button,
  body.wf-print-scheme .wf-scheme-preview-foot{display:none!important}
  body.wf-print-scheme .wf-scheme-preview-body{
    overflow:visible!important;
    padding:0!important;
  }
}

/* 2026-07-29：项目风险评估按完整审计工作流组织。 */
.pra-assessment-shell{
  display:grid;
  gap:14px;
  min-width:0;
}
.pra-assessment-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,320px);
  gap:22px;
  align-items:center;
  padding:18px 20px;
  border:1px solid #cddcf0;
  border-radius:16px;
  background:
    radial-gradient(circle at 88% 18%,rgba(90,132,219,.16),transparent 28%),
    linear-gradient(135deg,#f7faff 0%,#eef5ff 100%);
}
.pra-assessment-overview>div>span,
.pra-foundation-head span,
.pra-stage-scheme-title>span{
  color:#2563eb;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
}
.pra-assessment-overview h3{
  margin:4px 0 5px;
  color:#15233b;
  font-size:22px;
}
.pra-assessment-overview p{
  margin:0;
  color:#56677f;
  font-size:13px;
  line-height:1.6;
}
.pra-data-ownership{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.pra-data-ownership>span{
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:5px 7px;
  border:1px solid #d9e3ef;
  border-radius:8px;
  background:rgba(255,255,255,.72);
  color:#5b6b80;
  font-size:10px;
  line-height:1.35;
}
.pra-data-ownership b{
  font-size:10px;
  white-space:nowrap;
}
.pra-data-ownership .is-human b{color:#1d4ed8}
.pra-data-ownership .is-system b{color:#087443}
.pra-data-ownership .is-reference b{color:#94610b}
.pra-assessment-overview>aside{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid rgba(90,125,190,.18);
  border-radius:12px;
  background:rgba(255,255,255,.78);
}
.pra-assessment-overview>aside small{
  color:#6d7b90;
  font-size:11px;
  font-weight:800;
}
.pra-assessment-overview>aside strong{
  color:#1f4fa9;
  font-size:14px;
  line-height:1.4;
}
.pra-assessment-overview>aside span{
  color:#6a7890;
  font-size:11px;
}
.pra-assessment-steps{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:7px;
}
.pra-assessment-steps button{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:
    "no title"
    "no detail"
    "state state";
  gap:2px 8px;
  min-height:82px;
  padding:10px 11px 8px;
  border:1px solid #d7e1ee;
  border-radius:12px;
  background:#fff;
  color:#334155;
  text-align:left;
  cursor:pointer;
}
.pra-assessment-steps button:hover{
  border-color:#8fb0e4;
  box-shadow:0 5px 14px rgba(43,83,145,.08);
}
.pra-assessment-steps button>span{
  grid-area:no;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:8px;
  background:#eef2f7;
  color:#64748b;
  font-size:11px;
  font-weight:900;
}
.pra-assessment-steps button>strong{
  grid-area:title;
  align-self:center;
  color:#27364e;
  font-size:13px;
}
.pra-assessment-steps button>small{
  grid-area:detail;
  overflow:hidden;
  color:#718096;
  font-size:10px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-assessment-steps button>em{
  grid-area:state;
  justify-self:start;
  margin-top:4px;
  color:#8a96a8;
  font-size:10px;
  font-style:normal;
  font-weight:850;
}
.pra-assessment-steps button.is-active{
  border-color:#6f9bea;
  background:#f3f7ff;
}
.pra-assessment-steps button.is-active>span{
  background:#2563eb;
  color:#fff;
}
.pra-assessment-steps button.is-active>em{color:#1d4ed8}
.pra-assessment-steps button.is-complete{
  border-color:#b9dfcb;
  background:#f6fcf8;
}
.pra-assessment-steps button.is-complete>span{
  background:#dff5e8;
  color:#087443;
}
.pra-assessment-steps button.is-complete>em{color:#087443}
.pra-assessment-foundation{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
.pra-foundation-card{
  display:grid;
  align-content:start;
  gap:10px;
  min-width:0;
  padding:15px;
  border:1px solid #d9e3ef;
  border-radius:15px;
  background:#fff;
  scroll-margin-top:16px;
}
.pra-foundation-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.pra-foundation-head h3{
  margin:4px 0 0;
  color:#1d2b42;
  font-size:16px;
}
.pra-foundation-head-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
.pra-foundation-head-actions>b{
  padding:4px 8px;
  border-radius:999px;
  background:#fff4df;
  color:#94610b;
  font-size:11px;
  white-space:nowrap;
}
.pra-foundation-head-actions>b.is-complete{
  background:#e8f7ee;
  color:#087443;
}
.pra-foundation-head-actions .btn{
  min-height:30px;
  padding:5px 9px;
  font-size:11px;
}
.pra-stage-io{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.pra-stage-io>span{
  padding:7px 8px;
  border-radius:8px;
  background:#f7f9fc;
  color:#67758a;
  font-size:10px;
  line-height:1.45;
}
.pra-stage-io b{
  display:block;
  margin-bottom:2px;
  color:#40526b;
  font-size:10px;
}
.pra-project-baseline{
  display:grid;
  gap:10px;
}
.pra-one-screen-flow .pra-foundation-card .pra-project-baseline{
  display:grid!important;
  grid-template-columns:1fr!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.pra-project-baseline .pra-baseline-title{
  display:grid;
  gap:2px;
}
.pra-project-baseline .pra-baseline-title>span{
  color:#7b8798;
  font-size:10px;
  font-weight:800;
}
.pra-project-baseline .pra-baseline-title>h3{
  margin:0;
  color:#27364e;
  font-size:15px;
}
.pra-project-baseline .pra-baseline-title>small{
  color:#6b788c;
  font-size:11px;
}
.pra-baseline-boundary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.pra-baseline-boundary>section{
  min-width:0;
  padding:9px 10px;
  border-radius:10px;
  background:#f7f9fc;
}
.pra-baseline-boundary span{
  color:#66768b;
  font-size:10px;
  font-weight:850;
}
.pra-baseline-boundary p{
  display:-webkit-box;
  overflow:hidden;
  margin:4px 0 0;
  color:#334155;
  font-size:12px;
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.pra-project-baseline dl{
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  margin:0;
}
.pra-project-baseline dl>div{
  display:flex;
  gap:5px;
  min-width:0;
}
.pra-project-baseline dt{
  color:#7b8798;
  font-size:10px;
}
.pra-project-baseline dd{
  overflow:hidden;
  margin:0;
  color:#44546a;
  font-size:10px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-foundation-editor{
  border:1px solid #e0e7f0;
  border-radius:10px;
  background:#fbfdff;
}
.pra-foundation-editor>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 11px;
  color:#40526b;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.pra-foundation-editor>summary>b{
  color:#6b7a90;
  font-size:10px;
}
.pra-business-understanding-editor>summary>span{
  display:grid;
  gap:2px;
  min-width:0;
}
.pra-business-understanding-editor>summary>span>strong{
  color:#40526b;
  font-size:12px;
}
.pra-business-understanding-editor>summary>span>small{
  overflow:hidden;
  color:#7a8798;
  font-size:10px;
  font-weight:500;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-business-understanding-editor>summary>em{
  margin-left:auto;
  padding:3px 7px;
  border-radius:999px;
  background:#f1f4f8;
  color:#64748b;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  white-space:nowrap;
}
.pra-business-understanding-editor>summary>em.is-draft{
  background:#fff4df;
  color:#94610b;
}
.pra-business-understanding-editor>summary>em.is-complete{
  background:#e8f7ee;
  color:#087443;
}
.pra-business-understanding-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px 12px;
  margin:0 11px 11px;
}
.pra-business-understanding-body>p,
.pra-business-understanding-body>.pra-business-source-note,
.pra-business-understanding-body>.pra-foundation-actions{
  grid-column:1/-1;
}
.pra-business-understanding-body>p{
  margin:0;
  color:#64748b;
  font-size:11px;
  line-height:1.55;
}
.pra-business-understanding-body>label{
  display:grid;
  gap:5px;
  min-width:0;
  color:#4b5c74;
  font-size:11px;
  font-weight:800;
}
.pra-business-understanding-body textarea{
  width:100%;
  box-sizing:border-box;
  min-height:74px;
  padding:8px 9px;
  resize:vertical;
  border:1px solid #cfd9e6;
  border-radius:7px;
  background:#fff;
  color:#334155;
  font:inherit;
  font-size:11px;
  font-weight:400;
  line-height:1.55;
}
.pra-business-understanding-body textarea:focus{
  border-color:#7ba1e8;
  outline:3px solid rgba(37,99,235,.12);
}
.pra-foundation-editor .pra-form-grid,
.pra-information-editor>.pra-identification-method-editor,
.pra-information-editor>.pra-method-boundary,
.pra-information-editor>.pra-information-notes,
.pra-information-editor>.pra-foundation-actions{
  margin:0 11px 11px;
}
.pra-foundation-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.pra-foundation-actions small{
  color:#718096;
  font-size:10px;
  line-height:1.45;
}
.pra-information-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  border-radius:11px;
  background:#f7f9fc;
}
.pra-information-summary>div{
  display:grid;
  gap:3px;
  min-width:0;
}
.pra-information-summary strong{
  overflow:hidden;
  color:#334155;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-information-summary span{
  color:#718096;
  font-size:10px;
}
.pra-method-boundary{
  padding:8px 9px;
  border-left:3px solid #7ba1e8;
  border-radius:7px;
  background:#f3f7ff;
  color:#53657c;
  font-size:11px;
  line-height:1.5;
}
.pra-identification-method-editor{
  display:grid;
  gap:6px;
}
.pra-identification-method-row{
  display:grid;
  grid-template-columns:auto minmax(150px,.8fr) minmax(180px,1.2fr);
  gap:9px;
  align-items:center;
  padding:8px 9px;
  border:1px solid #e1e7ef;
  border-radius:9px;
  background:#fff;
}
.pra-identification-method-row.is-selected{
  border-color:#a9c5ee;
  background:#f7faff;
}
.pra-identification-method-row>input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#2563eb;
}
.pra-identification-method-row>span{
  display:grid;
  gap:2px;
}
.pra-identification-method-row strong{
  color:#334155;
  font-size:11px;
}
.pra-identification-method-row small{
  color:#7a8798;
  font-size:9px;
}
.pra-identification-method-row>input[type="text"],
.pra-information-notes textarea{
  width:100%;
  box-sizing:border-box;
  padding:7px 8px;
  border:1px solid #cfd9e6;
  border-radius:7px;
  background:#fff;
  color:#334155;
  font:inherit;
  font-size:11px;
}
.pra-identification-method-row>input[type="text"]:disabled{
  background:#f5f7fa;
  color:#9aa4b2;
}
.pra-information-notes{
  display:grid;
  gap:5px;
  color:#4b5c74;
  font-size:11px;
  font-weight:800;
}
.pra-foundation-card .pra-reference-drawer .pra-candidate-preview{
  padding:0 11px 11px;
}
@media(max-width:760px){
  .pra-business-understanding-body{grid-template-columns:1fr}
  .pra-business-understanding-body>p,
  .pra-business-understanding-body>.pra-business-source-note,
  .pra-business-understanding-body>.pra-foundation-actions{grid-column:auto}
  .pra-business-understanding-editor>summary>span>small{white-space:normal}
}
.pra-risk-stage-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  padding:10px 12px;
  border-bottom:1px solid #e3e9f2;
  background:#f9fbfe;
  scroll-margin-top:16px;
}
.pra-risk-stage-strip>button{
  display:grid;
  gap:2px;
  padding:8px 9px;
  border:1px solid #dce5f0;
  border-radius:9px;
  background:#fff;
  color:#3f526b;
  font-size:11px;
  font-weight:900;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
}
.pra-risk-stage-strip>button:hover,
.pra-risk-stage-strip>button:focus-visible{
  border-color:#8fb0e4;
  background:#f6f9ff;
  outline:0;
}
.pra-risk-stage-strip>button.is-primary{
  border-color:#a9c5ee;
  color:#1d4ed8;
}
.pra-risk-stage-strip small{
  color:#78869a;
  font-size:9px;
  font-weight:600;
}
.pra-stage-scheme{
  margin:12px;
  padding:12px;
  border:1px solid #d5e1ef;
  border-radius:12px;
  background:#f9fbfe;
  scroll-margin-top:16px;
}
.pra-stage-scheme-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.pra-stage-scheme-title>small{
  color:#6b788c;
  font-size:10px;
}
.pra-stage-scheme .pra-risk-handoffs{
  margin:0!important;
}
#pra-stage-identification,
#pra-stage-control,
#pra-stage-ranking,
#pra-stage-scheme{
  scroll-margin-top:16px;
}
@media(max-width:1180px){
  .pra-assessment-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pra-assessment-foundation{grid-template-columns:1fr}
}
@media(max-width:760px){
  .pra-assessment-overview{grid-template-columns:1fr}
  .pra-assessment-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pra-baseline-boundary,
  .pra-risk-stage-strip,
  .pra-stage-io{grid-template-columns:1fr}
  .pra-identification-method-row{grid-template-columns:auto minmax(0,1fr)}
  .pra-identification-method-row>input[type="text"]{grid-column:2}
  .pra-foundation-actions,
  .pra-information-summary,
  .pra-stage-scheme-title{align-items:stretch;flex-direction:column}
}

/* Report narrative and executive judgment */
.rp-narrative-panel{margin:14px 0;padding:16px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff)}
.rpn-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}
.rpn-head span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.12em}
.rpn-head strong{display:block;margin-top:4px;color:#0f172a;font-size:1rem}
.rpn-head p{max-width:760px;margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.55}
.rpn-head>b{padding:5px 10px;border-radius:999px;font-size:.66rem;white-space:nowrap}
.rpn-head>b.ready{background:#dcfce7;color:#15803d}
.rpn-head>b.warn{background:#fff7ed;color:#c2410c}
.rpn-source-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.rpn-source-grid article{min-height:86px;padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}
.rpn-source-grid article.missing{border-style:dashed;background:#fffaf5}
.rpn-source-grid span{color:#64748b;font-size:.62rem;font-weight:900}
.rpn-source-grid p{margin:5px 0 0;color:#334155;font-size:.7rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rpn-source-missing{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding:8px 10px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:.7rem}
.rpn-judgment-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.rpn-judgment-grid label{display:flex;flex-direction:column;gap:6px;color:#475569;font-size:.68rem;font-weight:900}
.rpn-judgment-grid label.wide{grid-column:1/-1}
.rpn-judgment-grid label span small{display:block;margin-top:3px;color:#64748b;font-size:.62rem;font-weight:600;line-height:1.45}
.rpn-judgment-grid label span em{color:#dc2626;font-style:normal}
.rpn-judgment-grid textarea{width:100%;min-height:96px;padding:10px;border:1px solid #dbe3ef;border-radius:11px;background:#fff;color:#172033;font:inherit;font-weight:500;line-height:1.55;resize:vertical;box-sizing:border-box}
.rpn-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.rpn-actions>span{color:#64748b;font-size:.68rem}
.rps-narrative{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.rps-narrative article{padding:9px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.rps-narrative span{color:#64748b;font-size:.62rem;font-weight:900}
.rps-narrative p{margin:4px 0 0;color:#334155;font-size:.7rem;line-height:1.5}
html[data-theme="dark"] .rp-narrative-panel,html[data-theme="dark"] .rpn-source-grid article{background:#1b2940;border-color:#314158}
html[data-theme="dark"] .rpn-head strong,html[data-theme="dark"] .rpn-source-grid p{color:#e2e8f0}
html[data-theme="dark"] .rpn-judgment-grid textarea{background:#172235;color:#d8e1ee;border-color:#314158}
@media(max-width:1100px){.rpn-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rpn-head,.rpn-source-missing,.rpn-actions{align-items:stretch;flex-direction:column}.rpn-source-grid,.rpn-judgment-grid,.rps-narrative{grid-template-columns:1fr}}

/* Project remediation view and cross-project remediation supervision */
.ff-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:14px 16px;border:1px solid #dbe5f2;border-radius:16px;background:#fff}
.ff-mode-switch>div:first-child span,.ff-remediation-head span,.rc-hero span{display:block;color:#2563eb;font-size:.62rem;font-weight:950;letter-spacing:.12em}
.ff-mode-switch>div:first-child strong{display:block;margin-top:3px;color:#0f172a;font-size:1rem}
.ff-mode-switch>div:first-child small{display:block;margin-top:4px;color:#64748b;font-size:.68rem}
.ff-mode-switch-actions{display:flex;gap:6px;padding:4px;border-radius:12px;background:#f1f5f9}
.ff-mode-switch-actions button{display:flex;align-items:center;gap:8px;padding:9px 14px;border:0;border-radius:9px;background:transparent;color:#64748b;font:inherit;font-size:.72rem;font-weight:900;cursor:pointer}
.ff-mode-switch-actions button.active{background:#fff;color:#1d4ed8;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.ff-mode-switch-actions b{min-width:20px;padding:2px 6px;border-radius:999px;background:#e2e8f0;color:inherit;font-size:.62rem}
.ff-project-remediation,.remediation-center{width:100%;box-sizing:border-box}
.ff-remediation-head,.rc-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px;border:1px solid #dbe5f2;border-radius:16px;background:linear-gradient(135deg,#fff,#f7faff)}
.ff-remediation-head h2,.rc-hero h1{margin:4px 0 0;color:#0f172a;font-size:1.22rem}
.ff-remediation-head p,.rc-hero p{max-width:780px;margin:6px 0 0;color:#64748b;font-size:.72rem;line-height:1.6}
.rc-hero>div:last-child{display:flex;gap:8px;white-space:nowrap}
.rc-demo-notice{display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a}
.rc-demo-notice strong{font-size:.7rem;white-space:nowrap}.rc-demo-notice span{font-size:.66rem;line-height:1.5}
.ft-remediation-conflict,.ff-remediation-conflict-summary,.rc-conflict-notice{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:10px 0;padding:12px 14px;border:1px solid #f3c98b;border-radius:10px;background:#fffaf1;color:#713f12}
.ft-remediation-conflict>div,.ff-remediation-conflict-summary>div,.rc-conflict-notice>div{min-width:0}.ft-remediation-conflict strong,.ff-remediation-conflict-summary strong,.rc-conflict-notice strong{display:block;color:#7c2d12;font-size:.72rem}.ft-remediation-conflict span,.ff-remediation-conflict-summary span,.rc-conflict-notice span{display:block;margin-top:3px;font-size:.66rem;line-height:1.5}.ft-remediation-conflict small,.ff-remediation-conflict-summary small,.rc-conflict-notice small{max-width:48%;color:#9a5b24;font-size:.62rem;line-height:1.5;text-align:right}
.ff-remediation-kpis,.rc-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:12px 0}
.ff-remediation-kpis article,.rc-metric{padding:13px 14px;border:1px solid #dbe5f2;border-radius:13px;background:#fff;text-align:left}
.ff-remediation-kpis span,.rc-metric span{display:block;color:#64748b;font-size:.64rem;font-weight:900}
.ff-remediation-kpis strong,.rc-metric strong{display:block;margin:5px 0;color:#0f172a;font-size:1.35rem}
.ff-remediation-kpis small,.rc-metric small{display:block;color:#94a3b8;font-size:.61rem;line-height:1.45}
.ff-remediation-kpis .warn,.rc-metric.is-amber{border-color:#fde68a;background:#fffdf5}
.ff-remediation-kpis .danger,.rc-metric.is-red{border-color:#fecaca;background:#fff8f8}
.rc-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.rc-metric{font:inherit;cursor:pointer}
.rc-metric.active{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.12)}
.rc-metric.is-blue strong{color:#2563eb}.rc-metric.is-red strong{color:#dc2626}.rc-metric.is-amber strong{color:#d97706}
.rc-metric.is-indigo strong{color:#4f46e5}.rc-metric.is-violet strong{color:#7c3aed}.rc-metric.is-green strong{color:#15803d}
.ff-remediation-layout,.rc-workbench{display:grid;grid-template-columns:minmax(280px,34%) minmax(0,1fr);min-height:470px;border:1px solid #dbe5f2;border-radius:16px;overflow:hidden;background:#fff}
.ff-remediation-list,.rc-list{padding:10px;border-right:1px solid #e2e8f0;background:#f8fafc;overflow:auto}
.ff-remediation-row,.rc-row{display:block;width:100%;margin-bottom:7px;padding:12px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;text-align:left;font:inherit;cursor:pointer}
.ff-remediation-row:hover,.rc-row:hover{border-color:#93c5fd}.ff-remediation-row.active,.rc-row.active{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 2px rgba(59,130,246,.1)}
.ff-remediation-row.is-overdue,.rc-row.is-overdue{border-left:4px solid #dc2626}
.ff-remediation-row>span,.rc-row>span{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ff-remediation-row mark,.rc-row mark,.ff-remediation-detail-head mark,.rc-detail-head mark{padding:3px 7px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:.58rem;font-weight:950}
mark.is-plan{background:#fff7ed!important;color:#c2410c!important}mark.is-verification{background:#eef2ff!important;color:#4338ca!important}
mark.is-resolved{background:#dcfce7!important;color:#15803d!important}mark.is-accepted{background:#f3e8ff!important;color:#7e22ce!important}
mark.is-in-progress,mark.is-open{background:#dbeafe!important;color:#1d4ed8!important}mark.is-returned{background:#fee2e2!important;color:#b91c1c!important}
.ff-remediation-row em,.rc-row em{color:#dc2626;font-size:.59rem;font-style:normal;font-weight:950}
.ff-remediation-row em.is-demo,.rc-row em.is-demo{margin-left:auto;padding:2px 6px;border-radius:999px;background:#ede9fe;color:#6d28d9}
.ff-remediation-row strong,.rc-row strong{display:block;margin:8px 0 4px;color:#172033;font-size:.76rem;line-height:1.45}
.ff-remediation-row small,.rc-row small{display:block;margin-top:3px;color:#64748b;font-size:.62rem;line-height:1.45}
.ff-remediation-detail,.rc-detail{padding:18px;min-width:0}
.ff-remediation-detail-head,.rc-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid #e2e8f0}
.ff-remediation-detail-head span,.rc-detail-head span{color:#2563eb;font-size:.61rem;font-weight:950;letter-spacing:.1em}
.ff-remediation-detail-head h3,.rc-detail-head h2{margin:4px 0 0;color:#0f172a;font-size:1.05rem}
.ff-remediation-detail-head p,.rc-detail-head p{margin:5px 0 0;color:#64748b;font-size:.68rem}
.ff-remediation-detail-grid,.rc-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
.ff-remediation-detail-grid article,.rc-detail-grid article,.rc-supporting article{padding:12px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}
.ff-remediation-detail-grid span,.rc-detail-grid span,.rc-supporting span{display:block;color:#64748b;font-size:.61rem;font-weight:900}
.ff-remediation-detail-grid strong,.rc-detail-grid strong{display:block;margin-top:5px;color:#334155;font-size:.72rem;line-height:1.55}
.ff-remediation-detail-grid small,.rc-detail-grid small{display:block;margin-top:4px;color:#94a3b8;font-size:.61rem}
.ff-remediation-detail-actions,.rc-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:13px;border-radius:12px;background:#eff6ff}
.ff-remediation-detail-actions span,.rc-detail-actions span{color:#475569;font-size:.67rem;line-height:1.5}
.rc-detail-actions div>strong,.rc-detail-actions div>span,.rc-detail-actions div>small{display:block}.rc-detail-actions div>strong{color:#1d4ed8;font-size:.68rem}.rc-detail-actions div>small{margin-top:4px;color:#b45309;font-size:.61rem}
.ff-remediation-empty,.rc-empty-detail{display:flex;min-height:280px;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:30px;text-align:center}
.ff-remediation-empty strong,.rc-empty-detail strong{color:#334155}.ff-remediation-empty span,.rc-empty-detail span{max-width:560px;color:#64748b;font-size:.7rem;line-height:1.6}
.rc-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 190px 190px auto auto;align-items:end;gap:9px;margin:12px 0;padding:12px;border:1px solid #dbe5f2;border-radius:14px;background:#fff}
.rc-toolbar label{display:flex;flex-direction:column;gap:5px;color:#64748b;font-size:.62rem;font-weight:900}
.rc-toolbar input,.rc-toolbar select{width:100%;height:38px;padding:0 10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;font:inherit;font-size:.69rem;box-sizing:border-box}
.rc-toolbar>span{align-self:center;color:#64748b;font-size:.65rem;text-align:right}
.rc-supporting{display:grid;gap:8px;margin-top:10px}.rc-supporting p{margin:5px 0 0;color:#334155;font-size:.7rem;line-height:1.55}
.rc-boundary{display:flex;gap:10px;margin-top:12px;padding:11px 13px;border-radius:11px;background:#f8fafc;color:#64748b;font-size:.66rem;line-height:1.5}
.rc-boundary strong{color:#334155;white-space:nowrap}.rc-list-empty{padding:30px 12px;color:#64748b;font-size:.7rem;text-align:center}
.rc-ai-result{display:grid;gap:12px;margin:0 0 12px;padding:16px;border:1px solid #d8ccfa;border-radius:14px;background:#fbf9ff}
.rc-ai-result>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.rc-ai-result>header span{display:block;color:#6d46c7;font-size:.62rem;font-weight:950;letter-spacing:.1em}
.rc-ai-result>header h2{margin:4px 0 0;color:#34265c;font-size:.82rem;line-height:1.55}
.rc-ai-result>header button{border:0;background:transparent;color:#6d46c7;font:inherit;font-size:.66rem;font-weight:900;cursor:pointer}
.rc-ai-result>section>strong{display:block;margin-bottom:6px;color:#5c3ca5;font-size:.66rem}
.rc-ai-result>section>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}
.rc-ai-result article{display:grid;gap:5px;padding:10px 11px;border:1px solid #e5ddf8;border-radius:10px;background:#fff}
.rc-ai-result article b{color:#34265c;font-size:.7rem}.rc-ai-result article p{margin:0;color:#42375f;font-size:.68rem;line-height:1.55}.rc-ai-result article small{color:#766b92;font-size:.61rem;line-height:1.45}
.rc-ai-result>footer{display:grid;gap:4px;padding-top:2px;color:#766b92;font-size:.61rem}.rc-ai-result>footer b{color:#5c3ca5}
html[data-theme="dark"] .ff-mode-switch,html[data-theme="dark"] .ff-remediation-head,html[data-theme="dark"] .rc-hero,html[data-theme="dark"] .ff-remediation-kpis article,html[data-theme="dark"] .rc-metric,html[data-theme="dark"] .ff-remediation-layout,html[data-theme="dark"] .rc-workbench,html[data-theme="dark"] .ff-remediation-row,html[data-theme="dark"] .rc-row,html[data-theme="dark"] .rc-toolbar{background:#1b2940;border-color:#314158}
html[data-theme="dark"] .rc-demo-notice{border-color:#315b93;background:#172d4d;color:#bfdbfe}
html[data-theme="dark"] .ft-remediation-conflict,html[data-theme="dark"] .ff-remediation-conflict-summary,html[data-theme="dark"] .rc-conflict-notice{border-color:#7c5c2e;background:#2f2518;color:#fcd9a8}
html[data-theme="dark"] .ff-remediation-list,html[data-theme="dark"] .rc-list,html[data-theme="dark"] .ff-remediation-detail-grid article,html[data-theme="dark"] .rc-detail-grid article,html[data-theme="dark"] .rc-supporting article{background:#172235;border-color:#314158}
html[data-theme="dark"] .ff-mode-switch strong,html[data-theme="dark"] .ff-remediation-head h2,html[data-theme="dark"] .rc-hero h1,html[data-theme="dark"] .ff-remediation-kpis strong,html[data-theme="dark"] .rc-metric strong,html[data-theme="dark"] .ff-remediation-row strong,html[data-theme="dark"] .rc-row strong,html[data-theme="dark"] .ff-remediation-detail-head h3,html[data-theme="dark"] .rc-detail-head h2{color:#e2e8f0}
html[data-theme="dark"] .rc-ai-result{background:#1b1628;border-color:#493b68}html[data-theme="dark"] .rc-ai-result article{background:#211a31;border-color:#493b68}html[data-theme="dark"] .rc-ai-result>header h2,html[data-theme="dark"] .rc-ai-result article b,html[data-theme="dark"] .rc-ai-result article p{color:#eee8ff}
@media(max-width:1100px){.rc-metrics{grid-template-columns:repeat(3,1fr)}.ff-remediation-kpis{grid-template-columns:repeat(3,1fr)}.rc-toolbar{grid-template-columns:1fr 1fr}.rc-toolbar>span{grid-column:1/-1;text-align:left}}
@media(max-width:760px){.ff-mode-switch,.ff-remediation-head,.rc-hero,.ff-remediation-detail-actions,.rc-detail-actions,.rc-demo-notice{align-items:stretch;flex-direction:column}.ff-mode-switch-actions{width:100%}.ff-mode-switch-actions button{flex:1;justify-content:center}.ff-remediation-kpis,.rc-metrics{grid-template-columns:1fr 1fr}.ff-remediation-layout,.rc-workbench{grid-template-columns:1fr}.ff-remediation-list,.rc-list{border-right:0;border-bottom:1px solid #e2e8f0;max-height:320px}.ff-remediation-detail-grid,.rc-detail-grid,.rc-toolbar{grid-template-columns:1fr}.rc-hero>div:last-child{white-space:normal}.rc-toolbar>span{grid-column:auto}.rc-demo-notice strong{white-space:normal}}
@media(max-width:760px){.ft-remediation-conflict,.ff-remediation-conflict-summary,.rc-conflict-notice{flex-direction:column;gap:6px}.ft-remediation-conflict small,.ff-remediation-conflict-summary small,.rc-conflict-notice small{max-width:none;text-align:left}}

/* Remediation Gate 3: current action stays prominent; lifecycle utilities and history remain secondary. */
#project-remediation-content .ft-track{font-size:13px}
#project-remediation-content .ft-flow-head span,#project-remediation-content .ft-step-title span,#project-remediation-content .ft-record span{font-size:12px;line-height:1.5}
#project-remediation-content .ft-step-title strong,#project-remediation-content .ft-record p{font-size:13px}
.ft-progress-current{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start;margin-top:9px;padding:10px 12px;border:1px solid #cfe2f6;border-left:3px solid #2563eb;border-radius:8px;background:#f8fbff}
.ft-progress-current>b{display:grid;place-items:center;min-height:42px;border-radius:7px;background:#e9f2ff;color:#1d4ed8;font-size:17px;font-variant-numeric:tabular-nums}.ft-progress-current strong{display:block;color:#172033;font-size:12px}.ft-progress-current p{margin:3px 0 0;color:#334155;font-size:13px;line-height:1.55}.ft-progress-current span{display:block;margin-top:3px;color:#8a5a12;font-size:12px}
.ft-secondary-actions,.ft-reopen-details,.ft-history-details{margin-top:10px;border-top:1px solid #e4eaf2}.ft-secondary-actions>summary,.ft-reopen-details>summary,.ft-history-details>summary{padding:10px 1px;color:#42526a;font-size:12px;font-weight:800;cursor:pointer}.ft-history-details>summary{display:flex;align-items:center;justify-content:space-between}.ft-history-details>summary span{color:#64748b;font-weight:650}
.ft-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 0 6px}.ft-progress-form,.ft-extension-area,.ft-reopen-form{display:grid;gap:8px;padding:11px;border:1px solid #dfe7f1;border-radius:8px;background:#fbfcfe}.ft-progress-form>strong,.ft-extension-area>strong{color:#172033;font-size:13px}
.ft-progress-form label,.ft-extension-form label,.ft-extension-decision-form label,.ft-reopen-form label{display:grid;gap:4px;color:#475569;font-size:12px;font-weight:700}.ft-progress-form input,.ft-progress-form textarea,.ft-extension-form input,.ft-extension-form textarea,.ft-extension-decision-form input,.ft-extension-decision-form select,.ft-reopen-form input,.ft-reopen-form textarea{width:100%;box-sizing:border-box;border:1px solid #d7e0ec;border-radius:6px;background:#fff;color:#172033;padding:8px;font:500 13px/1.45 inherit}.ft-progress-form textarea,.ft-extension-form textarea,.ft-reopen-form textarea{resize:vertical}.ft-extension-form,.ft-extension-decision-form{display:grid;gap:8px}.ft-pending-record{padding:9px;border-left:3px solid #d97706;background:#fffaf0}.ft-pending-record p{margin:0;color:#7c2d12;font-size:13px}.ft-pending-record span,.ft-action-hint{display:block;margin:4px 0 0;color:#7c5b32;font-size:12px;line-height:1.5}
.ft-history-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.ft-history-summary span{padding:5px 8px;border:1px solid #dfe7f1;border-radius:999px;background:#f8fafc;color:#526174;font-size:12px}.ft-history-list{display:grid;border:1px solid #e4eaf2;border-radius:8px;overflow:hidden}.ft-history-list>div{display:grid;grid-template-columns:128px minmax(0,1fr) auto;gap:10px;padding:8px 10px;border-bottom:1px solid #edf1f6;background:#fff}.ft-history-list>div:last-child{border-bottom:0}.ft-history-list time,.ft-history-list span{color:#718096;font-size:12px}.ft-history-list p{margin:0;color:#334155;font-size:12px;line-height:1.5}.ft-history-empty{margin:0;color:#718096;font-size:12px}
.ft-track button:disabled{cursor:wait;opacity:.65}
html[data-theme="dark"] .ft-progress-current,html[data-theme="dark"] .ft-progress-form,html[data-theme="dark"] .ft-extension-area,html[data-theme="dark"] .ft-reopen-form,html[data-theme="dark"] .ft-history-list>div{background:#1b2940;border-color:#314158}html[data-theme="dark"] .ft-progress-current strong,html[data-theme="dark"] .ft-progress-current p,html[data-theme="dark"] .ft-progress-form>strong,html[data-theme="dark"] .ft-extension-area>strong{color:#e7eef8}html[data-theme="dark"] .ft-progress-form input,html[data-theme="dark"] .ft-progress-form textarea,html[data-theme="dark"] .ft-extension-form input,html[data-theme="dark"] .ft-extension-form textarea,html[data-theme="dark"] .ft-extension-decision-form input,html[data-theme="dark"] .ft-extension-decision-form select,html[data-theme="dark"] .ft-reopen-form input,html[data-theme="dark"] .ft-reopen-form textarea{background:#172235;color:#d8e1ee;border-color:#314158}html[data-theme="dark"] .ft-history-summary span{background:#172235;border-color:#314158;color:#c2cede}html[data-theme="dark"] .ft-history-list p{color:#d8e1ee}
@media(max-width:760px){.ft-secondary-grid{grid-template-columns:1fr}.ft-history-list>div{grid-template-columns:1fr;gap:3px}.ft-progress-current{grid-template-columns:48px minmax(0,1fr)}}
/* 风险评估责任链：评分、控制初评和清单复核必须能直接追溯到操作人。 */
.pra-risk-responsibility-chain {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d9e4f5;
  border-radius: 12px;
  background: #f8fbff;
}

.pra-risk-responsibility-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.pra-risk-responsibility-head div,
.pra-risk-responsibility-items div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pra-risk-responsibility-head span,
.pra-risk-responsibility-items span {
  color: #60718b;
  font-size: 12px;
}

.pra-risk-responsibility-head > small {
  max-width: 320px;
  color: #6b7a90;
  text-align: right;
}

.pra-risk-responsibility-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pra-risk-responsibility-items > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
}

.pra-risk-responsibility-items > div.is-complete {
  border-color: #b8dfce;
  background: #f3fbf7;
}

.pra-risk-responsibility-items strong {
  overflow: hidden;
  color: #24334b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pra-risk-responsibility-items .is-pending strong {
  color: #8a5a16;
}

.pra-risk-responsibility-items small,
.pra-risk-reviewer-state {
  color: #6d7d94;
  font-size: 12px;
}

.pra-risk-handoff-actions .pra-risk-reviewer-state {
  display: block;
}

@media (max-width: 900px) {
  .pra-risk-responsibility-head {
    display: block;
  }

  .pra-risk-responsibility-head > small {
    display: block;
    margin-top: 5px;
    max-width: none;
    text-align: left;
  }

  .pra-risk-responsibility-items {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .pra-risk-responsibility-chain {
  border-color: #35445d;
  background: #182233;
}

[data-theme="dark"] .pra-risk-responsibility-items > div {
  border-color: #39475d;
  background: #202b3d;
}

[data-theme="dark"] .pra-risk-responsibility-items > div.is-complete {
  border-color: #356b5b;
  background: #18352f;
}

[data-theme="dark"] .pra-risk-responsibility-items strong {
  color: #e7edf7;
}

/* 风险评估验收收束：清单为主工作面，事实来源、评分复核和正式输出按需进入。 */
.pra-risk-evidence-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 14px 0;
  padding: 10px 12px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #f8fbff;
}

.pra-risk-evidence-strip > div {
  min-width: 0;
}

.pra-risk-evidence-strip span,
.pra-risk-evidence-strip strong,
.pra-risk-evidence-strip small {
  display: block;
}

.pra-risk-evidence-strip span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.pra-risk-evidence-strip strong {
  margin-top: 2px;
  overflow: hidden;
  color: #24334b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pra-risk-evidence-strip small {
  margin-top: 2px;
  color: #6d7d94;
  font-size: 10px;
}

.pra-risk-review-views {
  margin: 12px 14px 14px;
  border: 1px solid #dbe5f0;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.pra-risk-review-views > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
}

.pra-risk-review-views > summary::-webkit-details-marker {
  display: none;
}

.pra-risk-review-views > summary span,
.pra-risk-review-views > summary strong,
.pra-risk-review-views > summary small {
  display: block;
}

.pra-risk-review-views > summary strong {
  color: #24334b;
  font-size: 13px;
}

.pra-risk-review-views > summary small {
  margin-top: 2px;
  color: #6d7d94;
  font-size: 10px;
}

.pra-risk-review-views > summary b {
  color: #2563eb;
  font-size: 11px;
  white-space: nowrap;
}

.pra-risk-review-views .pra-risk-visual-workbench {
  margin: 0;
  border-bottom: 0;
}

.pra-score-rubric {
  margin: 8px 12px 2px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
}

.pra-score-rubric > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #2b3a51;
  cursor: pointer;
  list-style: none;
}

.pra-score-rubric > summary::-webkit-details-marker {
  display: none;
}

.pra-score-rubric > summary span {
  font-size: 11px;
  font-weight: 800;
}

.pra-score-rubric > summary small {
  color: #718096;
  font-size: 9px;
}

.pra-score-rubric-table {
  border-top: 1px solid #e5ebf3;
}

.pra-score-rubric-table > div {
  display: grid;
  grid-template-columns: 50px minmax(220px, 1fr) minmax(240px, 1fr);
}

.pra-score-rubric-table > div > * {
  padding: 7px 9px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  color: #44536a;
  font-size: 10px;
  line-height: 1.45;
}

.pra-score-rubric-table > div > *:last-child {
  border-right: 0;
}

.pra-score-rubric-table > div:last-child > * {
  border-bottom: 0;
}

.pra-score-rubric-table .is-head {
  background: #f8fafc;
}

.pra-score-rubric-table strong {
  color: #1d4ed8;
  text-align: center;
}

.pra-risk-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .46);
}

.pra-risk-report-dialog {
  display: flex;
  flex-direction: column;
  width: min(1500px, 96vw);
  max-height: 92vh;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  overflow: hidden;
}

.pra-risk-report-dialog > header,
.pra-risk-report-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #e4eaf2;
}

.pra-risk-report-dialog > header span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.pra-risk-report-dialog > header h2 {
  margin: 3px 0;
  color: #172033;
  font-size: 19px;
}

.pra-risk-report-dialog > header p,
.pra-risk-report-dialog > footer small {
  margin: 0;
  color: #65758c;
  font-size: 11px;
}

.pra-risk-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e4eaf2;
  background: #f8fbff;
}

.pra-risk-report-summary > div {
  padding: 10px 18px;
  border-right: 1px solid #e4eaf2;
}

.pra-risk-report-summary > div:last-child {
  border-right: 0;
}

.pra-risk-report-summary span,
.pra-risk-report-summary strong {
  display: block;
}

.pra-risk-report-summary span {
  color: #65758c;
  font-size: 9px;
}

.pra-risk-report-summary strong {
  margin-top: 2px;
  color: #1f2d43;
  font-size: 15px;
}

.pra-risk-report-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid #e4eaf2;
}

.pra-risk-report-scope span {
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
}

.pra-risk-report-scope p {
  margin: 3px 0 0;
  color: #3f4e64;
  font-size: 11px;
  line-height: 1.5;
}

.pra-risk-report-table-wrap {
  min-height: 260px;
  overflow: auto;
}

.pra-risk-report-dialog table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pra-risk-report-dialog th,
.pra-risk-report-dialog td {
  padding: 9px 10px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  color: #3f4e64;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.pra-risk-report-dialog th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  color: #2b3a51;
  font-weight: 800;
}

.pra-risk-report-dialog th:nth-child(1) { width: 46px; white-space: nowrap; }
.pra-risk-report-dialog th:nth-child(2) { width: 140px; }
.pra-risk-report-dialog th:nth-child(3) { width: 280px; }
.pra-risk-report-dialog th:nth-child(4) { width: 100px; }
.pra-risk-report-dialog th:nth-child(5) { width: 190px; }
.pra-risk-report-dialog th:nth-child(6) { width: 170px; }
.pra-risk-report-dialog th:nth-child(7) { width: 150px; }
.pra-risk-report-dialog td small {
  display: block;
  margin-top: 3px;
  color: #748197;
}

.pra-risk-report-caption {
  padding: 10px 18px;
  border-bottom: 1px solid #e4eaf2;
  color: #26354b;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.pra-risk-report-dialog td > strong {
  color: #26354b;
  font-size: 10px;
}

.pra-risk-report-dialog .pra-risk-report-risk strong,
.pra-risk-report-dialog .pra-risk-report-risk p {
  display: block;
}

.pra-risk-report-dialog .pra-risk-report-risk p {
  margin: 4px 0 0;
  color: #44536a;
}

.pra-risk-report-chain {
  margin: 6px 0;
  padding-left: 8px;
  border-left: 2px solid #cbd9ee;
}

.pra-risk-report-chain p {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px;
}

.pra-risk-report-chain b {
  color: #64748b;
  font-size: 9px;
}

.pra-risk-report-control small,
.pra-risk-report-score small,
.pra-risk-report-score p {
  display: block;
  margin: 4px 0 0;
}

.pra-risk-report-score p {
  color: #44536a;
}

.pra-risk-report-scope-note,
.pra-risk-report-empty {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #e4eaf2;
  color: #65758c;
  font-size: 11px;
  line-height: 1.55;
}

.pra-risk-report-dialog tbody tr:hover td {
  background: #f8fbff;
}

.pra-risk-report-dialog td:first-child,
.pra-risk-report-dialog th:first-child {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pra-risk-report-dialog td:last-child > span {
  display: block;
  margin-top: 8px;
}

.pra-risk-report-dialog td .is-confirmed {
  color: #16804c;
  font-weight: 800;
}

.pra-risk-report-dialog td .is-draft {
  color: #a35d08;
  font-weight: 800;
}

.pra-risk-report-dialog > footer {
  border-top: 1px solid #e4eaf2;
  border-bottom: 0;
}

.pra-risk-report-dialog > footer > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .pra-risk-evidence-strip,
  .pra-risk-review-views > summary,
  .pra-risk-report-dialog > header,
  .pra-risk-report-dialog > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pra-risk-evidence-strip strong {
    white-space: normal;
  }

  .pra-score-rubric-table {
    overflow-x: auto;
  }

  .pra-score-rubric-table > div {
    min-width: 620px;
  }

  .pra-risk-report-overlay {
    padding: 8px;
  }

  .pra-risk-report-summary,
  .pra-risk-report-scope {
    grid-template-columns: 1fr 1fr;
  }
}

[data-theme="dark"] .pra-risk-evidence-strip,
[data-theme="dark"] .pra-risk-review-views,
[data-theme="dark"] .pra-score-rubric,
[data-theme="dark"] .pra-risk-report-dialog {
  border-color: #35445d;
  background: #182233;
}

[data-theme="dark"] .pra-risk-review-views > summary,
[data-theme="dark"] .pra-score-rubric-table .is-head,
[data-theme="dark"] .pra-risk-report-summary,
[data-theme="dark"] .pra-risk-report-dialog th {
  background: #202b3d;
}

[data-theme="dark"] .pra-risk-evidence-strip strong,
[data-theme="dark"] .pra-risk-review-views > summary strong,
[data-theme="dark"] .pra-score-rubric > summary,
[data-theme="dark"] .pra-risk-report-dialog > header h2,
[data-theme="dark"] .pra-risk-report-summary strong {
  color: #e7edf7;
}

/* 审计报告：目录在左、正文在右；编制之外的信息默认收起。 */
.report-editor-stage{
  width:100%;
  max-width:none;
}
.rp-editing-workbench{
  overflow:hidden;
  border:1px solid #d8e3ef;
  border-radius:16px;
  background:#fff;
}
.rpew-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 18px;
  border-bottom:1px solid #d8e3ef;
  background:linear-gradient(135deg,#fff,#f6faff);
}
.rpew-head span,
.rpew-nav-title span,
.rpfe-head span,
.rp-report-management>summary span,
.rp-delivery-support>summary span{
  display:block;
  color:#2563eb;
  font-size:13px;
  font-weight:900;
  letter-spacing:.06em;
}
.rpew-head strong{
  display:block;
  margin-top:3px;
  color:#0f172a;
  font-size:22px;
}
.rpew-head p{
  margin:4px 0 0;
  color:#64748b;
  font-size:14px;
}
.rpew-metrics{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.rpew-metrics span{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:92px;
  padding:8px 10px;
  border:1px solid #dbe5f2;
  border-radius:10px;
  background:#fff;
  color:#64748b;
  font-size:12px;
  letter-spacing:0;
}
.rpew-metrics b{
  color:#1d4ed8;
  font-size:18px;
}
.rpew-layout{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  min-height:560px;
}
.rpew-nav{
  padding:14px;
  border-right:1px solid #d8e3ef;
  background:#f8fafc;
}
.rpew-nav-title{
  padding:2px 4px 12px;
}
.rpew-nav-title strong{
  display:block;
  margin-top:3px;
  color:#334155;
  font-size:15px;
}
.rpew-nav-row{
  display:grid;
  gap:4px;
  width:100%;
  padding:11px 12px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:#334155;
  text-align:left;
  cursor:pointer;
}
.rpew-nav-row:hover{
  border-color:#bfdbfe;
  background:#fff;
}
.rpew-nav-row span{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.rpew-nav-row strong{
  color:#172033;
  font-size:14px;
  line-height:1.4;
}
.rpew-nav-row.summary,
.rpew-nav-row.management{
  margin-bottom:8px;
  border-color:#dbe5f2;
  background:#fff;
}
.rpew-nav-row.summary.active,
.rpew-issue-wrap.active .rpew-nav-row{
  border-color:#2563eb;
  background:#eff6ff;
  box-shadow:0 6px 16px rgba(37,99,235,.08);
}
.rpew-issue-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px;
  gap:4px;
  margin-bottom:6px;
}
.rpew-nav-row.issue{
  border-left:4px solid #94a3b8;
  background:#fff;
}
.rpew-nav-row.issue.ready{border-left-color:#16a34a}
.rpew-nav-row.issue.warn{border-left-color:#f59e0b}
.rpew-nav-row.issue.pending{border-left-color:#f97316}
.rpew-nav-row.issue.excluded{border-left-color:#94a3b8;opacity:.72}
.rpew-order{
  display:grid;
  gap:3px;
}
.rpew-order button{
  padding:0;
  border:1px solid #dbe5f2;
  border-radius:7px;
  background:#fff;
  color:#64748b;
  cursor:pointer;
}
.rpew-order button:hover{
  border-color:#93c5fd;
  color:#1d4ed8;
}
.rpew-nav-empty{
  padding:14px 10px;
  color:#64748b;
  font-size:13px;
}
.rpew-editor{
  min-width:0;
  padding:18px;
  background:#fff;
}
.rp-narrative-editor,
.rp-finding-editor{
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:#fff;
}
.rpn-source-drawer{
  margin:12px 0;
  border:1px solid #dbe5f2;
  border-radius:11px;
  background:#f8fafc;
}
.rpn-source-drawer>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 13px;
  cursor:pointer;
  list-style:none;
}
.rpn-source-drawer>summary::-webkit-details-marker{display:none}
.rpn-source-drawer>summary span{color:#334155;font-size:14px;font-weight:800}
.rpn-source-drawer>summary strong{color:#64748b;font-size:12px}
.rpn-source-drawer .rpn-source-grid{padding:0 12px 12px}
.rpfe-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:13px;
  border-bottom:1px solid #e2e8f0;
}
.rpfe-head h3{
  margin:4px 0;
  color:#0f172a;
  font-size:22px;
}
.rpfe-head p{
  margin:0;
  color:#64748b;
  font-size:13px;
}
.rpfe-head>b{
  flex:0 0 auto;
  white-space:nowrap;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}
.rpfe-head>b.ready{background:#dcfce7;color:#15803d}
.rpfe-head>b.warn,.rpfe-head>b.pending{background:#ffedd5;color:#c2410c}
.rpfe-head>b.excluded{background:#e2e8f0;color:#475569}
.rpfe-missing{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  padding:10px 12px;
  border:1px solid #fed7aa;
  border-radius:10px;
  background:#fff7ed;
  color:#9a3412;
  font-size:13px;
}
.rpfe-edit-note{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:10px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}
.rpfe-edit-note strong{color:#1d4ed8;font-size:13px}
.rpfe-edit-note span{color:#52637a;font-size:12px}
.rpfe-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid #dbe5f2;border-radius:12px;background:#f8fafc}
.rpfe-form label{display:grid;gap:6px;min-width:0;color:#334155;font-size:13px;font-weight:800}
.rpfe-form label.wide{grid-column:1/-1}
.rpfe-form input,.rpfe-form textarea,.rpfe-form select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172033;font:inherit;font-weight:500;line-height:1.55}
.rpfe-form input,.rpfe-form select{height:40px;padding:0 11px}
.rpfe-form textarea{min-height:92px;padding:9px 11px;resize:vertical}
.rpfe-form input:focus,.rpfe-form textarea:focus,.rpfe-form select:focus{outline:2px solid rgba(37,99,235,.16);border-color:#2563eb}
.rpfe-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.rpfe-actions>span{color:#64748b;font-size:12px;line-height:1.5}
.rpfe-actions>div{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.rpfe-body{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
}
.rpfe-body section{
  min-height:88px;
  padding:13px 15px;
  border-right:1px solid #e2e8f0;
  border-bottom:1px solid #e2e8f0;
}
.rpfe-body section:nth-child(2n){border-right:0}
.rpfe-body section.wide{
  grid-column:1/-1;
  border-right:0;
  border-bottom:0;
}
.rpfe-body span,
.rpfe-closeout span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}
.rpfe-body p,
.rpfe-closeout p{
  margin:6px 0 0;
  color:#172033;
  font-size:14px;
  line-height:1.65;
}
.rpfe-closeout{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.rpfe-closeout article{
  padding:12px 13px;
  border:1px solid #dbe5f2;
  border-radius:11px;
  background:#f8fafc;
}
.rpfe-closeout .btn{margin-top:9px}
.rp-compact-composer{
  margin:16px 0 0!important;
  padding:14px!important;
  background:#f8fafc!important;
}
.report-stage-two .rpcp-primary-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:end;
  margin-top:14px;
}
.report-stage-two .rpcp-core-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.report-stage-two .rpcp-core-fields>label{
  display:grid;
  gap:5px;
  min-width:0;
  color:#334155;
  font-size:12px;
  font-weight:800;
}
.report-stage-two .rpcp-core-fields select{
  width:100%;
  min-width:0;
  min-height:40px;
}
.report-stage-two .rpcp-core-fields #rp-type-help{
  min-height:0;
  color:#64748b;
  font-size:11px;
  font-weight:500;
  line-height:1.4;
}
.report-stage-two .rpcp-primary-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding-bottom:1px;
  white-space:nowrap;
}
.report-stage-two .rpcp-layout-options{
  margin-top:10px;
  border:1px solid #dbe5f2;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}
.report-stage-two .rpcp-layout-options>summary{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  list-style:none;
}
.report-stage-two .rpcp-layout-options>summary::-webkit-details-marker{display:none}
.report-stage-two .rpcp-layout-options>summary span{color:#334155;font-size:13px;font-weight:900}
.report-stage-two .rpcp-layout-options>summary strong{color:#1d4ed8;font-size:12px}
.report-stage-two .rpcp-layout-options>summary small{color:#64748b;font-size:12px;font-weight:500}
.report-stage-two .rpcp-layout-options-body{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(220px,1fr);
  gap:12px;
  align-items:center;
  padding:12px;
  border-top:1px solid #dbe5f2;
  background:#f8fafc;
}
.report-stage-two .rpcp-layout-options-body .rpcp-check{
  white-space:normal;
}
.report-stage-two .rpcp-layout-options-body .rpcp-check span{
  grid-column:2;
  color:#64748b;
  font-size:11px;
  font-weight:500;
}
.report-stage-two .rpcp-signoff{
  margin-top:10px;
  border:1px solid #dbe5f2;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}
.report-stage-two .rpcp-signoff>summary{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  list-style:none;
}
.report-stage-two .rpcp-signoff>summary::-webkit-details-marker{display:none}
.report-stage-two .rpcp-signoff>summary span{color:#334155;font-size:13px;font-weight:900}
.report-stage-two .rpcp-signoff>summary strong{color:#1d4ed8;font-size:12px}
.report-stage-two .rpcp-signoff>summary small{color:#64748b;font-size:12px;font-weight:500}
.report-stage-two .rpcp-signoff-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:12px;
  border-top:1px solid #dbe5f2;
  background:#f8fafc;
}
.report-stage-two .rpcp-signoff-grid>label{
  display:grid;
  gap:5px;
  color:#334155;
  font-size:12px;
  font-weight:800;
}
.report-stage-two .rpcp-signoff-grid input:not([type="checkbox"]){
  min-width:0;
  height:38px;
  padding:0 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font:inherit;
}
.report-stage-two .rpcp-signoff-grid .wide{grid-column:span 2}
.report-stage-two .rpcp-signoff-grid .rpcp-evidence-check{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  align-self:end;
  min-height:38px;
}
.report-stage-two .rpcp-signoff-grid .rpcp-evidence-check span{
  flex-basis:100%;
  padding-left:24px;
  color:#64748b;
  font-size:12px;
  font-weight:400;
}
.report-stage-two .rpcp-signoff-grid .rpcp-evidence-check:has(input:disabled){
  color:#94a3b8;
}
.rp-report-management,
.rp-delivery-support{
  margin-top:12px;
  border:1px solid #d8e3ef;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.rp-report-management>summary,
.rp-delivery-support>summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:13px 16px;
  cursor:pointer;
  list-style:none;
  background:#f8fafc;
}
.rp-report-management>summary::-webkit-details-marker,
.rp-delivery-support>summary::-webkit-details-marker{display:none}
.rp-report-management>summary strong,
.rp-delivery-support>summary strong{
  display:block;
  margin-top:2px;
  color:#334155;
  font-size:15px;
}
.rp-report-management>summary small,
.rp-delivery-support>summary small{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:12px;
}
.rp-report-management>summary>b,
.rp-delivery-support>summary>b{
  color:#1d4ed8;
  font-size:13px;
}
.rp-report-management-body,
.rp-delivery-support-body{
  padding:14px;
  border-top:1px solid #d8e3ef;
}
.rp-delivery-support-body .project-quality-content{margin:0 0 10px}
.rp-delivery-support-body .pq-summary{
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  padding:11px 13px;
  border-radius:10px 10px 0 0;
}
.rp-delivery-support-body .pq-summary-main p{margin-top:2px;font-size:12px}
.rp-delivery-support-body .pq-decision{
  display:block;
  padding:0;
  border:0;
  background:transparent;
}
.rp-delivery-support-body .pq-decision-main,
.rp-delivery-support-body .pq-decision-side{display:none}
.rp-delivery-support-body .pq-handoff-desk{
  grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr);
  border-radius:0 0 10px 10px;
}
.rp-delivery-support-body .pq-handoff-list{gap:6px;padding:10px}
.rp-delivery-support-body .pq-handoff-list>span{display:none}
.rp-delivery-support-body .pq-handoff-list>strong{font-size:14px}
.rp-delivery-support-body .pq-handoff-item{gap:2px;padding:7px 9px;border-radius:8px}
.rp-delivery-support-body .pq-handoff-item small{display:none}
.rp-delivery-support-body .pq-handoff-current{gap:9px;padding:11px 13px}
.rp-delivery-support-body .pq-handoff-current h4{font-size:16px}
.rp-delivery-support-body .pq-handoff-current p{font-size:12px}
.rp-delivery-support-body .pq-handoff-current dl{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  padding-top:8px;
  border-top:1px solid #e2e8f0;
}
.rp-delivery-support-body .pq-handoff-current dl div{
  display:flex;
  align-items:baseline;
  gap:5px;
  padding:0;
  border:0;
  background:transparent;
}
.rp-delivery-support-body .pq-handoff-current dt{font-size:14px}
.rp-delivery-support-body .pq-handoff-current dd{margin:0;font-size:11px}
.rp-delivery-support-body .pq-review{
  grid-template-columns:110px minmax(0,1fr) auto;
  padding:10px 13px;
  border-radius:0 0 10px 10px;
}
.rp-delivery-support-body .rp-archive-panel{margin-top:10px;border-radius:10px;overflow:hidden}
.rp-delivery-support-body .rpa-head{align-items:center;padding:11px 13px}
.rp-delivery-support-body .rpa-head span,
.rp-delivery-support-body .rpa-head p{display:none}
.rp-delivery-support-body .rpa-head strong{margin:0;font-size:15px}
.rp-delivery-support-body .rpa-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  padding:9px 13px;
}
.rp-delivery-support-body .rpa-metrics span{padding:0;border:0;font-size:11px}
.rp-delivery-support-body .rpa-metrics strong{font-size:14px}
.rp-delivery-support-body .rpa-blockers,
.rp-delivery-support-body .rpa-actions{padding:10px 13px}
.rp-dossier-support{margin-top:10px;border:1px solid #d8e3ef;border-radius:10px;background:#fff;overflow:hidden}
.rp-dossier-support>summary{padding:10px 13px;color:#334155;font-size:13px;font-weight:800;cursor:pointer}
.rpm-status{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  padding:10px 12px;
  border:1px solid #dbe5f2;
  border-radius:10px;
  background:#f8fafc;
}
.rpm-status span{color:#64748b;font-size:12px}
.rpm-status strong{margin-right:auto;color:#172033;font-size:14px}
.rpm-gate{
  margin-bottom:12px;
  border:1px solid #dbe5f2;
  border-radius:10px;
}
.rpm-gate>summary{
  padding:10px 12px;
  cursor:pointer;
  color:#334155;
  font-size:13px;
  font-weight:800;
}
.rpm-gate>.rp-final-gate,
.rpm-gate>#rp-final-gate-content>.rp-final-gate{
  margin:0;
  border:0;
  border-top:1px solid #dbe5f2;
  border-radius:0;
}
.rpg-blockers ol{display:grid;gap:5px;margin:8px 0 6px;padding-left:22px;color:#9a3412}
.rpg-pass{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px;padding:11px 13px;border:1px solid #bbf7d0;border-radius:10px;background:#ecfdf5}
.rpg-pass strong{color:#047857;font-size:13px}.rpg-pass span{color:#166534;font-size:12px}
.rp-version-preview-layer{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:28px;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.rp-version-preview-dialog{display:grid;grid-template-rows:auto auto minmax(0,1fr);width:min(1120px,96vw);height:min(860px,92vh);overflow:hidden;border:1px solid #dbe5f2;border-radius:16px;background:#f8fafc;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.rp-version-preview-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #dbe5f2;background:#fff}
.rp-version-preview-dialog>header span{display:block;color:#2563eb;font-size:12px;font-weight:900}.rp-version-preview-dialog>header strong{display:block;margin-top:3px;color:#0f172a;font-size:19px}.rp-version-preview-dialog>header p{margin:4px 0 0;color:#64748b;font-size:12px}
.rp-version-preview-dialog>header button{display:grid;place-items:center;width:34px;height:34px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#475569;font-size:22px;cursor:pointer}
.rp-version-preview-notice{padding:9px 18px;border-bottom:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:12px}
.rp-version-preview-document{overflow:auto;padding:20px;background:#eef2f7}.rp-version-preview-document>.report-container,.rp-version-preview-document>.report{margin:0 auto!important;box-shadow:0 8px 30px rgba(15,23,42,.08)}
.rp-version-preview-empty{display:grid;place-items:center;min-height:280px;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:12px}
.rp-editor-empty{
  display:grid;
  place-items:center;
  min-height:260px;
  color:#64748b;
}
.rp-editor-empty strong{color:#334155;font-size:18px}
html[data-theme="dark"] .rp-editing-workbench,
html[data-theme="dark"] .rpew-editor,
html[data-theme="dark"] .rp-narrative-editor,
html[data-theme="dark"] .rp-finding-editor,
html[data-theme="dark"] .rp-report-management,
html[data-theme="dark"] .rp-delivery-support{background:#172235;border-color:#314158}
html[data-theme="dark"] .rpew-nav{background:#111827;border-color:#314158}
html[data-theme="dark"] .rpew-head,
html[data-theme="dark"] .rpew-nav-row,
html[data-theme="dark"] .rpfe-closeout article,
html[data-theme="dark"] .rp-compact-composer{background:#1b2940;border-color:#314158}
html[data-theme="dark"] .report-stage-two .rpcp-signoff,
html[data-theme="dark"] .report-stage-two .rpcp-signoff-grid{background:#1b2940;border-color:#314158}
html[data-theme="dark"] .report-stage-two .rpcp-signoff-grid input:not([type="checkbox"]){background:#111827;border-color:#475569;color:#e2e8f0}
html[data-theme="dark"] .rpfe-edit-note,html[data-theme="dark"] .rpfe-form{background:#1b2940;border-color:#314158}
html[data-theme="dark"] .rpfe-form input,html[data-theme="dark"] .rpfe-form textarea,html[data-theme="dark"] .rpfe-form select{background:#111827;border-color:#475569;color:#e2e8f0}
html[data-theme="dark"] .rpfe-form label{color:#cbd5e1}
html[data-theme="dark"] .rpew-head strong,
html[data-theme="dark"] .rpew-nav-row strong,
html[data-theme="dark"] .rpfe-head h3,
html[data-theme="dark"] .rpfe-body p,
html[data-theme="dark"] .rpfe-closeout p{color:#e2e8f0}
@media(max-width:1050px){
  .rpew-layout{grid-template-columns:250px minmax(0,1fr)}
  .rpfe-closeout{grid-template-columns:1fr}
  .report-stage-two .rpcp-primary-row{grid-template-columns:1fr}
  .report-stage-two .rpcp-primary-actions{justify-content:flex-start}
}
@media(max-width:760px){
  .rpew-head{align-items:flex-start;flex-direction:column}
  .rpew-layout{grid-template-columns:1fr}
  .rpew-nav{border-right:0;border-bottom:1px solid #d8e3ef}
  .rpfe-body{grid-template-columns:1fr}
  .rpfe-body section,.rpfe-body section:nth-child(2n){border-right:0}
  .rpfe-body section.wide{grid-column:auto}
  .rpfe-missing{align-items:stretch;flex-direction:column}
  .rpfe-form{grid-template-columns:1fr}.rpfe-form label.wide{grid-column:auto}.rpfe-actions,.rpfe-edit-note{align-items:stretch;flex-direction:column}.rpfe-actions>div{justify-content:flex-end}
  .report-stage-two .rpcp-signoff>summary{grid-template-columns:1fr auto}
  .report-stage-two .rpcp-signoff>summary small{grid-column:1/-1}
  .report-stage-two .rpcp-signoff-grid{grid-template-columns:1fr}
  .report-stage-two .rpcp-signoff-grid .wide{grid-column:auto}
  .report-stage-two .rpcp-core-fields,
  .report-stage-two .rpcp-layout-options-body{grid-template-columns:1fr}
  .report-stage-two .rpcp-primary-actions{align-items:stretch;flex-direction:column}
  .report-stage-two .rpcp-layout-options>summary{grid-template-columns:1fr auto}
  .report-stage-two .rpcp-layout-options>summary small{grid-column:1/-1}
  .rp-delivery-support-body .pq-summary,
  .rp-delivery-support-body .pq-handoff-desk,
  .rp-delivery-support-body .pq-review{grid-template-columns:1fr}
}

/* Bottom-paper delivery center: one directory, one active paper, no duplicate table. */
.wpm-stage-two .wpm-workpaper-desk{
  margin:0;
  border:1px solid #d8e3ef;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.wpm-stage-two .wpm-desk-head{
  align-items:flex-start;
  padding:14px 16px;
  background:#fff;
}
.wpm-stage-two .wpm-desk-head>div:first-child{max-width:720px}
.wpm-stage-two .wpm-desk-kpis{
  display:flex;
  align-items:stretch;
  gap:8px;
}
.wpm-stage-two .wpm-desk-kpis span{
  min-width:82px;
  padding:8px 10px;
  border:1px solid #dbe5f2;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
  font-size:11px;
  font-weight:700;
  letter-spacing:0;
  text-align:center;
}
.wpm-stage-two .wpm-desk-kpis strong{
  display:block;
  color:#172033;
  font-size:18px;
  line-height:1.1;
}
.wpm-stage-two .wpm-desk-kpis span.warn{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.wpm-stage-two .wpm-desk-kpis span.ready{background:#ecfdf5;border-color:#bbf7d0;color:#047857}
.wpm-stage-two .wpm-desk-layout{
  grid-template-columns:360px minmax(0,1fr);
  min-height:620px;
}
.wpm-stage-two .wpm-desk-list{
  display:block;
  max-height:none;
  padding:0;
  overflow:visible;
  background:#f8fafc;
}
.wpm-family-index{padding:12px;border-bottom:1px solid #dbe5f2}
.wpm-family-index-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
}
.wpm-family-index-head span{
  display:block;
  color:#2563eb;
  font-size:11px;
  font-weight:900;
}
.wpm-family-index-head strong{
  display:block;
  margin-top:2px;
  color:#172033;
  font-size:14px;
}
.wpm-family-index-head b{
  color:#c2410c;
  font-size:11px;
  white-space:nowrap;
}
.wpm-family-nav{display:grid;gap:4px}
.wpm-family-row{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 24px auto;
  align-items:center;
  gap:7px;
  width:100%;
  padding:7px 8px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#334155;
  text-align:left;
  cursor:pointer;
}
.wpm-family-row:hover{background:#fff;border-color:#cbd5e1}
.wpm-family-row.active{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.wpm-family-row>span{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:7px;
  background:#e2e8f0;
  color:#334155;
  font-size:12px;
  font-weight:900;
}
.wpm-family-row.active>span{background:#2563eb;color:#fff}
.wpm-family-row strong{font-size:13px}
.wpm-family-row em{
  color:#172033;
  font-size:12px;
  font-style:normal;
  font-weight:900;
  text-align:center;
}
.wpm-family-row small{
  color:#c2410c;
  font-size:10px;
  white-space:nowrap;
}
.wpm-family-all{
  margin-top:7px;
  padding:0;
  border:0;
  background:transparent;
  color:#2563eb;
  font-size:12px;
  cursor:pointer;
}
.wpm-family-boundary{
  margin:8px 0 0;
  color:#64748b;
  font-size:11px;
  line-height:1.5;
}
.wpm-directory-search{padding:10px 12px 6px}
.wpm-directory-search .wpm-search{
  width:100%;
  height:36px;
  padding:0 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  font-size:12px;
}
.wpm-paper-directory{padding:4px 10px 12px}
.wpm-paper-directory-empty{
  margin:8px 12px;
  padding:16px 10px;
  border:1px dashed #cbd5e1;
  border-radius:9px;
  color:#64748b;
  font-size:12px;
  text-align:center;
}
.wpm-paper-module{
  margin-bottom:7px;
  border:1px solid #dbe5f2;
  border-radius:9px;
  background:#fff;
  overflow:hidden;
}
.wpm-paper-module>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 9px;
  cursor:pointer;
  list-style:none;
}
.wpm-paper-module>summary::-webkit-details-marker{display:none}
.wpm-paper-module>summary strong{color:#172033;font-size:12px}
.wpm-paper-module>summary span{color:#64748b;font-size:10px}
.wpm-paper-program{border-top:1px solid #eef2f7}
.wpm-paper-program>div{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:6px;
  padding:7px 9px 5px;
  color:#64748b;
  font-size:10px;
}
.wpm-paper-program>div strong{overflow:hidden;color:#475569;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.wpm-paper-program>div em{font-style:normal}
.wpm-paper-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  width:calc(100% - 10px);
  margin:0 5px 5px;
  padding:8px;
  border:1px solid transparent;
  border-radius:8px;
  background:#f8fafc;
  text-align:left;
  cursor:pointer;
}
.wpm-paper-row:hover{border-color:#93c5fd;background:#f0f7ff}
.wpm-paper-row.active{border-color:#2563eb;background:#eff6ff}
.wpm-paper-row b{color:#1d4ed8;font-size:11px}
.wpm-paper-row span{
  overflow:hidden;
  color:#172033;
  font-size:12px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wpm-paper-row em{color:#c2410c;font-size:10px;font-style:normal;white-space:nowrap}
.wpm-paper-row.ready em{color:#047857}
.wpm-directory-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:10px 12px;
  border-top:1px solid #dbe5f2;
}
.wpm-stage-two .wpm-desk-detail{padding:16px 18px}
.wpm-stage-two .wpm-desk-empty{
  display:grid;
  place-items:center;
  align-content:center;
  min-height:420px;
  text-align:center;
}
.wpm-stage-two .wpm-desk-empty strong{color:#334155;font-size:18px}
.wpm-stage-two .wpm-desk-empty p{max-width:520px;color:#64748b;font-size:13px;line-height:1.6}
html[data-theme="dark"] .wpm-stage-two .wpm-workpaper-desk,
html[data-theme="dark"] .wpm-stage-two .wpm-desk-head,
html[data-theme="dark"] .wpm-stage-two .wpm-desk-detail,
html[data-theme="dark"] .wpm-paper-module,
html[data-theme="dark"] .wpm-directory-search .wpm-search{background:#172235;border-color:#314158}
html[data-theme="dark"] .wpm-stage-two .wpm-desk-list,
html[data-theme="dark"] .wpm-paper-row{background:#111827;border-color:#314158}
html[data-theme="dark"] .wpm-family-row strong,
html[data-theme="dark"] .wpm-paper-module>summary strong,
html[data-theme="dark"] .wpm-paper-row span{color:#e2e8f0}
@media(max-width:1050px){
  .wpm-stage-two .wpm-desk-head{flex-direction:column}
  .wpm-stage-two .wpm-desk-kpis{width:100%}
  .wpm-stage-two .wpm-desk-kpis span{flex:1}
  .wpm-stage-two .wpm-desk-layout{grid-template-columns:310px minmax(0,1fr)}
}
@media(max-width:760px){
  .wpm-stage-two .wpm-desk-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .wpm-stage-two .wpm-desk-layout{grid-template-columns:1fr}
  .wpm-stage-two .wpm-desk-list{border-right:0;border-bottom:1px solid #dbe5f2}
}

/* 审计发现：紧凑清单 + 单条处理，整改办理独立到项目整改页 */
.ff-finding-master-detail{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  min-height:560px;
  margin-top:14px;
  overflow:hidden;
  border:1px solid #dbe5f2;
  border-radius:16px;
  background:#fff;
}
.ff-finding-master{
  min-width:0;
  padding:10px;
  border-right:1px solid #e2e8f0;
  background:#f8fafc;
}
#ff-items{display:grid;gap:7px;align-content:start}
.ff-finding-row{
  display:block;
  width:100%;
  padding:11px 12px;
  border:1px solid #e2e8f0;
  border-left:4px solid #94a3b8;
  border-radius:11px;
  background:#fff;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.ff-finding-row:hover{border-color:#93c5fd;background:#f8fbff}
.ff-finding-row.active{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 2px rgba(59,130,246,.1)}
.ff-finding-row.critical{border-left-color:#dc2626}.ff-finding-row.high{border-left-color:#ea580c}.ff-finding-row.medium{border-left-color:#ca8a04}.ff-finding-row.low{border-left-color:#16a34a}
.ff-finding-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ff-finding-row-top>i{color:#94a3b8;font-size:.6rem;font-style:normal;font-weight:950;letter-spacing:.08em}
.ff-finding-row-top>span{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.ff-finding-row mark{white-space:nowrap}
.ff-finding-row>strong{
  display:-webkit-box;
  overflow:hidden;
  margin-top:8px;
  color:#172033;
  font-size:.78rem;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.ff-finding-row>small{
  display:block;
  overflow:hidden;
  margin-top:5px;
  color:#64748b;
  font-size:.64rem;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.finding-status.issue-stage{background:#e0f2fe;color:#075985}
.ff-selected-finding{min-width:0;padding:16px;background:#fff}
.ff-selected-finding>.finding-card{
  position:relative;
  margin:0;
  padding:18px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-left-width:5px!important;
  border-radius:16px;
  background:#fff;
  box-shadow:none;
}
.ff-selected-finding>.finding-card.critical{border-left-color:#dc2626!important}.ff-selected-finding>.finding-card.high{border-left-color:#ea580c!important}.ff-selected-finding>.finding-card.medium{border-left-color:#ca8a04!important}.ff-selected-finding>.finding-card.low{border-left-color:#16a34a!important}
.ff-selected-empty{display:flex;min-height:420px;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#64748b;text-align:center}
.ff-selected-empty strong{color:#334155;font-size:.9rem}.ff-selected-empty span{font-size:.7rem}
.ff-remediation-operation{margin-top:16px;padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}
.ff-remediation-operation-head span{display:block;color:#2563eb;font-size:.61rem;font-weight:950;letter-spacing:.1em}
.ff-remediation-operation-head strong{display:block;margin-top:4px;color:#0f172a;font-size:.86rem}
.ff-remediation-operation>.ft-track{margin-top:0;padding-top:0}
.ft-plan-more{
  border-top:1px dashed #dbe3ed;
  padding-top:8px;
}
.ft-plan-more>summary{
  color:#52637a;
  font-size:.7rem;
  font-weight:850;
  cursor:pointer;
  list-style:none;
}
.ft-plan-more>summary::-webkit-details-marker{display:none}
.ft-plan-more>summary::before{content:'+';display:inline-block;width:18px;color:#2563eb;font-size:.78rem;font-weight:950}
.ft-plan-more[open]>summary::before{content:'−'}
.ft-plan-more-body{display:grid;gap:8px;margin-top:9px}
html[data-theme="dark"] .ff-finding-master-detail,html[data-theme="dark"] .ff-selected-finding,html[data-theme="dark"] .ff-selected-finding>.finding-card,html[data-theme="dark"] .ff-finding-row,html[data-theme="dark"] .ff-remediation-operation{background:#172235;border-color:#314158}
html[data-theme="dark"] .ff-finding-master{background:#111827;border-color:#314158}
html[data-theme="dark"] .ff-finding-row.active{background:#172b48;border-color:#3b82f6}
html[data-theme="dark"] .ff-finding-row>strong,html[data-theme="dark"] .ff-remediation-operation-head strong{color:#e2e8f0}
@media(max-width:980px){.ff-finding-master-detail{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:760px){
  .ff-finding-master-detail{grid-template-columns:1fr}
  .ff-finding-master{max-height:360px;overflow:auto;border-right:0;border-bottom:1px solid #e2e8f0}
  .ff-selected-finding{padding:10px}
}
/* Internal-control boundary: reference library vs project evaluation */
.ic-library-reference{display:grid;gap:18px;min-width:0}
.ic-library-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:24px;align-items:center;padding:24px;border:1px solid #cfe0f7;border-radius:16px;background:linear-gradient(135deg,#f8fbff 0%,#eef7ff 55%,#f1fbf7 100%)}
.ic-library-hero>div:first-child>span,.ic-library-project-route>div>span,.ic-library-detail-head span{display:block;margin-bottom:6px;color:#2563eb;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.ic-library-hero h3{margin:0;color:#172033;font-size:1.35rem}
.ic-library-hero p,.ic-library-project-route p,.ic-library-detail-head p{margin:8px 0 0;color:#53657d;line-height:1.7}
.ic-library-boundaries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ic-library-boundaries article{display:grid;gap:3px;padding:14px;border:1px solid rgba(148,163,184,.28);border-radius:12px;background:rgba(255,255,255,.82)}
.ic-library-boundaries b{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#dbeafe;color:#1d4ed8}
.ic-library-boundaries strong{color:#1f2d42}
.ic-library-boundaries small{color:#64748b;line-height:1.45}
.ic-library-project-route{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px;border:1px solid #dce7f5;border-radius:14px;background:#fff}
.ic-library-project-route>div>strong{display:block;color:#172033;font-size:1.05rem}
.ic-library-project-actions{display:flex;gap:10px;align-items:center}
.ic-library-task-list{grid-column:1/-1;display:grid;gap:8px;padding-top:14px;border-top:1px solid #e7edf5}
.ic-library-task-list article{display:grid;grid-template-columns:110px minmax(220px,1fr) minmax(200px,.8fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;background:#f8fafc}
.ic-library-task-list span{color:#1d4ed8;font-weight:700}
.ic-library-task-list strong{color:#253247}
.ic-library-task-list small{color:#64748b}
.ic-enterprise-map.is-reference-only .ic-map-domain.is-reference{border-color:#dbe5f1;background:#fff}
.ic-enterprise-map.is-reference-only .ic-map-domain.is-reference:hover,.ic-enterprise-map.is-reference-only .ic-map-control.is-reference:hover{border-color:#93b7e8;background:#f5f9ff}
.ic-enterprise-map.is-reference-only .ic-map-build-badge.is-reference,.ic-map-legend.is-reference{background:#e0ecff;color:#285a9f}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference .ic-map-build-dot{background:#60a5fa}
.ic-enterprise-map.is-reference-only .ic-enterprise-map-metrics{grid-template-columns:repeat(4,minmax(0,1fr));max-width:660px;justify-self:end;width:100%}
.ic-map-reference-note{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid #d7e3f2;border-radius:8px;background:#eef6ff;color:#315d8e;font-size:.72rem;font-weight:700}
.ic-enterprise-map.is-reference-only .ic-map-domain-row{grid-template-columns:42px minmax(320px,1fr) minmax(230px,300px)}
.ic-enterprise-map.is-reference-only .ic-map-domain-meta{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:10px 14px;border-right:0}
.ic-enterprise-map.is-reference-only .ic-map-domain-meta strong{color:#263b52;font-size:.8rem}
.ic-enterprise-map.is-reference-only .ic-map-domain-meta small{color:#6c7f93;font-size:.7rem;line-height:1.45}
.ic-enterprise-map.is-reference-only .ic-map-domain-meta .btn{margin-top:2px}
.ic-enterprise-map.is-reference-only .ic-map-tree-controls{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));padding-top:12px;padding-bottom:14px}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference{grid-template-columns:minmax(0,1fr);min-height:92px;padding:11px 12px;border-left:3px solid #60a5fa;border-radius:9px}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference>strong,.ic-enterprise-map.is-reference-only .ic-map-control.is-reference>small,.ic-enterprise-map.is-reference-only .ic-map-control.is-reference>em{grid-column:1;min-width:0}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference strong{font-size:.76rem;white-space:normal;line-height:1.45}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference small{font-size:.68rem;line-height:1.5}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference em{margin-top:6px;font-size:.65rem;line-height:1.45;white-space:normal}
.ic-library-detail{padding:20px;border:1px solid #d7e3f2;border-radius:14px;background:#fff}
.ic-library-detail.is-empty{background:#f8fafc}
.ic-library-detail-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.ic-library-detail-head h4{margin:0;color:#172033;font-size:1.15rem}
.ic-library-detail-head em{padding:5px 10px;border-radius:999px;background:#e0ecff;color:#285a9f;font-style:normal;font-weight:700;white-space:nowrap}
.ic-library-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.ic-library-detail-grid article{padding:14px;border:1px solid #e3eaf3;border-radius:10px;background:#f9fbfd}
.ic-library-detail-grid article>strong{color:#334155}
.ic-library-detail-grid ul{margin:8px 0 0;padding-left:18px;color:#53657d;line-height:1.65}
.ic-library-detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.ic-library-detail-meta span{display:grid;gap:4px;padding:11px 12px;border-radius:10px;background:#f1f5f9;color:#526174}
.ic-library-detail-meta b{color:#334155}
.ic-library-detail-boundary{margin:14px 0 0;padding:12px 14px;border-left:3px solid #60a5fa;background:#eff6ff;color:#415673;line-height:1.65}
html[data-theme="dark"] .ic-library-hero{border-color:#2f4b69;background:linear-gradient(135deg,#17263b,#173148)}
html[data-theme="dark"] .ic-library-hero h3,html[data-theme="dark"] .ic-library-project-route>div>strong,html[data-theme="dark"] .ic-library-task-list strong,html[data-theme="dark"] .ic-library-detail-head h4{color:#edf4ff}
html[data-theme="dark"] .ic-library-boundaries article,html[data-theme="dark"] .ic-library-project-route,html[data-theme="dark"] .ic-library-detail,html[data-theme="dark"] .ic-enterprise-map.is-reference-only .ic-map-domain.is-reference{border-color:#30445f;background:#172235;color:#d8e1ee}
html[data-theme="dark"] .ic-library-task-list article,html[data-theme="dark"] .ic-library-detail-grid article,html[data-theme="dark"] .ic-library-detail-meta span{background:#1b2940;border-color:#314158;color:#b8c5d8}
@media(max-width:980px){.ic-library-hero{grid-template-columns:1fr}.ic-library-project-route{grid-template-columns:1fr}.ic-library-project-actions{flex-wrap:wrap}.ic-library-task-list article{grid-template-columns:1fr}.ic-library-detail-grid,.ic-library-detail-meta{grid-template-columns:1fr}.ic-enterprise-map.is-reference-only .ic-enterprise-map-metrics{justify-self:start}.ic-enterprise-map.is-reference-only .ic-map-domain-row{grid-template-columns:42px minmax(0,1fr)}.ic-enterprise-map.is-reference-only .ic-map-domain-meta{grid-column:2}}

/* Enterprise control evidence mapping */
.ic-enterprise-source-desk{overflow:hidden;border:1px solid #cddced;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(31,65,109,.06)}
.ic-enterprise-source-desk>header{display:grid;grid-template-columns:minmax(320px,1fr) minmax(430px,.8fr) auto;gap:20px;align-items:center;padding:22px 24px;background:linear-gradient(135deg,#f8fbff 0%,#eef7ff 54%,#f2fbf7 100%)}
.ic-enterprise-source-desk>header>div:first-child>span{display:block;color:#1d63c7;font-size:.72rem;font-weight:900;letter-spacing:.08em}
.ic-enterprise-source-desk>header h3{margin:5px 0 0;color:#172a43;font-size:1.22rem}
.ic-enterprise-source-desk>header p{max-width:700px;margin:7px 0 0;color:#536983;font-size:.76rem;line-height:1.65}
.ic-enterprise-source-desk>header>.btn{min-width:132px;white-space:nowrap}
.ic-enterprise-source-kpis{display:grid;grid-template-columns:repeat(4,minmax(78px,1fr));overflow:hidden;border:1px solid #d7e3f1;border-radius:12px;background:rgba(255,255,255,.9)}
.ic-enterprise-source-kpis>span{display:grid;gap:2px;min-height:68px;place-content:center;padding:7px;border-left:1px solid #e3ebf4;color:#62758a;font-size:.62rem;text-align:center}
.ic-enterprise-source-kpis>span:first-child{border-left:0}.ic-enterprise-source-kpis strong{color:#17365e;font-size:1.02rem}
.ic-enterprise-use-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e3ebf4;border-bottom:1px solid #e3ebf4;background:#fbfdff}
.ic-enterprise-use-stages article{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;padding:13px 20px;border-left:1px solid #e3ebf4}
.ic-enterprise-use-stages article:first-child{border-left:0}.ic-enterprise-use-stages b{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#dcecff;color:#1e5fae;font-size:.74rem}.ic-enterprise-use-stages strong,.ic-enterprise-use-stages span{display:block}.ic-enterprise-use-stages strong{color:#253b55;font-size:.75rem}.ic-enterprise-use-stages span{margin-top:3px;color:#718196;font-size:.64rem;line-height:1.45}
.ic-enterprise-source-guide{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 20px;border-top:1px solid #e3ebf4;border-bottom:1px solid #e3ebf4;background:#fbfdff}.ic-enterprise-source-guide strong{flex:0 0 auto;color:#28517f;font-size:.7rem}.ic-enterprise-source-guide span{color:#65778c;font-size:.65rem;line-height:1.55;text-align:right}
.ic-enterprise-document-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px;padding:16px 20px;background:#fff}
.ic-enterprise-document-card{display:grid;overflow:hidden;min-width:0;border:1px solid #dce6f1;border-radius:11px;background:#fff}.ic-enterprise-document-card:hover,.ic-enterprise-document-card.is-active{border-color:#5a8bea;background:#f5f9ff;box-shadow:0 0 0 2px rgba(70,116,224,.08)}
.ic-enterprise-document-main{display:grid;gap:4px;min-width:0;padding:12px;border:0;background:transparent;text-align:left;cursor:pointer}.ic-enterprise-document-main span{color:#2563b8;font-size:.6rem;font-weight:800}.ic-enterprise-document-main strong{overflow:hidden;color:#263a52;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}.ic-enterprise-document-main small{overflow:hidden;color:#748397;font-size:.63rem;text-overflow:ellipsis;white-space:nowrap}.ic-enterprise-document-main em{width:max-content;margin-top:4px;padding:3px 7px;border-radius:999px;background:#fff5df;color:#9a5c0a;font-size:.59rem;font-style:normal;font-weight:800}.ic-enterprise-document-main em.is-active{background:#e8f7ef;color:#08724e}.ic-enterprise-document-main em.is-superseded{background:#eef2f6;color:#657386}.ic-enterprise-document-main em.is-inactive{background:#ffefed;color:#ad443d}
.ic-enterprise-document-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:36px;padding:7px 10px;border-top:1px solid #e7edf4;background:#fbfdff}.ic-enterprise-document-card>footer button{padding:4px 7px;border:1px solid #cbd8e7;border-radius:7px;background:#fff;color:#36506e;font:inherit;font-size:.6rem;font-weight:800;cursor:pointer}.ic-enterprise-document-card>footer button:hover{border-color:#4d7fe4;color:#205fb9}.ic-enterprise-document-card>footer button.is-danger{border-color:#efc4c0;color:#b6453d}.ic-enterprise-document-card>footer span{margin-right:auto;color:#7b8998;font-size:.58rem}
.ic-enterprise-source-empty{display:grid;place-items:center;gap:5px;min-height:104px;padding:18px;text-align:center}.ic-enterprise-source-empty strong{color:#334962;font-size:.82rem}.ic-enterprise-source-empty span{color:#718196;font-size:.68rem}
.ic-enterprise-lifecycle-note{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 20px;border-top:1px solid #d7e3f1;background:#eef6ff}.ic-enterprise-lifecycle-note strong{flex:0 0 auto;color:#245d9f;font-size:.7rem}.ic-enterprise-lifecycle-note span{color:#5f7288;font-size:.65rem;line-height:1.55;text-align:right}.ic-enterprise-lifecycle-note.is-draft{background:#fff8e9}.ic-enterprise-lifecycle-note.is-draft strong{color:#9a5c0a}.ic-enterprise-lifecycle-note.is-active{background:#edf9f3}.ic-enterprise-lifecycle-note.is-active strong{color:#08724e}.ic-enterprise-lifecycle-note.is-superseded,.ic-enterprise-lifecycle-note.is-inactive{background:#f3f5f8}.ic-enterprise-lifecycle-note.is-superseded strong,.ic-enterprise-lifecycle-note.is-inactive strong{color:#5f6f81}
.ic-enterprise-document-view{margin:0 20px 18px;overflow:hidden;border:1px solid #d7e2ee;border-radius:14px;background:#fff}.ic-enterprise-document-view>header{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:20px;align-items:center;padding:18px;border-bottom:1px solid #e3eaf2;background:linear-gradient(135deg,#fff,#f7fbff)}.ic-enterprise-document-view>header span{color:#2563b8;font-size:.64rem;font-weight:850}.ic-enterprise-document-view>header h4{margin:5px 0 0;color:#1e344d;font-size:1rem;line-height:1.4}.ic-enterprise-document-view>header p{margin:5px 0 0;color:#687b90;font-size:.67rem}.ic-enterprise-document-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid #dfe7f0;border-radius:10px;background:#fff}.ic-enterprise-document-meta span{display:grid;gap:3px;min-width:0;padding:10px 12px;border-left:1px solid #e7edf4;border-top:1px solid #e7edf4;color:#748397;font-size:.6rem}.ic-enterprise-document-meta span:nth-child(odd){border-left:0}.ic-enterprise-document-meta span:nth-child(-n+2){border-top:0}.ic-enterprise-document-meta strong{overflow:hidden;color:#263b52;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.ic-enterprise-document-warning{display:flex;align-items:center;gap:12px;margin:14px 16px 0;padding:10px 12px;border:1px solid #f0d49a;border-radius:9px;background:#fffaf0}.ic-enterprise-document-warning strong{color:#925b08;font-size:.67rem}.ic-enterprise-document-warning span{color:#7b6b51;font-size:.63rem}.ic-enterprise-document-sections{display:grid;gap:8px;padding:14px 16px}.ic-enterprise-document-sections>details{overflow:hidden;border:1px solid #dfe7f0;border-radius:10px;background:#fff}.ic-enterprise-document-sections>details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;cursor:pointer;list-style:none}.ic-enterprise-document-sections>details>summary::-webkit-details-marker{display:none}.ic-enterprise-document-sections>details>summary span,.ic-enterprise-document-sections>details>summary strong,.ic-enterprise-document-sections>details>summary small{display:block}.ic-enterprise-document-sections>details>summary strong{color:#2a4059;font-size:.72rem}.ic-enterprise-document-sections>details>summary small{margin-top:3px;color:#758499;font-size:.61rem}.ic-enterprise-document-sections>details>summary b{color:#2e69b9;font-size:.62rem}.ic-enterprise-document-sections>details[open]>summary{border-bottom:1px solid #e5ebf2;background:#f8fbff}.ic-enterprise-document-sections>details[open]>summary b{font-size:0}.ic-enterprise-document-sections>details[open]>summary b:after{content:'收起';font-size:.62rem}.ic-enterprise-document-sections pre{max-height:360px;overflow:auto;margin:0;padding:14px;background:#f8fafc;color:#3e5065;font:400 .64rem/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word}.ic-enterprise-document-control-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.ic-enterprise-document-control-groups section{min-width:0;padding:10px;border:1px solid #e3eaf2;border-radius:9px;background:#fbfcfe}.ic-enterprise-document-control-groups section>strong{display:block;margin-bottom:7px;color:#315d95;font-size:.68rem}.ic-enterprise-document-control-groups section>div{display:flex;flex-wrap:wrap;gap:5px}.ic-enterprise-document-control-groups section span{padding:3px 7px;border-radius:999px;background:#edf4ff;color:#385b85;font-size:.59rem}.ic-enterprise-document-note{margin:0;padding:14px;color:#52667d;font-size:.67rem;line-height:1.7}.ic-enterprise-document-view>.ic-enterprise-link-fields{margin:0 16px 14px}.ic-enterprise-document-view>.ic-enterprise-source-actions{border-top:1px solid #dfe7f0}
.ic-enterprise-source-editor{border-top:1px solid #d7e3f1;background:#f9fbfd}
.ic-enterprise-source-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin:18px 20px 0;padding:14px 16px;border:1px dashed #9fbee4;border-radius:12px;background:#f4f9ff}.ic-enterprise-source-upload input{display:none}.ic-enterprise-source-upload strong,.ic-enterprise-source-upload span{display:block}.ic-enterprise-source-upload strong{color:#27405d;font-size:.77rem}.ic-enterprise-source-upload span{margin-top:4px;color:#718196;font-size:.65rem}
.ic-enterprise-source-upload:focus{outline:3px solid rgba(77,127,228,.16);outline-offset:2px}.ic-enterprise-source-upload.is-dragover{border-color:#2f6fe5;background:#e9f3ff;box-shadow:inset 0 0 0 2px rgba(47,111,229,.14)}.ic-enterprise-source-upload.is-dragover strong{color:#174f9d}
.ic-enterprise-source-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 20px}.ic-enterprise-source-form label{display:grid;gap:6px;min-width:0}.ic-enterprise-source-form label.wide{grid-column:1/-1}.ic-enterprise-source-form label>span{color:#405771;font-size:.66rem;font-weight:800}.ic-enterprise-source-form input,.ic-enterprise-source-form select,.ic-enterprise-source-form textarea{width:100%;box-sizing:border-box;border:1px solid #cfdbea;border-radius:8px;padding:9px 10px;background:#fff;color:#23384f;font:inherit;font-size:.72rem;line-height:1.5}.ic-enterprise-source-form input:focus,.ic-enterprise-source-form select:focus,.ic-enterprise-source-form textarea:focus{border-color:#4d7fe4;outline:3px solid rgba(77,127,228,.1)}.ic-enterprise-source-form :disabled{background:#edf2f7;color:#64748b}
.ic-enterprise-mapping{margin:0 20px 18px;border:1px solid #d7e2ee;border-radius:12px;background:#fff}.ic-enterprise-mapping>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid #e5ecf4}.ic-enterprise-mapping>header strong,.ic-enterprise-mapping>header span{display:block}.ic-enterprise-mapping>header strong{color:#29415c;font-size:.76rem}.ic-enterprise-mapping>header span{margin-top:3px;color:#738399;font-size:.64rem}.ic-enterprise-mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:390px;overflow:auto;padding:12px}.ic-enterprise-mapping fieldset{min-width:0;margin:0;padding:10px;border:1px solid #e1e8f0;border-radius:9px}.ic-enterprise-mapping legend{padding:0 5px;color:#315d95;font-size:.68rem;font-weight:900}.ic-enterprise-mapping fieldset>label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;padding:7px 4px;border-top:1px solid #eef2f6;cursor:pointer}.ic-enterprise-mapping fieldset>label:first-of-type{border-top:0}.ic-enterprise-mapping input{margin-top:3px}.ic-enterprise-mapping label strong,.ic-enterprise-mapping label small{display:block}.ic-enterprise-mapping label strong{color:#334a64;font-size:.67rem;line-height:1.45}.ic-enterprise-mapping label small{margin-top:2px;color:#7b899a;font-size:.61rem;line-height:1.45}
.ic-enterprise-link-empty{display:grid;gap:3px;margin:0 12px 12px;padding:11px 12px;border:1px dashed #c9d7e7;border-radius:9px;background:#f8fbff}.ic-enterprise-link-empty strong{color:#39536f;font-size:.69rem}.ic-enterprise-link-empty span{color:#718196;font-size:.63rem;line-height:1.5}
.ic-enterprise-link-fields{margin:0 12px 12px;border:1px solid #d9e4ef;border-radius:10px;background:#f8fbff}.ic-enterprise-link-fields>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;list-style:none}.ic-enterprise-link-fields>summary::-webkit-details-marker{display:none}.ic-enterprise-link-fields>summary strong{color:#294d78;font-size:.7rem}.ic-enterprise-link-fields>summary span{color:#728297;font-size:.62rem}.ic-enterprise-link-fields>div{display:grid;gap:9px;max-height:480px;overflow:auto;padding:0 11px 11px}.ic-enterprise-link-fields article{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:9px;padding:10px;border:1px solid #dfe8f1;border-radius:9px;background:#fff}.ic-enterprise-link-fields article>header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}.ic-enterprise-link-fields article>header strong{color:#2e4761;font-size:.67rem}.ic-enterprise-link-fields article>header span{color:#3971b6;font-size:.58rem}.ic-enterprise-link-fields label{display:grid;gap:5px}.ic-enterprise-link-fields label>span{color:#5c6f84;font-size:.6rem;font-weight:800}.ic-enterprise-link-fields input,.ic-enterprise-link-fields textarea{width:100%;margin:0;padding:8px 9px;border:1px solid #cfdaE7;border-radius:7px;background:#fff;color:#31455d;font:inherit;font-size:.64rem;line-height:1.5}.ic-enterprise-link-fields :disabled{background:#f0f3f6;color:#64748b}
.ic-enterprise-source-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px;border-top:1px solid #d7e2ee;background:#fff}.ic-enterprise-source-actions>span{color:#64778d;font-size:.66rem}.ic-enterprise-source-actions>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ic-library-project-handoff{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border:1px solid #d9e5f2;border-radius:12px;background:#f8fbff}.ic-library-project-handoff span,.ic-library-project-handoff strong,.ic-library-project-handoff small{display:block}.ic-library-project-handoff span{color:#2d67b3;font-size:.63rem;font-weight:900}.ic-library-project-handoff strong{margin-top:3px;color:#263d58;font-size:.78rem}.ic-library-project-handoff small{margin-top:3px;color:#718196;font-size:.64rem}
.ic-map-coverage-legend{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #dce5ef;border-radius:999px;background:#fff;color:#5f7184;font-size:.6rem;font-weight:800}.ic-map-coverage-legend:before{content:"";width:8px;height:8px;border-radius:50%;background:#94a3b8}.ic-map-coverage-legend.is-confirmed:before{background:#16a06f}.ic-map-coverage-legend.is-draft:before{background:#d88413}.ic-map-coverage-legend.is-gap:before{background:#94a3b8}
.ic-map-coverage-legend.is-adequate:before{background:#169b68}.ic-map-coverage-legend.is-partial:before{background:#e19518}.ic-map-coverage-legend.is-pending:before{background:#3978db}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-adequate{border-color:#a8dfc9;border-left-color:#169b68;background:#f4fbf8}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-partial{border-color:#efd29c;border-left-color:#e19518;background:#fffaf0}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-pending{border-color:#b8d0f4;border-left-color:#3978db;background:#f4f8ff}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-unknown,.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-gap{border-color:#efc4c1;border-left-color:#d95d55;background:#fff7f6}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-no-source{border-color:#dce5ef;border-left-color:#94a3b8;background:#fbfcfd}
.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-confirmed{border-color:#a8dfc9;border-left-color:#16a06f;background:#f7fffb}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-draft{border-color:#efd29c;border-left-color:#d88413;background:#fffaf1}.ic-enterprise-map.is-reference-only .ic-map-control.is-reference.is-coverage-gap{border-color:#dce5ef;border-left-color:#94a3b8;background:#fbfcfd}
.ic-library-enterprise-evidence{margin-top:14px;padding:14px;border:1px solid #dce6f1;border-radius:10px;background:#fbfdff}.ic-library-enterprise-evidence>div:first-child{display:flex;justify-content:space-between;gap:12px}.ic-library-enterprise-evidence>div:first-child strong{color:#2e465f;font-size:.76rem}.ic-library-enterprise-evidence>div:first-child span{color:#6e8093;font-size:.64rem}.ic-library-enterprise-evidence>p{margin:9px 0 0;color:#718196;font-size:.67rem}.ic-enterprise-evidence-list{display:grid!important;gap:9px;margin-top:10px}.ic-enterprise-evidence-item{position:relative;display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,1.28fr);gap:11px;padding:11px 118px 11px 11px;border:1px solid #e0e8f1;border-left:4px solid #1b9a69;border-radius:9px;background:#fff}.ic-enterprise-evidence-item.is-draft{border-left-color:#d88413}.ic-enterprise-evidence-item.is-superseded{border-left-color:#94a3b8;background:#fafbfc}.ic-enterprise-evidence-item.is-inactive{border-left-color:#c95b54;background:#fffafa}.ic-enterprise-evidence-item>button{display:grid;gap:3px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.ic-enterprise-evidence-item>button span{color:#2c68ad;font-size:.58rem;font-weight:900}.ic-enterprise-evidence-item>button strong{color:#2d435c;font-size:.7rem}.ic-enterprise-evidence-item>button small,.ic-enterprise-evidence-item>div small{color:#758598;font-size:.59rem;line-height:1.45}.ic-enterprise-evidence-item>div b{display:block;color:#375471;font-size:.62rem}.ic-enterprise-evidence-item>div p{margin:4px 0;color:#566b82;font-size:.63rem;line-height:1.55}.ic-enterprise-evidence-item>em{position:absolute;top:11px;right:11px;padding:4px 7px;border-radius:999px;background:#e8f7ef;color:#08724e;font-size:.58rem;font-style:normal;font-weight:900}.ic-enterprise-evidence-item.is-draft>em{background:#fff3d9;color:#925907}.ic-enterprise-evidence-item.is-superseded>em{background:#eef2f6;color:#64748b}.ic-enterprise-evidence-item.is-inactive>em{background:#ffebe9;color:#a7433d}
.ic-library-review-action{align-items:center!important;margin-top:10px;padding-top:10px;border-top:1px solid #e5ecf4}.ic-library-review-action>span{padding:5px 8px;border-radius:999px;background:#edf2f7;color:#52657b!important;font-weight:900}.ic-library-review-action>span.is-adequate{background:#e8f7f0;color:#08724e!important}.ic-library-review-action>span.is-partial{background:#fff4db;color:#9a5b08!important}.ic-library-review-action>span.is-gap,.ic-library-review-action>span.is-unknown{background:#ffebe9;color:#b13d37!important}
.ic-enterprise-review-desk{margin-top:18px;overflow:hidden;border:1px solid #cddced;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(31,65,109,.06)}
.ic-enterprise-review-desk>header{display:grid;grid-template-columns:minmax(320px,1fr) minmax(390px,.7fr) auto;gap:18px;align-items:center;padding:20px 22px;background:linear-gradient(135deg,#f9fbff,#f3f8ff 58%,#f7fbf9)}
.ic-enterprise-review-desk>header>div:first-child>span{color:#1d63c7;font-size:.7rem;font-weight:900;letter-spacing:.08em}.ic-enterprise-review-desk>header h3{margin:4px 0 0;color:#172a43;font-size:1.12rem}.ic-enterprise-review-desk>header p{max-width:720px;margin:6px 0 0;color:#5f7187;font-size:.72rem;line-height:1.6}
.ic-enterprise-review-kpis{display:grid;grid-template-columns:repeat(4,minmax(72px,1fr));overflow:hidden;border:1px solid #d7e3f1;border-radius:11px;background:#fff}.ic-enterprise-review-kpis span{display:grid;gap:2px;min-height:62px;place-content:center;padding:7px;border-left:1px solid #e5ebf3;color:#65768a;font-size:.6rem;text-align:center}.ic-enterprise-review-kpis span:first-child{border-left:0}.ic-enterprise-review-kpis strong{color:#18395f;font-size:.98rem}.ic-enterprise-review-kpis .is-adequate strong{color:#08724e}.ic-enterprise-review-kpis .is-issue strong{color:#b25b10}
.ic-enterprise-review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-top:1px solid #e0e8f1;border-bottom:1px solid #e0e8f1;background:#fff}.ic-enterprise-review-toolbar strong,.ic-enterprise-review-toolbar span{display:block}.ic-enterprise-review-toolbar strong{color:#304861;font-size:.75rem}.ic-enterprise-review-toolbar span{margin-top:2px;color:#748497;font-size:.62rem}.ic-enterprise-review-toolbar>div:last-child{display:flex;flex-wrap:wrap;gap:7px}.ic-enterprise-review-toolbar button{padding:7px 10px;border:1px solid #d6e1ed;border-radius:999px;background:#fff;color:#586c83;font-size:.64rem;font-weight:800;cursor:pointer}.ic-enterprise-review-toolbar button.is-active{border-color:#3d78dc;background:#edf4ff;color:#1f5db9}
.ic-enterprise-review-body{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);min-height:520px}.ic-enterprise-review-list{max-height:680px;overflow:auto;border-right:1px solid #dfe7f0;background:#f8fafc}.ic-enterprise-review-list>button{position:relative;display:grid;width:100%;gap:3px;padding:12px 84px 12px 15px;border:0;border-bottom:1px solid #e3eaf2;background:transparent;text-align:left;cursor:pointer}.ic-enterprise-review-list>button:hover,.ic-enterprise-review-list>button.is-active{background:#fff}.ic-enterprise-review-list>button.is-active{box-shadow:inset 3px 0 #3978db}.ic-enterprise-review-list span,.ic-enterprise-review-list strong,.ic-enterprise-review-list small{display:block}.ic-enterprise-review-list span{color:#718298;font-size:.59rem}.ic-enterprise-review-list strong{color:#2e455f;font-size:.69rem;line-height:1.45}.ic-enterprise-review-list small{color:#7b8999;font-size:.6rem;line-height:1.4}.ic-enterprise-review-list em{position:absolute;top:14px;right:12px;padding:4px 7px;border-radius:999px;background:#edf2f7;color:#64748b;font-size:.58rem;font-style:normal;font-weight:900}.ic-enterprise-review-list .is-adequate em{background:#e7f7ef;color:#08724e}.ic-enterprise-review-list .is-partial em{background:#fff2d4;color:#985805}.ic-enterprise-review-list .is-gap em,.ic-enterprise-review-list .is-unknown em{background:#ffebe9;color:#af3e38}.ic-enterprise-review-list .is-pending em{background:#eaf2ff;color:#2a62b7}
.ic-enterprise-review-detail{min-width:0;padding:18px 20px}.ic-enterprise-review-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.ic-enterprise-review-detail-head span,.ic-enterprise-review-detail-head h4,.ic-enterprise-review-detail-head p{display:block}.ic-enterprise-review-detail-head span{color:#4772a8;font-size:.62rem;font-weight:800}.ic-enterprise-review-detail-head h4{margin:4px 0 0;color:#1e3652;font-size:.92rem}.ic-enterprise-review-detail-head p{margin:5px 0 0;color:#6a7c91;font-size:.67rem;line-height:1.5}.ic-enterprise-review-detail-head>em{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#edf2f7;color:#64748b;font-size:.61rem;font-style:normal;font-weight:900}.ic-enterprise-review-detail-head>em.is-adequate{background:#e7f7ef;color:#08724e}.ic-enterprise-review-detail-head>em.is-partial{background:#fff2d4;color:#985805}.ic-enterprise-review-detail-head>em.is-gap,.ic-enterprise-review-detail-head>em.is-unknown{background:#ffebe9;color:#af3e38}.ic-enterprise-review-detail-head>em.is-pending{background:#eaf2ff;color:#2a62b7}
.ic-enterprise-review-sources{margin-top:14px;padding:13px;border:1px solid #dce6f1;border-radius:10px;background:#fbfdff}.ic-enterprise-review-sources>div:first-child{display:flex;justify-content:space-between;gap:12px}.ic-enterprise-review-sources>div:first-child strong{color:#2f475f;font-size:.72rem}.ic-enterprise-review-sources>div:first-child span{color:#758598;font-size:.61rem}.ic-enterprise-review-docs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.ic-enterprise-review-docs label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;min-width:230px;padding:8px;border:1px solid #dfe7f0;border-radius:8px;background:#fff;cursor:pointer}.ic-enterprise-review-docs strong,.ic-enterprise-review-docs small{display:block}.ic-enterprise-review-docs strong{color:#344b64;font-size:.64rem}.ic-enterprise-review-docs small{margin-top:2px;color:#7b8999;font-size:.58rem}
.ic-enterprise-review-candidates{display:grid;gap:7px;margin-top:12px}.ic-enterprise-review-candidates>strong{color:#36506c;font-size:.67rem}.ic-enterprise-review-candidates button{position:relative;padding:9px 95px 9px 10px;border:1px solid #e0e8f1;border-radius:8px;background:#fff;text-align:left;cursor:pointer}.ic-enterprise-review-candidates button:hover{border-color:#7ca7e6;background:#f8fbff}.ic-enterprise-review-candidates span{color:#2e64a7;font-size:.6rem;font-weight:800}.ic-enterprise-review-candidates p{margin:4px 0 0;color:#576b81;font-size:.62rem;line-height:1.55}.ic-enterprise-review-candidates em{position:absolute;top:9px;right:9px;color:#7a899b;font-size:.56rem;font-style:normal}.ic-enterprise-review-empty{margin:10px 0 0;padding:9px;border-radius:8px;background:#fff7e8;color:#8a5a15;font-size:.63rem;line-height:1.5}
.ic-enterprise-review-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:14px}.ic-enterprise-review-form label{display:grid;gap:5px}.ic-enterprise-review-form label.wide{grid-column:1/-1}.ic-enterprise-review-form label>span{color:#405771;font-size:.64rem;font-weight:800}.ic-enterprise-review-form input,.ic-enterprise-review-form select,.ic-enterprise-review-form textarea{width:100%;box-sizing:border-box;border:1px solid #cfdbea;border-radius:8px;padding:9px 10px;background:#fff;color:#23384f;font:inherit;font-size:.68rem;line-height:1.5}.ic-enterprise-review-form input:focus,.ic-enterprise-review-form select:focus,.ic-enterprise-review-form textarea:focus{border-color:#4d7fe4;outline:3px solid rgba(77,127,228,.1)}
.ic-enterprise-review-detail>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding-top:13px;border-top:1px solid #e2e9f1}.ic-enterprise-review-detail>footer strong,.ic-enterprise-review-detail>footer span,.ic-enterprise-review-detail>footer small{display:block}.ic-enterprise-review-detail>footer strong{color:#405771;font-size:.65rem}.ic-enterprise-review-detail>footer span{margin-top:2px;color:#718196;font-size:.61rem}.ic-enterprise-review-detail>footer small{margin-top:4px;color:#3b6da9;font-size:.59rem}.ic-enterprise-review-no-selection{display:grid;place-content:center;gap:6px;color:#64748b;text-align:center}
html[data-theme="dark"] .ic-enterprise-source-desk,html[data-theme="dark"] .ic-enterprise-source-editor,html[data-theme="dark"] .ic-enterprise-source-actions,html[data-theme="dark"] .ic-enterprise-document-list,html[data-theme="dark"] .ic-enterprise-document-view,html[data-theme="dark"] .ic-enterprise-document-view>header,html[data-theme="dark"] .ic-enterprise-document-sections>details,html[data-theme="dark"] .ic-enterprise-document-control-groups section,html[data-theme="dark"] .ic-enterprise-mapping,html[data-theme="dark"] .ic-library-project-handoff,html[data-theme="dark"] .ic-library-enterprise-evidence,html[data-theme="dark"] .ic-enterprise-review-desk,html[data-theme="dark"] .ic-enterprise-review-toolbar,html[data-theme="dark"] .ic-enterprise-review-detail{border-color:#314158;background:#172235;color:#d8e1ee}
@media(max-width:1160px){.ic-enterprise-source-desk>header,.ic-enterprise-review-desk>header{grid-template-columns:1fr}.ic-enterprise-source-kpis,.ic-enterprise-review-kpis{max-width:600px}.ic-enterprise-source-desk>header>.btn,.ic-enterprise-review-desk>header>.btn{justify-self:start}.ic-enterprise-review-body{grid-template-columns:1fr}.ic-enterprise-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px;border-right:0;border-bottom:1px solid #dfe7f0}.ic-enterprise-review-list>button{border-right:1px solid #e3eaf2}.ic-enterprise-map.is-reference-only .ic-enterprise-map-metrics{justify-self:start}}
@media(max-width:760px){.ic-enterprise-use-stages,.ic-enterprise-mapping-grid,.ic-enterprise-source-form,.ic-enterprise-review-form,.ic-enterprise-review-body,.ic-enterprise-document-view>header,.ic-enterprise-document-control-groups{grid-template-columns:1fr}.ic-enterprise-review-list{max-height:310px;border-right:0;border-bottom:1px solid #dfe7f0}.ic-enterprise-review-toolbar,.ic-enterprise-review-detail>footer,.ic-enterprise-lifecycle-note{align-items:stretch;flex-direction:column}.ic-enterprise-lifecycle-note span{text-align:left}.ic-enterprise-review-form label.wide{grid-column:1}.ic-enterprise-use-stages article{border-left:0;border-top:1px solid #e3ebf4}.ic-enterprise-use-stages article:first-child{border-top:0}.ic-enterprise-source-form label.wide{grid-column:1}.ic-enterprise-source-kpis,.ic-enterprise-review-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ic-enterprise-source-upload,.ic-library-project-handoff,.ic-enterprise-source-actions{align-items:stretch;grid-template-columns:1fr;flex-direction:column}.ic-enterprise-source-actions>div{justify-content:flex-start;flex-wrap:wrap}.ic-enterprise-map.is-reference-only .ic-enterprise-map-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Enterprise control atlas: visual coverage first, details and source maintenance on demand. */
.ic-library-reference{gap:16px}
.ic-atlas{overflow:hidden;border:1px solid #cbd8e7;border-radius:16px;background:#f7f9fc;box-shadow:0 14px 34px rgba(31,54,82,.07)}
.ic-atlas-toolbar{display:grid;grid-template-columns:auto minmax(280px,1fr) auto auto auto;gap:14px;align-items:center;padding:14px 16px;border-bottom:1px solid #d9e2ec;background:#fff}
.ic-atlas-title{display:grid;gap:2px;min-width:128px}.ic-atlas-title span{color:#2b67b1;font-size:12px;font-weight:800;letter-spacing:.08em}.ic-atlas-title strong{color:#172b43;font-size:18px}
.ic-atlas-search{position:relative;display:block}.ic-atlas-search>span{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0)}.ic-atlas-search input{width:100%;min-height:42px;box-sizing:border-box;padding:10px 14px;border:1px solid #cbd8e7;border-radius:10px;background:#f9fbfd;color:#1f334b;font:inherit;font-size:14px}.ic-atlas-search input:focus{border-color:#3474d3;outline:3px solid rgba(52,116,211,.12);background:#fff}
.ic-atlas-legend{display:flex;flex-wrap:wrap;gap:8px;white-space:nowrap}.ic-atlas-legend span{display:inline-flex;align-items:center;gap:6px;color:#53667c;font-size:12px;font-weight:700}.ic-atlas-legend span:before{content:"";width:9px;height:9px;border-radius:3px}.ic-atlas-legend .is-built:before{background:#22a06b}.ic-atlas-legend .is-building:before{background:#e4a329}.ic-atlas-legend .is-unbuilt:before{background:#a9b5c3}
.ic-atlas-summary{display:grid;grid-template-columns:auto auto;gap:0 7px;align-items:center;min-width:132px;padding:4px 0}.ic-atlas-summary strong{grid-row:1/3;color:#173f72;font-size:22px}.ic-atlas-summary span{color:#41566d;font-size:12px;font-weight:800}.ic-atlas-summary small{color:#7a8899;font-size:11px}
.ic-atlas-toolbar>.btn{min-height:40px;white-space:nowrap}
.ic-atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;min-height:620px}
.ic-atlas-layout.is-map-only{grid-template-columns:minmax(0,1fr)}
.ic-atlas-map{min-width:0;overflow:auto;padding:14px;background:#eef2f6}
.ic-atlas-groups{display:grid;grid-template-columns:repeat(5,minmax(108px,1fr));gap:8px;min-width:0;align-items:stretch}
.ic-atlas-group{min-width:0;overflow:hidden;border:1px solid #d8e1eb;border-radius:12px;background:#f8fafc}.ic-atlas-group.is-wide{grid-column:span 2}.ic-atlas-group>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:10px 12px;border-bottom:1px solid #dae3ed;background:#fff}.ic-atlas-group>header strong{color:#20364f;font-size:14px}.ic-atlas-group>header span{color:#718197;font-size:11px;white-space:nowrap}
.ic-atlas-parcels{display:grid;gap:8px;padding:8px}.ic-atlas-group.is-wide .ic-atlas-parcels{grid-template-columns:repeat(2,minmax(0,1fr))}
.ic-atlas-parcel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-content:start;min-height:92px;padding:11px 11px 10px;border:1px solid transparent;border-radius:9px;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.ic-atlas-parcel:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(29,52,80,.09)}.ic-atlas-parcel:focus-visible{outline:3px solid rgba(47,111,207,.28);outline-offset:2px}.ic-atlas-parcel.is-built{border-color:#91d2b5;background:#e4f7ee;color:#12623f}.ic-atlas-parcel.is-building{border-color:#dfa93c;background:#ffefbf;color:#7a4b00;box-shadow:inset 0 0 0 1px rgba(210,143,11,.09)}.ic-atlas-parcel.is-unbuilt{border-color:#d5dde6;background:#edf1f5;color:#687789}.ic-atlas-parcel.is-active{border-color:#2f6fcf;box-shadow:0 0 0 2px rgba(47,111,207,.17),0 8px 18px rgba(33,65,109,.12)}
.ic-atlas-parcel>span{min-width:0;color:#20364f;font-size:13px;font-weight:800;line-height:1.35}.ic-atlas-parcel>strong{font-size:12px}.ic-atlas-parcel>small{grid-column:1/-1;color:currentColor;font-size:10px;line-height:1.4;opacity:.82}.ic-atlas-parcel>i{grid-column:1/-1;align-self:end;overflow:hidden;height:4px;margin-top:4px;border-radius:4px;background:rgba(91,108,126,.16)}.ic-atlas-parcel>i b{display:block;height:100%;border-radius:inherit;background:currentColor}
.ic-atlas-empty{grid-column:1/-1;display:grid;place-content:center;gap:5px;min-height:420px;color:#64748b;text-align:center}.ic-atlas-empty strong{color:#334155;font-size:17px}.ic-atlas-empty span{font-size:13px}
.ic-atlas-inspector{position:relative;min-width:0;padding:18px;border-left:1px solid #d6e0eb;background:#fff}.ic-atlas-inspector>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e1e7ef}.ic-atlas-inspector>header span{color:#3971b6;font-size:12px;font-weight:800}.ic-atlas-inspector>header h3{margin:5px 0 0;color:#172b43;font-size:20px;line-height:1.3}.ic-atlas-inspector>header p{margin:6px 0 0;color:#66778b;font-size:12px}.ic-atlas-inspector>header button{flex:0 0 auto;width:32px;height:32px;border:1px solid #d7e0ea;border-radius:8px;background:#fff;color:#63758a;font-size:20px;line-height:1;cursor:pointer}.ic-atlas-inspector>header button:hover{border-color:#9fb9dc;color:#245da7;background:#f3f7fd}
.ic-atlas-inspector-status{display:grid;grid-template-columns:auto 1fr;gap:0 10px;align-items:center;margin-top:14px;padding:12px;border-radius:10px}.ic-atlas-inspector-status strong{grid-row:1/3;font-size:24px}.ic-atlas-inspector-status span{font-size:12px;font-weight:800}.ic-atlas-inspector-status small{font-size:10px;opacity:.78}.ic-atlas-inspector-status.is-built{background:#eaf7f1;color:#176548}.ic-atlas-inspector-status.is-building{background:#fff6df;color:#8b5a08}.ic-atlas-inspector-status.is-unbuilt{background:#edf1f5;color:#687789}
.ic-atlas-resources{display:grid;gap:0;margin-top:14px;border-top:1px solid #e2e8f0}.ic-atlas-resources>div{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:11px 0 11px 16px;border-bottom:1px solid #e2e8f0}.ic-atlas-resources>div:before{content:"";position:absolute;left:0;top:15px;width:7px;height:7px;border-radius:2px}.ic-atlas-resources .is-built:before{background:#22a06b}.ic-atlas-resources .is-building:before{background:#e4a329}.ic-atlas-resources .is-unbuilt:before{background:#a9b5c3}.ic-atlas-resources span{color:#31475f;font-size:13px;font-weight:800}.ic-atlas-resources strong{color:#263b52;font-size:13px}.ic-atlas-resources small{grid-column:1/-1;color:#7a8899;font-size:11px}
.ic-atlas-inspector-actions{display:grid;gap:8px;margin-top:16px}.ic-atlas-inspector-actions .btn{width:100%;min-height:40px}.ic-atlas-inspector>p{margin:13px 0 0;color:#738296;font-size:11px;line-height:1.6}
.ic-enterprise-source-head-actions{display:flex;gap:8px;justify-content:flex-end}.ic-enterprise-source-head-actions .btn{white-space:nowrap}
.ic-library-reference>.ic-library-detail,.ic-library-reference>.ic-enterprise-source-desk{scroll-margin-top:18px}
html[data-theme="dark"] .ic-atlas{border-color:#34475e;background:#152033}html[data-theme="dark"] .ic-atlas-toolbar,html[data-theme="dark"] .ic-atlas-group>header,html[data-theme="dark"] .ic-atlas-inspector{border-color:#34475e;background:#172235}html[data-theme="dark"] .ic-atlas-map{background:#111c2d}html[data-theme="dark"] .ic-atlas-group{border-color:#34475e;background:#172235}html[data-theme="dark"] .ic-atlas-title strong,html[data-theme="dark"] .ic-atlas-group>header strong,html[data-theme="dark"] .ic-atlas-inspector>header h3,html[data-theme="dark"] .ic-atlas-parcel>span{color:#edf4ff}html[data-theme="dark"] .ic-atlas-search input,html[data-theme="dark"] .ic-atlas-inspector>header button{border-color:#41546b;background:#111c2d;color:#d7e2ef}
@media(max-width:1400px){.ic-enterprise-source-desk>header,.ic-enterprise-review-desk>header{grid-template-columns:1fr}.ic-enterprise-source-kpis,.ic-enterprise-review-kpis{max-width:660px}.ic-enterprise-source-desk>header>.btn,.ic-enterprise-review-desk>header>.btn{justify-self:start}.ic-enterprise-source-head-actions{justify-content:flex-start}.ic-atlas-groups{grid-template-columns:repeat(3,minmax(160px,1fr))}.ic-atlas-group.is-wide{grid-column:span 2}}
@media(max-width:1180px){.ic-atlas-toolbar{grid-template-columns:auto minmax(260px,1fr) auto}.ic-atlas-legend{grid-column:1/3}.ic-atlas-summary{grid-column:3}.ic-enterprise-source-head-actions{justify-content:flex-start}}
@media(max-width:880px){.ic-atlas-toolbar{grid-template-columns:1fr}.ic-atlas-title,.ic-atlas-search,.ic-atlas-legend,.ic-atlas-summary,.ic-atlas-toolbar>.btn{grid-column:1}.ic-atlas-layout{grid-template-columns:1fr}.ic-atlas-inspector{border-top:1px solid #d6e0eb;border-left:0}.ic-atlas-groups{grid-template-columns:repeat(2,minmax(160px,1fr))}.ic-atlas-group.is-wide{grid-column:span 2}}
@media(max-width:620px){.ic-atlas-map{padding:10px}.ic-atlas-groups{min-width:0;grid-template-columns:1fr}.ic-atlas-group.is-wide{grid-column:span 1}.ic-atlas-group.is-wide .ic-atlas-parcels{grid-template-columns:1fr}.ic-atlas-legend{white-space:normal}.ic-atlas-summary{justify-self:start}}

/* Workbench cockpit: one command strip, management overview, then project detail on demand. */
body[data-active-view="dashboard"] .main-content{max-width:1680px;padding-top:14px}
.dash-header-compact{min-height:104px;margin-bottom:12px;padding:18px 22px;background:linear-gradient(112deg,#fff 0%,#f6f9fd 72%,#eef8f7 100%)}
.dash-header-compact .dash-title{font-size:26px!important}
.dash-header-compact .dash-subtitle{margin-top:5px!important}
.dash-scope-badge{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 11px;border:1px solid #d8e3ef;border-radius:10px;background:#fff;color:#42566f;font-size:14px;font-weight:800;white-space:nowrap}
.dash-scope-badge i{width:17px;height:17px;color:#2563eb}
.dash-access-strip{grid-template-columns:minmax(0,1fr) minmax(260px,300px);margin:0 0 12px}
.dash-tool-dock{display:grid;grid-template-rows:auto minmax(42px,1fr);gap:8px;min-height:88px;padding:10px 12px;overflow:hidden}
.dash-tool-dock-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.dash-tool-dock-head>div{display:flex;align-items:baseline;gap:8px;min-width:0}
.dash-tool-dock-head>div span{color:#172033;font-size:15px;font-weight:900}
.dash-tool-dock-head>div small{color:#64748b;font-size:12px;font-weight:700}
.dash-tool-shortcut-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;min-width:0}
.dash-tool-dock .dash-tool-shortcut{width:100%;min-width:0;padding:0 10px}
.dash-tool-dock .dash-tool-shortcut span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-tool-dock .dash-tool-more{flex:0 0 auto;min-height:34px;margin-left:0;padding:0 10px;font-size:13px}
.dash-tool-shortcut.is-management{background:#fff}
.dash-tool-shortcut.is-management:first-child{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.dash-management-workbench{gap:12px}
.dash-role-workbench{gap:12px}
.dash-role-workbench .dash-role-work{margin:0}
.dash-role-workbench .dash-management-projects,.dash-role-workbench .dash-portfolio-signals,.dash-role-workbench .dash-attention-panel{margin:0}
.dash-role-workbench[data-audience-mode="auditor"] .dash-role-work{border-color:#bfdbfe;background:linear-gradient(135deg,#f8fbff,#fff)}
.dash-role-workbench[data-audience-mode="lead"] .dash-role-work{border-color:#c7d2fe;background:linear-gradient(135deg,#f7f7ff,#fff)}
.dash-role-workbench[data-audience-mode="reviewer"] .dash-role-work{border-color:#ddd6fe;background:linear-gradient(135deg,#faf8ff,#fff)}
.dash-role-workbench[data-audience-mode="riskcontrol"] .dash-role-work{border-color:#a7f3d0;background:linear-gradient(135deg,#f0fdfa,#fff)}
.dash-role-workbench[data-audience-mode="riskcontrol"] .dash-role-work-head>div>span,.dash-role-workbench[data-audience-mode="riskcontrol"] .dash-role-actions button{color:#0f766e}
.dash-role-workbench[data-audience-mode="riskcontrol"] .dash-role-actions button:hover{border-color:#5eead4;background:#f0fdfa}
.dash-role-workbench[data-audience-mode="readonly"] .dash-role-work{border-color:#d7dee8;background:linear-gradient(135deg,#f8fafc,#fff)}
.dash-management-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:0}
.dash-management-kpi{min-height:104px;padding:13px 14px;box-shadow:0 5px 16px rgba(15,23,42,.045)}
.dash-management-kpi strong{font-size:28px}
.dash-management-kpi p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-kpi-definitions{margin:0}
.dash-kpi-definitions dl{grid-template-columns:repeat(3,minmax(0,1fr))}
.dash-cockpit-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.7fr);gap:12px;align-items:stretch}
.dash-cockpit-grid>.dash-panel{min-width:0;margin:0}
.dash-coverage-map{overflow:hidden;padding:0}
.dash-coverage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:17px 18px 14px;border-bottom:1px solid #e7edf5;background:linear-gradient(135deg,#f8fbff,#fff)}
.dash-coverage-head>div:first-child>span,.dash-attention-panel>header span,.dash-panel-kicker{display:block;margin-bottom:4px;color:#2563eb;font-size:13px;font-weight:900;letter-spacing:.04em}
.dash-coverage-head h2,.dash-attention-panel>header h2{margin:0;color:#172033;font-size:20px!important;line-height:1.3}
.dash-coverage-head p{margin:5px 0 0;color:#64748b;font-size:14px!important;line-height:1.5}
.dash-coverage-summary{display:grid;grid-template-columns:minmax(110px,auto) auto;gap:2px 12px;align-items:center;text-align:right}
.dash-coverage-summary strong{grid-row:1/3;color:#0f172a;font-size:29px;line-height:1}
.dash-coverage-summary strong small{color:#64748b;font-size:13px;font-weight:700}
.dash-coverage-summary span{color:#64748b;font-size:13px;font-weight:750}
.dash-coverage-summary button,.dash-coverage-map>footer button,.dash-attention-panel>footer button{padding:0;border:0;background:none;color:#1d4ed8;font-size:14px;font-weight:850;cursor:pointer}
.dash-coverage-groups{display:grid;gap:0}
.dash-coverage-group{border-bottom:1px solid #edf2f7}
.dash-coverage-group:last-child{border-bottom:0}
.dash-coverage-group-row{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(120px,.8fr) 56px 76px 18px;gap:12px;align-items:center;width:100%;min-height:58px;padding:10px 17px;border:0;background:#fff;color:#334155;text-align:left;cursor:pointer}
.dash-coverage-group-row:hover,.dash-coverage-group.is-open>.dash-coverage-group-row{background:#f7faff}
.dash-coverage-group-row>span{display:grid;gap:2px;min-width:0}
.dash-coverage-group-row strong{color:#172033;font-size:15px;line-height:1.35}
.dash-coverage-group-row small{color:#64748b;font-size:13px;line-height:1.35}
.dash-coverage-group-row>b{height:8px;overflow:hidden;border-radius:999px;background:#e8eef6}
.dash-coverage-group-row>b i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#14b8a6)}
.dash-coverage-group-row>em{color:#334155;font-size:13px;font-style:normal;font-weight:900;text-align:right}
.dash-coverage-group-row>mark{display:inline-flex;justify-content:center;padding:5px 7px;border-radius:999px;font-size:12px;font-weight:850;white-space:nowrap}
.dash-coverage-group-row>mark.is-empty{background:#f1f5f9;color:#64748b}.dash-coverage-group-row>mark.is-partial{background:#fff7ed;color:#b45309}.dash-coverage-group-row>mark.is-done{background:#ecfdf5;color:#047857}
.dash-coverage-group-row>i{width:17px;height:17px;color:#64748b;transition:transform .18s}
.dash-coverage-group.is-open>.dash-coverage-group-row>i{transform:rotate(180deg)}
.dash-coverage-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 17px 14px;background:#f8fafc}
.dash-coverage-module{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}
.dash-coverage-module>span{display:grid;gap:2px;min-width:0}.dash-coverage-module strong{overflow:hidden;color:#334155;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.dash-coverage-module small{overflow:hidden;color:#94a3b8;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dash-coverage-module>em{flex:0 0 auto;color:#64748b;font-size:12px;font-style:normal;font-weight:800}.dash-coverage-module.is-covered{border-color:#bfdbfe;background:#f8fbff}.dash-coverage-module.is-covered>em{color:#1d4ed8}
.dash-coverage-map>footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 17px;border-top:1px solid #e7edf5;background:#fbfdff}.dash-coverage-map>footer span{color:#64748b;font-size:13px;line-height:1.45}
.dash-attention-panel{display:flex;flex-direction:column;overflow:hidden;padding:0}
.dash-attention-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 16px 13px;border-bottom:1px solid #e7edf5}
.dash-attention-panel>header p{max-width:620px;margin:5px 0 0;color:#64748b;font-size:14px!important;line-height:1.5}
.dash-attention-panel>header>b{display:grid;place-items:center;min-width:46px;height:32px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:13px}
.dash-attention-list{display:grid;align-content:start;flex:1}
.dash-attention-item{display:grid;grid-template-columns:auto minmax(0,1fr) 18px;gap:9px;align-items:center;min-height:62px;padding:10px 14px;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#334155;text-align:left;cursor:pointer}
.dash-attention-item:hover{background:#f8fbff}.dash-attention-item mark{display:inline-flex;justify-content:center;min-width:42px;padding:4px 7px;border-radius:7px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:850}.dash-attention-item.is-danger mark{background:#fef2f2;color:#b91c1c}.dash-attention-item.is-amber mark{background:#fff7ed;color:#b45309}.dash-attention-item span{display:grid;gap:3px;min-width:0}.dash-attention-item strong,.dash-attention-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dash-attention-item strong{color:#172033;font-size:14px}.dash-attention-item small{color:#64748b;font-size:12px}.dash-attention-item>i{width:16px;height:16px;color:#94a3b8}
.dash-attention-empty{display:grid;place-content:center;justify-items:center;gap:7px;min-height:290px;padding:24px;color:#64748b;text-align:center}.dash-attention-empty i{width:32px;height:32px;color:#10b981}.dash-attention-empty strong{color:#334155;font-size:15px}.dash-attention-empty span{font-size:13px}
.dash-attention-panel>footer{display:flex;justify-content:flex-end;margin-top:auto;padding:10px 14px;border-top:1px solid #e7edf5;background:#fbfdff}
.dash-management-projects{margin:0}
.dash-management-projects>.dash-panel-header{padding:15px 17px}
.dash-management-projects>.dash-panel-header .dash-panel-title{font-size:20px!important}
.dash-management-project-row{grid-template-columns:minmax(230px,1.6fr) 92px minmax(110px,.65fr) minmax(150px,.8fr) minmax(150px,.85fr) 88px;gap:12px;min-height:58px}
.dash-management-project-row>span{min-width:0}
.dash-source-tag{display:inline-flex!important;padding:5px 8px!important;border-radius:999px!important;background:#fff7ed!important;color:#b45309!important;font-size:12px!important;font-weight:850!important}.dash-source-tag.is-plan{background:#eff6ff!important;color:#1d4ed8!important}
.dash-management-attention{display:grid;gap:2px}.dash-management-attention strong{color:#334155;font-size:14px}.dash-management-attention small{color:#64748b;font-size:12px;white-space:nowrap}.dash-management-attention.has-attention strong{color:#b45309}
.dash-project-preview{margin:0}
.dash-project-preview-head-actions{display:flex;align-items:center;gap:8px}.dash-project-preview-head-actions>button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #dbe5f1;border-radius:8px;background:#f8fafc;color:#64748b;font-size:20px;cursor:pointer}
html[data-theme="dark"] .dash-coverage-map,html[data-theme="dark"] .dash-attention-panel,html[data-theme="dark"] .dash-coverage-group-row,html[data-theme="dark"] .dash-attention-item,html[data-theme="dark"] .dash-coverage-module{background:#172235;border-color:#314158;color:#d8e1ee}
html[data-theme="dark"] .dash-coverage-head,html[data-theme="dark"] .dash-coverage-map>footer,html[data-theme="dark"] .dash-attention-panel>footer,html[data-theme="dark"] .dash-coverage-modules{background:#13233b;border-color:#314158}
html[data-theme="dark"] .dash-coverage-head h2,html[data-theme="dark"] .dash-attention-panel h2,html[data-theme="dark"] .dash-coverage-group-row strong,html[data-theme="dark"] .dash-attention-item strong,html[data-theme="dark"] .dash-coverage-module strong{color:#eef4ff}
@media(max-width:1360px){.dash-management-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-cockpit-grid{grid-template-columns:minmax(0,1.4fr) minmax(310px,.75fr)}.dash-tool-dock .dash-tool-shortcut,.dash-tool-dock .dash-tool-more{gap:6px;font-size:14px}}
@media(max-width:1240px){.dash-access-strip{grid-template-columns:1fr}.dash-current-step-jump{min-height:58px}}
@media(max-width:760px){.dash-tool-dock-head>div small{display:none}.dash-tool-shortcut-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1080px){.dash-cockpit-grid{grid-template-columns:1fr}.dash-attention-list{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-attention-item:nth-child(odd){border-right:1px solid #edf2f7}.dash-management-project-row{min-width:930px}}
@media(max-width:760px){.dash-management-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-coverage-head{flex-direction:column}.dash-coverage-summary{text-align:left}.dash-coverage-group-row{grid-template-columns:minmax(170px,1fr) 52px 72px 18px}.dash-coverage-group-row>b{display:none}.dash-coverage-modules,.dash-attention-list{grid-template-columns:1fr}.dash-attention-item:nth-child(odd){border-right:0}.dash-header-compact{align-items:flex-start}.dash-scope-badge{white-space:normal}}
@media(max-width:760px){.ic-enterprise-source-guide{align-items:flex-start;flex-direction:column}.ic-enterprise-source-guide span{text-align:left}}
@media(max-width:760px){.ic-enterprise-link-fields article,.ic-enterprise-evidence-item{grid-template-columns:1fr}.ic-enterprise-evidence-item{padding-right:11px}.ic-enterprise-evidence-item>em{position:static;width:max-content}.ic-enterprise-link-fields>summary{align-items:flex-start;flex-direction:column}}

/* Toolbox redesign: task-first method field, July 2026. */
body[data-active-view="toolbox"] .main-content{
  max-width:1720px;
  padding:18px 28px 36px;
  background:#f2f4f7;
}
body[data-active-view="toolbox"] .breadcrumb{
  border-bottom-color:#d9dee7;
  background:#f2f4f7;
}
.toolbox-page:not(.is-tool-open){
  --tb-accent:#2458d3;
  --tb-accent-soft:#edf3ff;
  --tb-ink:#111827;
  --tb-muted:#667085;
  --tb-line:#d9dee7;
  --tb-soft:#f6f7f9;
  --tb-radius:6px;
  color:var(--tb-ink);
}
.toolbox-page:not(.is-tool-open) .toolbox-shell{
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:0;
  min-height:calc(100dvh - 164px);
  overflow:hidden;
  border:1px solid var(--tb-line);
  border-radius:var(--tb-radius);
  background:#fff;
  box-shadow:0 18px 48px rgba(16,24,40,.07);
}
.toolbox-page:not(.is-tool-open) .toolbox-category-nav{
  position:relative;
  top:auto;
  z-index:1;
  display:flex;
  height:auto;
  min-height:100%;
  flex-direction:column;
  gap:5px;
  padding:26px 15px;
  overflow:visible;
  border:0;
  border-right:1px solid var(--tb-line);
  border-radius:0;
  background:#f7f8fa;
  box-shadow:none;
}
.toolbox-page:not(.is-tool-open) .toolbox-nav-title{
  display:grid;
  gap:5px;
  margin:0 7px 22px;
  padding:0 0 18px;
  border-bottom:1px solid #dfe3e9;
}
.toolbox-page:not(.is-tool-open) .toolbox-nav-title span{
  color:#7a8494;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.toolbox-page:not(.is-tool-open) .toolbox-nav-title strong{
  color:var(--tb-ink);
  font-size:18px!important;
  font-weight:760;
  letter-spacing:-.02em;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:62px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:4px;
  background:transparent;
  color:#475467;
  text-align:left;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn:hover{
  border-color:#dce4ef;
  background:#fff;
  color:var(--tb-ink);
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn.is-active{
  border-color:#bfd0f6;
  background:#fff;
  color:var(--tb-accent);
  box-shadow:inset 3px 0 0 var(--tb-accent);
}
.toolbox-page:not(.is-tool-open) .toolbox-category-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:4px;
  background:#e9edf3;
  color:#475467;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn.is-active .toolbox-category-icon{
  background:var(--tb-accent-soft);
  color:var(--tb-accent);
}
.toolbox-page:not(.is-tool-open) .toolbox-category-icon svg{
  width:17px;
  height:17px;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-copy strong{
  color:inherit;
  font-size:14px!important;
  font-weight:760;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-copy small{
  overflow:hidden;
  color:#7a8494;
  font-size:11px!important;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn>em{
  display:grid;
  place-items:center;
  min-width:25px;
  height:24px;
  border-radius:4px;
  background:#e9edf3;
  color:#667085;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn.is-active>em{
  background:var(--tb-accent);
  color:#fff;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-detail{
  display:block;
  min-width:0;
  padding:0;
  background:#fff;
}
.toolbox-field-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,300px);
  gap:56px;
  align-items:end;
  min-height:202px;
  padding:38px 44px 28px;
  border-bottom:1px solid var(--tb-line);
  background:
    linear-gradient(90deg,rgba(36,88,211,.06) 1px,transparent 1px) 0 0/46px 46px,
    linear-gradient(rgba(36,88,211,.04) 1px,transparent 1px) 0 0/46px 46px,
    #fbfcfe;
}
.toolbox-field-head>div>span,
.toolbox-method-index>header>span{
  display:block;
  margin:0 0 10px;
  color:var(--tb-accent);
  font-size:11px!important;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.toolbox-field-head h1{
  max-width:720px;
  margin:0;
  color:var(--tb-ink);
  font-size:clamp(32px,3.2vw,52px)!important;
  font-weight:720;
  letter-spacing:-.045em;
  line-height:1.02;
}
.toolbox-field-head>div>p{
  max-width:720px;
  margin:18px 0 0;
  color:#596579;
  font-size:15px!important;
  line-height:1.72;
}
.toolbox-field-head aside{
  display:grid;
  gap:6px;
  padding:0 0 2px 18px;
  border-left:2px solid var(--tb-accent);
}
.toolbox-field-head aside small{
  color:#7a8494;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.08em;
}
.toolbox-field-head aside strong{
  color:var(--tb-ink);
  font-size:15px!important;
  line-height:1.4;
}
.toolbox-field-head aside p{
  margin:0;
  color:#667085;
  font-size:12px!important;
  line-height:1.45;
}
.toolbox-question-field{
  display:grid;
  gap:8px;
  padding:22px 44px 24px;
  border-bottom:1px solid var(--tb-line);
  background:#fff;
}
.toolbox-question-field>label{
  color:#344054;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
}
.toolbox-question-field>div{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  max-width:920px;
  min-height:52px;
  padding:0 15px;
  border:1px solid #bdc7d6;
  border-radius:var(--tb-radius);
  background:#fbfcfe;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
.toolbox-question-field>div:focus-within{
  border-color:var(--tb-accent);
  background:#fff;
  box-shadow:0 0 0 3px rgba(36,88,211,.12);
}
.toolbox-question-field svg{
  width:19px;
  height:19px;
  color:#667085;
}
.toolbox-question-field input{
  width:100%;
  min-width:0;
  height:48px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--tb-ink);
  font:inherit;
  font-size:15px;
}
.toolbox-question-field input::placeholder{color:#98a2b3;}
.toolbox-question-field kbd{
  padding:4px 7px;
  border:1px solid #d0d5dd;
  border-bottom-width:2px;
  border-radius:4px;
  background:#fff;
  color:#667085;
  font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.toolbox-question-field>small{
  color:#7a8494;
  font-size:11px!important;
}
.toolbox-method-layout{
  display:grid;
  grid-template-columns:minmax(320px,380px) minmax(0,1fr);
  min-height:510px;
  background:#fff;
}
.toolbox-method-index{
  min-width:0;
  border-right:1px solid var(--tb-line);
  background:#f7f8fa;
}
.toolbox-method-index>header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 14px;
  align-items:end;
  padding:24px 24px 18px;
  border-bottom:1px solid var(--tb-line);
}
.toolbox-method-index>header>span{
  grid-column:1/3;
  margin:0;
}
.toolbox-method-index>header>strong{
  color:var(--tb-ink);
  font-size:20px!important;
  font-weight:740;
  letter-spacing:-.02em;
}
.toolbox-method-index>header>small{
  color:#7a8494;
  font-size:11px!important;
}
.toolbox-method-rows{display:grid;}
.toolbox-method-row{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 18px;
  gap:12px;
  align-items:start;
  width:100%;
  min-height:116px;
  padding:18px 20px 17px 23px;
  border:0;
  border-bottom:1px solid #e0e5ec;
  background:transparent;
  color:#475467;
  text-align:left;
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease;
}
.toolbox-method-row:before{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:3px;
  background:var(--tb-accent);
  content:"";
  opacity:0;
  transform:scaleY(.45);
  transition:opacity .16s ease,transform .16s ease;
}
.toolbox-method-row:hover{background:#fff;color:var(--tb-ink);}
.toolbox-method-row.is-active{background:#fff;color:var(--tb-accent);}
.toolbox-method-row.is-active:before{opacity:1;transform:scaleY(1);}
.toolbox-method-row:focus-visible{
  z-index:2;
  outline:2px solid var(--tb-accent);
  outline-offset:-3px;
}
.toolbox-method-row-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:4px;
  background:#e8edf4;
  color:#526172;
}
.toolbox-method-row.is-active .toolbox-method-row-icon{
  background:var(--tb-accent-soft);
  color:var(--tb-accent);
}
.toolbox-method-row-icon svg,
.toolbox-method-row-arrow{
  width:16px;
  height:16px;
}
.toolbox-method-row-arrow{
  margin-top:7px;
  color:#98a2b3;
}
.toolbox-method-row.is-active .toolbox-method-row-arrow{color:var(--tb-accent);}
.toolbox-method-row-copy{
  display:grid;
  gap:5px;
  min-width:0;
}
.toolbox-method-row-copy strong{
  color:var(--tb-ink);
  font-size:14px!important;
  font-weight:760;
  line-height:1.35;
}
.toolbox-method-row-copy small{
  display:-webkit-box;
  overflow:hidden;
  color:#667085;
  font-size:12px!important;
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.toolbox-method-row-copy em{
  overflow:hidden;
  color:#7a8494;
  font-size:10px;
  font-style:normal;
  font-weight:750;
  letter-spacing:.02em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.toolbox-method-empty{
  margin:0;
  padding:34px 24px;
  color:#667085;
  font-size:13px!important;
  text-align:center;
}
.toolbox-stage-empty{
  display:grid;
  place-content:center;
  justify-items:center;
  min-height:420px;
  padding:40px;
  color:#667085;
  text-align:center;
}
.toolbox-stage-empty svg{
  width:32px;
  height:32px;
  margin-bottom:14px;
  color:#98a2b3;
}
.toolbox-stage-empty strong{
  color:var(--tb-ink);
  font-size:16px!important;
}
.toolbox-stage-empty p{
  margin:7px 0 0;
  color:#7a8494;
  font-size:12px!important;
}
.toolbox-method-stage{
  min-width:0;
  padding:44px 46px 36px;
  background:#fff;
}
.toolbox-stage-enter{animation:toolboxStageIn .26s cubic-bezier(.2,.75,.25,1);}
@keyframes toolboxStageIn{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}
.toolbox-stage-lead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding-bottom:28px;
  border-bottom:1px solid var(--tb-line);
}
.toolbox-stage-lead>div{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:4px 15px;
  align-items:end;
}
.toolbox-stage-icon{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid #c9d8f7;
  border-radius:var(--tb-radius);
  background:var(--tb-accent-soft);
  color:var(--tb-accent);
}
.toolbox-stage-icon svg{width:22px;height:22px;}
.toolbox-stage-lead p{
  margin:0;
  color:#7a8494;
  font-size:11px!important;
  font-weight:850;
  letter-spacing:.12em;
}
.toolbox-stage-lead h2{
  margin:0;
  color:var(--tb-ink);
  font-size:clamp(28px,2.8vw,42px)!important;
  font-weight:720;
  letter-spacing:-.04em;
  line-height:1.08;
}
.toolbox-stage-primary{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:0 18px;
  border:1px solid var(--tb-accent);
  border-radius:4px;
  background:var(--tb-accent);
  color:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 7px 18px rgba(36,88,211,.18);
  transition:background-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.toolbox-stage-primary:hover{
  background:#1849bd;
  box-shadow:0 10px 22px rgba(36,88,211,.24);
  transform:translateY(-1px);
}
.toolbox-stage-primary:focus-visible{outline:3px solid rgba(36,88,211,.22);outline-offset:2px;}
.toolbox-stage-primary svg{width:16px;height:16px;}
.toolbox-stage-purpose{
  max-width:860px;
  margin:26px 0 30px;
  color:#4b5565;
  font-size:16px!important;
  line-height:1.75;
}
.toolbox-stage-route{
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:22px 0;
  border-top:1px solid var(--tb-line);
  border-bottom:1px solid var(--tb-line);
}
.toolbox-stage-route>section{
  display:grid;
  gap:7px;
  min-width:0;
  padding:2px 5px;
}
.toolbox-stage-route>section>span{
  color:var(--tb-accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
}
.toolbox-stage-route>section>strong{
  color:var(--tb-ink);
  font-size:14px!important;
  font-weight:760;
  line-height:1.45;
}
.toolbox-stage-route>section>small{
  color:#7a8494;
  font-size:11px!important;
  line-height:1.5;
}
.toolbox-stage-route>svg{
  width:17px;
  height:17px;
  color:#98a2b3;
}
.toolbox-stage-judgment{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:28px;
  border:1px solid var(--tb-line);
  border-radius:var(--tb-radius);
  background:#f8fafc;
}
.toolbox-stage-judgment>section{
  min-width:0;
  padding:20px 22px;
}
.toolbox-stage-judgment>section+section{border-left:1px solid var(--tb-line);}
.toolbox-stage-judgment h3{
  margin:0 0 8px;
  color:var(--tb-ink);
  font-size:13px!important;
  font-weight:800;
}
.toolbox-stage-judgment p{
  margin:0;
  color:#667085;
  font-size:12px!important;
  line-height:1.65;
}
.toolbox-stage-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--tb-line);
}
.toolbox-stage-foot>div{display:grid;gap:4px;}
.toolbox-stage-foot>div>span{
  color:#7a8494;
  font-size:10px;
  font-weight:850;
  letter-spacing:.14em;
}
.toolbox-stage-foot>div>strong{
  color:#344054;
  font-size:12px!important;
}
.toolbox-stage-method{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 0;
  border:0;
  border-bottom:1px solid #9eb6ee;
  background:transparent;
  color:var(--tb-accent);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.toolbox-stage-method:hover{border-bottom-color:var(--tb-accent);}
.toolbox-stage-method:focus-visible{outline:2px solid var(--tb-accent);outline-offset:3px;}
.toolbox-stage-method svg{width:15px;height:15px;}
html[data-theme="dark"] .toolbox-page:not(.is-tool-open),
html[data-theme="dark"] .toolbox-page:not(.is-tool-open) .toolbox-shell,
html[data-theme="dark"] .toolbox-page:not(.is-tool-open) .toolbox-category-detail,
html[data-theme="dark"] .toolbox-page:not(.is-tool-open) .toolbox-method-stage{
  color:var(--tb-ink);
  background:#fff;
}
@media(max-width:1180px){
  .toolbox-field-head{gap:30px;padding-right:32px;padding-left:32px;}
  .toolbox-question-field{padding-right:32px;padding-left:32px;}
  .toolbox-method-layout{grid-template-columns:minmax(290px,330px) minmax(0,1fr);}
  .toolbox-method-stage{padding:38px 32px 30px;}
  .toolbox-stage-route{gap:8px;}
}
@media(max-width:920px){
  body[data-active-view="toolbox"] .main-content{padding:14px 18px 28px;}
  .toolbox-page:not(.is-tool-open) .toolbox-shell{grid-template-columns:1fr;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav{
    min-height:0;
    flex-direction:row;
    align-items:center;
    padding:12px 16px;
    border-right:0;
    border-bottom:1px solid var(--tb-line);
  }
  .toolbox-page:not(.is-tool-open) .toolbox-nav-title{
    min-width:150px;
    margin:0 10px 0 0;
    padding:0 14px 0 0;
    border-right:1px solid #dfe3e9;
    border-bottom:0;
  }
  .toolbox-page:not(.is-tool-open) .toolbox-category-btn{flex:1;min-height:54px;}
  .toolbox-field-head{grid-template-columns:1fr;gap:24px;min-height:0;padding:32px;}
  .toolbox-field-head aside{max-width:500px;}
  .toolbox-method-layout{grid-template-columns:1fr;}
  .toolbox-method-index{border-right:0;border-bottom:1px solid var(--tb-line);}
  .toolbox-method-rows{grid-template-columns:repeat(2,minmax(0,1fr));}
  .toolbox-method-row:nth-child(odd){border-right:1px solid #e0e5ec;}
  .toolbox-method-stage{padding:34px 32px;}
}
@media(max-width:680px){
  body[data-active-view="toolbox"] .main-content{padding:0 0 24px;}
  .toolbox-page:not(.is-tool-open) .toolbox-shell{border-right:0;border-left:0;border-radius:0;box-shadow:none;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;}
  .toolbox-page:not(.is-tool-open) .toolbox-nav-title{grid-column:1/3;min-width:0;margin:0 0 4px;padding:5px 4px 10px;border-right:0;border-bottom:1px solid #dfe3e9;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-btn{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:8px;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-btn>em{display:none;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-icon{width:30px;height:30px;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-copy small{display:none;}
  .toolbox-field-head{padding:30px 22px 25px;}
  .toolbox-field-head h1{font-size:34px!important;}
  .toolbox-question-field{padding:18px 22px 20px;}
  .toolbox-question-field kbd{display:none;}
  .toolbox-question-field>div{grid-template-columns:22px minmax(0,1fr);}
  .toolbox-method-index>header{padding:20px 22px 16px;}
  .toolbox-method-rows{grid-template-columns:1fr;}
  .toolbox-method-row:nth-child(odd){border-right:0;}
  .toolbox-method-stage{padding:30px 22px;}
  .toolbox-stage-lead{align-items:stretch;flex-direction:column;}
  .toolbox-stage-primary{width:100%;}
  .toolbox-stage-route{grid-template-columns:1fr;gap:12px;}
  .toolbox-stage-route>svg{transform:rotate(90deg);}
  .toolbox-stage-judgment{grid-template-columns:1fr;}
  .toolbox-stage-judgment>section+section{border-top:1px solid var(--tb-line);border-left:0;}
  .toolbox-stage-foot{align-items:flex-start;flex-direction:column;}
}
@media(prefers-reduced-motion:reduce){
  .toolbox-stage-enter{animation:none;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-btn,
  .toolbox-method-row,
  .toolbox-method-row:before,
  .toolbox-stage-primary{transition:none;}
}

/* Toolbox experience layer: capability path, dual view and method-specific analysis forms. */
.toolbox-field-head{
  grid-template-columns:minmax(0,1fr) minmax(255px,320px);
  gap:24px 42px;
  align-items:start;
  min-height:0;
  padding-bottom:24px;
}
.toolbox-field-copy{align-self:end;}
.toolbox-field-controls{display:grid;gap:12px;align-self:stretch;}
.toolbox-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.toolbox-mode-switch>span{color:#7a8494;font-size:10px;font-weight:850;letter-spacing:.12em;}
.toolbox-mode-switch>div{display:inline-flex;padding:3px;border:1px solid #d5dce6;border-radius:6px;background:#eef1f5;}
.toolbox-mode-switch button{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 9px;border:0;border-radius:4px;background:transparent;color:#667085;font-size:11px;font-weight:800;cursor:pointer;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease;}
.toolbox-mode-switch button svg{width:13px;height:13px;}
.toolbox-mode-switch button.is-active{background:#fff;color:#2458d3;box-shadow:0 1px 4px rgba(16,24,40,.12);}
.toolbox-mode-switch button:focus-visible,.toolbox-header-action:focus-visible,.toolbox-path-node:focus-visible{outline:2px solid var(--tb-accent);outline-offset:2px;}
.toolbox-field-head .toolbox-project-glance{display:grid;gap:4px;margin:0;padding:12px 14px;border:1px solid #dce3ec;border-left:2px solid var(--tb-accent);border-radius:4px;background:rgba(255,255,255,.76);}
.toolbox-field-head .toolbox-project-glance strong{display:-webkit-box;overflow:hidden;font-size:13px!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
.toolbox-field-head .toolbox-project-glance p{display:-webkit-box;overflow:hidden;font-size:11px!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;}
.toolbox-header-action{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:38px;padding:0 12px;border:1px solid #b8c9ef;border-radius:4px;background:#fff;color:var(--tb-accent);font-size:12px;font-weight:850;cursor:pointer;transition:background-color .18s ease,color .18s ease,transform .18s ease;}
.toolbox-header-action:hover{background:var(--tb-accent);color:#fff;transform:translateY(-1px);}
.toolbox-header-action svg{width:15px;height:15px;}
.toolbox-capability-path{grid-column:1/-1;display:grid;grid-template-columns:155px minmax(0,1fr);gap:16px;align-items:center;min-width:0;padding:14px 16px;border:1px solid #dce3ec;border-radius:5px;background:rgba(255,255,255,.78);box-shadow:0 8px 26px rgba(16,24,40,.04);}
.toolbox-capability-path>header{display:grid;gap:4px;padding-right:15px;border-right:1px solid #dce3ec;}
.toolbox-capability-path>header span{color:var(--tb-accent);font-size:9px;font-weight:900;letter-spacing:.16em;}
.toolbox-capability-path>header strong{color:#344054;font-size:12px!important;line-height:1.35;}
.toolbox-path-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:0;}
.toolbox-path-node{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;min-width:0;min-height:52px;padding:7px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:#667085;text-align:left;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;}
.toolbox-path-node>em{display:grid;place-items:center;width:28px;height:28px;border:1px solid #cbd3df;border-radius:4px;background:#fff;color:#7a8494;font-style:normal;}
.toolbox-path-node>em svg{width:14px;height:14px;}
.toolbox-path-node>span{display:grid;gap:3px;min-width:0;}
.toolbox-path-node strong,.toolbox-path-node small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.toolbox-path-node strong{color:#344054;font-size:11px!important;}
.toolbox-path-node small{color:#98a2b3;font-size:9px!important;}
.toolbox-path-node:hover{border-color:#cbd7ed;background:#f8fbff;transform:translateY(-1px);}
.toolbox-path-node.is-active{border-color:#b8c9ef;background:#fff;color:var(--tb-accent);box-shadow:0 5px 16px rgba(36,88,211,.09);}
.toolbox-path-node.is-active>em{border-color:var(--tb-accent);background:var(--tb-accent-soft);color:var(--tb-accent);}
.toolbox-path-node.is-active strong{color:var(--tb-accent);}

.toolbox-metaphor{display:grid;grid-template-columns:minmax(150px,210px) minmax(180px,1fr);gap:16px;align-items:center;min-height:156px;margin:0 0 28px;padding:18px;border:1px solid var(--tb-line);border-radius:var(--tb-radius);background:#f8fafc;overflow:hidden;}
.toolbox-metaphor figcaption{display:grid;gap:6px;min-width:0;}
.toolbox-metaphor figcaption span{color:var(--tb-accent);font-size:9px;font-weight:900;letter-spacing:.16em;}
.toolbox-metaphor figcaption strong{color:var(--tb-ink);font-size:16px!important;letter-spacing:-.02em;}
.toolbox-metaphor figcaption small{color:#667085;font-size:11px!important;line-height:1.55;}
.toolbox-metaphor>footer{grid-column:1/-1;padding-top:10px;border-top:1px solid var(--tb-line);color:#98a2b3;font-size:9px;text-align:right;letter-spacing:.05em;}
.toolbox-metaphor-canvas{position:relative;display:grid;place-items:center;min-height:98px;overflow:hidden;border:1px solid #dde4ed;border-radius:4px;background:#fff;}
.toolbox-metaphor-canvas:before{position:absolute;inset:0;background:linear-gradient(90deg,rgba(36,88,211,.045) 1px,transparent 1px) 0 0/24px 24px,linear-gradient(rgba(36,88,211,.035) 1px,transparent 1px) 0 0/24px 24px;content:"";pointer-events:none;}
.toolbox-health-matrix{position:relative;display:grid;grid-template-columns:repeat(6,13px);gap:6px;}
.toolbox-health-matrix i{width:13px;height:13px;border-radius:2px;background:#cfe0ff;box-shadow:inset 0 0 0 1px #b8cdf3;}
.toolbox-health-matrix i.is-warn{background:#f4d7a1;box-shadow:inset 0 0 0 1px #e1b969;}.toolbox-health-matrix i.is-risk{background:#eaa9a9;box-shadow:inset 0 0 0 1px #d57676;}
.toolbox-priority-spectrum{position:relative;display:flex;align-items:flex-end;gap:7px;width:76%;height:72px;border-bottom:1px solid #bfc9d8;}
.toolbox-priority-spectrum i{flex:1;border-radius:2px 2px 0 0;background:#b9ccf3;}.toolbox-priority-spectrum i:nth-child(1){height:24%}.toolbox-priority-spectrum i:nth-child(2){height:42%}.toolbox-priority-spectrum i:nth-child(3){height:66%}.toolbox-priority-spectrum i:nth-child(4){height:88%;background:#2458d3}.toolbox-priority-spectrum i:nth-child(5){height:58%}.toolbox-priority-spectrum i:nth-child(6){height:37%}.toolbox-priority-spectrum i:nth-child(7){height:18%}.toolbox-priority-spectrum b{position:absolute;top:-7px;right:28%;padding:3px 5px;border-radius:3px;background:#eef3ff;color:#2458d3;font-size:9px;}
.toolbox-reconciliation-flow{position:relative;display:grid;grid-template-columns:1fr 42px 1fr;gap:10px;align-items:center;width:78%;}.toolbox-reconciliation-flow>span,.toolbox-reconciliation-flow>b{display:grid;gap:7px}.toolbox-reconciliation-flow i{display:block;height:8px;border-radius:2px;background:#bdd0f5}.toolbox-reconciliation-flow>b i{height:10px;background:#6c92e5}.toolbox-reconciliation-flow i.is-gap{background:#e4a2a2}.toolbox-reconciliation-flow:before,.toolbox-reconciliation-flow:after{position:absolute;top:49%;width:25%;height:1px;background:#7899dc;content:""}.toolbox-reconciliation-flow:before{left:25%}.toolbox-reconciliation-flow:after{right:25%}
.toolbox-anomaly-radar{position:relative;width:86px;height:86px;border:1px solid #9db8e9;border-radius:50%;box-shadow:inset 0 0 0 18px rgba(36,88,211,.04),inset 0 0 0 36px rgba(36,88,211,.035)}.toolbox-anomaly-radar:before,.toolbox-anomaly-radar:after{position:absolute;top:50%;left:50%;background:#c4d2e7;content:"";transform:translate(-50%,-50%)}.toolbox-anomaly-radar:before{width:1px;height:100%}.toolbox-anomaly-radar:after{width:100%;height:1px}.toolbox-anomaly-radar>span{position:absolute;inset:9px;border-radius:50%;background:conic-gradient(from 220deg,rgba(36,88,211,.28),transparent 36%)}.toolbox-anomaly-radar i{position:absolute;width:7px;height:7px;border-radius:50%;background:#2458d3;box-shadow:0 0 0 3px rgba(36,88,211,.13)}.toolbox-anomaly-radar i:nth-of-type(1){top:17px;left:47px}.toolbox-anomaly-radar i:nth-of-type(2){top:51px;left:18px}.toolbox-anomaly-radar i:nth-of-type(3){top:61px;left:58px}.toolbox-anomaly-radar i:nth-of-type(4){top:31px;left:66px;background:#bd6262}.toolbox-anomaly-radar b{position:absolute;right:-7px;bottom:-4px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#b94b4b;color:#fff;font-size:9px;}
.toolbox-sample-field{position:relative;display:grid;grid-template-columns:repeat(7,9px);gap:8px}.toolbox-sample-field i{width:9px;height:9px;border-radius:50%;background:#cbd5e1}.toolbox-sample-field i.is-picked{background:#2458d3;box-shadow:0 0 0 4px rgba(36,88,211,.13)}
.toolbox-finance-terrain{position:relative;display:flex;align-items:flex-end;gap:11px;width:74%;height:72px;border-bottom:1px solid #c5cedb}.toolbox-finance-terrain i{flex:1;background:#c7d6f2}.toolbox-finance-terrain i:nth-child(1){height:30%}.toolbox-finance-terrain i:nth-child(2){height:48%}.toolbox-finance-terrain i:nth-child(3){height:41%}.toolbox-finance-terrain i:nth-child(4){height:68%}.toolbox-finance-terrain i:nth-child(5){height:84%;background:#557ed5}.toolbox-finance-terrain span{position:absolute;top:20px;right:0;left:0;height:2px;background:#2458d3;clip-path:polygon(0 82%,22% 58%,42% 69%,70% 29%,100% 0,100% 28%,70% 55%,42% 93%,22% 82%,0 100%)}
.toolbox-purchase-funnel{display:grid;gap:5px;width:78%}.toolbox-purchase-funnel i{justify-self:center;padding:5px 8px;border:1px solid #bfd0ef;background:#edf3ff;color:#526172;font-size:9px;font-style:normal;text-align:center}.toolbox-purchase-funnel i:nth-child(1){width:100%}.toolbox-purchase-funnel i:nth-child(2){width:86%}.toolbox-purchase-funnel i:nth-child(3){width:72%}.toolbox-purchase-funnel i:nth-child(4){width:58%;border-color:#e0b66b;background:#fff7e7;color:#9a6714}.toolbox-purchase-funnel i:nth-child(5){width:44%}
.toolbox-contract-heat{display:grid;gap:8px;width:78%}.toolbox-contract-heat i{display:block;height:7px;border-radius:2px;background:#d9e2ee}.toolbox-contract-heat i:nth-child(2){width:84%}.toolbox-contract-heat i:nth-child(3){width:93%}.toolbox-contract-heat i:nth-child(4){width:72%}.toolbox-contract-heat i:nth-child(5){width:88%}.toolbox-contract-heat i.is-risk{background:linear-gradient(90deg,#d9e2ee 0 42%,#d77b7b 42% 68%,#d9e2ee 68%)}.toolbox-contract-heat i.is-warn{background:linear-gradient(90deg,#d9e2ee 0 60%,#deb463 60% 82%,#d9e2ee 82%)}
.toolbox-research-chain{display:flex;align-items:center;gap:13px}.toolbox-research-chain i{position:relative;display:grid;place-items:center;width:44px;height:32px;border:1px solid #b9ccef;border-radius:3px;background:#edf3ff;color:#426196;font-size:8px;font-style:normal}.toolbox-research-chain i:not(:last-child):after{position:absolute;top:50%;right:-14px;width:14px;height:1px;background:#9db3da;content:""}.toolbox-research-chain i.is-warn{border-color:#dfb566;background:#fff5df;color:#9a6714}
.toolbox-relation-map{position:relative;width:170px;height:82px}.toolbox-relation-map:before,.toolbox-relation-map:after,.toolbox-relation-map span{position:absolute;height:1px;background:#8da9da;content:"";transform-origin:left}.toolbox-relation-map:before{top:39px;left:37px;width:96px;transform:rotate(-15deg)}.toolbox-relation-map:after{top:42px;left:39px;width:96px;transform:rotate(16deg)}.toolbox-relation-map span{top:17px;left:83px;width:57px;transform:rotate(61deg)}.toolbox-relation-map i{position:absolute;z-index:1;width:18px;height:18px;border:3px solid #edf3ff;border-radius:50%;background:#6488d3;box-shadow:0 0 0 1px #6488d3}.toolbox-relation-map .n1{top:32px;left:18px}.toolbox-relation-map .n2{top:7px;left:75px}.toolbox-relation-map .n3{top:54px;left:75px}.toolbox-relation-map .n4{top:18px;right:18px;background:#c06969;box-shadow:0 0 0 1px #c06969}.toolbox-relation-map .n5{right:10px;bottom:4px}
.toolbox-process-map{display:flex;align-items:center;gap:24px}.toolbox-process-map i{position:relative;width:28px;height:28px;border:1px solid #8ba7da;border-radius:50%;background:#edf3ff}.toolbox-process-map i:not(:last-child):after{position:absolute;top:50%;left:27px;width:26px;height:1px;background:#8ba7da;content:""}

.toolbox-page:not(.is-tool-open).mode-immersive{
  --tb-accent:#69cadb;
  --tb-accent-soft:rgba(105,202,219,.12);
  --tb-ink:#edf7fa;
  --tb-muted:#91a9b8;
  --tb-line:#294555;
  --tb-soft:#0d1c28;
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-shell{border-color:#294555;background:#0b1823;box-shadow:0 24px 60px rgba(5,16,25,.28);}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-nav{border-color:#294555;background:#08141e;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-nav-title{border-color:#294555;}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-nav-title span,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-copy small{color:#78909e}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-nav-title strong{color:#edf7fa}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-btn{color:#9eb0bc}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-btn:hover{border-color:#315266;background:#102432;color:#edf7fa}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-btn.is-active{border-color:#396477;background:#102432;color:#8bd8e5;box-shadow:inset 3px 0 0 var(--tb-accent)}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-icon,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-btn>em{background:#142836;color:#8ba0ad}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-btn.is-active .toolbox-category-icon{background:rgba(105,202,219,.12);color:#8bd8e5}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-btn.is-active>em{background:#69cadb;color:#07131c}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-detail,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-layout,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-stage{background:#0b1823;color:#edf7fa}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-field-head{border-color:#294555;background:radial-gradient(circle at 76% 12%,rgba(105,202,219,.14),transparent 34%),linear-gradient(90deg,rgba(105,202,219,.045) 1px,transparent 1px) 0 0/46px 46px,linear-gradient(rgba(105,202,219,.035) 1px,transparent 1px) 0 0/46px 46px,#0a1823}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-field-head h1,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-field-head aside strong,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-lead h2,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-route strong,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-judgment h3,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-foot strong,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row-copy strong,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-index>header>strong,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-metaphor figcaption strong{color:#edf7fa}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-field-head>div>p,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-field-head aside p,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-purpose,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-route small,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-judgment p,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row-copy small,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-metaphor figcaption small{color:#91a9b8}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-field-head .toolbox-project-glance,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-capability-path{border-color:#2c4b5c;background:rgba(11,30,42,.82);box-shadow:0 10px 30px rgba(3,11,17,.2)}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-mode-switch>div{border-color:#294555;background:#07131c}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-mode-switch button{color:#8ba0ad}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-mode-switch button.is-active{background:#163242;color:#8bd8e5;box-shadow:none}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-header-action{border-color:#396477;background:rgba(105,202,219,.06);color:#8bd8e5}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-header-action:hover{background:#69cadb;color:#07131c}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-capability-path>header{border-color:#294555}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-capability-path>header strong,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node strong{color:#c6d5dd}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node small{color:#6f8795}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node>em{border-color:#38566a;background:#0b1823;color:#78909e}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node:hover,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node.is-active{border-color:#396477;background:#102b39;box-shadow:0 0 22px rgba(105,202,219,.09)}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node.is-active strong{color:#8bd8e5}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-path-node.is-active>em{border-color:#69cadb;background:rgba(105,202,219,.12);color:#8bd8e5;box-shadow:0 0 0 4px rgba(105,202,219,.08)}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-question-field{border-color:#294555;background:#0b1823}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-question-field>label{color:#b7cad4}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-question-field>div{border-color:#38566a;background:#07131c}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-question-field>div:focus-within{border-color:#69cadb;background:#081721;box-shadow:0 0 0 3px rgba(105,202,219,.11)}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-question-field input{color:#edf7fa}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-question-field kbd{border-color:#38566a;background:#102432;color:#8ba0ad}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-index{border-color:#294555;background:#08141e}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-index>header,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-lead,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-route,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-foot{border-color:#294555}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row{color:#9eb0bc}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row:hover,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row.is-active{background:#102432;color:#8bd8e5}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row-icon{background:#142836;color:#8ba0ad}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-method-row.is-active .toolbox-method-row-icon{background:rgba(105,202,219,.12);color:#8bd8e5}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-metaphor,.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-stage-judgment{border-color:#294555;background:#0d202c}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-metaphor-canvas{border-color:#315064;background:#081721}.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-metaphor-canvas:before{background:linear-gradient(90deg,rgba(105,202,219,.04) 1px,transparent 1px) 0 0/24px 24px,linear-gradient(rgba(105,202,219,.035) 1px,transparent 1px) 0 0/24px 24px}
@media(max-width:1380px){
  .toolbox-page:not(.is-tool-open) .toolbox-shell{grid-template-columns:1fr;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav{min-height:0;flex-direction:row;align-items:center;padding:12px 16px;border-right:0;border-bottom:1px solid var(--tb-line);}
  .toolbox-page:not(.is-tool-open) .toolbox-nav-title{min-width:150px;margin:0 10px 0 0;padding:0 14px 0 0;border-right:1px solid #dfe3e9;border-bottom:0;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-btn{flex:1;min-height:54px;}
  .toolbox-page:not(.is-tool-open).mode-immersive .toolbox-nav-title{border-right-color:#294555;}
}
@media(max-width:1040px){
  .toolbox-capability-path{grid-template-columns:1fr;}.toolbox-capability-path>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 9px;border-right:0;border-bottom:1px solid #dce3ec;}
  .toolbox-page:not(.is-tool-open).mode-immersive .toolbox-capability-path>header{border-bottom-color:#294555;}
  .toolbox-path-node small{display:none;}
  .toolbox-metaphor{grid-template-columns:1fr;}.toolbox-metaphor>footer{grid-column:auto;}
}
@media(max-width:680px){
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;}
  .toolbox-page:not(.is-tool-open) .toolbox-nav-title{grid-column:1/3;min-width:0;margin:0 0 4px;padding:5px 4px 10px;border-right:0;border-bottom:1px solid #dfe3e9;}
  .toolbox-field-head{grid-template-columns:1fr;gap:22px;}.toolbox-field-controls{grid-row:2;}.toolbox-capability-path{grid-row:3;}
  .toolbox-path-track{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x proximity;}.toolbox-path-node{flex:0 0 150px;scroll-snap-align:start;}.toolbox-path-node:not(:last-child):after{display:none;}
  .toolbox-mode-switch{align-items:flex-start;flex-direction:column;}.toolbox-mode-switch>div{width:100%;}.toolbox-mode-switch button{justify-content:center;flex:1;}
}
@media(prefers-reduced-motion:reduce){
  .toolbox-path-node,.toolbox-header-action,.toolbox-mode-switch button{transition:none;}
}

/* Toolbox visual continuity correction, August 2026. */
.toolbox-page:not(.is-tool-open) .toolbox-shell{
  grid-template-columns:196px minmax(0,1fr);
}
.toolbox-page:not(.is-tool-open) .toolbox-category-nav{
  position:relative;
  top:auto;
  display:flex;
  min-height:100%;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  padding:25px 12px;
  overflow:hidden;
  border-right:1px solid var(--tb-line);
  border-bottom:0;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-nav:after{
  width:72px;
  height:72px;
  margin:auto auto 4px;
  border:1px solid rgba(36,88,211,.13);
  border-radius:50%;
  background:radial-gradient(circle,rgba(36,88,211,.12) 0 2px,transparent 3px),repeating-radial-gradient(circle,transparent 0 11px,rgba(36,88,211,.06) 12px 13px);
  content:"";
}
.toolbox-page:not(.is-tool-open) .toolbox-nav-title{
  min-width:0;
  margin:0 7px 18px;
  padding:0 0 16px;
  border-right:0;
  border-bottom:1px solid #dfe3e9;
}
.toolbox-page:not(.is-tool-open) .toolbox-category-btn{
  flex:none;
  min-height:68px;
}
.toolbox-page:not(.is-tool-open) .toolbox-tool-index{
  display:none!important;
}
.toolbox-direct-card:focus-visible,
.toolbox-mode-switch button:focus-visible,
.toolbox-special-context button:focus-visible{
  outline:3px solid rgba(36,88,211,.22);
  outline-offset:2px;
}
.toolbox-directory-head{
  display:grid;
  gap:18px;
  padding:27px 32px 24px;
  border-bottom:1px solid #e1e5eb;
  background:radial-gradient(circle at 90% 10%,rgba(36,88,211,.08),transparent 28%),linear-gradient(120deg,#fbfcfe 0%,#f4f7fc 100%);
}
.toolbox-directory-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.toolbox-directory-marker{
  display:flex;
  gap:10px;
  align-items:center;
}
.toolbox-directory-marker span,
.toolbox-direct-section-head span{
  color:#2458d3;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}
.toolbox-directory-marker em{
  padding-left:10px;
  border-left:1px solid #d4dbe6;
  color:#7a8494;
  font-size:11px;
  font-style:normal;
  font-weight:650;
}
.toolbox-directory-toolbar .toolbox-mode-switch{
  display:flex;
  gap:9px;
  align-items:center;
}
.toolbox-directory-toolbar .toolbox-mode-switch>span{
  color:#7a8494;
  font-size:10px;
  font-weight:750;
  letter-spacing:.06em;
}
.toolbox-directory-toolbar .toolbox-mode-switch>div{
  display:flex;
  padding:3px;
  border:1px solid #d7dee8;
  border-radius:5px;
  background:rgba(255,255,255,.8);
}
.toolbox-directory-toolbar .toolbox-mode-switch button{
  display:inline-flex;
  gap:5px;
  align-items:center;
  min-height:28px;
  padding:0 9px;
  border:0;
  border-radius:3px;
  background:transparent;
  color:#7a8494;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.toolbox-directory-toolbar .toolbox-mode-switch button svg{
  width:13px;
  height:13px;
}
.toolbox-directory-toolbar .toolbox-mode-switch button.is-active{
  background:#172b4d;
  color:#fff;
}
.toolbox-directory-toolbar .toolbox-mode-switch button:active{
  transform:translateY(1px);
}
.toolbox-directory-lead h1{
  max-width:760px;
  margin:0;
  color:#111827;
  font-size:31px;
  font-weight:780;
  letter-spacing:-.04em;
  line-height:1.15;
  text-wrap:balance;
}
.toolbox-directory-lead p{
  max-width:720px;
  margin:10px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.65;
  text-wrap:pretty;
}
.toolbox-project-compact{
  display:grid;
  grid-template-columns:32px minmax(0,1.15fr) minmax(180px,.85fr);
  gap:11px;
  align-items:center;
  padding:10px 12px;
  border:1px solid #d7dee8;
  border-radius:5px;
  background:rgba(255,255,255,.76);
}
.toolbox-project-mark{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:4px;
  background:#2458d3;
  color:#fff;
  font-size:12px;
  font-weight:850;
}
.toolbox-project-compact>div{
  display:grid;
  gap:2px;
  min-width:0;
}
.toolbox-project-compact small{
  color:#7a8494;
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
}
.toolbox-project-compact strong{
  overflow:hidden;
  color:#172033;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.toolbox-project-compact p{
  overflow:hidden;
  margin:0;
  color:#7a8494;
  font-size:10px;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.toolbox-direct-section{
  padding:25px 32px 21px;
}
.toolbox-direct-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.toolbox-direct-section-head h2{
  margin:4px 0 0;
  color:#172033;
  font-size:19px;
  font-weight:750;
  letter-spacing:-.025em;
}
.toolbox-direct-section-head>small{
  color:#8a93a2;
  font-size:11px;
}
.toolbox-direct-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
}
.toolbox-direct-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"copy action" "meta meta";
  gap:16px 18px;
  align-items:start;
  min-width:0;
  min-height:232px;
  height:auto;
  padding:20px;
  border:1px solid #d8e1ec;
  border-radius:10px;
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
  color:#172033;
  font:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(29,50,78,.06);
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.toolbox-direct-card:nth-child(2n){border-right:1px solid #d8e1ec;}
.toolbox-direct-card:hover{
  z-index:1;
  border-color:#9cb9ef;
  background:#fff;
  box-shadow:0 15px 32px rgba(27,58,105,.12);
  transform:translateY(-2px);
}
.toolbox-direct-card:active{transform:translateY(1px);}
.toolbox-direct-copy{
  grid-area:copy;
  display:grid;
  gap:6px;
  min-width:0;
  padding-left:12px;
  border-left:3px solid #2458d3;
}
.toolbox-direct-copy strong{
  color:#111827;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.015em;
  line-height:1.3;
}
.toolbox-direct-copy small{
  display:-webkit-box;
  overflow:hidden;
  color:#6b7789;
  font-size:11.5px;
  line-height:1.6;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.toolbox-direct-meta{
  grid-area:meta;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding-top:0;
  border-top:0;
}
.toolbox-direct-meta>span{
  display:grid;
  align-content:start;
  gap:4px;
  min-width:0;
  padding:10px 11px 11px;
  border:1px solid #e2e7ee;
  border-radius:7px;
}
.toolbox-direct-meta>span:first-child{
  background:#f8fafc;
}
.toolbox-direct-meta>span:last-child{
  border-color:#dbe6fb;
  background:#f3f7ff;
}
.toolbox-direct-meta em{
  color:#7f8a9b;
  font-size:9.5px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.04em;
}
.toolbox-direct-meta>span:last-child em{
  color:#2458d3;
}
.toolbox-direct-meta b{
  color:#344054;
  font-size:11.5px;
  font-weight:780;
  line-height:1.4;
}
.toolbox-direct-meta-detail{
  display:-webkit-box;
  overflow:hidden;
  color:#697586;
  font-size:10px;
  font-weight:500;
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.toolbox-direct-action{
  grid-area:action;
  display:inline-flex;
  gap:5px;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid #cfdbf3;
  border-radius:6px;
  background:#f6f8ff;
  color:#2458d3;
  font-size:10.5px;
  font-weight:800;
  white-space:nowrap;
}
.toolbox-direct-action svg{
  width:12px;
  height:12px;
  transition:transform .18s ease;
}
.toolbox-direct-card:hover .toolbox-direct-action svg{transform:translateX(2px);}
.toolbox-directory-note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 32px 29px;
  padding:11px 13px;
  border-left:3px solid #2458d3;
  background:#f4f7fc;
}
.toolbox-directory-note>svg{
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin-top:1px;
  color:#2458d3;
}
.toolbox-directory-note strong{display:block;color:#20365f;font-size:11px;}
.toolbox-directory-note p{margin:2px 0 0;color:#667085;font-size:11px;line-height:1.5;}

body[data-work-mode="immersive"][data-active-view="toolbox"] .main-content,
body[data-work-mode="immersive"][data-active-view="toolbox"] .breadcrumb{
  border-color:#203545;
  background:#07131d;
}
body[data-work-mode="immersive"][data-active-view="toolbox"] .page-heading h2,
body[data-work-mode="immersive"][data-active-view="toolbox"] .view-title{color:#eef7fa;}
body[data-work-mode="immersive"][data-active-view="toolbox"] .page-heading p{color:#8fa6b5;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-shell{
  border-color:#294554;
  background:#0a1721;
  box-shadow:0 24px 62px rgba(1,8,13,.34);
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-nav{
  border-color:#294554;
  background:#08141e;
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-nav:after{
  border-color:rgba(105,202,219,.2);
  background:radial-gradient(circle,rgba(105,202,219,.6) 0 2px,transparent 3px),repeating-radial-gradient(circle,transparent 0 11px,rgba(105,202,219,.08) 12px 13px);
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-nav-title,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-head,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-grid,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-card,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-project-compact{
  border-color:#294554;
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-category-detail,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-section{
  background:#0a1721;
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-head{
  background:radial-gradient(circle at 88% 8%,rgba(105,202,219,.14),transparent 30%),linear-gradient(90deg,rgba(105,202,219,.035) 1px,transparent 1px) 0 0/34px 34px,linear-gradient(rgba(105,202,219,.028) 1px,transparent 1px) 0 0/34px 34px,#0b1924;
}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-lead h1,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-section-head h2,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-copy strong,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-project-compact strong{color:#eef7fa;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-lead p,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-copy small,
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-project-compact p{color:#91a7b6;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-marker em{border-color:#34505f;color:#78909e;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-toolbar .toolbox-mode-switch>div{border-color:#31505f;background:#07131d;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-toolbar .toolbox-mode-switch button.is-active{background:#183442;color:#8bd8e5;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-project-compact{background:rgba(8,21,31,.72);}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-project-mark{background:#69cadb;color:#07131d;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-grid{background:transparent;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-card{border-color:#294554;background:linear-gradient(180deg,#0d1f2b,#0b1a24);color:#d9e8ed;box-shadow:0 10px 28px rgba(0,8,12,.2);}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-card:hover{border-color:#44758a;background:#102834;box-shadow:0 16px 36px rgba(0,8,12,.32);}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-copy{border-left-color:#69cadb;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta{border-color:#294554;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta>span:first-child{border-color:#294554;background:#091821;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta>span:last-child{border-color:#315463;background:rgba(105,202,219,.07);}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta em{color:#78909e;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta>span:last-child em{color:#8bd8e5;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta b{color:#b9ccd5;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-meta-detail{color:#78909e;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-direct-action{border-color:#3c6778;background:rgba(105,202,219,.06);color:#8bd8e5;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-note{background:#0d202b;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-note strong{color:#bceaf0;}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-directory-note p{color:#8fa6b5;}

.toolbox-special-context{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  margin:0 0 16px;
  padding:10px 12px;
  border:1px solid #263d55;
  border-radius:6px;
  background:linear-gradient(110deg,#0d1c2c,#132943);
  color:#eaf2fb;
  box-shadow:0 10px 26px rgba(15,32,54,.12);
}
.toolbox-special-context button{
  display:inline-flex;
  gap:7px;
  align-items:center;
  min-height:34px;
  padding:0 11px;
  border:1px solid #3a5875;
  border-radius:4px;
  background:#162b43;
  color:#d9e8f7;
  font:inherit;
  font-size:11px;
  font-weight:760;
  cursor:pointer;
  transition:background-color .18s ease,transform .18s ease;
}
.toolbox-special-context button:hover{background:#1e3a58;}
.toolbox-special-context button:active{transform:translateY(1px);}
.toolbox-special-context button svg{width:14px;height:14px;}
.toolbox-special-context>div{display:grid;gap:2px;min-width:0;}
.toolbox-special-context small{color:#7f9bb6;font-size:9px;font-weight:750;letter-spacing:.09em;}
.toolbox-special-context strong{overflow:hidden;color:#f1f6fb;font-size:13px;text-overflow:ellipsis;white-space:nowrap;}
.toolbox-special-context em{padding:4px 7px;border-left:2px solid #69cadb;color:#9fb8ca;font-size:10px;font-style:normal;font-weight:700;white-space:nowrap;}

html[data-theme="dark"] .toolbox-directory-head,
html[data-theme="dark"] .toolbox-direct-card,
html[data-theme="dark"] .toolbox-project-compact{border-color:#314158;background:#172235;}
html[data-theme="dark"] .toolbox-directory-lead h1,
html[data-theme="dark"] .toolbox-direct-section-head h2,
html[data-theme="dark"] .toolbox-direct-copy strong,
html[data-theme="dark"] .toolbox-project-compact strong{color:#eef4ff;}
html[data-theme="dark"] .toolbox-directory-lead p,
html[data-theme="dark"] .toolbox-direct-copy small,
html[data-theme="dark"] .toolbox-project-compact p,
html[data-theme="dark"] .toolbox-directory-note p{color:#a8b7ca;}
html[data-theme="dark"] .toolbox-directory-note{background:#13233b;}
html[data-theme="dark"] .toolbox-directory-note strong{color:#bfdbfe;}
html[data-theme="dark"] .toolbox-direct-copy{border-left-color:#60a5fa;}
html[data-theme="dark"] .toolbox-direct-meta>span:first-child{border-color:#314158;background:#111d2d;}
html[data-theme="dark"] .toolbox-direct-meta>span:last-child{border-color:#385071;background:#13233b;}
html[data-theme="dark"] .toolbox-direct-meta>span:last-child em{color:#93c5fd;}
html[data-theme="dark"] .toolbox-direct-meta b{color:#dbe7f5;}
html[data-theme="dark"] .toolbox-direct-meta-detail{color:#9fb0c7;}
@media(max-width:1120px){
  .toolbox-direct-grid{grid-template-columns:1fr;}
  .toolbox-direct-card{min-height:0;}
}
@media(max-width:900px){
  .toolbox-page:not(.is-tool-open) .toolbox-shell{grid-template-columns:1fr;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav{position:static;display:grid;grid-template-columns:180px repeat(2,minmax(0,1fr));min-height:0;padding:12px 14px;border-right:0;border-bottom:1px solid var(--tb-line);}
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav:after{display:none;}
  .toolbox-page:not(.is-tool-open) .toolbox-nav-title{align-content:center;margin:0;padding:0 14px 0 0;border-right:1px solid #dfe3e9;border-bottom:0;}
  .toolbox-page:not(.is-tool-open) .toolbox-category-btn{min-height:56px;}
  .toolbox-directory-head{padding:24px;}
  .toolbox-direct-section{padding:23px 24px 20px;}
  .toolbox-directory-note{margin:0 24px 26px;}
}
@media(max-width:680px){
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;}
  .toolbox-page:not(.is-tool-open) .toolbox-nav-title{grid-column:1/-1;margin:0 0 4px;padding:4px 4px 11px;border-right:0;border-bottom:1px solid #dfe3e9;}
  .toolbox-directory-toolbar{align-items:flex-start;flex-direction:column;}
  .toolbox-directory-toolbar .toolbox-mode-switch{width:100%;justify-content:space-between;}
  .toolbox-directory-toolbar .toolbox-mode-switch>div{flex:1;}
  .toolbox-directory-toolbar .toolbox-mode-switch button{justify-content:center;flex:1;}
  .toolbox-directory-lead h1{font-size:25px;}
  .toolbox-project-compact{grid-template-columns:32px minmax(0,1fr);}
  .toolbox-project-compact p{display:none;}
  .toolbox-direct-grid{grid-template-columns:1fr;}
  .toolbox-direct-card{grid-column:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"copy action" "meta meta";min-height:0;height:auto;padding:16px;border:1px solid #d8e1ec;}
  .toolbox-direct-card:last-child{border-bottom:1px solid #d8e1ec;}
  .toolbox-direct-meta{grid-template-columns:1fr;}
  .toolbox-direct-action{justify-self:start;}
  .toolbox-direct-section-head{align-items:flex-start;flex-direction:column;gap:5px;}
  .toolbox-special-context{grid-template-columns:1fr auto;}
  .toolbox-special-context button{grid-column:1/-1;justify-self:start;}
}
@media(prefers-reduced-motion:reduce){
  .toolbox-direct-card,.toolbox-direct-action svg,.toolbox-mode-switch button,.toolbox-special-context button{transition:none;}
  .toolbox-direct-card:hover{transform:none;}
}
.ic-library-project-scope{display:grid;grid-template-columns:minmax(250px,1.15fr) minmax(250px,.9fr) minmax(220px,.8fr) auto;gap:14px;align-items:end;margin-top:14px;padding:16px;border:1px solid #cbdcf4;border-radius:12px;background:#f7faff}
.ic-library-project-scope-copy{align-self:center}.ic-library-project-scope-copy>span{display:block;margin-bottom:4px;color:#2563eb;font-size:12px;font-weight:850;letter-spacing:.05em}.ic-library-project-scope-copy>strong{display:block;color:#172033;font-size:15px}.ic-library-project-scope-copy>p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.5}
.ic-library-project-scope>label{display:grid;gap:6px}.ic-library-project-scope>label>span{color:#475569;font-size:12px;font-weight:800}.ic-library-project-scope select{width:100%;min-height:40px;padding:0 34px 0 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font-size:13px}
.ic-library-project-scope-state{display:grid;align-content:center;gap:4px;min-height:40px}.ic-library-project-scope-state strong{color:#1e3a5f;font-size:13px}.ic-library-project-scope-state small{color:#64748b;font-size:12px;line-height:1.4}
.ic-library-project-scope-actions{display:flex;justify-content:flex-end;gap:8px;white-space:nowrap}.ic-library-project-scope-actions .btn{min-height:40px}.ic-library-project-scope.is-empty{grid-template-columns:minmax(0,1fr) auto;align-items:center}.ic-library-project-scope.is-empty>div{display:grid;gap:4px}.ic-library-project-scope.is-empty span{color:#2563eb;font-size:12px;font-weight:850}.ic-library-project-scope.is-empty strong{color:#172033}.ic-library-project-scope.is-empty p{margin:0;color:#64748b;font-size:13px}
html[data-theme="dark"] .ic-library-project-scope{border-color:#385071;background:#17263c}html[data-theme="dark"] .ic-library-project-scope-copy>strong,html[data-theme="dark"] .ic-library-project-scope-state strong,html[data-theme="dark"] .ic-library-project-scope.is-empty strong{color:#edf4ff}html[data-theme="dark"] .ic-library-project-scope select{border-color:#465b77;background:#101b2b;color:#edf4ff}
@media(max-width:1180px){.ic-library-project-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.ic-library-project-scope-actions{justify-content:flex-start}}
@media(max-width:760px){.ic-library-project-scope,.ic-library-project-scope.is-empty{grid-template-columns:1fr}.ic-library-project-scope-actions{flex-wrap:wrap}.ic-library-project-scope-actions .btn{flex:1 1 180px}}
.ic-project-mode-back{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.ic-project-mode-back span{min-width:0;overflow:hidden;color:#52637a;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}html[data-theme="dark"] .ic-project-mode-back{border-color:#314158;background:#172235}html[data-theme="dark"] .ic-project-mode-back span{color:#bfcee1}@media(max-width:760px){.ic-project-mode-back{align-items:flex-start;flex-direction:column}.ic-project-mode-back span{white-space:normal}}

/* Professional analysis modules stay inside the audit toolbox workbench. */
.professional-tool-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.professional-tool-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:start;min-width:0;padding:11px 12px;border:1px solid #d8e1ec;border-radius:9px;background:#f8fafc;color:#697586}
.professional-tool-step>b{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#edf1f6;color:#7b8797;font-size:10px;font-weight:850}
.professional-tool-step>span{display:grid;gap:3px;min-width:0}
.professional-tool-step strong{color:#344054;font-size:12px;font-weight:800;line-height:1.35}
.professional-tool-step small{color:#7b8797;font-size:10px;line-height:1.45}
.professional-tool-step.is-active{border-color:#a8c0ef;background:#f3f7ff;box-shadow:0 8px 20px rgba(36,88,211,.08)}
.professional-tool-step.is-active>b{background:#2458d3;color:#fff}
.professional-tool-step.is-active strong{color:#1f4fb8}
.professional-tool-step.is-complete{border-color:#cfe5da;background:#f5fbf7}
.professional-tool-step.is-complete>b{background:#dff3e8;color:#177245}
html[data-theme="dark"] .professional-tool-step{border-color:#314158;background:#111d2d;color:#9fb0c7}
html[data-theme="dark"] .professional-tool-step strong{color:#dbe7f5}
html[data-theme="dark"] .professional-tool-step.is-active{border-color:#3c608a;background:#13233b}
html[data-theme="dark"] .professional-tool-step.is-active strong{color:#93c5fd}
@media(max-width:760px){.professional-tool-flow{grid-template-columns:1fr}}
.toolbox-professional-workspace{min-width:0;min-height:640px;background:#f4f7fb}
.toolbox-professional-summary{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(520px,1.2fr);gap:28px;align-items:center;padding:20px 24px;border-bottom:1px solid #dce4ee;background:#fff}
.toolbox-professional-summary>div>span{display:block;margin-bottom:5px;color:#2563eb;font-size:.66rem;font-weight:900;letter-spacing:.12em}
.toolbox-professional-summary h1{margin:0;color:#172033;font-size:1.28rem;line-height:1.25}
.toolbox-professional-summary p{max-width:720px;margin:7px 0 0;color:#64748b;font-size:.77rem;line-height:1.6}
.toolbox-professional-summary dl{display:grid;grid-template-columns:minmax(120px,.72fr) minmax(120px,.72fr) minmax(220px,1.56fr);gap:1px;margin:0;overflow:hidden;border:1px solid #dbe3ed;border-radius:9px;background:#dbe3ed}
.toolbox-professional-summary dl>div{min-width:0;padding:11px 12px;background:#f8fafc}
.toolbox-professional-summary dt{color:#64748b;font-size:.62rem;font-weight:850}
.toolbox-professional-summary dd{margin:4px 0 0;color:#26364c;font-size:.7rem;font-weight:760;line-height:1.45}
.toolbox-professional-slot{min-width:0;padding:20px 22px 28px}
.toolbox-professional-slot>#fi-content,.toolbox-professional-slot>#purchase-mvp-content,.toolbox-professional-slot>#contract-content,.toolbox-professional-slot>#rd-content,.toolbox-professional-slot>#rs-content{min-width:0;width:100%}
.toolbox-professional-slot .fi-container,.toolbox-professional-slot .pmvp-page{min-width:0;width:100%}
.toolbox-professional-slot .pmvp-hero{margin-top:0}
.toolbox-professional-error{display:flex;align-items:flex-start;gap:12px;padding:22px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;color:#991b1b}
.toolbox-professional-error svg{flex:0 0 auto;width:20px;height:20px}.toolbox-professional-error strong{display:block;font-size:.86rem}.toolbox-professional-error p{margin:4px 0 0;color:#b45353;font-size:.74rem;line-height:1.5}
html[data-theme="dark"] .toolbox-professional-workspace{background:#111b2a}html[data-theme="dark"] .toolbox-professional-summary{border-color:#314158;background:#172235}html[data-theme="dark"] .toolbox-professional-summary h1{color:#eef4ff}html[data-theme="dark"] .toolbox-professional-summary p{color:#a8b7ca}html[data-theme="dark"] .toolbox-professional-summary dl{border-color:#314158;background:#314158}html[data-theme="dark"] .toolbox-professional-summary dl>div{background:#13233b}html[data-theme="dark"] .toolbox-professional-summary dt{color:#91a4bb}html[data-theme="dark"] .toolbox-professional-summary dd{color:#dbe7f5}
@media(max-width:1100px){.toolbox-professional-summary{grid-template-columns:1fr;gap:16px}}
@media(max-width:760px){.toolbox-professional-summary{padding:17px 16px}.toolbox-professional-summary dl{grid-template-columns:1fr}.toolbox-professional-slot{padding:14px 12px 22px}}

/* Annual audit coverage hierarchy: company -> audit category -> specialty. */
.dash-coverage-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.dash-coverage-head-actions .btn{white-space:nowrap}
.dash-coverage-category-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #e7edf5;background:#fbfcfe}.dash-coverage-category-summary>div{display:flex;align-items:baseline;gap:6px;padding:10px 17px;border-right:1px solid #e7edf5}.dash-coverage-category-summary>div:last-child{border-right:0}.dash-coverage-category-summary span{color:#52637a;font-size:13px;font-weight:800}.dash-coverage-category-summary strong{margin-left:auto;color:#172033;font-size:20px}.dash-coverage-category-summary small{color:#64748b;font-size:11px}
.dash-coverage-entity>div{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-coverage-entity b{display:grid;justify-content:stretch;gap:2px;padding:7px 8px;text-align:left}.dash-coverage-entity b span{font-size:11px;font-weight:850}.dash-coverage-entity b em{font-size:10px;font-style:normal;font-weight:700;opacity:.82}
.dash-scope-badge{display:grid;gap:1px}.dash-scope-badge small{color:#718096;font-size:10px;font-weight:700;line-height:1}.dash-coverage-summary{min-width:150px}
.ap-coverage-table thead th{height:48px}.ap-coverage-table thead th>small{display:block;margin-top:2px;color:#8491a3;font-size:10px;font-weight:500}.ap-coverage-table thead th:first-child,.ap-coverage-table tbody>tr>th{width:210px}
.ap-coverage-modal{width:600px}.ap-coverage-specialties{margin-top:12px;border:1px solid #dbe5f1;border-radius:9px;overflow:hidden}.ap-coverage-specialties-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;background:#f8fafc}.ap-coverage-specialties-head strong{color:#334155;font-size:12px}.ap-coverage-specialties-head span{color:#718096;font-size:11px}.ap-coverage-specialties>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 11px;border:0;border-top:1px solid #e8edf3;background:#fff;text-align:left;cursor:pointer}.ap-coverage-specialties>button:hover{background:#f7faff}.ap-coverage-specialties>button>span{display:grid;gap:2px}.ap-coverage-specialties>button strong{color:#334155;font-size:12px}.ap-coverage-specialties>button small{color:#718096;font-size:11px}.ap-coverage-specialties>button>b{padding:4px 7px;border-radius:999px;font-size:10px}.ap-coverage-specialties>button>b.is-completed{background:#eaf8f1;color:#087755}.ap-coverage-specialties>button>b.is-in-progress{background:#eaf2ff;color:#1d5dc9}.ap-coverage-specialties>button>b.is-planned{background:#fff6df;color:#9a6200}.ap-coverage-specialties>button>b.is-not-covered,.ap-coverage-specialties>button>b.is-not-applicable{background:#eef2f6;color:#64748b}.ap-coverage-candidate-note{display:grid;gap:3px;margin-top:12px;padding:10px 11px;border-left:3px solid #3978db;background:#f4f8ff}.ap-coverage-candidate-note strong{color:#1d4ed8;font-size:12px}.ap-coverage-candidate-note span{color:#52637a;font-size:11px;line-height:1.45}
html[data-theme="dark"] .dash-coverage-category-summary,html[data-theme="dark"] .ap-coverage-specialties-head{border-color:#314158;background:#13233b}html[data-theme="dark"] .dash-coverage-category-summary strong,html[data-theme="dark"] .ap-coverage-specialties>button strong{color:#eef4ff}html[data-theme="dark"] .ap-coverage-specialties,html[data-theme="dark"] .ap-coverage-specialties>button{border-color:#314158;background:#172235}
@media(max-width:900px){.dash-coverage-head-actions{justify-content:flex-start}}@media(max-width:620px){.dash-coverage-category-summary{grid-template-columns:1fr}.dash-coverage-category-summary>div{border-right:0;border-bottom:1px solid #e7edf5}.dash-coverage-category-summary>div:last-child{border-bottom:0}.dash-coverage-entity>div{grid-template-columns:1fr}.dash-coverage-head-actions{align-items:stretch;flex-direction:column}.dash-coverage-head-actions .btn{width:100%}.ap-coverage-specialties-head{align-items:flex-start;flex-direction:column}}

/* Audit coverage: organization x audit topic x annual project status. */
.dash-coverage-entities{display:grid}
.dash-coverage-entity{display:grid;grid-template-columns:minmax(210px,1fr) minmax(390px,1.3fr);gap:16px;align-items:center;min-height:62px;padding:10px 17px;border-bottom:1px solid #edf2f7;background:#fff}
.dash-coverage-entity:last-child{border-bottom:0}.dash-coverage-entity>span{display:grid;gap:3px;min-width:0}.dash-coverage-entity>span strong{color:#172033;font-size:15px}.dash-coverage-entity>span small{overflow:hidden;color:#64748b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.dash-coverage-entity>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.dash-coverage-entity b{display:flex;justify-content:center;padding:6px;border-radius:7px;font-size:11px;white-space:nowrap}.dash-coverage-entity b.is-done{background:#eaf8f1;color:#087755}.dash-coverage-entity b.is-active{background:#eaf2ff;color:#1d5dc9}.dash-coverage-entity b.is-planned{background:#fff6df;color:#9a6200}.dash-coverage-entity b.is-gap{background:#f1f4f8;color:#64748b}

.ap-coverage-map{margin:14px 0;overflow:hidden;border:1px solid #d9e3ef;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.ap-coverage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:17px 18px;border-bottom:1px solid #e4eaf2}.ap-coverage-head>div:first-child>span{display:block;margin-bottom:3px;color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.06em}.ap-coverage-head h3{margin:0;color:#172033;font-size:20px}.ap-coverage-head p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.5}.ap-coverage-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.ap-coverage-head-actions>span{margin-right:4px;color:#52637a;font-size:12px;font-weight:750}
.ap-coverage-legend{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:9px 18px;border-bottom:1px solid #edf2f7;background:#fbfcfe}.ap-coverage-legend span{display:inline-flex;align-items:center;gap:5px;color:#64748b;font-size:11px;font-weight:750}.ap-coverage-legend span:before{content:"";width:8px;height:8px;border-radius:50%;background:#cbd5e1}.ap-coverage-legend .is-completed:before{background:#17a673}.ap-coverage-legend .is-in-progress:before{background:#3978db}.ap-coverage-legend .is-planned:before{background:#e19a20}.ap-coverage-legend .is-not-covered:before{background:#a8b3c2}.ap-coverage-legend .is-not-applicable:before{background:#e2e8f0}
.ap-coverage-table-wrap{max-width:100%;overflow:auto}.ap-coverage-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;table-layout:fixed}.ap-coverage-table th,.ap-coverage-table td{padding:0;border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3;vertical-align:stretch}.ap-coverage-table thead th{height:44px;padding:8px;background:#f7f9fc;color:#52637a;font-size:12px;text-align:center}.ap-coverage-table thead th:first-child{position:sticky;left:0;z-index:3;width:190px;padding-left:15px;text-align:left}.ap-coverage-table tbody>tr>th{position:sticky;left:0;z-index:2;width:190px;padding:10px 14px;background:#fbfcfe;text-align:left}.ap-coverage-table tbody>tr>th strong,.ap-coverage-table tbody>tr>th small{display:block}.ap-coverage-table tbody>tr>th strong{color:#1e293b;font-size:13px}.ap-coverage-table tbody>tr>th small{margin-top:3px;color:#8491a3;font-size:11px;font-weight:500}.ap-coverage-table tr:last-child th,.ap-coverage-table tr:last-child td{border-bottom:0}.ap-coverage-table th:last-child,.ap-coverage-table td:last-child{border-right:0}
.ap-coverage-cell{display:grid;align-content:center;gap:3px;width:100%;min-height:62px;padding:8px;border:0;border-left:3px solid transparent;background:#fff;text-align:left;cursor:pointer}.ap-coverage-cell:hover{filter:brightness(.98)}.ap-coverage-cell strong{font-size:12px}.ap-coverage-cell small{overflow:hidden;color:#718096;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.ap-coverage-cell.is-completed{border-left-color:#17a673;background:#effaf5;color:#087755}.ap-coverage-cell.is-in-progress{border-left-color:#3978db;background:#eff5ff;color:#1d5dc9}.ap-coverage-cell.is-planned{border-left-color:#e19a20;background:#fff8e9;color:#9a6200}.ap-coverage-cell.is-not-covered{background:#fff;color:#718096}.ap-coverage-cell.is-not-applicable{background:#f4f6f8;color:#9aa5b3}.ap-coverage-map>footer{padding:9px 18px;background:#fbfcfe;color:#64748b;font-size:11px}
.ap-coverage-empty{display:grid;justify-items:start;gap:4px;padding:24px 18px}.ap-coverage-empty strong{color:#334155;font-size:14px}.ap-coverage-empty span{color:#64748b;font-size:12px}.ap-coverage-modal{width:520px}.ap-coverage-cell-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px;border:1px solid #dbe5f1;border-radius:9px;background:#f8fafc}.ap-coverage-cell-title>span{color:#1e293b;font-size:14px;font-weight:800}.ap-coverage-cell-title>i{color:#94a3b8;font-style:normal}.ap-coverage-cell-title>b{margin-left:auto;padding:5px 8px;border-radius:999px;font-size:11px}.ap-coverage-cell-title>b.is-completed{background:#eaf8f1;color:#087755}.ap-coverage-cell-title>b.is-in-progress{background:#eaf2ff;color:#1d5dc9}.ap-coverage-cell-title>b.is-planned{background:#fff6df;color:#9a6200}.ap-coverage-cell-title>b.is-not-covered,.ap-coverage-cell-title>b.is-not-applicable{background:#eef2f6;color:#64748b}.ap-coverage-linked{display:grid;gap:7px;margin:12px 0 0;padding:0;list-style:none}.ap-coverage-linked li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:8px}.ap-coverage-linked strong{color:#334155;font-size:12px}.ap-coverage-linked span{color:#64748b;font-size:11px}
html[data-theme="dark"] .dash-coverage-entity,html[data-theme="dark"] .ap-coverage-map,html[data-theme="dark"] .ap-coverage-cell{border-color:#314158;background:#172235}html[data-theme="dark"] .dash-coverage-entity>span strong,html[data-theme="dark"] .ap-coverage-head h3,html[data-theme="dark"] .ap-coverage-table tbody>tr>th strong{color:#eef4ff}html[data-theme="dark"] .ap-coverage-table thead th,html[data-theme="dark"] .ap-coverage-table tbody>tr>th,html[data-theme="dark"] .ap-coverage-legend,html[data-theme="dark"] .ap-coverage-map>footer{border-color:#314158;background:#13233b}
@media(max-width:900px){.dash-coverage-entity{grid-template-columns:1fr}.ap-coverage-head{flex-direction:column}.ap-coverage-head-actions{justify-content:flex-start}}@media(max-width:620px){.dash-coverage-entity>div{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-coverage-head-actions{align-items:stretch;flex-direction:column}.ap-coverage-head-actions .btn{width:100%}}

/* Coverage hierarchy overrides must follow the legacy flat-map rules. */
.dash-coverage-entity>div{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-coverage-entity b{display:grid;justify-content:stretch;gap:2px;padding:7px 8px;text-align:left}.dash-coverage-entity b span{font-size:11px;font-weight:850}.dash-coverage-entity b em{font-size:10px;font-style:normal;font-weight:700;opacity:.82}
.ap-coverage-table{min-width:760px}.ap-coverage-table thead th{height:48px}.ap-coverage-table thead th>small{display:block;margin-top:2px;color:#8491a3;font-size:10px;font-weight:500}.ap-coverage-table thead th:first-child,.ap-coverage-table tbody>tr>th{width:210px}
.ap-coverage-modal{width:600px}
@media(max-width:620px){.dash-coverage-entity>div{grid-template-columns:1fr}}

/* Environment and operating risk workbench */
.er-shell{display:grid;gap:14px;color:#1f2d3d}.er-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:4px 2px 0}.er-head>div:first-child{max-width:760px}.er-head>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.er-head span:not(.am-record-status){display:block;margin-top:8px;color:#3270cf;font-size:11px;font-weight:800;letter-spacing:.06em}.er-head h2{margin:5px 0 4px;font-size:24px;line-height:1.25}.er-head p{margin:0;color:#68778c;font-size:13px;line-height:1.65}.er-back{padding:0;border:0;background:transparent;color:#506176;font-size:12px;cursor:pointer}.er-back:hover{color:#1f64c8}
.er-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid #dbe5f0;border-radius:10px;background:#fff}.er-steps span{display:flex;align-items:center;gap:8px;padding:10px 13px;border-right:1px solid #e6edf5;color:#56677c;font-size:12px;font-weight:700}.er-steps span:last-child{border-right:0}.er-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eaf2ff;color:#1f64c8;font-size:10px}.er-boundary,.er-object-warning{display:flex;align-items:flex-start;gap:12px;padding:11px 14px;border-left:3px solid #4e83d7;background:#f3f7fd}.er-boundary strong,.er-object-warning strong{flex:0 0 auto;color:#2259ad;font-size:12px}.er-boundary p,.er-object-warning p{margin:0;color:#56677c;font-size:12px;line-height:1.55}.er-object-warning{align-items:center;border-left-color:#d89722;background:#fff8e8}.er-object-warning strong{color:#965f00}.er-object-warning .btn{margin-left:auto;white-space:nowrap}
.er-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;align-items:start;gap:14px}.er-layout main,.er-layout aside{display:grid;gap:14px}.er-layout aside{position:sticky;top:14px}.er-panel,.er-side-card{border:1px solid #dbe5f0;border-radius:11px;background:#fff}.er-panel{padding:16px}.er-panel-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}.er-panel-head>span,.er-material-panel summary span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:7px;background:#eaf2ff;color:#1d60c4;font-size:11px;font-weight:900}.er-panel-head h3{margin:1px 0 3px;font-size:15px}.er-panel-head p{margin:0;color:#708096;font-size:11px;line-height:1.5}.er-scope-grid,.er-factor-grid,.er-force-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px}.er-scope-grid label,.er-factor-grid label,.er-force-settings label{display:grid;align-content:start;gap:5px;min-width:0}.er-scope-grid label>span,.er-factor-grid label>span,.er-force-settings label>span{color:#46566a;font-size:11px;font-weight:750}.er-scope-grid .is-wide,.er-factor-grid .is-wide,.er-force-settings .is-wide{grid-column:1/-1}.er-scope-grid input,.er-scope-grid select,.er-scope-grid textarea,.er-factor-grid input,.er-factor-grid select,.er-factor-grid textarea,.er-force-settings input,.er-force-settings select{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;border:1px solid #cfdae8;border-radius:7px;background:#fff;color:#26374a;font:inherit;font-size:12px;line-height:1.45}.er-scope-grid input:focus,.er-scope-grid select:focus,.er-scope-grid textarea:focus,.er-factor-grid input:focus,.er-factor-grid select:focus,.er-factor-grid textarea:focus,.er-force-settings input:focus,.er-force-settings select:focus,.er-judgment:focus{outline:2px solid rgba(48,112,207,.16);border-color:#4e83d7}.er-method-toggle,.er-risk-switch{display:flex!important;align-items:center!important;grid-template-columns:auto 1fr!important;justify-content:flex-start!important;padding:9px 10px;border:1px solid #dbe5f0;border-radius:7px;background:#f8fafc}.er-method-toggle input,.er-risk-switch input{width:auto!important;margin:0}.er-method-toggle span,.er-risk-switch span{font-size:12px!important}
.er-material-panel{padding:0}.er-material-panel>summary{display:flex;padding:13px 16px;list-style:none;cursor:pointer}.er-material-panel>summary::-webkit-details-marker{display:none}.er-material-panel>summary>div{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:3px 11px}.er-material-panel summary span{grid-row:1/3}.er-material-panel summary strong{font-size:13px}.er-material-panel summary small{color:#7c8a9d;font-size:10px}.er-material-panel>div{padding:0 16px 15px}.er-material-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.er-material-list label{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid #e0e8f1;border-radius:7px}.er-material-list strong,.er-material-list small{display:block}.er-material-list strong{font-size:11px}.er-material-list small{margin-top:3px;color:#7c8a9d;font-size:10px}.er-empty-note{margin:0;color:#78879a;font-size:11px;line-height:1.5}
.er-factor-list,.er-force-list{display:grid;gap:8px}.er-factor-card,.er-force-card{overflow:hidden;border:1px solid #dfe7f0;border-radius:9px;background:#fff}.er-factor-card[open],.er-force-card[open]{border-color:#bfd2ea}.er-factor-card>summary,.er-force-card>summary{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;list-style:none;cursor:pointer;background:#fbfcfe}.er-factor-card>summary::-webkit-details-marker,.er-force-card>summary::-webkit-details-marker{display:none}.er-factor-card>summary>span,.er-force-card>summary>span{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#eaf2ff;color:#1f64c8;font-size:11px;font-weight:900}.er-factor-card>summary strong,.er-force-card>summary strong{display:block;font-size:12px}.er-factor-card>summary small,.er-force-card>summary small{display:block;margin-top:2px;color:#7a899d;font-size:10px;line-height:1.4}.er-factor-card>summary em,.er-force-card>summary em{padding:4px 7px;border-radius:999px;background:#edf2f7;color:#6c7b8d;font-size:10px;font-style:normal;font-weight:750;white-space:nowrap}.er-factor-card.is-warning>summary em,.er-force-card.is-warning>summary em{background:#fff1d4;color:#946000}.er-factor-card.is-selected>summary em,.er-force-card.is-selected>summary em{background:#e7f6ef;color:#087755}.er-factor-card.is-ready>summary em,.er-force-card.is-ready>summary em{background:#eaf2ff;color:#1d60c4}.er-factor-body{padding:13px;border-top:1px solid #e4ebf3}.er-force-settings{margin-bottom:12px;padding-bottom:12px;border-bottom:1px dashed #dbe5f0}.er-not-applicable{margin:0;padding:13px;border-radius:7px;background:#f6f8fa;color:#718096;font-size:11px}.er-risk-candidate small{color:#77879a;font-size:10px}.er-risk-switch{align-self:end}.er-judgment{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #cfdae8;border-radius:8px;background:#fff;color:#26374a;font:inherit;font-size:12px;line-height:1.55}
.er-factor-card.is-recorded>summary em,.er-force-card.is-recorded>summary em{background:#eef4fb;color:#526a86}.er-factor-card.is-muted>summary em,.er-force-card.is-muted>summary em{background:#f0f2f4;color:#707b87}.er-factor-core{margin-bottom:10px}.er-factor-advanced{overflow:hidden;border:1px solid #dfe7f0;border-radius:8px;background:#fbfcfe}.er-factor-advanced>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;list-style:none;cursor:pointer}.er-factor-advanced>summary::-webkit-details-marker{display:none}.er-factor-advanced>summary>span{color:#315f9f;font-size:11px;font-weight:800}.er-factor-advanced>summary>small{color:#7a899c;font-size:10px}.er-factor-advanced>summary>em{padding:3px 6px;border-radius:999px;background:#edf2f7;color:#667789;font-size:9px;font-style:normal}.er-factor-advanced>.er-factor-grid{padding:11px;border-top:1px solid #e4ebf3;background:#fff}.er-judgment-grid{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);align-items:start;gap:12px}.er-judgment-grid label{display:grid;gap:6px}.er-judgment-grid label>span{color:#46566a;font-size:11px;font-weight:750}.er-judgment-grid select{box-sizing:border-box;width:100%;padding:10px;border:1px solid #cfdae8;border-radius:8px;background:#fff;color:#26374a;font:inherit;font-size:12px}.er-judgment-grid small{color:#78879a;font-size:10px;line-height:1.5}.er-output-decision{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;border-bottom:1px solid #e7edf4;background:#f6f9fc}.er-output-decision span{color:#64778d;font-size:9px;font-weight:750}.er-output-decision strong{color:#315f9f;font-size:10px}.er-output-judgment strong{display:block;margin-top:6px;color:#315f9f;font-size:12px}
.er-side-card{padding:14px}.er-side-card>span{color:#3671cc;font-size:10px;font-weight:850;letter-spacing:.06em}.er-side-card h3{margin:5px 0 7px;font-size:14px}.er-side-card>p{margin:0;color:#718096;font-size:11px;line-height:1.55}.er-candidate-list{display:grid;gap:8px;margin-top:11px}.er-candidate-list article{padding:10px;border:1px solid #dfe7f0;border-radius:8px;background:#fbfcfe}.er-candidate-list small,.er-candidate-list strong{display:block}.er-candidate-list small{color:#728197;font-size:10px}.er-candidate-list strong{margin:4px 0;font-size:12px;line-height:1.4}.er-candidate-list p{margin:0 0 8px;color:#67778b;font-size:10px;line-height:1.5}.er-handoff-list{display:grid;gap:7px;margin:9px 0 11px;padding:0;list-style:none}.er-handoff-list li{padding:8px;border-left:2px solid #4e83d7;background:#f4f8fd}.er-handoff-list strong,.er-handoff-list small{display:block}.er-handoff-list strong{font-size:11px}.er-handoff-list small{margin-top:3px;color:#7c8a9d;font-size:9px}.er-side-card dl{display:grid;gap:7px;margin:10px 0 0}.er-side-card dl>div{display:flex;justify-content:space-between;gap:10px;padding-bottom:6px;border-bottom:1px solid #edf1f5}.er-side-card dt{color:#7b8999;font-size:10px}.er-side-card dd{margin:0;color:#3c4c60;font-size:10px;text-align:right}.pra-environment-source .pra-method-evidence-actions{justify-content:flex-start}
html[data-theme="dark"] .er-shell{color:#edf4ff}html[data-theme="dark"] .er-steps,html[data-theme="dark"] .er-panel,html[data-theme="dark"] .er-side-card,html[data-theme="dark"] .er-factor-card,html[data-theme="dark"] .er-force-card{border-color:#314158;background:#172235}html[data-theme="dark"] .er-factor-card>summary,html[data-theme="dark"] .er-force-card>summary,html[data-theme="dark"] .er-scope-grid input,html[data-theme="dark"] .er-scope-grid select,html[data-theme="dark"] .er-scope-grid textarea,html[data-theme="dark"] .er-factor-grid input,html[data-theme="dark"] .er-factor-grid select,html[data-theme="dark"] .er-factor-grid textarea,html[data-theme="dark"] .er-force-settings input,html[data-theme="dark"] .er-force-settings select,html[data-theme="dark"] .er-judgment{border-color:#3a4b62;background:#132033;color:#edf4ff}html[data-theme="dark"] .er-panel-head h3,html[data-theme="dark"] .er-factor-card>summary strong,html[data-theme="dark"] .er-force-card>summary strong,html[data-theme="dark"] .er-side-card h3{color:#edf4ff}
@media(max-width:1180px){.er-layout{grid-template-columns:1fr}.er-layout aside{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.er-head{flex-direction:column}.er-head>div:last-child{justify-content:flex-start}.er-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.er-steps span:nth-child(2){border-right:0}.er-steps span:nth-child(-n+2){border-bottom:1px solid #e6edf5}.er-layout aside{grid-template-columns:1fr}.er-scope-grid,.er-factor-grid,.er-force-settings,.er-material-list{grid-template-columns:1fr}.er-scope-grid .is-wide,.er-factor-grid .is-wide,.er-force-settings .is-wide{grid-column:auto}.er-factor-card>summary,.er-force-card>summary{grid-template-columns:30px minmax(0,1fr)}.er-factor-card>summary em,.er-force-card>summary em{grid-column:2}}
.er-output-panel{display:grid;gap:14px}.er-output-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.er-output-head .er-panel-head{margin:0}.er-output-head>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.er-output-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid #dbe5f0;border-radius:9px}.er-output-metrics article{display:grid;gap:2px;padding:11px 12px;border-right:1px solid #e5ebf2}.er-output-metrics article:last-child{border-right:0}.er-output-metrics span{color:#67778a;font-size:10px;font-weight:700}.er-output-metrics strong{font-size:20px;line-height:1.15}.er-output-metrics small{color:#7c8a9c;font-size:9px;line-height:1.4}.er-output-factor-list{display:grid;gap:9px}.er-output-factor{border:1px solid #dfe7f0;border-radius:9px;background:#fbfcfe}.er-output-factor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid #e7edf4}.er-output-factor>header span,.er-output-factor>header strong{display:block}.er-output-factor>header span{color:#3975cf;font-size:9px;font-weight:850;letter-spacing:.05em}.er-output-factor>header strong{margin-top:3px;font-size:12px}.er-output-factor>header>div:last-child{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}.er-output-factor>header em{padding:3px 6px;border-radius:999px;background:#eaf2ff;color:#315f9f;font-size:9px;font-style:normal}.er-output-factor dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.er-output-factor dl>div{padding:9px 12px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5}.er-output-factor dl>div:nth-child(2n){border-right:0}.er-output-factor dl>div:nth-last-child(-n+2){border-bottom:0}.er-output-factor dt{color:#7a899b;font-size:9px}.er-output-factor dd{margin:4px 0 0;color:#3e4e61;font-size:10px;line-height:1.55}.er-output-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.er-output-columns section,.er-output-judgment{padding:11px 12px;border:1px solid #dfe7f0;border-radius:8px}.er-output-columns section>span,.er-output-judgment>span{color:#476079;font-size:10px;font-weight:800}.er-output-columns ul{display:grid;gap:6px;margin:8px 0 0;padding-left:18px}.er-output-columns li,.er-output-columns p,.er-output-judgment p{margin:0;color:#647488;font-size:10px;line-height:1.55}.er-output-columns li strong,.er-output-columns li small{display:block}.er-output-columns li strong{color:#3b4b60}.er-output-columns li small{margin-top:2px}.er-output-judgment{border-left:3px solid #4e83d7;background:#f5f8fc}.er-output-judgment p{margin-top:6px;color:#3d4d61}.er-output-empty{padding:24px;border:1px dashed #cbd7e5;border-radius:9px;text-align:center}.er-output-empty strong{font-size:12px}.er-output-empty p{margin:5px 0 0;color:#78879a;font-size:10px}.er-output-panel>footer{display:flex;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #e7edf4;color:#7a899c;font-size:9px}.er-output-panel>footer strong{color:#53677d;font-weight:750}
html[data-theme="dark"] .er-output-metrics,html[data-theme="dark"] .er-output-factor,html[data-theme="dark"] .er-output-columns section,html[data-theme="dark"] .er-output-judgment{border-color:#314158;background:#132033}html[data-theme="dark"] .er-output-factor>header,html[data-theme="dark"] .er-output-factor dl>div{border-color:#314158}html[data-theme="dark"] .er-output-factor dd,html[data-theme="dark"] .er-output-judgment p{color:#d7e2ef}
html[data-theme="dark"] .er-factor-advanced,html[data-theme="dark"] .er-factor-advanced>.er-factor-grid,html[data-theme="dark"] .er-judgment-grid select,html[data-theme="dark"] .er-output-decision{border-color:#314158;background:#132033;color:#edf4ff}
@media(max-width:760px){.er-output-head{flex-direction:column}.er-output-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.er-output-metrics article:nth-child(2){border-right:0}.er-output-metrics article:nth-child(-n+2){border-bottom:1px solid #e5ebf2}.er-output-factor>header{flex-direction:column}.er-output-factor>header>div:last-child{justify-content:flex-start}.er-output-factor dl,.er-output-columns{grid-template-columns:1fr}.er-output-factor dl>div,.er-output-factor dl>div:nth-child(2n){border-right:0;border-bottom:1px solid #edf1f5}.er-output-factor dl>div:last-child{border-bottom:0}.er-output-panel>footer{flex-direction:column}}
@media(max-width:760px){.er-judgment-grid{grid-template-columns:1fr}.er-factor-advanced>summary{grid-template-columns:1fr auto}.er-factor-advanced>summary>small{grid-column:1/-1}}

/* 2026-08-01：项目主流程统一骨架；主任务优先，说明和辅助能力按需展开。 */
.view-panel>.app-page-hero.is-project-task{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  min-height:0!important;
  margin:0 0 8px!important;
  padding:8px 2px 10px!important;
  border:0!important;
  border-bottom:1px solid #dfe7f0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.view-panel>.app-page-hero.is-project-task .app-page-hero-copy{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:baseline;
  gap:8px 12px;
  width:100%;
}
.view-panel>.app-page-hero.is-project-task .page-eyebrow{
  margin:0!important;
  font-size:11px!important;
  letter-spacing:.03em!important;
}
.view-panel>.app-page-hero.is-project-task h2{
  margin:0!important;
  font-size:22px!important;
  line-height:1.25!important;
}
.view-panel>.app-page-hero.is-project-task p{
  overflow:hidden;
  margin:0!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.45!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body .project-flow-nav.pfn-compact{
  margin:0 0 10px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
body .project-flow-nav.pfn-compact .pfn-head{
  min-height:48px!important;
  padding:8px 12px!important;
}
body .project-flow-nav.pfn-compact .pfn-head>div:first-child{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:baseline;
  gap:5px 10px;
  min-width:0;
}
body .project-flow-nav.pfn-compact .pfn-head span{
  grid-column:1;
  margin:0!important;
  font-size:10px!important;
}
body .project-flow-nav.pfn-compact .pfn-head h3{
  grid-column:2;
  overflow:hidden;
  margin:0!important;
  max-width:520px;
  font-size:14px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body .project-flow-nav.pfn-compact .pfn-head small{
  grid-column:3;
  overflow:hidden;
  margin:0!important;
  color:#718096!important;
  font-size:11px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* 风险评估：风险判断是首屏工作面，范围、方法和阶段说明降为辅助区。 */
.pra-assessment-overview.is-compact{
  grid-template-columns:minmax(0,1fr) minmax(210px,270px);
  gap:14px;
  padding:11px 14px;
  border-radius:11px;
  background:#f7faff;
}
.pra-assessment-overview.is-compact h3{
  margin:2px 0 3px;
  font-size:18px;
}
.pra-assessment-overview.is-compact p{
  font-size:12px;
  line-height:1.45;
}
.pra-assessment-overview.is-compact>aside{
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  gap:2px 8px;
  padding:8px 10px;
  border-radius:8px;
}
.pra-assessment-overview.is-compact>aside strong{
  overflow:hidden;
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-assessment-overview.is-compact>aside span{
  grid-column:1/-1;
}
.pra-assessment-support{
  overflow:hidden;
  border:1px solid #dce5f0;
  border-radius:10px;
  background:#fff;
}
.pra-assessment-support>summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 13px;
  list-style:none;
  cursor:pointer;
  background:#f8fafc;
}
.pra-assessment-support>summary::-webkit-details-marker{display:none}
.pra-assessment-support>summary>span{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}
.pra-assessment-support>summary strong{
  color:#334155;
  font-size:13px;
}
.pra-assessment-support>summary small{
  overflow:hidden;
  color:#718096;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pra-assessment-support>summary>b{
  margin-left:auto;
  color:#2563eb;
  font-size:11px;
}
.pra-assessment-support>summary>em{
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  background:#fff4df;
  color:#94610b;
  font-size:10px;
  font-style:normal;
  font-weight:800;
}
.pra-assessment-support>summary>em.is-complete{
  background:#e8f7ee;
  color:#18733c;
}
.pra-assessment-support[open]>summary>b::before{content:'收起';font-size:0}
.pra-assessment-support[open]>summary>b{font-size:0}
.pra-assessment-support[open]>summary>b::after{content:'收起';font-size:11px}
.pra-assessment-support-body{
  display:grid;
  gap:10px;
  padding:10px;
  border-top:1px solid #e5ebf3;
}
.pra-assessment-support .pra-data-ownership{
  display:none;
}
.pra-assessment-support .pra-assessment-steps{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.pra-assessment-support .pra-assessment-steps button{
  min-height:54px;
  padding:7px 8px;
  grid-template-areas:"no title" "state state";
}
.pra-assessment-support .pra-assessment-steps button>small{display:none}
.pra-assessment-support .pra-foundation-card{
  padding:12px;
  border-radius:10px;
}
.pra-object-risk-board{
  margin:0!important;
  border-radius:11px!important;
}
.pra-risk-stage-strip{
  display:flex;
  align-items:center;
  gap:4px;
  padding:7px 10px;
}
.pra-risk-stage-strip>button{
  display:inline-flex;
  flex:0 0 auto;
  padding:6px 9px;
  border-color:transparent;
  background:transparent;
}
.pra-risk-stage-strip>button.is-primary{background:#eef4ff}
.pra-risk-stage-strip small{display:none}
.pra-stage-scheme{
  margin:8px 10px 10px;
  padding:9px 10px;
  border-radius:9px;
}
.pra-stage-scheme-title{
  margin-bottom:5px;
}
.pra-stage-scheme-title>small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* 审计方案：首屏只看项目基线和方案事项表，辅助检查统一收纳。 */
#view-taskarrange>.am-context-entry-compact{display:none!important}
.wf-scheme-detail-page .wf-scheme-plan-first{
  margin-bottom:8px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact{
  margin:0!important;
  border-radius:10px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head{
  min-height:48px;
  padding:8px 12px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head h3{
  font-size:16px!important;
}
.wf-scheme-detail-page .wf-scheme-brief-actions{
  gap:6px!important;
}
.wf-scheme-detail-page .wf-scheme-summary-line{
  grid-template-columns:1.15fr 1.15fr .7fr .8fr!important;
}
.wf-scheme-detail-page .wf-scheme-summary-line>div{
  min-height:48px!important;
  padding:7px 10px!important;
}
.wf-scheme-detail-page .wf-scheme-summary-line strong{
  display:-webkit-box;
  overflow:hidden;
  line-height:1.35!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.wf-scheme-detail-page .wf-program-ledger{
  margin:0 0 8px!important;
  border-radius:10px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head{
  padding:10px 12px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head h3{
  margin:2px 0!important;
  font-size:17px!important;
}
.wf-scheme-detail-page .wf-program-ledger-head p{
  font-size:12px!important;
}
.wf-scheme-detail-page .wf-program-ledger-summary{
  min-height:38px!important;
}
.wf-scheme-support-drawer{
  overflow:hidden;
  margin:0 0 10px;
  border:1px solid #dce5f0;
  border-radius:10px;
  background:#fff;
}
.wf-scheme-support-drawer>summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 13px;
  list-style:none;
  cursor:pointer;
  background:#f8fafc;
}
.wf-scheme-support-drawer>summary::-webkit-details-marker{display:none}
.wf-scheme-support-drawer>summary>span{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}
.wf-scheme-support-drawer>summary strong{
  color:#334155;
  font-size:13px;
}
.wf-scheme-support-drawer>summary small{
  overflow:hidden;
  color:#718096;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wf-scheme-support-drawer>summary>b{
  margin-left:auto;
  color:#2563eb;
  font-size:11px;
}
.wf-scheme-support-body{
  display:grid;
  gap:8px;
  padding:8px;
  border-top:1px solid #e5ebf3;
}
.wf-scheme-support-body>.wf-risk-revision-review,
.wf-scheme-support-body>.wf-scheme-tools{
  margin:0!important;
  border-radius:8px!important;
}

html[data-theme="dark"] .pra-assessment-support,
html[data-theme="dark"] .wf-scheme-support-drawer{
  border-color:#314158;
  background:#172235;
}
html[data-theme="dark"] .pra-assessment-support>summary,
html[data-theme="dark"] .wf-scheme-support-drawer>summary{
  background:#132033;
}
@media(max-width:900px){
  .view-panel>.app-page-hero.is-project-task .app-page-hero-copy{grid-template-columns:auto 1fr}
  .view-panel>.app-page-hero.is-project-task p{grid-column:1/-1;white-space:normal}
  body .project-flow-nav.pfn-compact .pfn-head{align-items:stretch!important;flex-direction:column}
  body .project-flow-nav.pfn-compact .pfn-head>div:first-child{grid-template-columns:auto 1fr}
  body .project-flow-nav.pfn-compact .pfn-head small{grid-column:1/-1}
  .pra-assessment-overview.is-compact{grid-template-columns:1fr}
  .pra-assessment-support .pra-assessment-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wf-scheme-detail-page .wf-scheme-summary-line{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .pra-assessment-support>summary>span,
  .wf-scheme-support-drawer>summary>span{display:grid;gap:2px}
  .pra-assessment-support .pra-assessment-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wf-scheme-detail-page .wf-scheme-summary-line{grid-template-columns:1fr!important}
}

/* 2026-08-01：程序执行首屏收束为“资料 -> 分析 -> 事实/结论 -> 提交”，目录与复核退到次级区。 */
.at-execution-worksheet .at-single-closeout{
  position:static!important;
  margin:8px 10px 0!important;
  box-shadow:none!important;
}
.at-workpaper-followup{
  margin:8px 10px 0!important;
  overflow:hidden!important;
  border:1px solid #dbe7f4!important;
  border-radius:11px!important;
  background:#fff!important;
}
.at-workpaper-followup>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:48px!important;
  padding:9px 12px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#fbfdff!important;
}
.at-workpaper-followup>summary::-webkit-details-marker{display:none!important}
.at-workpaper-followup>summary>div{
  display:flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:4px 10px!important;
  min-width:0!important;
}
.at-workpaper-followup>summary span{
  color:#2563eb!important;
  font-size:11px!important;
  font-weight:900!important;
}
.at-workpaper-followup>summary strong{
  color:#1e293b!important;
  font-size:14px!important;
}
.at-workpaper-followup>summary>b{
  flex:0 0 auto!important;
  color:#64748b!important;
  font-size:11px!important;
}
.at-workpaper-followup[open]>summary{border-bottom:1px solid #e2e8f0!important}
.at-workpaper-followup-body{
  padding:0 0 8px!important;
  background:#f8fafc!important;
}
.at-workpaper-followup .at-workpaper-directory{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
}
.at-workpaper-followup .at-workpaper-directory-head{background:#fff!important}
.at-workpaper-followup .at-inline-review{margin:8px!important}
.wpm-stage-two .wpm-desk-current>div{min-width:0!important}
.wpm-stage-two .wpm-desk-current p{
  display:-webkit-box!important;
  max-width:900px!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
@media(max-width:760px){
  .at-workpaper-followup>summary{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
}

/* 2026-08-02：工作台只承载管理决策；项目活动归项目，系统日志归系统管理。 */
.dash-management-project-table{
  --dash-project-columns:minmax(190px,1.25fr) 76px 94px 120px minmax(140px,.8fr) minmax(160px,1fr);
  overflow:hidden;
  border-color:#dbe5ef;
  border-radius:12px;
  padding:0 12px 2px;
  background:#f7f9fc;
}
.dash-management-project-row{
  grid-template-columns:var(--dash-project-columns);
  gap:10px;
  min-height:60px;
  padding:12px 14px;
}
.dash-management-project-row.is-head{
  width:calc(100% + 22px);
  margin:0 -11px 8px;
  padding-right:26px;
  padding-left:26px;
  border-bottom:1px solid #dbe5ef;
  background:#f7f9fc;
}
.dash-portfolio-project{
  margin:10px 0 12px;
  overflow:hidden;
  border:1px solid #d8e2ee;
  border-radius:10px;
  background:#fff;
  box-shadow:0 3px 10px rgba(15,23,42,.04);
}
.dash-portfolio-project+.dash-portfolio-project{border-top-color:#d8e2ee}
.dash-portfolio-project .dash-management-project-row{
  border-bottom:0;
  border-radius:0;
}
.dash-portfolio-project .dash-management-project-row.is-selected{
  border-left:0;
  background:#f0f6ff;
  box-shadow:inset 3px 0 #2563eb;
}
.dash-management-next{
  display:grid;
  gap:3px;
  min-width:0;
}
.dash-management-next strong{
  overflow:hidden;
  color:#1e3a5f;
  font-size:14px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dash-management-next small{
  display:-webkit-box;
  overflow:hidden;
  color:#64748b;
  font-size:12px;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.dash-project-flow-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(105px,1fr));
  gap:1px;
  margin:0 12px 12px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#e2e8f0;
}
.dash-project-flow-step{
  display:grid;
  gap:3px;
  min-width:0;
  padding:8px 10px;
  background:#fff;
}
.dash-project-flow-step span{
  overflow:hidden;
  color:#475569;
  font-size:12px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dash-project-flow-step strong{font-size:12px;font-weight:850}
.dash-project-flow-step.is-done{box-shadow:inset 3px 0 #10b981}
.dash-project-flow-step.is-done strong{color:#047857}
.dash-project-flow-step.is-in-progress{background:#eff6ff;box-shadow:inset 3px 0 #2563eb}
.dash-project-flow-step.is-in-progress strong{color:#1d4ed8}
.dash-project-flow-step.is-pending strong{color:#94a3b8}
.dash-portfolio-signals{padding:0;overflow:hidden}
.dash-portfolio-signals>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:16px 18px;
  border-bottom:1px solid #e2e8f0;
}
.dash-portfolio-signals>header span{
  color:#2563eb;
  font-size:12px;
  font-weight:850;
}
.dash-portfolio-signals>header h2{margin:3px 0 4px;color:#172033;font-size:18px}
.dash-portfolio-signals>header p{margin:0;color:#64748b;font-size:13px}
.dash-portfolio-signal-grid{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:0;
}
.dash-portfolio-signal-group{min-width:0;padding:14px 18px}
.dash-portfolio-signal-group+.dash-portfolio-signal-group{border-left:1px solid #e2e8f0}
.dash-portfolio-signal-group>strong{display:block;margin-bottom:9px;color:#334155;font-size:13px}
.dash-portfolio-signal-group dl{
  display:flex;
  align-items:stretch;
  gap:8px;
  margin:0;
}
.dash-portfolio-signal-group dl>div{
  display:flex;
  align-items:baseline;
  gap:6px;
  min-width:78px;
  padding:8px 10px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f8fafc;
}
.dash-portfolio-signal-group dt{color:#64748b;font-size:12px}
.dash-portfolio-signal-group dd{margin:0;color:#172033;font-size:18px;font-weight:850}
.dash-portfolio-signal-group .is-critical dd,.dash-portfolio-signal-group .is-overdue dd{color:#dc2626}
.dash-portfolio-signal-group .is-high dd{color:#ea580c}
.dash-portfolio-signal-group .is-medium dd{color:#a16207}
.dash-portfolio-signal-group .is-low dd,.dash-portfolio-signal-group .is-resolved dd{color:#047857}
.dash-portfolio-signal-group>small{display:block;margin-top:8px;color:#9a6700;font-size:12px}
.dash-source-details{border-top:1px solid #e2e8f0;background:#fbfdff}
.dash-source-details>summary{padding:10px 18px;color:#475569;font-size:12px;font-weight:750;cursor:pointer}
.dash-source-details>p{margin:0;padding:0 18px 10px;color:#64748b;font-size:12px;line-height:1.55}
html[data-theme="dark"] .dash-project-flow-strip{border-color:#314158;background:#314158}
html[data-theme="dark"] .dash-management-project-table{border-color:#314158;background:#101b2d}
html[data-theme="dark"] .dash-management-project-row.is-head{border-color:#314158;background:#101b2d}
html[data-theme="dark"] .dash-portfolio-project{border-color:#314158;background:#172235;box-shadow:none}
html[data-theme="dark"] .dash-project-flow-step,
html[data-theme="dark"] .dash-portfolio-signal-group dl>div{border-color:#314158;background:#172235}
html[data-theme="dark"] .dash-portfolio-signals>header,
html[data-theme="dark"] .dash-portfolio-signal-group+.dash-portfolio-signal-group,
html[data-theme="dark"] .dash-source-details{border-color:#314158}
html[data-theme="dark"] .dash-portfolio-signals>header h2,
html[data-theme="dark"] .dash-portfolio-signal-group dd{color:#e5edf8}
html[data-theme="dark"] .dash-source-details{background:#13233b}
@media(max-width:1000px){
  .dash-management-project-table{overflow:auto}
  .dash-management-project-row{min-width:900px}
  .dash-project-flow-strip{min-width:830px}
}
@media(max-width:1180px){
  .dash-portfolio-signal-grid{grid-template-columns:1fr}
  .dash-portfolio-signal-group+.dash-portfolio-signal-group{border-top:1px solid #e2e8f0;border-left:0}
}

/* 年度计划：全面审计与专项审计使用不同的范围录入规则。 */
.ap-module-scope[hidden]{display:none!important}
.ap-coverage-mode-field small,
.ap-coverage-note{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
.ap-module-tag.is-comprehensive{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:800;
}
html[data-theme="dark"] .ap-coverage-mode-field small,
html[data-theme="dark"] .ap-coverage-note{color:#94a3b8}
html[data-theme="dark"] .ap-module-tag.is-comprehensive{
  border-color:#1d4ed8;
  background:#172554;
  color:#bfdbfe;
}
@media(max-width:700px){
  .dash-portfolio-signals>header{align-items:flex-start;flex-direction:column}
  .dash-portfolio-signal-group dl{flex-wrap:wrap}
}

/* Toolbox navigation directory: every tool remains visible and directly reachable. */
.toolbox-page:not(.is-tool-open) .toolbox-shell{grid-template-columns:256px minmax(0,1fr)}
.toolbox-page .toolbox-category-nav{scrollbar-color:#c7d2e3 transparent;scrollbar-width:thin}
.toolbox-page:not(.is-tool-open) .toolbox-category-nav{gap:0;max-height:calc(100dvh - 164px);padding:22px 12px 16px;overflow-x:hidden;overflow-y:auto}
.toolbox-page:not(.is-tool-open) .toolbox-category-nav:after{display:none}
.toolbox-nav-groups{display:grid;gap:18px;min-width:0}
.toolbox-nav-group{display:grid;gap:6px;min-width:0}
.toolbox-nav-group-head{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:30px;padding:0 8px;border:0;background:transparent;color:#667085;font:inherit;text-align:left;cursor:pointer}
.toolbox-nav-group-head span{font-size:12px;font-weight:850;letter-spacing:.05em}
.toolbox-nav-group-head em{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:20px;padding:0 6px;border-radius:999px;background:#e9edf3;color:#667085;font-size:10px;font-style:normal;font-weight:850}
.toolbox-nav-group.is-active .toolbox-nav-group-head{color:#2458d3}
.toolbox-nav-group.is-active .toolbox-nav-group-head em{background:#e4edff;color:#2458d3}
.toolbox-nav-tool-list{display:grid;gap:3px}
.toolbox-nav-tool{display:grid;grid-template-columns:30px minmax(0,1fr) 14px;gap:9px;align-items:center;width:100%;min-height:48px;padding:7px 7px 7px 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:#475467;font:inherit;text-align:left;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.toolbox-nav-tool:hover{border-color:#dce4ef;background:#fff;color:#172033}
.toolbox-nav-tool.is-active{border-color:#bfd0f6;background:#fff;color:#1d4ed8;box-shadow:inset 3px 0 0 #2458d3}
.toolbox-nav-tool:focus-visible,.toolbox-nav-group-head:focus-visible{outline:3px solid rgba(36,88,211,.2);outline-offset:1px}
.toolbox-nav-tool-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:#e9edf3;color:#667085}
.toolbox-nav-tool-icon svg{width:15px;height:15px}
.toolbox-nav-tool.is-active .toolbox-nav-tool-icon{background:#e4edff;color:#2458d3}
.toolbox-nav-tool-copy{display:grid;gap:2px;min-width:0}
.toolbox-nav-tool-copy strong,.toolbox-nav-tool-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.toolbox-nav-tool-copy strong{color:inherit;font-size:13px;font-weight:780}
.toolbox-nav-tool-copy small{color:#7a8494;font-size:10px;line-height:1.35}
.toolbox-nav-tool-arrow{width:14px;height:14px;color:#a1aaba}
.toolbox-nav-tool.is-active .toolbox-nav-tool-arrow{color:#2458d3}

.toolbox-page.is-tool-open{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:calc(100dvh - 164px);overflow:hidden;border:1px solid #d9dee7;border-radius:6px;background:#fff;box-shadow:0 18px 48px rgba(16,24,40,.07)}
.toolbox-page.is-tool-open .toolbox-shell{display:contents}
.toolbox-page.is-tool-open .toolbox-category-detail{display:none}
.toolbox-page.is-tool-open .toolbox-category-nav{position:sticky;top:82px;z-index:2;grid-column:1;grid-row:1;display:flex;max-height:calc(100dvh - 112px);flex-direction:column;gap:0;padding:22px 12px 16px;overflow-x:hidden;overflow-y:auto;border-right:1px solid #d9dee7;background:#f7f8fa}
.toolbox-page.is-tool-open .toolbox-nav-title{display:grid;gap:5px;margin:0 7px 18px;padding:0 0 16px;border-bottom:1px solid #dfe3e9}
.toolbox-page.is-tool-open .toolbox-nav-title span{color:#7a8494;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.toolbox-page.is-tool-open .toolbox-nav-title strong{color:#111827;font-size:18px;font-weight:760;letter-spacing:-.02em}
.toolbox-page.is-tool-open .toolbox-workbench{grid-column:2;grid-row:1;min-width:0;border:0;border-radius:0;box-shadow:none}

html[data-theme="dark"] .toolbox-nav-group-head{color:#9fb0c7}
html[data-theme="dark"] .toolbox-nav-group-head em,html[data-theme="dark"] .toolbox-nav-tool-icon{background:#243147;color:#a8b7ca}
html[data-theme="dark"] .toolbox-nav-tool:hover{border-color:#3a4a63;background:#1c2a40;color:#eef4ff}
html[data-theme="dark"] .toolbox-nav-tool.is-active{border-color:#3b65a8;background:#17345d;color:#bfdbfe}
html[data-theme="dark"] .toolbox-nav-tool.is-active .toolbox-nav-tool-icon{background:#214a80;color:#bfdbfe}
html[data-theme="dark"] .toolbox-nav-tool-copy small{color:#9fb0c7}
html[data-theme="dark"] .toolbox-page.is-tool-open{border-color:#314158;background:#172235}
html[data-theme="dark"] .toolbox-page.is-tool-open .toolbox-category-nav{border-color:#314158;background:#111d2d}
html[data-theme="dark"] .toolbox-page.is-tool-open .toolbox-nav-title{border-color:#314158}
html[data-theme="dark"] .toolbox-page.is-tool-open .toolbox-nav-title strong{color:#eef4ff}

@media(max-width:980px){
  .toolbox-page:not(.is-tool-open) .toolbox-shell{grid-template-columns:1fr}
  .toolbox-page:not(.is-tool-open) .toolbox-category-nav,.toolbox-page.is-tool-open .toolbox-category-nav{position:static;max-height:none;padding:14px;overflow:visible;border-right:0;border-bottom:1px solid #d9dee7}
  .toolbox-page .toolbox-nav-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .toolbox-page.is-tool-open{display:block}
  .toolbox-page.is-tool-open .toolbox-shell{display:block}
  .toolbox-page.is-tool-open .toolbox-category-detail{display:none}
  .toolbox-page.is-tool-open .toolbox-workbench{display:block}
}
@media(max-width:680px){
  .toolbox-page .toolbox-nav-groups{grid-template-columns:1fr}
  .toolbox-nav-tool-copy small{display:none}
  .toolbox-nav-tool{min-height:42px}
}

/* Structured AI review panels: suggestions stay separate from audited records. */
.fdr-ai-review,.rpn-ai-draft,.ic-ai-review{display:grid;gap:12px;margin-top:12px;padding:14px;border:1px solid #cbdcf8;border-radius:10px;background:#f8fbff}
.fdr-ai-review[hidden],.rpn-ai-draft[hidden]{display:none}
.fdr-ai-review>header,.rpn-ai-draft>header,.ic-ai-review>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.fdr-ai-review>header span,.rpn-ai-draft>header span,.ic-ai-review>header span{display:block;color:#2563eb;font-size:.68rem;font-weight:850;letter-spacing:.08em}
.fdr-ai-review>header strong,.rpn-ai-draft>header strong,.ic-ai-review>header strong{display:block;margin-top:3px;color:#172033;font-size:.86rem;line-height:1.45}
.fdr-ai-review>header b,.rpn-ai-draft>header b,.ic-ai-review>header b{padding:3px 7px;border-radius:999px;background:#fff7ed;color:#b45309;font-size:.66rem;white-space:nowrap}
.fdr-ai-columns,.rpn-ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rpn-ai-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fdr-ai-columns>section,.fdr-ai-suggestions article,.rpn-ai-grid article,.ic-ai-review-list article{padding:11px;border:1px solid #e0e8f3;border-radius:8px;background:#fff}
.fdr-ai-columns h5,.ic-ai-review-section h4{margin:0 0 8px;color:#172033;font-size:.76rem}
.fdr-ai-columns article+article,.ic-ai-review-list article+article{margin-top:8px}
.fdr-ai-columns article strong,.fdr-ai-suggestions strong,.rpn-ai-grid span,.ic-ai-review-list span{color:#2458d3;font-size:.7rem;font-weight:800}
.fdr-ai-columns p,.fdr-ai-suggestions p,.rpn-ai-grid p,.ic-ai-review-list p{margin:4px 0 0;color:#344054;font-size:.75rem;line-height:1.6}
.fdr-ai-columns small,.ic-ai-review-list small{display:block;margin-top:5px;color:#667085;font-size:.68rem;line-height:1.5}
.fdr-ai-review details{border-top:1px solid #dbe4f0;padding-top:9px}
.fdr-ai-review details summary{cursor:pointer;color:#2458d3;font-size:.74rem;font-weight:800}
.fdr-ai-suggestions{display:grid;gap:8px;margin-top:9px}
.fdr-ai-boundary,.rpn-ai-boundary,.ic-ai-review-boundary{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border-left:3px solid #94a3b8;background:#f1f5f9;color:#475467;font-size:.7rem;line-height:1.55}
.fdr-ai-boundary strong,.rpn-ai-boundary strong,.ic-ai-review-boundary strong{color:#172033;white-space:nowrap}
.fdr-ai-review footer,.rpn-ai-draft footer,.ic-ai-review footer{color:#667085;font-size:.66rem}
.fdr-ai-loading,.rpn-ai-loading,.fdr-ai-error,.rpn-ai-error{padding:10px;color:#667085;font-size:.75rem}
.fdr-ai-error,.rpn-ai-error{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}
.rpn-ai-references{margin:0;color:#667085;font-size:.7rem}
.rpn-ai-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #dbe4f0}
.rpn-ai-actions span{color:#667085;font-size:.68rem}
.rpn-actions>div{display:flex;gap:8px;flex-wrap:wrap}
.ic-ai-review-section{display:grid;gap:7px}
.ic-ai-review-list{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.ic-ai-review-list blockquote{margin:7px 0 0;padding:7px 9px;border-left:2px solid #93c5fd;background:#eff6ff;color:#475467;font-size:.68rem;line-height:1.5}
.ic-ai-review-empty,.fdr-ai-empty{margin:0;color:#667085;font-size:.72rem}
@media(max-width:820px){.fdr-ai-columns,.rpn-ai-grid{grid-template-columns:1fr}.fdr-ai-review>header,.rpn-ai-draft>header,.ic-ai-review>header,.rpn-ai-actions{align-items:stretch;flex-direction:column}}

/* Audit toolbox capability mode: compact switch and local AI-added feedback. */
.toolbox-nav-heading-row{display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0}
.toolbox-nav-heading-row>strong{min-width:0}
.toolbox-ai-mode-control{display:grid;gap:5px;justify-items:stretch;min-width:0;max-width:100%;flex:0 1 auto}
.toolbox-ai-mode-status{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;padding:7px 9px;border:1px solid #d7dee9;border-radius:8px;background:#f7f9fc;color:#344054}
.toolbox-ai-mode-status>svg{width:14px;height:14px;flex:0 0 auto;color:#667085}
.toolbox-ai-mode-status>span{display:grid;min-width:0;gap:1px}
.toolbox-ai-mode-status b,.toolbox-ai-mode-status small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.toolbox-ai-mode-status b{font-size:11px;font-weight:850;color:#172033}
.toolbox-ai-mode-status small{font-size:9px;color:#667085}
.toolbox-ai-mode-control.is-on .toolbox-ai-mode-status{border-color:#9db7ef;background:#eef4ff;color:#1d4ed8}
.toolbox-ai-mode-control.is-on .toolbox-ai-mode-status>svg,.toolbox-ai-mode-control.is-on .toolbox-ai-mode-status b{color:#1d4ed8}
.toolbox-ai-compact-switch{display:grid;grid-template-columns:1fr 1fr;min-width:140px;min-height:34px;padding:3px;border:1px solid #cfd8e6;border-radius:7px;background:#eef2f7;color:#667085;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.toolbox-nav-title .toolbox-ai-compact-switch>span{display:flex;gap:4px;align-items:center;justify-content:center;margin:0;padding:0 8px;border-radius:5px;color:inherit;font-size:12px;font-weight:800;letter-spacing:0;text-transform:none;white-space:nowrap}
.toolbox-nav-title .toolbox-ai-compact-switch>span.is-active{background:#fff;color:#172033;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.toolbox-nav-title .toolbox-ai-compact-switch .toolbox-ai-switch-ai.is-active{background:#2458d3;color:#fff}
.toolbox-ai-compact-switch svg{width:12px;height:12px}
.toolbox-ai-compact-switch:hover{border-color:#9db3df}
.toolbox-ai-compact-switch:focus-visible{outline:3px solid rgba(36,88,211,.2);outline-offset:2px}
.toolbox-ai-added-note{display:flex;gap:4px;align-items:center;min-width:0;max-width:100%;color:#667085;font-size:9px;font-weight:760;white-space:normal;flex-wrap:wrap}
.toolbox-ai-added-note>span{min-width:0}
.toolbox-ai-added-note svg{width:11px;height:11px}
.toolbox-ai-added-note b{padding:2px 5px;border:1px solid transparent;border-radius:5px;font-size:9px;font-weight:850;line-height:1.2}
.toolbox-ai-added-note b.is-added{border-color:#9db7ef;background:#eaf1ff;color:#1d4ed8}
.toolbox-ai-added-note b.is-enhanced{border-color:#73bdbc;background:#e5f7f5;color:#087078}
.toolbox-nav-tool-name{display:flex;gap:6px;align-items:center;min-width:0}
.toolbox-nav-tool-name strong{min-width:0}
.toolbox-nav-tool-name em{flex:0 0 auto;padding:2px 5px;border:1px solid #9db7ef;border-radius:5px;background:#eaf1ff;color:#1d4ed8;font-size:8px;font-style:normal;font-weight:850;line-height:1.2}
.toolbox-nav-tool-name em.is-enhanced{border-color:#8fc7c8;background:#edfafa;color:#0f6f76}
.toolbox-nav-tool.is-ai-added{border-color:#b8caf2;background:#f6f8ff;box-shadow:inset 3px 0 0 #2458d3}
.toolbox-nav-tool.is-ai-added .toolbox-nav-tool-icon{background:#e4edff;color:#2458d3}
.toolbox-nav-tool.is-ai-added.is-active{border-color:#8cabec;background:#eef4ff}
.toolbox-nav-tool.is-ai-enhanced{border-color:#b9dada;background:#f6fbfb;box-shadow:inset 3px 0 0 #16858c}
.toolbox-nav-tool.is-ai-enhanced .toolbox-nav-tool-icon{background:#e1f5f4;color:#0f747b}
.toolbox-nav-tool.is-ai-enhanced.is-active{border-color:#8fc7c8;background:#edfafa}
.toolbox-direct-title{display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0}
.toolbox-direct-title strong{min-width:0}
.toolbox-tool-mode{flex:0 0 auto;padding:3px 7px;border:1px solid #d6dee9;border-radius:999px;background:#f8fafc;color:#667085;font-size:9px;font-style:normal;font-weight:820;line-height:1;white-space:nowrap}
.toolbox-tool-mode.is-optional{border-color:#bfd0f6;background:#f3f7ff;color:#2458d3}
.toolbox-tool-mode.is-ai{border-color:#9db7ef;background:#eaf1ff;color:#1d4ed8}
.toolbox-tool-mode.is-enhanced{border-color:#8fc7c8;background:#edfafa;color:#0f6f76}
.toolbox-direct-card.is-ai{border-top-color:#9db7ef}
.toolbox-direct-card.is-enhanced{border-top-color:#8fc7c8;background:#fbfefe}
.toolbox-direct-enhancement{display:flex;gap:5px;align-items:center;margin-top:5px;color:#0f6f76;font-size:10px;font-weight:760}
.toolbox-direct-enhancement svg{width:12px;height:12px}
html[data-theme="dark"] .toolbox-ai-compact-switch{border-color:#3a4a63;background:#111d2d;color:#9fb0c7}
html[data-theme="dark"] .toolbox-ai-mode-status{border-color:#3a4a63;background:#111d2d;color:#cbd5e1}
html[data-theme="dark"] .toolbox-ai-mode-status b{color:#eef4ff}
html[data-theme="dark"] .toolbox-ai-mode-status small{color:#9fb0c7}
html[data-theme="dark"] .toolbox-ai-mode-control.is-on .toolbox-ai-mode-status{border-color:#3b65a8;background:#17345d}
html[data-theme="dark"] .toolbox-ai-mode-control.is-on .toolbox-ai-mode-status>svg,html[data-theme="dark"] .toolbox-ai-mode-control.is-on .toolbox-ai-mode-status b{color:#bfdbfe}
html[data-theme="dark"] .toolbox-nav-title .toolbox-ai-compact-switch>span.is-active{background:#243147;color:#eef4ff;box-shadow:none}
html[data-theme="dark"] .toolbox-nav-title .toolbox-ai-compact-switch .toolbox-ai-switch-ai.is-active{background:#2859a8;color:#fff}
html[data-theme="dark"] .toolbox-ai-added-note{color:#9fb0c7}
html[data-theme="dark"] .toolbox-ai-added-note b.is-added{border-color:#3b65a8;background:#17345d;color:#bfdbfe}
html[data-theme="dark"] .toolbox-ai-added-note b.is-enhanced{border-color:#27767b;background:#123b3f;color:#a7e6e5}
html[data-theme="dark"] .toolbox-nav-tool-name em{border-color:#3b65a8;background:#17345d;color:#bfdbfe}
html[data-theme="dark"] .toolbox-nav-tool-name em.is-enhanced{border-color:#27767b;background:#123b3f;color:#a7e6e5}
html[data-theme="dark"] .toolbox-nav-tool.is-ai-added{border-color:#3b65a8;background:#13233a;box-shadow:inset 3px 0 0 #60a5fa}
html[data-theme="dark"] .toolbox-nav-tool.is-ai-added .toolbox-nav-tool-icon{background:#214a80;color:#bfdbfe}
html[data-theme="dark"] .toolbox-nav-tool.is-ai-enhanced{border-color:#27767b;background:#102d31;box-shadow:inset 3px 0 0 #45b8b8}
html[data-theme="dark"] .toolbox-nav-tool.is-ai-enhanced .toolbox-nav-tool-icon{background:#17484d;color:#a7e6e5}
html[data-theme="dark"] .toolbox-tool-mode{border-color:#3a4a63;background:#243147;color:#a8b7ca}
html[data-theme="dark"] .toolbox-tool-mode.is-optional,html[data-theme="dark"] .toolbox-tool-mode.is-ai{border-color:#3b65a8;background:#17345d;color:#bfdbfe}
html[data-theme="dark"] .toolbox-tool-mode.is-enhanced{border-color:#27767b;background:#123b3f;color:#a7e6e5}
html[data-theme="dark"] .toolbox-direct-card.is-enhanced{background:#102d31}
html[data-theme="dark"] .toolbox-direct-enhancement{color:#a7e6e5}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-ai-compact-switch{border-color:#31505f;background:#07131d;color:#91a7b6}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-nav-title .toolbox-ai-compact-switch>span.is-active{background:#173243;color:#eef7fa;box-shadow:none}
.toolbox-page:not(.is-tool-open).mode-immersive .toolbox-ai-added-note{color:#69cadb}
@media(max-width:1100px){.toolbox-nav-heading-row{align-items:flex-start;flex-direction:column}.toolbox-ai-mode-control{justify-items:start}}
@media(max-width:680px){.toolbox-nav-heading-row{align-items:center;flex-direction:row}.toolbox-ai-mode-control{justify-items:end}.toolbox-ai-compact-switch{min-width:136px}.toolbox-direct-title{align-items:flex-start}}

/* Toolbox information architecture: tools and method reference share one destination. */
.toolbox-section-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:64px;
  padding:10px 14px 10px 18px;
  border:1px solid #cfd8e5;
  border-radius:10px;
  background:#fff;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}
.toolbox-section-bar>div{display:grid;gap:2px;min-width:0}
.toolbox-section-bar>div span{color:#667085;font-size:10px;font-weight:850;letter-spacing:.12em}
.toolbox-section-bar>div strong{color:#172033;font-size:18px;font-weight:820;letter-spacing:-.02em}
.toolbox-section-switch{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #cfd8e5;border-radius:8px;background:#f2f5f8}
.toolbox-section-switch button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 14px;border:0;border-radius:6px;background:transparent;color:#5d6979;font:inherit;font-size:13px;font-weight:780;cursor:pointer}
.toolbox-section-switch button svg{width:15px;height:15px}
.toolbox-section-switch button:hover{background:#fff;color:#172033}
.toolbox-section-switch button.is-active{background:#fff;color:#1f55c4;box-shadow:0 1px 4px rgba(15,23,42,.13)}
.toolbox-section-switch button:focus-visible{outline:3px solid rgba(36,88,211,.2);outline-offset:2px}
.toolbox-surface[hidden]{display:none!important}
.toolbox-surface.is-active{min-width:0}
.toolbox-methods-surface{border:1px solid #cfd8e5;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.toolbox-methods-surface .am-shell{gap:12px;padding:16px}
.toolbox-methods-surface .am-hero-embedded{align-items:center;padding:16px 18px;border-radius:10px;background:#f8fafc;box-shadow:none}
.toolbox-methods-surface .am-hero-embedded h1{margin:4px 0 5px;font-size:22px}
.toolbox-methods-surface .am-hero-embedded p{font-size:13px;line-height:1.6}
.toolbox-methods-surface .am-project-context{min-width:240px;padding:10px 12px;border-radius:8px;box-shadow:none}
.toolbox-page.is-tool-open{grid-template-rows:minmax(0,1fr)}
.toolbox-page.is-tool-open [data-toolbox-surface="tools"]{display:contents}
.toolbox-page.is-tool-open .toolbox-category-nav,.toolbox-page.is-tool-open .toolbox-workbench{grid-row:1}

/* Work mode cards use a firmer boundary; AI-added and AI-enhanced remain distinct. */
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-card{
  border-color:#bdc9d8;
  background:#fff;
  box-shadow:0 2px 7px rgba(27,44,68,.07);
}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-card:hover{
  border-color:#6f91c8;
  background:#f9fbff;
  box-shadow:0 9px 22px rgba(31,70,128,.13);
}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-meta>span{border-color:#cfd9e5;background:#f8fafc}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-meta>span:last-child{border-color:#c4d5f0;background:#f2f6fd}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-card.is-ai{border-color:#aebfe6;box-shadow:inset 0 3px 0 #3265d5,0 2px 7px rgba(27,44,68,.07)}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-card.is-enhanced{border-color:#a8d0cf;background:#fbfefe;box-shadow:inset 0 3px 0 #16858c,0 2px 7px rgba(27,44,68,.07)}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-card.is-ai:hover{border-color:#6f8ed1;box-shadow:inset 0 3px 0 #3265d5,0 9px 22px rgba(31,70,128,.13)}
.toolbox-page:not([data-toolbox-mode="immersive"]):not(.is-methods-view) .toolbox-direct-card.is-enhanced:hover{border-color:#5fa5a6;box-shadow:inset 0 3px 0 #16858c,0 9px 22px rgba(21,112,118,.13)}

html[data-theme="dark"] .toolbox-section-bar,html[data-theme="dark"] .toolbox-methods-surface{border-color:#35445a;background:#172235;box-shadow:none}
html[data-theme="dark"] .toolbox-section-bar>div span{color:#9fb0c7}
html[data-theme="dark"] .toolbox-section-bar>div strong{color:#eef4ff}
html[data-theme="dark"] .toolbox-section-switch{border-color:#3a4a63;background:#111d2d}
html[data-theme="dark"] .toolbox-section-switch button{color:#9fb0c7}
html[data-theme="dark"] .toolbox-section-switch button:hover,html[data-theme="dark"] .toolbox-section-switch button.is-active{background:#243147;color:#bfdbfe;box-shadow:none}
html[data-theme="dark"] .toolbox-methods-surface .am-hero-embedded{border-color:#35445a;background:#111d2d}
@media(max-width:760px){
  .toolbox-section-bar{align-items:stretch;flex-direction:column;padding:12px}
  .toolbox-section-switch{display:grid;grid-template-columns:1fr 1fr}
  .toolbox-section-switch button{padding:0 8px}
  .toolbox-methods-surface .am-project-context{min-width:0}
}

/* Global work mode: one persistent system setting, not a toolbox-only switch. */
.global-work-mode{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  padding-right:10px;
  border-right:1px solid #e2e8f0;
}
.global-work-mode>small{max-width:92px;color:#64748b;font-size:9.5px;line-height:1.2;white-space:normal}
.global-work-mode>span{
  color:#64748b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
}
.global-work-mode-options{
  display:grid;
  grid-template-columns:auto auto auto;
  gap:2px;
  padding:3px;
  border:1px solid #d9e2ee;
  border-radius:8px;
  background:#f1f5f9;
}
.global-work-mode-options button{
  min-height:29px;
  padding:0 8px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#64748b;
  font:inherit;
  font-size:10.5px;
  font-weight:780;
  white-space:nowrap;
  cursor:pointer;
}
.global-work-mode-options button:hover{background:#fff;color:#172033}
.global-work-mode-options button:focus-visible{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}
.global-work-mode-options button.is-active{background:#fff;color:#2458d3;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.global-work-mode-options button.is-requested-unavailable{outline:1px dashed #d97706;color:#92400e}
body[data-work-mode="deep"] .global-work-mode-options button.is-active{color:#6d3fc0}
body[data-work-mode="immersive"] .global-work-mode-options button.is-active{background:#173746;color:#a8edf2;box-shadow:none}

/* Deep mode keeps every audit relationship visible and marks the system context. */
body[data-work-mode="deep"] .project-toolbar{border-bottom-color:#d7c9f3;box-shadow:inset 0 -2px 0 rgba(109,63,192,.22)}

/* Immersive exploration is a global workspace treatment and survives page changes. */
body[data-work-mode="immersive"]{
  --bg-page:#07131d;
  --card-bg:#0f1f2b;
  --bg-card:#0f1f2b;
  --bg-secondary:#132734;
  --bg-hover:#17313f;
  --border-color:#2c4756;
  --text-primary:#e8f3f6;
  --text-secondary:#adc0c9;
  --text-muted:#7f96a2;
  --card-shadow:0 14px 34px rgba(1,8,13,.24);
  color-scheme:dark;
  background:#07131d;
  color:#dbecef;
}
body[data-work-mode="immersive"] .app-layout{background:#07131d}
body[data-work-mode="immersive"] .project-toolbar{
  border-bottom-color:#23414f;
  background:rgba(7,19,29,.96);
  color:#e8f3f6;
  box-shadow:0 10px 28px rgba(2,9,14,.24);
}
body[data-work-mode="immersive"] .worktop-brand strong,
body[data-work-mode="immersive"] .project-toolbar .project-label,
body[data-work-mode="immersive"] .user-info-name{color:#e8f3f6}
body[data-work-mode="immersive"] .project-context,
body[data-work-mode="immersive"] .project-switch-trigger,
body[data-work-mode="immersive"] .user-info-bar{
  border-color:#294756;
  background:#0d202b;
  color:#dbecef;
}
body[data-work-mode="immersive"] .project-switch-trigger strong{color:#eef7fa}
body[data-work-mode="immersive"] .project-switch-trigger small,
body[data-work-mode="immersive"] .user-info-role,
body[data-work-mode="immersive"] .global-work-mode>span{color:#8fa8b4}
body[data-work-mode="immersive"] .global-work-mode{border-right-color:#294756}
body[data-work-mode="immersive"] .global-work-mode-options{border-color:#315363;background:#07131d}
body[data-work-mode="immersive"] .global-work-mode-options button{color:#91a9b5}
body[data-work-mode="immersive"] .global-work-mode-options button:hover{background:#132f3b;color:#eef7fa}
body[data-work-mode="immersive"] .user-logout-btn{border-color:#294756;background:#102733;color:#a9bdc6}
body[data-work-mode="immersive"] .breadcrumb{
  max-width:none;
  padding:11px 40px 5px;
  background:#07131d;
  color:#79909d;
}
body[data-work-mode="immersive"] .breadcrumb .bc-link{color:#8ea5b1}
body[data-work-mode="immersive"] .breadcrumb .bc-current{color:#dcedf1}
body[data-work-mode="immersive"] .main-content{
  width:calc(100% - 32px);
  max-width:none;
  margin:10px 16px 28px;
  padding:18px 24px 42px;
  border:1px solid #294554;
  border-radius:14px;
  background:#0b1823;
  color:#dbecef;
  box-shadow:0 26px 62px rgba(1,8,13,.28);
  box-sizing:border-box;
}
body[data-work-mode="immersive"] .view-panel.active{color:#dbecef}
html[data-theme="dark"] body[data-work-mode="immersive"] .main-content{border-color:#294554;background:#0b1823}

/* Immersive surface palette: core audit pages use one continuous dark workspace. */
body[data-work-mode="immersive"] .view-panel.active :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  border-color:#355263!important;
  background:#0b1924!important;
  color:#e5eff3!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .view-panel.active :where(input,textarea)::placeholder{color:#708895!important}
body[data-work-mode="immersive"] .view-panel.active :where(.btn-secondary,.btn-ghost){
  border-color:#355263!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .view-panel.active :where(.btn-secondary,.btn-ghost):hover{
  border-color:#4b7486!important;
  background:#193443!important;
  color:#f0f7f9!important;
}
body[data-work-mode="immersive"] .dash-kpi-definitions,
body[data-work-mode="immersive"] .dash-kpi-definitions dl>div,
body[data-work-mode="immersive"] .ap-year-toolbar,
body[data-work-mode="immersive"] .ap-landing-metric,
body[data-work-mode="immersive"] .ap-execution-ledger,
body[data-work-mode="immersive"] .pt-plan-source,
body[data-work-mode="immersive"] .pt-portfolio-list,
body[data-work-mode="immersive"] .pt-project-row,
body[data-work-mode="immersive"] .pt-command-center,
body[data-work-mode="immersive"] .pt-command-center>article,
body[data-work-mode="immersive"] .pt-secondary-queue,
body[data-work-mode="immersive"] .pt-mini-work,
body[data-work-mode="immersive"] .pt-command-drawer,
body[data-work-mode="immersive"] .pt-object-chain,
body[data-work-mode="immersive"] .pt-chain-node,
body[data-work-mode="immersive"] .pt-last-activity,
body[data-work-mode="immersive"] .pra-module-card,
body[data-work-mode="immersive"] .pra-foundation-card,
body[data-work-mode="immersive"] .pra-foundation-editor,
body[data-work-mode="immersive"] .pra-identification-method-row,
body[data-work-mode="immersive"] .pra-risk-intel-group,
body[data-work-mode="immersive"] .wf-scheme-brief,
body[data-work-mode="immersive"] .wf-program-ledger,
body[data-work-mode="immersive"] .wf-scheme-support-drawer,
body[data-work-mode="immersive"] .wf-scheme-tools,
body[data-work-mode="immersive"] .wf-ma-grid,
body[data-work-mode="immersive"] .wf-scheme-integrity,
body[data-work-mode="immersive"] .wf-plan-actual-summary,
body[data-work-mode="immersive"] .wf-plan-actual-table,
body[data-work-mode="immersive"] .at-layout,
body[data-work-mode="immersive"] .at-sidebar,
body[data-work-mode="immersive"] .at-scheme-task,
body[data-work-mode="immersive"] .at-risk-event-item,
body[data-work-mode="immersive"] .at-current-program-bar,
body[data-work-mode="immersive"] .at-execution-basis,
body[data-work-mode="immersive"] .at-plan-passport,
body[data-work-mode="immersive"] .at-evidence-workbench,
body[data-work-mode="immersive"] .at-evidence-sources,
body[data-work-mode="immersive"] .at-evidence-preview,
body[data-work-mode="immersive"] .at-source-material-links,
body[data-work-mode="immersive"] .at-source-material-link-body,
body[data-work-mode="immersive"] .at-data-toolbar,
body[data-work-mode="immersive"] .at-tool-adapter,
body[data-work-mode="immersive"] .at-tool-field-step,
body[data-work-mode="immersive"] .at-field-calibration,
body[data-work-mode="immersive"] .at-field-calibration-body,
body[data-work-mode="immersive"] .at-analysis-result,
body[data-work-mode="immersive"] .at-analysis-result>article,
body[data-work-mode="immersive"] .at-evidence-result,
body[data-work-mode="immersive"] .at-fact-form,
body[data-work-mode="immersive"] .at-inline-materials{
  border-color:#2c4756!important;
  background:#0f1f2b!important;
  color:#dbecef;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] :where(.ap-execution-ledger,.wf-program-ledger,.wf-plan-actual-table,.at-evidence-preview) table{
  border-color:#2c4756;
  background:#0f1f2b;
  color:#dbecef;
}
body[data-work-mode="immersive"] :where(.ap-execution-ledger,.wf-program-ledger,.wf-plan-actual-table,.at-evidence-preview) th{
  border-color:#2c4756!important;
  background:#162b38!important;
  color:#c8d8df!important;
}
body[data-work-mode="immersive"] :where(.ap-execution-ledger,.wf-program-ledger,.wf-plan-actual-table,.at-evidence-preview) td{
  border-color:#263f4d!important;
  background:#0f1f2b!important;
  color:#b9cbd3!important;
}
body[data-work-mode="immersive"] :where(.dash-kpi-definitions,.ap-year-toolbar,.ap-landing-metric,.ap-execution-ledger,.pt-plan-source,.pt-portfolio-list,.pt-command-center,.pra-foundation-card,.pra-risk-intel-group,.wf-scheme-brief,.wf-program-ledger,.at-evidence-workbench) :where(h2,h3,h4,strong,summary){color:#e8f3f6}
body[data-work-mode="immersive"] :where(.dash-kpi-definitions,.ap-year-toolbar,.ap-landing-metric,.ap-execution-ledger,.pt-plan-source,.pt-portfolio-list,.pt-command-center,.pra-foundation-card,.pra-risk-intel-group,.wf-scheme-brief,.wf-program-ledger,.at-evidence-workbench) :where(p,small){color:#91a8b4}
body[data-work-mode="immersive"] .dash-year-badge,
body[data-work-mode="immersive"] .dash-scope-badge,
body[data-work-mode="immersive"] .ap-year-context>span,
body[data-work-mode="immersive"] .ap-landing-more>summary{
  border-color:#355263!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .dash-year-label,
body[data-work-mode="immersive"] .dash-scope-badge small{color:#91a8b4!important}
body[data-work-mode="immersive"] .dash-year-name{color:#dce9ee!important}

/* Risk assessment keeps status meaning while removing light islands. */
body[data-work-mode="immersive"] .pra-assessment-overview,
body[data-work-mode="immersive"] .pra-assessment-overview>aside,
body[data-work-mode="immersive"] .pra-risk-stage-strip,
body[data-work-mode="immersive"] .pra-stage-scheme,
body[data-work-mode="immersive"] .pra-stage-io>span,
body[data-work-mode="immersive"] .pra-baseline-boundary>section,
body[data-work-mode="immersive"] .pra-information-summary,
body[data-work-mode="immersive"] .pra-method-boundary,
body[data-work-mode="immersive"] .pra-candidate-preview{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .pra-risk-stage-strip button{color:#9eb2bc}
body[data-work-mode="immersive"] .pra-risk-stage-strip button.is-primary,
body[data-work-mode="immersive"] .pra-assessment-steps button.is-active{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#b9dcf2!important;
}
body[data-work-mode="immersive"] .pra-assessment-steps button.is-complete{
  border-color:#2d6449!important;
  background:#123020!important;
  color:#a7d8b8!important;
}

/* Audit plan: the plan ledger is the focal surface; warnings use dark amber. */
body[data-work-mode="immersive"] .wf-scheme-change-alert,
body[data-work-mode="immersive"] .wf-program-row.is-program-summary,
body[data-work-mode="immersive"] .wf-risk-revision-review{
  border-color:#6e5125!important;
  background:#302519!important;
  color:#f3d9a5!important;
}
body[data-work-mode="immersive"] .wf-scheme-status.is-change-pending{
  border-color:#7d5c25!important;
  background:#3a2a12!important;
  color:#f5d48b!important;
}
body[data-work-mode="immersive"] .wf-scheme-summary-line,
body[data-work-mode="immersive"] .wf-program-ledger-head,
body[data-work-mode="immersive"] .wf-program-ledger-summary,
body[data-work-mode="immersive"] .wf-program-ledger-summary>span,
body[data-work-mode="immersive"] .wf-program-row.is-head,
body[data-work-mode="immersive"] .wf-scheme-support-drawer>summary,
body[data-work-mode="immersive"] .wf-scheme-module-drawer,
body[data-work-mode="immersive"] .wf-scheme-secondary-drawer,
body[data-work-mode="immersive"] .wf-ma-row,
body[data-work-mode="immersive"] .wf-risk-program-matrix,
body[data-work-mode="immersive"] .wf-risk-revision-diff,
body[data-work-mode="immersive"] .wf-risk-revision-diff>div{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .wf-risk-program-matrix table,
body[data-work-mode="immersive"] .wf-risk-program-matrix td{
  border-color:#263f4d!important;
  background:#0f1f2b!important;
  color:#b9cbd3!important;
}
body[data-work-mode="immersive"] .wf-risk-program-matrix th{
  border-color:#2c4756!important;
  background:#162b38!important;
  color:#c8d8df!important;
}
body[data-work-mode="immersive"] .wf-scheme-tool-actions button{
  border-color:#355263!important;
  background:#132734!important;
  color:#c8d8df!important;
}

/* Execution and working papers: evidence, analysis and review stay in one tone. */
body[data-work-mode="immersive"] .project-linked-knowledge-cards,
body[data-work-mode="immersive"] .at-execution-basis>div,
body[data-work-mode="immersive"] .at-plan-passport>summary,
body[data-work-mode="immersive"] .at-evidence-import-drawer,
body[data-work-mode="immersive"] .at-evidence-dropzone,
body[data-work-mode="immersive"] .at-tool-adapter-body,
body[data-work-mode="immersive"] .at-tool-options>article,
body[data-work-mode="immersive"] .at-analysis-metrics>article,
body[data-work-mode="immersive"] .at-table-secondary-settings,
body[data-work-mode="immersive"] .at-fact-handoff,
body[data-work-mode="immersive"] .at-inline-materials>summary,
body[data-work-mode="immersive"] .at-closeout,
body[data-work-mode="immersive"] .at-workpaper-followup,
body[data-work-mode="immersive"] .at-workpaper-followup>summary,
body[data-work-mode="immersive"] .at-workpaper-followup-body,
body[data-work-mode="immersive"] .at-workpaper-directory,
body[data-work-mode="immersive"] .at-workpaper-directory-head,
body[data-work-mode="immersive"] .at-workpaper-tree,
body[data-work-mode="immersive"] .at-workpaper-module,
body[data-work-mode="immersive"] .at-workpaper-program>div,
body[data-work-mode="immersive"] .at-workpaper-number,
body[data-work-mode="immersive"] .at-advanced-drawer,
body[data-work-mode="immersive"] .at-advanced-drawer>summary,
body[data-work-mode="immersive"] .at-execution-adjustments,
body[data-work-mode="immersive"] .at-execution-adjustments>summary{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .at-scheme-task.active,
body[data-work-mode="immersive"] .at-evidence-source.active,
body[data-work-mode="immersive"] .at-workpaper-number.is-current{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] .at-evidence-mark-index,
body[data-work-mode="immersive"] .at-submit-blockers li{
  border-color:#6e5125!important;
  background:#302519!important;
  color:#f3d9a5!important;
}
body[data-work-mode="immersive"] .at-evidence-row.is-pass{
  background:#123020!important;
  color:#b9dec5!important;
}
body[data-work-mode="immersive"] .at-evidence-row.is-exception,
body[data-work-mode="immersive"] .at-evidence-row.is-flagged{
  background:#302519!important;
  color:#f3d9a5!important;
}
body[data-work-mode="immersive"] .at-inline-review.is-reviewed,
body[data-work-mode="immersive"] .at-inline-review-note{
  border-color:#2d6449!important;
  background:#123020!important;
  color:#b9dec5!important;
}

/* Toolbox content switch: a contextual label inside the current content header. */
.toolbox-context-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:30px;
  padding:0 10px;
  border:1px solid #c9d5e5;
  border-radius:7px;
  background:rgba(255,255,255,.82);
  color:#315f9f;
  font:inherit;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.toolbox-context-switch svg{width:13px;height:13px}
.toolbox-context-switch:hover{border-color:#8fa9cf;background:#fff;color:#1d4ed8}
.toolbox-context-switch:active{transform:translateY(1px)}
.toolbox-context-switch:focus-visible{outline:3px solid rgba(36,88,211,.2);outline-offset:2px}
.am-hero-side{display:grid;gap:8px;justify-items:end;min-width:240px}
.am-hero-side .am-project-context{width:100%;box-sizing:border-box}
body[data-work-mode="immersive"] .toolbox-context-switch{border-color:#355667;background:#0d202b;color:#8bd8e5;box-shadow:none}
body[data-work-mode="immersive"] .toolbox-context-switch:hover{border-color:#5790a4;background:#14303d;color:#bceff4}

/* Work-depth contract -------------------------------------------------------
 * Shallow is the daily execution view: keep the task, data and primary action.
 * Deep restores professional support, review evidence and upstream/downstream
 * context. Immersive keeps the deep information set and only changes focus.
 */
body[data-work-mode="shallow"] :where(
  .dash-kpi-definitions,
  .pt-command-drawer,
  .pt-object-chain,
  .pt-last-activity,
  .pra-information-summary,
  .pra-method-boundary,
  .pra-reference-drawer,
  .project-linked-knowledge-cards,
  .wf-scheme-support-drawer,
  .wf-scheme-tools,
  .wf-risk-revision-review,
  .wf-risk-program-matrix,
  .wf-risk-revision-diff,
  .wf-scheme-module-drawer,
  .wf-scheme-secondary-drawer,
  .wf-plan-actual-summary,
  .wf-plan-actual-table,
  .at-execution-basis,
  .at-plan-passport,
  .at-advanced-drawer,
  .at-execution-adjustments,
  .at-table-secondary-settings,
  .rpn-source-drawer
){display:none!important}

body[data-work-mode="shallow"] .main-content{
  box-shadow:inset 0 3px 0 rgba(37,99,235,.16);
}
body[data-work-mode="deep"] .main-content{
  background:#f8f7fc;
  box-shadow:inset 0 3px 0 rgba(109,63,192,.24);
}
body[data-work-mode="deep"] .view-panel.active :where(
  .dash-kpi-definitions,
  .pt-command-drawer,
  .pra-reference-drawer,
  .wf-scheme-support-drawer,
  .wf-scheme-tools,
  .at-execution-basis,
  .at-advanced-drawer,
  .rpn-source-drawer
){border-color:#ddd4f2}

/* Immersive is not a dark copy of deep mode: retain the full professional
 * information set, but visually withdraw navigation and account chrome until
 * the user points to it. The current page and current navigation item stay
 * fully legible so the auditor never loses location context. */
body[data-work-mode="immersive"] .sidebar :where(.nav-section-label,.nav-group-label,.nav-item:not(.active)){
  opacity:.5;
  transition:opacity .16s ease,background-color .16s ease,color .16s ease;
}
body[data-work-mode="immersive"] .sidebar:hover :where(.nav-section-label,.nav-group-label,.nav-item:not(.active)),
body[data-work-mode="immersive"] .sidebar :where(.nav-item:not(.active)):hover{
  opacity:.92;
}
body[data-work-mode="immersive"] .sidebar .nav-item.active{
  opacity:1;
  box-shadow:inset 3px 0 0 #60d5df;
}
body[data-work-mode="immersive"] .breadcrumb .bc-link,
body[data-work-mode="immersive"] .breadcrumb .bc-separator{
  opacity:.54;
  transition:opacity .16s ease;
}
body[data-work-mode="immersive"] .breadcrumb:hover .bc-link,
body[data-work-mode="immersive"] .breadcrumb:hover .bc-separator{
  opacity:.9;
}
body[data-work-mode="immersive"] .project-toolbar :where(.worktop-brand,.project-actions,.user-info-content,.user-logout-btn){
  opacity:.58;
  transition:opacity .16s ease;
}
body[data-work-mode="immersive"] .project-toolbar:hover :where(.worktop-brand,.project-actions,.user-info-content,.user-logout-btn){
  opacity:.9;
}
body[data-work-mode="immersive"] .project-context,
body[data-work-mode="immersive"] .global-work-mode,
body[data-work-mode="immersive"] .user-avatar{
  opacity:1;
}
body[data-work-mode="immersive"] .view-panel.active{
  outline:1px solid rgba(96,213,223,.14);
  outline-offset:-1px;
}

@media(max-width:1180px){
  .global-work-mode>span{display:none}
  .global-work-mode{padding-right:6px}
}
html[data-theme="dark"] .toolbox-context-switch{border-color:#3a4a63;background:#243147;color:#bfdbfe;box-shadow:none}

@media(max-width:1320px){
  .global-work-mode>span{display:none}
  .global-work-mode-options button{padding:0 6px;font-size:10px}
}
@media(max-width:980px){
  .global-work-mode{flex:1 1 auto;border-right:0}
  .global-work-mode-options{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:768px){
  body[data-work-mode="immersive"] .breadcrumb{padding:10px 16px 4px}
  body[data-work-mode="immersive"] .main-content{width:calc(100% - 16px);margin:8px;padding:14px 12px 28px}
  .toolbox-directory-toolbar{align-items:center;flex-direction:row}
  .am-hero-side{width:100%;min-width:0;justify-items:stretch}
  .am-hero-side .toolbox-context-switch{justify-self:end}
}

/* Workbench handoff for confidential investigation actions. */
.dash-fraud-workbench{max-width:1180px;width:100%;margin:0 auto}
.dash-fraud-entry{overflow:hidden;padding:0;border-color:#e4d8c8;background:#fff;box-shadow:0 12px 30px rgba(82,58,29,.06)}
.dash-fraud-entry .dash-role-work-head{padding:21px 22px 18px;border-bottom:1px solid #ece5dc;background:#fffcf7}
.dash-fraud-entry .dash-role-work-head>div>span{color:#9a5d16}
.dash-fraud-task-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px 10px}
.dash-fraud-task-head>div{display:flex;align-items:baseline;gap:9px}
.dash-fraud-task-head span{color:#475569;font-size:14px;font-weight:850}
.dash-fraud-task-head strong{color:#172033;font-size:20px;font-variant-numeric:tabular-nums}
.dash-fraud-task-head small{color:#64748b;font-size:13px}
.dash-fraud-task-list{display:grid;padding:0 12px 14px}
.dash-fraud-task-row{display:grid;grid-template-columns:74px minmax(0,1fr) minmax(110px,auto) 18px;gap:12px;align-items:center;min-height:66px;padding:10px 10px;border:0;border-bottom:1px solid #edf0f4;background:#fff;color:#334155;text-align:left;cursor:pointer;transition:background-color .18s ease,transform .18s ease}
.dash-fraud-task-row:last-child{border-bottom:0}
.dash-fraud-task-row:hover{background:#fbf8f3}
.dash-fraud-task-row:active{transform:translateY(1px)}
.dash-fraud-task-row:focus-visible{outline:3px solid rgba(154,93,22,.2);outline-offset:-3px}
.dash-fraud-task-row mark{display:inline-flex;justify-content:center;padding:5px 8px;border-radius:7px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:850}
.dash-fraud-task-row.is-overdue mark{background:#fef2f2;color:#b91c1c}
.dash-fraud-task-row.is-due-soon mark{background:#fff7ed;color:#b45309}
.dash-fraud-task-row.is-awaiting-verification mark{background:#eff6ff;color:#1d4ed8}
.dash-fraud-task-row>span{display:grid;gap:3px;min-width:0}
.dash-fraud-task-row strong,.dash-fraud-task-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-fraud-task-row strong{color:#172033;font-size:14px}
.dash-fraud-task-row small{color:#64748b;font-size:12px}
.dash-fraud-task-row em{color:#64748b;font-size:12px;font-style:normal;font-weight:750;white-space:nowrap}
.dash-fraud-task-row>i{width:16px;height:16px;color:#94a3b8}
.dash-fraud-task-empty{display:grid;justify-items:start;gap:5px;min-height:92px;padding:22px 12px;color:#64748b}
.dash-fraud-task-empty strong{color:#334155;font-size:15px}
.dash-fraud-task-empty span{font-size:13px}
.dash-fraud-task-empty.is-error strong{color:#b45309}
.dash-attention-item.is-blue mark{background:#eff6ff;color:#1d4ed8}
html[data-theme="dark"] .dash-fraud-entry,html[data-theme="dark"] .dash-fraud-task-row{border-color:#314158;background:#172235;color:#d8e1ee;box-shadow:none}
html[data-theme="dark"] .dash-fraud-entry .dash-role-work-head{border-color:#314158;background:#1d2738}
html[data-theme="dark"] .dash-fraud-task-row:hover{background:#1d2b40}
html[data-theme="dark"] .dash-fraud-task-head strong,html[data-theme="dark"] .dash-fraud-task-row strong,html[data-theme="dark"] .dash-fraud-task-empty strong{color:#eef4ff}
@media(max-width:760px){
  .dash-fraud-entry .dash-role-work-head,.dash-fraud-task-head{align-items:flex-start;flex-direction:column}
  .dash-fraud-task-row{grid-template-columns:64px minmax(0,1fr) 18px}
  .dash-fraud-task-row em{grid-column:2}
  .dash-fraud-task-row>i{grid-column:3;grid-row:1/3}
}

/* Final immersive cascade: components added after the base theme must not reopen light islands. */
body[data-work-mode="immersive"] #view-auditplan button.is-active{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] .project-danger-zone{
  border-color:#6d3940!important;
  background:#2d1c22!important;
  color:#f1c4ca!important;
}
body[data-work-mode="immersive"] .project-danger-zone .btn-danger{
  border-color:#7d4650!important;
  background:#3a2229!important;
  color:#f3cbd0!important;
}
body[data-work-mode="immersive"] .pt-health-grid>article,
body[data-work-mode="immersive"] .pt-stage-strip>article,
body[data-work-mode="immersive"] .pt-command-drawer>summary,
body[data-work-mode="immersive"] .pt-stage-item{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .pt-stage-strip>article.is-in-progress,
body[data-work-mode="immersive"] .pt-stage-item.pt-stage-active{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] .pt-stage-strip>article.is-done,
body[data-work-mode="immersive"] .pt-stage-item.pt-stage-done{
  border-color:#2d6449!important;
  background:#123020!important;
  color:#b9dec5!important;
}
body[data-work-mode="immersive"] .wf-program-row.is-head,
body[data-work-mode="immersive"] .wf-ma-row,
body[data-work-mode="immersive"] .wf-risk-program-matrix-head strong,
body[data-work-mode="immersive"] .wf-risk-program-matrix button{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .wf-ma-row:hover{background:#17313f!important}
body[data-work-mode="immersive"] .at-specialized-record,
body[data-work-mode="immersive"] .at-section,
body[data-work-mode="immersive"] .at-project-material-link,
body[data-work-mode="immersive"] .at-evidence-source-row button,
body[data-work-mode="immersive"] .at-tool-options>article,
body[data-work-mode="immersive"] .at-analysis-metrics>article,
body[data-work-mode="immersive"] .at-workpaper-followup,
body[data-work-mode="immersive"] .at-workpaper-followup>summary,
body[data-work-mode="immersive"] .at-workpaper-followup-body,
body[data-work-mode="immersive"] .at-workpaper-directory,
body[data-work-mode="immersive"] .at-workpaper-directory-head,
body[data-work-mode="immersive"] .at-workpaper-tree,
body[data-work-mode="immersive"] .at-workpaper-module,
body[data-work-mode="immersive"] .at-workpaper-program>div,
body[data-work-mode="immersive"] .at-workpaper-number,
body[data-work-mode="immersive"] .at-advanced-drawer,
body[data-work-mode="immersive"] .at-advanced-drawer>summary,
body[data-work-mode="immersive"] .at-execution-adjustments,
body[data-work-mode="immersive"] .at-execution-adjustments>summary{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .at-evidence-source-row button.active,
body[data-work-mode="immersive"] .at-workpaper-number.is-current{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}

/* Keep the immersive palette above high-specificity legacy scheme rules. */
body[data-work-mode="immersive"] .wf-scheme-detail-page .wf-plan-matrix .wf-program-row.is-head,
body[data-work-mode="immersive"] .wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header){
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .wf-scheme-detail-page .wf-ma-row:not(.wf-ma-header):hover{
  background:#17313f!important;
}

/* Immersive work surfaces across the full audit lifecycle. */
body[data-work-mode="immersive"] .wf-scheme-change-alert button,
body[data-work-mode="immersive"] .pra-object-card em,
body[data-work-mode="immersive"] .pra-active-minimal small,
body[data-work-mode="immersive"] .at-current-program-meta>span,
body[data-work-mode="immersive"] .at-evidence-kpis>span,
body[data-work-mode="immersive"] .wpm-desk-kpis>span,
body[data-work-mode="immersive"] .wpm-desk-fields>article,
body[data-work-mode="immersive"] .finding-closeout-desk,
body[data-work-mode="immersive"] .finding-closeout-desk .fcd-list,
body[data-work-mode="immersive"] .finding-closeout-desk .fcd-row,
body[data-work-mode="immersive"] .finding-closeout-desk .fcd-detail,
body[data-work-mode="immersive"] .finding-closeout-desk .fcd-next,
body[data-work-mode="immersive"] .mi-container.view-card,
body[data-work-mode="immersive"] .mi-communication-summary>span,
body[data-work-mode="immersive"] .mi-feedback-queue-head>b,
body[data-work-mode="immersive"] .mi-communication-brief,
body[data-work-mode="immersive"] .mi-communication-brief>div,
body[data-work-mode="immersive"] .rpew-metrics>span,
body[data-work-mode="immersive"] .rpew-nav-row,
body[data-work-mode="immersive"] .rpew-order>button,
body[data-work-mode="immersive"] .rpn-source-drawer,
body[data-work-mode="immersive"] .rpn-source-missing,
body[data-work-mode="immersive"] .ft-plan-form,
body[data-work-mode="immersive"] .pmat-ledger,
body[data-work-mode="immersive"] .pmat-ledger-filters,
body[data-work-mode="immersive"] .pmat-ledger th,
body[data-work-mode="immersive"] .pmat-ledger .pmat-order-cell button,
body[data-work-mode="immersive"] .pmat-ledger .pmat-row-actions button,
body[data-work-mode="immersive"] .pmat-reference,
body[data-work-mode="immersive"] .pmat-reference-filters,
body[data-work-mode="immersive"] .pmat-reference-group,
body[data-work-mode="immersive"] .pmat-reference-item{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] .finding-closeout-desk .fcd-row.active,
body[data-work-mode="immersive"] .rpew-nav-row.active{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] .wpm-desk-kpis>span.ready,
body[data-work-mode="immersive"] .wpm-desk-current>b.ready,
body[data-work-mode="immersive"] .ap-status-badge.active{
  border-color:#2d6449!important;
  background:#123020!important;
  color:#b9dec5!important;
}
body[data-work-mode="immersive"] .mi-feedback-item em,
body[data-work-mode="immersive"] .mi-feedback-detail-head>b,
body[data-work-mode="immersive"] .rpn-head>b.warn,
body[data-work-mode="immersive"] mark.is-plan,
body[data-work-mode="immersive"] .pmat-priority.required{
  border-color:#6f5932!important;
  background:#302814!important;
  color:#ecd69f!important;
}
body[data-work-mode="immersive"] .pmat-row-actions button.is-danger{
  border-color:#7d4650!important;
  background:#3a2229!important;
  color:#f3cbd0!important;
}
body[data-work-mode="immersive"] .ap-landing-more>div{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:0 16px 34px rgba(1,8,13,.32)!important;
}
body[data-work-mode="immersive"] .finding-closeout-desk .fcd-head>b,
body[data-work-mode="immersive"] .mi-container .view-card,
body[data-work-mode="immersive"] .pmat-workspace .pmat-ledger,
body[data-work-mode="immersive"] .pmat-workspace .pmat-reference-group,
body[data-work-mode="immersive"] .pmat-workspace .pmat-reference-item>small,
body[data-work-mode="immersive"] .pmat-workspace .pmat-ledger td>b,
body[data-work-mode="immersive"] .pmat-workspace .pmat-ledger small>b{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}

/* Professional support and administration keep the same immersive surface hierarchy. */
body[data-work-mode="immersive"] #view-toolbox .toolbox-page,
body[data-work-mode="immersive"] #view-toolbox .toolbox-shell,
body[data-work-mode="immersive"] #view-toolbox .toolbox-category-detail,
body[data-work-mode="immersive"] #view-qa .qa-library-source-btn,
body[data-work-mode="immersive"] #view-qa .prompt-panel,
body[data-work-mode="immersive"] #view-qa .prompt-header,
body[data-work-mode="immersive"] #view-qa .qa-source-filter,
body[data-work-mode="immersive"] #view-qa .qa-source-toggle,
body[data-work-mode="immersive"] #view-qa .qa-context-chip,
body[data-work-mode="immersive"] #view-qa .qa-chat-container,
body[data-work-mode="immersive"] #view-qa .qa-mode-switch,
body[data-work-mode="immersive"] #view-qa .qa-clear-btn,
body[data-work-mode="immersive"] #view-qa .qa-messages,
body[data-work-mode="immersive"] #view-qa .qa-input-area,
body[data-work-mode="immersive"] #view-riskmodels .rm-model-entry-note,
body[data-work-mode="immersive"] #view-riskmodels .rm-detail-head,
body[data-work-mode="immersive"] .reasoning-canvas-host,
body[data-work-mode="immersive"] .reasoning-canvas-host iframe,
body[data-work-mode="immersive"] #view-fraud .fraud-overview,
body[data-work-mode="immersive"] #view-fraud .fraud-stat-card,
body[data-work-mode="immersive"] #view-fraud .fraud-status-chart,
body[data-work-mode="immersive"] #view-fraud .fraud-chart-row>div,
body[data-work-mode="immersive"] #view-fraud .fraud-action-ledger,
body[data-work-mode="immersive"] #view-fraud .fraud-action-ledger-head,
body[data-work-mode="immersive"] #view-fraud .fraud-action-ledger-counts>span,
body[data-work-mode="immersive"] #view-fraud .fraud-action-ledger-scope,
body[data-work-mode="immersive"] #view-fraud .fraud-action-scope-switch,
body[data-work-mode="immersive"] #view-fraud .fraud-action-scope-switch>button,
body[data-work-mode="immersive"] #view-useradmin th,
body[data-work-mode="immersive"] .pt-plan-source-actions>b{
  border-color:#2c4756!important;
  background:#132734!important;
  color:#c8d8df!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-qa .qa-mode-switch>button.is-active{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] #view-qa .qa-mode-badge,
body[data-work-mode="immersive"] #view-riskmodels b,
body[data-work-mode="immersive"] .pt-plan-source-actions>b{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] .ic-atlas-parcel.is-building,
body[data-work-mode="immersive"] .ic-atlas-inspector-status.is-building,
body[data-work-mode="immersive"] .ai-service-status.is-incomplete{
  border-color:#6f5932!important;
  background:#302814!important;
  color:#ecd69f!important;
}
body[data-work-mode="immersive"] .ai-service-status.is-unavailable{
  border-color:#3a5362!important;
  background:#172a36!important;
  color:#b7c8d0!important;
}
body[data-work-mode="immersive"] .ic-atlas-parcel.is-building.is-active{
  border-color:#8a713c!important;
  background:#3a3218!important;
  color:#f2dea7!important;
}
body[data-work-mode="immersive"] #view-useradmin .ua-current-user,
body[data-work-mode="immersive"] #view-useradmin .ua-current-permissions>span{
  border-color:#2d6449!important;
  background:#123020!important;
  color:#b9dec5!important;
}

/* Knowledge library directory: browse first, inspect details only after selection. */
.qa-library-workspace{
  display:grid;
  grid-template-columns:176px minmax(330px,.72fr) minmax(500px,1.28fr);
  min-height:590px;
  height:min(780px,76vh);
  border:1px solid #dbe3ed;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.qa-library-rail{
  min-width:0;
  padding:14px 10px;
  border-right:1px solid #e2e8f0;
  background:#f7f9fc;
  overflow:auto;
}
.qa-library-rail>strong,.qa-library-folder-list>strong{
  display:block;
  padding:0 9px 7px;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}
.qa-library-tabs{display:grid;gap:3px}
.qa-library-tabs button,.qa-library-folder-list button{
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:38px;
  padding:0 9px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#52637a;
  font-size:12px;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}
.qa-library-tabs button svg,.qa-library-folder-list button svg{width:17px;height:17px;color:#7790ae}
.qa-library-tabs button span,.qa-library-folder-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-library-tabs button b,.qa-library-folder-list button b{color:#94a3b8;font-size:11px;font-weight:850}
.qa-library-tabs button:hover,.qa-library-folder-list button:hover{border-color:#dbeafe;background:#fff;color:#1d4ed8}
.qa-library-tabs button.is-active,.qa-library-folder-list button.is-active{
  border-color:#c7dcfa;
  background:#eaf3ff;
  color:#174ea6;
  box-shadow:none;
}
.qa-library-tabs button.is-active svg,.qa-library-folder-list button.is-active svg{color:#2563eb}
.qa-library-folder-list{display:grid;gap:2px;margin-top:15px;padding-top:13px;border-top:1px solid #e2e8f0}
.qa-library-content-pane{
  display:grid;
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
  min-width:0;
  min-height:0;
  border-right:1px solid #e2e8f0;
  background:#fff;
  overflow:hidden;
}
.qa-library-content-head{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:flex-start;
  gap:11px;
  padding:16px 16px 13px;
  border-bottom:1px solid #edf2f7;
}
.qa-library-content-head>div:first-child{min-width:0}
.qa-library-content-head span,.qa-library-content-head strong,.qa-library-content-head small{display:block}
.qa-library-content-head>div:first-child>span{color:#2563eb;font-size:11px;font-weight:900;letter-spacing:.08em}
.qa-library-content-head strong{margin-top:3px;color:#10233f;font-size:17px;line-height:1.3}
.qa-library-content-head small{margin-top:4px;color:#64748b;font-size:12px;line-height:1.4}
.qa-library-upload{min-width:0;flex:0 1 auto}
#view-qa.qa-redesigned .qa-library-upload .kb-upload-zone{
  display:inline-flex;
  width:auto;
  min-height:34px;
  margin:0;
  padding:0 11px;
  align-items:center;
  justify-content:center;
  flex-direction:row;
  gap:6px;
  border:1px solid #b9d2f5;
  border-radius:8px;
  background:#f4f8ff;
  color:#1d4ed8;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1;
}
#view-qa.qa-redesigned .qa-library-upload .kb-upload-zone span{display:inline}
#view-qa.qa-redesigned .qa-library-upload .kb-upload-zone strong{display:inline}
#view-qa.qa-redesigned .qa-library-upload .kb-upload-zone small{display:none}
.qa-library-upload .kb-upload-zone svg{width:16px;height:16px}
.qa-library-directory-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid #edf2f7;
  background:#fbfcfe;
}
.qa-library-directory-toolbar label{
  display:flex;
  min-width:0;
  flex:1;
  align-items:center;
  gap:7px;
  height:34px;
  padding:0 10px;
  border:1px solid #d5deea;
  border-radius:8px;
  background:#fff;
  color:#8797ab;
}
.qa-library-directory-toolbar label svg{width:15px;height:15px;flex:0 0 auto}
.qa-library-directory-toolbar input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#27364b;font:12px inherit}
.qa-library-directory-toolbar>span{flex:0 0 auto;color:#7a899d;font-size:11px;white-space:nowrap}
.qa-ingestion-workbench{margin:10px;max-height:420px;overflow:auto}
#view-qa.qa-redesigned .qa-library-content-pane .qa-library-document-list{
  display:grid;
  align-content:start;
  gap:2px;
  min-height:0;
  max-height:none;
  padding:7px;
  overflow:auto;
}
.qa-library-document-row{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto 16px;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:58px;
  padding:8px 9px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#27364b;
  text-align:left;
  cursor:pointer;
}
.qa-library-document-row:hover{border-color:#dbeafe;background:#f7faff}
.qa-library-document-row.is-selected{border-color:#bdd5f5;background:#eaf3ff}
.qa-library-file-icon,.qa-library-preview-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:38px;
  border:1px solid #dbe5f0;
  border-radius:7px;
  background:#fff;
  color:#3b82f6;
}
.qa-library-file-icon svg,.qa-library-preview-icon svg{width:18px;height:18px}
.qa-library-file-copy{display:block;min-width:0}
.qa-library-file-copy strong,.qa-library-file-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-library-file-copy strong{color:#172033;font-size:13px;line-height:1.4}
.qa-library-file-copy small{margin-top:4px;color:#7a899d;font-size:11px;font-weight:600}
.qa-library-row-status{padding:3px 6px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:10px;font-weight:800;white-space:nowrap}
.qa-library-document-row>svg{width:15px;height:15px;color:#9aabba}
.qa-library-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-top:1px solid #edf2f7;background:#fbfcfe}
.qa-library-pagination>span{color:#7a899d;font-size:11px}
.qa-library-pagination>div{display:flex;gap:6px}
.qa-library-pagination button{min-width:58px;min-height:30px}
.qa-library-preview-pane{min-width:0;min-height:0;padding:16px;background:#fbfcfe;overflow:auto}
.qa-library-preview-empty{display:grid;place-items:center;align-content:center;height:100%;min-height:260px;color:#94a3b8;text-align:center}
.qa-library-preview-empty svg{width:30px;height:30px;margin-bottom:12px;color:#b7c4d3}
.qa-library-preview-empty strong{color:#52637a;font-size:14px}
.qa-library-preview-empty p{max-width:300px;margin:6px 0 0;font-size:12px;line-height:1.6}
.qa-library-preview-card{display:grid;min-width:0;gap:15px}
.qa-library-preview-card>*{min-width:0}
.qa-library-preview-card>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:11px;padding-bottom:14px;border-bottom:1px solid #e2e8f0}
.qa-library-preview-card>header>div{min-width:0}
.qa-library-preview-card>header small,.qa-library-preview-card>header strong{display:block}
.qa-library-preview-card>header small{color:#2563eb;font-size:11px;font-weight:900}
.qa-library-preview-card>header strong{margin-top:4px;color:#10233f;font-size:16px;line-height:1.45;word-break:break-word}
.qa-library-preview-card>header p{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 0}
.qa-library-preview-card>header p span{padding:3px 6px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:10px;font-weight:800}
.qa-library-preview-excerpt{min-width:0}
.qa-library-preview-excerpt>span{color:#64748b;font-size:11px;font-weight:900;letter-spacing:.05em}
.qa-library-preview-excerpt>.qa-document-render{max-height:420px;margin-top:7px;overflow:auto}
.qa-library-table-focus{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#40516a;font:850 11px/1 inherit;cursor:pointer;white-space:nowrap}
.qa-library-table-focus:hover{border-color:#93c5fd;color:#1d4ed8}
.qa-library-table-focus svg{width:14px;height:14px}
.qa-document-render{min-width:0;border:1px solid #dbe3ed;border-radius:10px;background:#fff;color:#27364b}
.qa-document-render-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.qa-document-render-summary strong{color:#22324a;font-size:12px}
.qa-document-render-summary span{color:#718198;font-size:10px;font-weight:750;white-space:nowrap}
.qa-document-sheet-tabs{display:flex;gap:3px;padding:6px 7px 0;overflow-x:auto;border-bottom:1px solid #e2e8f0;background:#fbfcfe}
.qa-document-sheet-tabs button{flex:0 0 auto;min-height:30px;padding:0 9px;border:0;border-bottom:2px solid transparent;background:transparent;color:#718198;font:700 11px/1 inherit;cursor:pointer}
.qa-document-sheet-tabs button:hover{color:#1d4ed8}
.qa-document-sheet-tabs button.is-active{border-bottom-color:#2563eb;color:#1d4ed8}
.qa-document-sheet{min-width:0}
.qa-document-sheet[hidden]{display:none}
.qa-document-sheet>header{display:flex;align-items:center;gap:12px;padding:8px 10px;border-bottom:1px solid #edf2f7}
.qa-document-sheet>header strong{overflow:hidden;color:#334155;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.qa-document-sheet>header>span{margin-left:auto;color:#7a899d;font-size:10px;white-space:nowrap}
.qa-document-table-wrap{max-width:100%;max-height:350px;overflow:auto;scrollbar-width:thin;scrollbar-color:#b8c5d5 transparent}
.qa-document-table-wrap:focus-visible{outline:2px solid #60a5fa;outline-offset:-2px}
.qa-document-table-wrap table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:11px;line-height:1.45}
.qa-document-table-wrap th,.qa-document-table-wrap td{max-width:260px;padding:7px 9px;border-right:1px solid #edf2f7;border-bottom:1px solid #edf2f7;text-align:left;vertical-align:top;word-break:break-word}
.qa-document-table-wrap thead th{position:sticky;top:0;z-index:1;background:#f1f5f9;color:#475569;font-weight:850;white-space:nowrap}
.qa-document-table-wrap tbody tr:hover td,.qa-document-table-wrap tbody tr:hover th{background:#f7faff}
.qa-document-table-wrap .qa-document-row-number{position:sticky;left:0;z-index:2;width:36px;min-width:36px;background:#f8fafc;color:#94a3b8;text-align:right;font-variant-numeric:tabular-nums}
.qa-document-table-wrap thead .qa-document-row-number{z-index:3;background:#eaf0f7}
.qa-document-preview-limit{margin:0;padding:8px 10px;background:#fbfcfe;color:#7a899d;font-size:10px;line-height:1.5}
.qa-document-column-picker{position:relative;flex:0 0 auto}
.qa-document-column-picker>summary{display:flex;align-items:center;gap:4px;min-height:26px;padding:0 7px;border:1px solid #dbe3ed;border-radius:6px;background:#fff;color:#52637a;font-size:10px;font-weight:800;cursor:pointer;list-style:none;white-space:nowrap}
.qa-document-column-picker>summary::-webkit-details-marker{display:none}
.qa-document-column-picker>summary b{color:#1d4ed8;font-size:10px}
.qa-document-column-picker>div{position:absolute;z-index:12;top:31px;right:0;display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:3px;width:min(360px,70vw);max-height:260px;padding:8px;border:1px solid #dbe3ed;border-radius:9px;background:#fff;box-shadow:0 14px 32px rgba(15,23,42,.14);overflow:auto}
.qa-document-column-picker label{display:flex;align-items:center;gap:7px;min-width:0;padding:6px;border-radius:6px;color:#40516a;font-size:10px;cursor:pointer}
.qa-document-column-picker label:hover{background:#f1f5f9}
.qa-document-column-picker label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-document-column-picker input{accent-color:#2563eb}
.qa-document-page{width:min(760px,100%);margin:0 auto;padding:22px 26px;background:#fff;color:#27364b;font-size:13px;line-height:1.8}
.qa-document-page h2,.qa-document-page h3,.qa-document-page h4{margin:1.25em 0 .45em;color:#172033;line-height:1.45}
.qa-document-page h2{font-size:18px}.qa-document-page h3{font-size:15px}.qa-document-page h4{font-size:14px}
.qa-document-page p{margin:0 0 .8em;white-space:pre-wrap}
.qa-document-list-item{display:grid;grid-template-columns:7px minmax(0,1fr);gap:9px;align-items:start;margin:0 0 .65em}
.qa-document-list-item>span{width:5px;height:5px;margin-top:.75em;border-radius:50%;background:#64748b}
.qa-document-list-item>p{margin:0}
.qa-document-plain-text{padding:14px;color:#334155;font-size:13px;line-height:1.75;white-space:normal}
.qa-document-render mark{padding:1px 2px;border-radius:3px;background:#fef08a;color:#713f12;outline:2px solid #facc15;outline-offset:1px}
.qa-document-preview-content>.qa-document-render{min-height:0;overflow:auto;background:#f4f7fb}
.qa-document-preview-content>.qa-document-render.is-spreadsheet{background:#fff}
.qa-document-preview-content .qa-document-table-wrap{max-height:none}
.qa-library-preview-actions{display:flex;flex-wrap:wrap;gap:7px}
.qa-library-preview-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:32px;
  padding:0 10px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  background:#fff;
  color:#475569;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.qa-library-preview-actions button svg{width:14px;height:14px}
.qa-library-preview-actions button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}
.qa-library-preview-actions button.is-danger{margin-left:auto;color:#b91c1c}
.qa-library-work-intake{margin:12px 0 0;border-top:1px solid #dbe4ef;border-bottom:1px solid #dbe4ef;background:#fbfdff}
.qa-library-work-intake>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px 9px}
.qa-library-work-intake>header div{min-width:0}
.qa-library-work-intake>header strong,.qa-library-work-intake>header small{display:block}
.qa-library-work-intake>header strong{color:#1f334d;font-size:12px}
.qa-library-work-intake>header small{margin-top:2px;color:#718198;font-size:10px;line-height:1.5}
.qa-library-work-intake>header button{border:0;background:transparent;color:#64748b;font-size:10px;font-weight:800;cursor:pointer}
.qa-library-intake-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 2px;border-top:1px solid #edf2f7}
.qa-library-intake-row>div:first-child{min-width:0}
.qa-library-intake-row strong,.qa-library-intake-row small{display:block}
.qa-library-intake-row strong{color:#334155;font-size:11px}
.qa-library-intake-row small{margin-top:2px;color:#7a899d;font-size:10px;line-height:1.5}
.qa-library-intake-row button,.qa-library-intake-controls select{min-height:30px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#40516a;font-size:10px;font-weight:800}
.qa-library-intake-row button{padding:0 10px;cursor:pointer}
.qa-library-intake-row button:disabled,.qa-library-intake-controls select:disabled{cursor:not-allowed;opacity:.55}
.qa-library-intake-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.qa-library-intake-controls select{width:min(190px,42vw);padding:0 25px 0 8px;font-weight:650}
.qa-library-work-intake>p{margin:0;padding:8px 2px;border-top:1px solid #edf2f7;color:#718198;font-size:10px;line-height:1.55}
.qa-library-usage{border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
.qa-library-usage>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 0;color:#334155;cursor:pointer}
.qa-library-usage>summary>span{display:flex;align-items:center;gap:7px;min-width:0}
.qa-library-usage>summary>span svg{width:15px;height:15px;flex:0 0 auto;color:#64748b}
.qa-library-usage>summary b{font-size:12px;line-height:1.35}
.qa-library-usage>summary>strong{padding:3px 7px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:10px;font-weight:850;white-space:nowrap}
.qa-library-usage[open]>summary{color:#1d4ed8}
.qa-library-usage[open]>summary>span svg{color:#2563eb}
.qa-library-usage-body{display:grid;gap:12px;padding:1px 0 13px}
.qa-library-usage-group>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px;padding:0 2px;color:#64748b}
.qa-library-usage-group>header span{font-size:10px;font-weight:900;letter-spacing:.05em}
.qa-library-usage-group>header b{font-size:10px}
.qa-library-usage-group ul{margin:0;padding:0;list-style:none}
.qa-library-usage-group li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;padding:8px 2px;border-top:1px solid #edf2f7}
.qa-library-usage-kind{margin-top:1px;padding:2px 5px;border-radius:5px;background:#eff6ff;color:#1d4ed8;font-size:9px;font-weight:850;white-space:nowrap}
.qa-library-usage-group li div{min-width:0}
.qa-library-usage-group li strong,.qa-library-usage-group li small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-library-usage-group li strong{color:#334155;font-size:11px;line-height:1.45}
.qa-library-usage-group li small{margin-top:2px;color:#8492a6;font-size:10px;line-height:1.45}
.qa-library-usage-empty{margin:0;padding:3px 2px 1px;color:#718198;font-size:11px;line-height:1.65}
.qa-library-preview-details{border-top:1px solid #e2e8f0;padding-top:11px}
.qa-library-usage+.qa-library-preview-details{border-top:0}
.qa-library-preview-details>summary{color:#52637a;font-size:12px;font-weight:850;cursor:pointer}
.qa-library-preview-details .qa-library-metadata-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px}
.qa-library-preview-details .qa-library-metadata-form label:first-child{grid-column:1/-1}
.qa-library-workspace.is-preview-focus{grid-template-columns:minmax(0,1fr)}
.qa-library-workspace.is-preview-focus .qa-library-rail,.qa-library-workspace.is-preview-focus .qa-library-content-pane{display:none}
.qa-library-workspace.is-preview-focus .qa-library-preview-pane{padding:18px 22px}
.qa-library-workspace.is-preview-focus .qa-library-preview-excerpt>.qa-document-render{max-height:none}
.qa-library-workspace.is-preview-focus .qa-document-table-wrap{max-height:calc(76vh - 210px)}
.qa-library-workspace.is-preview-focus .qa-library-preview-card{max-width:none}
.qa-library-empty{display:grid;place-items:center;align-content:center;min-height:220px}
.qa-library-empty svg{width:25px;height:25px;margin-bottom:8px;color:#a8b6c7}
.qa-library-empty strong{color:#52637a;font-size:13px}
.qa-library-empty p{margin:5px 0 0;line-height:1.55}
.qa-library-workspace.is-card-mode{grid-template-columns:208px minmax(0,1fr)}
.qa-library-workspace.is-card-mode .qa-library-content-pane{border-right:0}
.qa-library-workspace.is-ingestion-mode{grid-template-columns:208px minmax(0,1fr)}
.qa-library-workspace.is-ingestion-mode .qa-library-content-pane{border-right:0}
.qa-library-workspace.is-ingestion-mode .qa-library-preview-pane{display:none}
.qa-library-workspace.is-ingestion-mode .qa-library-content-head{flex-wrap:wrap}
.qa-library-workspace.is-ingestion-mode .qa-library-content-head>div:first-child{flex:1 1 260px}
.qa-library-workspace.is-ingestion-mode .qa-library-header-actions{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end}
.qa-library-workspace.is-ingestion-mode .qa-ingestion-workbench{max-height:500px}

html[data-theme="dark"] .qa-library-workspace,html[data-theme="dark"] .qa-library-content-pane,html[data-theme="dark"] .qa-document-render,html[data-theme="dark"] .qa-document-page{border-color:#314158;background:#172235;color:#dce7f5}
html[data-theme="dark"] .qa-document-render-summary,html[data-theme="dark"] .qa-document-sheet-tabs,html[data-theme="dark"] .qa-document-preview-limit{border-color:#314158;background:#111c2e}
html[data-theme="dark"] .qa-document-render-summary strong,html[data-theme="dark"] .qa-document-page h2,html[data-theme="dark"] .qa-document-page h3,html[data-theme="dark"] .qa-document-page h4{color:#e5edf8}
html[data-theme="dark"] .qa-document-table-wrap th,html[data-theme="dark"] .qa-document-table-wrap td,html[data-theme="dark"] .qa-document-sheet>header{border-color:#314158}
html[data-theme="dark"] .qa-document-table-wrap thead th,html[data-theme="dark"] .qa-document-table-wrap .qa-document-row-number{background:#111c2e;color:#cbd5e1}
html[data-theme="dark"] .qa-library-rail,html[data-theme="dark"] .qa-library-preview-pane,html[data-theme="dark"] .qa-library-directory-toolbar,html[data-theme="dark"] .qa-library-pagination{border-color:#314158;background:#111c2e}
html[data-theme="dark"] .qa-library-content-head{border-color:#314158}
html[data-theme="dark"] .qa-library-tabs button:hover,html[data-theme="dark"] .qa-library-folder-list button:hover{border-color:#314158;background:#1d2b40}
html[data-theme="dark"] .qa-library-tabs button.is-active,html[data-theme="dark"] .qa-library-folder-list button.is-active,html[data-theme="dark"] .qa-library-document-row.is-selected{border-color:#3f6f8e;background:#163650;color:#c2e0f0}
html[data-theme="dark"] .qa-library-file-icon,html[data-theme="dark"] .qa-library-preview-icon,html[data-theme="dark"] .qa-library-directory-toolbar label,html[data-theme="dark"] .qa-library-preview-actions button{border-color:#314158;background:#101a2b}
html[data-theme="dark"] .qa-library-content-head strong,html[data-theme="dark"] .qa-library-file-copy strong,html[data-theme="dark"] .qa-library-preview-card>header strong{color:#e5edf8}
html[data-theme="dark"] .qa-library-table-focus,html[data-theme="dark"] .qa-document-column-picker>summary,html[data-theme="dark"] .qa-document-column-picker>div{border-color:#314158;background:#101a2b;color:#dce7f5}
html[data-theme="dark"] .qa-document-column-picker label:hover{background:#1d2b40}
html[data-theme="dark"] .qa-library-work-intake{border-color:#314158;background:#0d1727}
html[data-theme="dark"] .qa-library-work-intake>header strong,html[data-theme="dark"] .qa-library-intake-row strong{color:#dce7f5}
html[data-theme="dark"] .qa-library-intake-row,html[data-theme="dark"] .qa-library-work-intake>p{border-color:#26364d}
html[data-theme="dark"] .qa-library-intake-row button,html[data-theme="dark"] .qa-library-intake-controls select{border-color:#3a4b64;background:#101a2b;color:#dce7f5}
html[data-theme="dark"] .qa-library-usage{border-color:#314158}
html[data-theme="dark"] .qa-library-usage-group li{border-color:#314158}
html[data-theme="dark"] .qa-library-usage-group li strong{color:#dce7f5}

@media(max-width:1120px){
  .qa-library-workspace{grid-template-columns:190px minmax(0,1fr);height:auto;min-height:620px}
  .qa-library-content-pane{min-height:620px;border-right:0}
  .qa-library-preview-pane{grid-column:1/-1;min-height:320px;border-top:1px solid #e2e8f0}
  .qa-library-workspace.is-card-mode{grid-template-columns:190px minmax(0,1fr)}
  .qa-library-workspace.is-ingestion-mode{grid-template-columns:190px minmax(0,1fr)}
  .qa-library-workspace.is-preview-focus{grid-template-columns:1fr;height:min(780px,76vh)}
  .qa-library-workspace.is-preview-focus .qa-library-preview-pane{grid-column:1;min-height:0;border-top:0}
}
@media(max-width:700px){
  .qa-library-workspace,.qa-library-workspace.is-card-mode{grid-template-columns:1fr;height:auto}
  .qa-library-workspace.is-ingestion-mode{grid-template-columns:1fr;height:auto}
  .qa-library-rail{border-right:0;border-bottom:1px solid #e2e8f0}
  .qa-library-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qa-library-folder-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qa-library-folder-list>strong{grid-column:1/-1}
  .qa-library-intake-row{grid-template-columns:1fr}
  .qa-library-intake-controls{justify-content:stretch}
  .qa-library-intake-controls select{width:auto;min-width:0;flex:1 1 auto}
  .qa-library-content-pane{min-height:540px}
  .qa-library-preview-pane{grid-column:1;min-height:280px}
  .qa-library-preview-card>header{grid-template-columns:auto minmax(0,1fr)}
  .qa-library-table-focus{grid-column:1/-1;justify-self:start}
  .qa-library-workspace.is-preview-focus .qa-library-preview-pane{padding:14px}
  .qa-library-workspace.is-preview-focus .qa-document-table-wrap{max-height:55vh}
  .qa-document-column-picker>div{grid-template-columns:1fr;width:min(260px,78vw)}
  .qa-library-document-row{grid-template-columns:36px minmax(0,1fr) 15px}
  .qa-library-row-status{display:none}
  .qa-library-preview-details .qa-library-metadata-form{grid-template-columns:1fr}
  .qa-library-preview-details .qa-library-metadata-form label:first-child{grid-column:auto}
}

/* Knowledge library management controls and governance explanations. */
.qa-library-content-pane{grid-template-rows:auto auto auto auto minmax(0,1fr) auto}
.qa-library-header-actions{display:flex;width:100%;min-width:0;flex:0 0 auto;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap}
.qa-library-header-actions[hidden]{display:none}
.qa-library-header-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}
.qa-library-header-actions>button:hover{border-color:#93c5fd;color:#1d4ed8}
.qa-library-header-actions>button svg{width:16px;height:16px}
.qa-library-context-note{display:flex;align-items:flex-start;gap:8px;padding:9px 13px;border-bottom:1px solid #e5edf6;background:#f6f9fd;color:#64748b;font-size:11px;line-height:1.55}
.qa-library-context-note[hidden]{display:none}
.qa-library-context-note svg{width:15px;height:15px;flex:0 0 auto;margin-top:1px;color:#3b82f6}
.qa-library-context-note strong{color:#334155}
.qa-library-folder-list[hidden]{display:none}
.qa-library-folder-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 5px 6px 9px}
.qa-library-folder-heading>strong{color:#94a3b8;font-size:11px;font-weight:900;letter-spacing:.08em}
.qa-library-folder-heading>span{color:#a0aec0;font-size:10px;font-weight:800}
.qa-library-folder-heading>button{display:inline-flex;width:auto;min-height:26px;padding:0 6px;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:6px;color:#64748b;font-size:10px;cursor:pointer}
.qa-library-folder-heading>button svg{width:13px;height:13px}
.qa-library-custom-folder{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px}
.qa-library-custom-folder>div{display:flex;gap:1px;opacity:0;transition:opacity .14s ease}
.qa-library-custom-folder:hover>div,.qa-library-custom-folder:focus-within>div{opacity:1}
.qa-library-custom-folder>div button{display:grid;place-items:center;width:25px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#8291a5;cursor:pointer}
.qa-library-custom-folder>div button:hover{background:#fff;color:#1d4ed8}
.qa-library-custom-folder>div button:last-child:hover{color:#b91c1c}
.qa-library-custom-folder>div svg{width:13px;height:13px}
.qa-library-domain-label{display:block;margin:10px 9px 4px;color:#a0aec0;font-size:10px;font-weight:850;letter-spacing:.06em}
.qa-library-folder-move{display:flex;align-items:flex-end;gap:7px;padding:10px;border:1px solid #dbe3ed;border-radius:9px;background:#fff}
.qa-library-folder-move label{display:grid;flex:1;gap:4px;color:#64748b;font-size:10px;font-weight:800}
.qa-library-folder-move select{min-width:0;height:32px;padding:0 8px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font-family:inherit;font-size:11px}
.qa-library-folder-move button{min-height:32px;padding:0 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:11px;font-weight:850;cursor:pointer}
.qa-library-preview-details .qa-library-metadata-form label.is-content{grid-column:1/-1}
.qa-library-preview-details .qa-library-metadata-form textarea{min-height:150px;padding:9px;border:1px solid #cbd5e1;border-radius:7px;resize:vertical;background:#fff;color:#172033;font-family:inherit;font-size:12px;line-height:1.65}
.qa-library-dialog-layer{position:fixed;inset:0;z-index:13000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.56)}
.qa-library-dialog{width:min(460px,calc(100vw - 30px));overflow:hidden;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.qa-library-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.qa-library-dialog>header span,.qa-library-dialog>header strong{display:block}
.qa-library-dialog>header span{color:#2563eb;font-size:11px;font-weight:900;letter-spacing:.07em}
.qa-library-dialog>header strong{margin-top:3px;color:#0f172a;font-size:17px}
.qa-library-dialog>header button{width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#64748b;font-size:20px;cursor:pointer}
.qa-library-dialog>label{display:grid;gap:6px;margin:17px;color:#475569;font-size:12px;font-weight:850}
.qa-library-dialog input,.qa-library-dialog select,.qa-library-dialog textarea{min-width:0;width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font-family:inherit;font-size:13px}
.qa-library-dialog input,.qa-library-dialog select{height:38px;padding:0 10px}
.qa-library-dialog textarea{padding:10px;line-height:1.65;resize:vertical}
.qa-library-dialog>p{margin:0;padding:0 17px 15px;color:#64748b;font-size:11px;line-height:1.55}
.qa-library-dialog>footer{display:flex;justify-content:flex-end;gap:7px;padding:12px 17px;border-top:1px solid #e2e8f0;background:#f8fafc}
.qa-library-dialog>footer button{min-height:34px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;font-size:12px;font-weight:850;cursor:pointer}
.qa-library-dialog>footer button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}
.qa-library-document-creator{width:min(680px,calc(100vw - 30px))}
.qa-library-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 17px}
.qa-library-create-fields label{display:grid;gap:5px;color:#475569;font-size:11px;font-weight:850}
.qa-library-create-fields label.is-wide{grid-column:1/-1}
html[data-theme="dark"] .qa-library-context-note{border-color:#314158;background:#13233b;color:#a8b7ca}
html[data-theme="dark"] .qa-library-context-note strong{color:#dce7f5}
html[data-theme="dark"] .qa-library-header-actions>button,html[data-theme="dark"] .qa-library-folder-move,html[data-theme="dark"] .qa-library-folder-move select,html[data-theme="dark"] .qa-library-folder-move button,html[data-theme="dark"] .qa-library-preview-details .qa-library-metadata-form textarea{border-color:#314158;background:#101a2b;color:#dce7f5}
html[data-theme="dark"] .qa-library-dialog,html[data-theme="dark"] .qa-library-dialog>header,html[data-theme="dark"] .qa-library-dialog>footer{border-color:#314158;background:#172235}
html[data-theme="dark"] .qa-library-dialog>header strong{color:#e5edf8}
html[data-theme="dark"] .qa-library-dialog input,html[data-theme="dark"] .qa-library-dialog select,html[data-theme="dark"] .qa-library-dialog textarea{border-color:#314158;background:#101a2b;color:#dce7f5}
@media(max-width:700px){
  .qa-library-create-fields{grid-template-columns:1fr}
  .qa-library-create-fields label.is-wide{grid-column:auto}
  .qa-library-header-actions{align-items:stretch;flex-direction:column}
}

/* Knowledge library 2026-08-29: keep context, widen reading, separate index from detail. */
.qa-library-manager-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.qa-library-manager-actions button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;
  border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;font:850 12px/1 inherit;cursor:pointer
}
.qa-library-manager-actions button:hover{border-color:#93c5fd;color:#1d4ed8}
.qa-library-manager-actions button svg{width:15px;height:15px}
.qa-library-return-search{display:none!important}
#view-qa.qa-redesigned.qa-library-browse-mode .qa-library-heading-actions,
#view-qa.qa-redesigned.qa-library-browse-mode .qa-source-filter{display:none!important}
#view-qa.qa-redesigned.qa-library-browse-mode>.page-heading{display:none!important}
#view-qa.qa-redesigned.qa-library-browse-mode .qa-library-return-search{display:inline-flex!important}

.qa-library-workspace.is-spreadsheet-selection{
  grid-template-columns:164px minmax(230px,.36fr) minmax(0,1.64fr)
}
.qa-library-workspace.is-spreadsheet-selection .qa-library-preview-pane{padding:14px}
.qa-library-workspace.is-spreadsheet-selection .qa-library-preview-excerpt>.qa-document-render{max-height:500px}
.qa-library-workspace.is-spreadsheet-selection .qa-document-table-wrap{max-height:410px}
.qa-library-workspace.is-spreadsheet-selection.is-preview-focus{
  grid-template-columns:minmax(0,1fr)
}
.qa-library-workspace.is-spreadsheet-selection.is-preview-focus .qa-library-preview-pane{
  grid-column:1/-1;
  width:100%;
  padding:18px 22px
}
.qa-library-workspace.is-spreadsheet-selection.is-preview-focus .qa-library-preview-card>header{
  position:sticky;
  z-index:5;
  top:-18px;
  padding:14px 0;
  background:inherit
}
.qa-library-workspace.is-spreadsheet-selection.is-preview-focus .qa-library-preview-excerpt>.qa-document-render{
  max-height:none
}
.qa-library-workspace.is-spreadsheet-selection.is-preview-focus .qa-document-table-wrap{
  max-height:calc(76vh - 230px)
}
.qa-library-workspace.is-project-mode{grid-template-columns:190px minmax(330px,.72fr) minmax(460px,1.28fr)}
.qa-project-library-summary{padding:2px 0 14px;border-bottom:1px solid #e2e8f0}
.qa-project-library-summary>span{color:#64748b;font-size:11px;font-weight:900;letter-spacing:.05em}
.qa-project-library-summary>p{margin:7px 0 0;color:#334155;font-size:13px;line-height:1.75;white-space:pre-wrap}
.qa-project-library-trace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;border:1px solid #e2e8f0;border-radius:9px;background:#fff}
.qa-project-library-trace>div{min-width:0;padding:10px 12px}
.qa-project-library-trace>div+div{border-left:1px solid #e2e8f0}
.qa-project-library-trace dt{color:#7a899d;font-size:10px;font-weight:850}
.qa-project-library-trace dd{margin:4px 0 0;color:#334155;font-size:12px;font-weight:750;line-height:1.5;word-break:break-word}
.qa-project-library-boundary{margin:0;padding-top:11px;border-top:1px solid #edf2f7;color:#7a899d;font-size:10px;line-height:1.55}

.qa-library-workspace.is-card-mode{grid-template-columns:190px minmax(0,1fr)}
.qa-library-workspace.is-card-mode .qa-library-document-list{padding:0!important;overflow:hidden!important}
.qa-knowledge-card-workspace{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);height:100%;min-height:0}
.qa-knowledge-card-index{min-width:0;overflow:auto;border-right:1px solid #e2e8f0;background:#fbfcfe}
.qa-knowledge-card-index-row{
  display:grid;gap:5px;width:100%;padding:13px 14px;border:0;border-bottom:1px solid #edf2f7;background:transparent;text-align:left;cursor:pointer
}
.qa-knowledge-card-index-row[hidden]{display:none!important}
.qa-knowledge-card-index-row:hover{background:#f4f8fd}
.qa-knowledge-card-index-row.is-selected{box-shadow:none;background:#eaf3ff}
.qa-knowledge-card-index-row>strong,.qa-knowledge-card-index-row>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-knowledge-card-index-row>strong{color:#21334d;font-size:13px;line-height:1.45}
.qa-knowledge-card-index-row>small{color:#718198;font-size:11px}
.qa-knowledge-card-index-row>span{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.qa-knowledge-card-index-row>span>b{margin-left:auto;color:#64748b;font-size:9px;font-weight:800;white-space:nowrap}
.qa-knowledge-card-index-row time{overflow:hidden;color:#94a3b8;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.qa-knowledge-card-index-row .qa-knowledge-source-health{margin:0;flex:0 0 auto}
.qa-knowledge-card-reader{min-width:0;padding:20px 22px;overflow:auto;background:#fff}
.qa-knowledge-card-reader>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:15px;border-bottom:1px solid #e2e8f0}
.qa-knowledge-card-reader>header>div:first-child{min-width:0}
.qa-knowledge-card-reader>header span,.qa-knowledge-card-reader>header strong,.qa-knowledge-card-reader>header small{display:block}
.qa-knowledge-card-reader>header span{color:#2563eb;font-size:10px;font-weight:900;letter-spacing:.08em}
.qa-knowledge-card-reader>header strong{margin-top:4px;color:#172033;font-size:19px;line-height:1.4}
.qa-knowledge-card-reader>header small{margin-top:5px;color:#7a899d;font-size:10px}
.qa-knowledge-card-reader>header>div:last-child{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.qa-knowledge-card-reader>header button,.qa-knowledge-card-reader>footer button{min-height:31px;padding:0 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:11px;font-weight:850;cursor:pointer}
.qa-knowledge-card-reader-judgment{padding:18px 0 16px;border-bottom:1px solid #e2e8f0}
.qa-knowledge-card-reader-judgment>span{color:#1d4ed8;font-size:10px;font-weight:900;letter-spacing:.06em}
.qa-knowledge-card-reader-judgment>p{margin:7px 0 0;color:#20334d;font-size:14px;line-height:1.8;white-space:pre-wrap}
.qa-knowledge-card-reader-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:14px 0}
.qa-knowledge-card-reader-meta>div{min-width:0}
.qa-knowledge-card-reader-meta>div+div{padding-left:20px;border-left:1px solid #e2e8f0}
.qa-knowledge-card-reader-meta dt{color:#7a899d;font-size:10px;font-weight:900}
.qa-knowledge-card-reader-meta dd{margin:5px 0 0;color:#334155;font-size:12px;font-weight:750;line-height:1.55}
.qa-knowledge-card-reader-meta small{display:block;margin-top:4px;color:#94a3b8;font-size:10px}
.qa-knowledge-card-reader .qa-knowledge-card-tags{padding:10px 0}
.qa-knowledge-card-relations{margin:2px 0 0;border-top:1px solid #e2e8f0}
.qa-knowledge-card-relations>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;list-style:none;color:#334155;cursor:pointer}
.qa-knowledge-card-relations>summary::-webkit-details-marker{display:none}
.qa-knowledge-card-relations>summary span{font-size:12px;font-weight:900}
.qa-knowledge-card-relations>summary small{color:#7a899d;font-size:10px}
.qa-knowledge-card-relations[open]>summary{color:#1d4ed8}
.qa-knowledge-card-governance{margin:0;border-top:1px solid #e2e8f0}
.qa-knowledge-card-governance>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;list-style:none;color:#334155;cursor:pointer}
.qa-knowledge-card-governance>summary::-webkit-details-marker{display:none}
.qa-knowledge-card-governance>summary span{font-size:12px;font-weight:900}
.qa-knowledge-card-governance>summary small{color:#7a899d;font-size:10px}
.qa-knowledge-card-governance[open]>summary{color:#1d4ed8}
.qa-knowledge-card-governance-message{margin:0 0 14px;color:#64748b;font-size:11px;line-height:1.65}
.qa-knowledge-card-governance-state{display:grid;gap:5px;padding:0 0 15px}
.qa-knowledge-card-governance-state p{margin:0;color:#334155;font-size:12px;font-weight:800}
.qa-knowledge-card-governance-state span{color:#64748b;font-size:10px;line-height:1.55}
.qa-knowledge-card-review-note{display:flex;gap:8px;margin:0 0 12px;padding:9px 10px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:11px;line-height:1.55}
.qa-knowledge-card-review-note strong{flex:0 0 auto}
.qa-knowledge-card-governance-form{display:grid;grid-template-columns:minmax(150px,.45fr) minmax(260px,1fr);gap:10px 12px;padding:0 0 15px}
.qa-knowledge-card-governance-form label{display:grid;gap:5px;min-width:0}
.qa-knowledge-card-governance-form label.is-wide{grid-column:1/-1}
.qa-knowledge-card-governance-form label>span{color:#64748b;font-size:10px;font-weight:850}
.qa-knowledge-card-governance-form :is(input,select,textarea){width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font:inherit;font-size:11px}
.qa-knowledge-card-governance-form :is(input,select){min-height:34px;padding:0 9px}
.qa-knowledge-card-governance-form textarea{min-height:62px;padding:8px 9px;line-height:1.55;resize:vertical}
.qa-knowledge-card-governance-form :focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.qa-knowledge-card-governance-form>footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:2px}
.qa-knowledge-card-governance-form>footer small{max-width:64ch;color:#7a899d;font-size:10px;line-height:1.5}
.qa-knowledge-card-governance-form>footer button{min-height:34px;padding:0 11px;border:1px solid #2563eb;border-radius:7px;background:#2563eb;color:#fff;font-size:11px;font-weight:850;cursor:pointer}
.qa-knowledge-card-relation-body{padding:0 0 15px}
.qa-knowledge-card-relation-body>section{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:10px 0}
.qa-knowledge-card-relation-body>section>strong{color:#64748b;font-size:10px;font-weight:900}
.qa-knowledge-card-relation-list{display:grid;gap:6px}
.qa-knowledge-card-relation-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}
.qa-knowledge-card-relation-list>div>button:first-child{display:flex;align-items:center;gap:8px;min-width:0;padding:0;border:0;background:transparent;color:#334155;text-align:left;cursor:pointer}
.qa-knowledge-card-relation-list>div>button:first-child b{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#eef4fb;color:#315d8d;font-size:9px}
.qa-knowledge-card-relation-list>div>button:first-child span{overflow:hidden;font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.qa-knowledge-card-relation-list>div>small{grid-column:1;color:#7a899d;font-size:10px;line-height:1.5}
.qa-knowledge-card-relation-list .is-remove{grid-column:2;grid-row:1/3;align-self:center;padding:3px 5px;border:0;background:transparent;color:#94a3b8;font-size:10px;cursor:pointer}
.qa-knowledge-card-relation-list .is-remove:hover{color:#b42318;text-decoration:underline;text-underline-offset:3px}
.qa-knowledge-card-relation-empty,.qa-knowledge-card-relation-hint{margin:0;color:#94a3b8;font-size:11px}
.qa-knowledge-card-relation-form{display:grid;grid-template-columns:110px minmax(180px,.8fr) minmax(220px,1fr) auto;gap:8px;align-items:end;margin-top:10px;padding-top:12px;border-top:1px solid #edf2f7}
.qa-knowledge-card-relation-form label{display:grid;gap:4px;min-width:0}
.qa-knowledge-card-relation-form label>span{color:#64748b;font-size:9px;font-weight:850}
.qa-knowledge-card-relation-form select,.qa-knowledge-card-relation-form input{width:100%;min-width:0;min-height:34px;padding:0 8px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font:inherit;font-size:11px}
.qa-knowledge-card-relation-form>button{min-height:34px;padding:0 10px;border:1px solid #2563eb;border-radius:7px;background:#2563eb;color:#fff;font-size:11px;font-weight:850;cursor:pointer}
.qa-knowledge-card-relation-form :focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.qa-knowledge-card-reader>footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:4px;padding-top:13px;border-top:1px solid #e2e8f0}
.qa-knowledge-card-reader .qa-knowledge-card-actions{flex:0 0 auto}

html[data-theme="dark"] .qa-knowledge-card-index,html[data-theme="dark"] .qa-knowledge-card-reader{border-color:#314158;background:#111c2e}
html[data-theme="dark"] .qa-knowledge-card-index-row{border-color:#314158}
html[data-theme="dark"] .qa-knowledge-card-index-row.is-selected{background:#163650}
html[data-theme="dark"] .qa-knowledge-card-index-row>strong,html[data-theme="dark"] .qa-knowledge-card-reader>header strong,html[data-theme="dark"] .qa-knowledge-card-reader-judgment>p{color:#dce7f5}
html[data-theme="dark"] .qa-knowledge-card-relations,html[data-theme="dark"] .qa-knowledge-card-relation-form,html[data-theme="dark"] .qa-knowledge-card-governance{border-color:#314158}
html[data-theme="dark"] .qa-knowledge-card-relations>summary,html[data-theme="dark"] .qa-knowledge-card-governance>summary,html[data-theme="dark"] .qa-knowledge-card-relation-list>div>button:first-child,html[data-theme="dark"] .qa-knowledge-card-governance-state p{color:#dce7f5}
html[data-theme="dark"] .qa-knowledge-card-relation-form select,html[data-theme="dark"] .qa-knowledge-card-relation-form input,html[data-theme="dark"] .qa-knowledge-card-governance-form :is(input,select,textarea){border-color:#3c4e67;background:#101a2b;color:#dce7f5}
html[data-theme="dark"] .qa-project-library-trace{border-color:#314158;background:#101a2b}
html[data-theme="dark"] .qa-project-library-trace>div+div{border-color:#314158}

@media(max-width:1120px){
  .qa-library-workspace.is-spreadsheet-selection,.qa-library-workspace.is-project-mode{grid-template-columns:190px minmax(0,1fr)}
  .qa-library-workspace.is-spreadsheet-selection .qa-library-preview-pane,.qa-library-workspace.is-project-mode .qa-library-preview-pane{grid-column:1/-1}
}
@media(max-width:760px){
  .qa-library-manager-head{align-items:stretch;flex-direction:column}
  .qa-library-manager-actions{justify-content:space-between}
  .qa-library-workspace.is-spreadsheet-selection,.qa-library-workspace.is-project-mode{grid-template-columns:1fr}
  .qa-knowledge-card-workspace{grid-template-columns:1fr;height:auto}
  .qa-knowledge-card-index{max-height:260px;border-right:0;border-bottom:1px solid #e2e8f0}
  .qa-knowledge-card-reader{padding:16px}
  .qa-knowledge-card-reader>header,.qa-knowledge-card-reader>footer{align-items:stretch;flex-direction:column}
  .qa-knowledge-card-reader-meta,.qa-project-library-trace{grid-template-columns:1fr}
  .qa-knowledge-card-reader-meta>div+div,.qa-project-library-trace>div+div{padding-left:0;border-left:0;border-top:1px solid #e2e8f0}
  .qa-knowledge-card-relation-body>section{grid-template-columns:1fr;gap:6px}
  .qa-knowledge-card-relation-form{grid-template-columns:1fr}
  .qa-knowledge-card-governance-form{grid-template-columns:1fr}
  .qa-knowledge-card-governance-form label.is-wide,.qa-knowledge-card-governance-form>footer{grid-column:1}
  .qa-knowledge-card-governance-form>footer{align-items:stretch;flex-direction:column}
}

/* Unified immersive lifecycle theme ---------------------------------------
 * This final cascade intentionally sits after every feature stylesheet.
 * Legacy feature rules used high-specificity light surfaces, which caused
 * white islands, low-contrast copy and detached status badges in immersive
 * mode. Keep document/export previews white; normalize only work surfaces.
 */
body[data-work-mode="immersive"] :is(
  #view-home,
  #view-taskarrange,
  #view-walkthrough,
  #view-workpaper,
  #view-findings,
  #view-mgmtinteraction,
  #view-report,
  #view-remediationtrack
).view-panel.active{
  --immersive-surface:#0f1f2b;
  --immersive-surface-raised:#132734;
  --immersive-surface-hover:#17313f;
  --immersive-border:#2c4756;
  --immersive-border-strong:#3d6071;
  --immersive-text:#e8f3f6;
  --immersive-text-soft:#b6cad2;
  --immersive-text-muted:#91a8b4;
  color:var(--immersive-text-soft);
}
body[data-work-mode="immersive"] :is(
  #view-home,
  #view-taskarrange,
  #view-walkthrough,
  #view-workpaper,
  #view-findings,
  #view-mgmtinteraction,
  #view-report,
  #view-remediationtrack
).view-panel.active :is(h1,h2,h3,h4,h5,strong,summary,legend){color:var(--immersive-text)!important}
body[data-work-mode="immersive"] :is(
  #view-home,
  #view-taskarrange,
  #view-walkthrough,
  #view-workpaper,
  #view-findings,
  #view-mgmtinteraction,
  #view-report,
  #view-remediationtrack
).view-panel.active :is(p,small,label,dt,dd){color:var(--immersive-text-soft)!important}

/* Risk assessment: keep facts, score and decision readable as one row. */
body[data-work-mode="immersive"] #view-home :is(
  .pra-risk-register-head,
  .pra-object-risk-table,
  .pra-landscape-layout,
  .pra-heatmap-panel,
  .pra-risk-ranking,
  .pra-visual-head,
  .pra-ranking-list,
  .pra-risk-profile,
  .pra-risk-profile-body,
  .pra-risk-profile-decision
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table{overflow-x:auto!important}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table table{
  width:100%!important;
  min-width:920px!important;
  table-layout:fixed!important;
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table :is(th,td){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  vertical-align:top!important;
}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table th{
  background:var(--immersive-surface-raised)!important;
  color:#c9d9df!important;
}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table th:nth-child(1){width:24%!important}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table th:nth-child(2){width:28%!important}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table th:nth-child(3){width:14%!important}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table th:nth-child(4){width:16%!important}
body[data-work-mode="immersive"] #view-home .pra-object-risk-table th:nth-child(5){width:18%!important}
body[data-work-mode="immersive"] #view-home .pra-risk-title-button{
  color:var(--immersive-text)!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-title-button small,
body[data-work-mode="immersive"] #view-home .pra-object-risk-table td:nth-child(2){color:var(--immersive-text-muted)!important}
body[data-work-mode="immersive"] #view-home .pra-risk-score{
  display:flex!important;
  width:100%!important;
  max-width:118px!important;
  min-width:96px!important;
  min-height:48px!important;
  margin:0 auto!important;
  padding:7px 8px!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  gap:3px!important;
  border:1px solid var(--immersive-border-strong)!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
  white-space:normal!important;
  text-align:center!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-score :is(strong,small){
  display:block!important;
  width:100%!important;
  margin:0!important;
  color:inherit!important;
  line-height:1.25!important;
  white-space:nowrap!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-score small{font-size:11px!important}
body[data-work-mode="immersive"] #view-home .pra-inline-decision{
  width:100%!important;
  min-width:112px!important;
  border-color:var(--immersive-border-strong)!important;
  background:#0b1924!important;
  color:var(--immersive-text)!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-row-actions{display:grid!important;gap:7px!important}
body[data-work-mode="immersive"] #view-home .pra-risk-row-actions button{width:100%!important;white-space:nowrap!important}
body[data-work-mode="immersive"] #view-home :is(.pra-ranking-item,.pra-risk-profile-section,.pra-risk-profile-source){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface-raised)!important;
  color:var(--immersive-text-soft)!important;
}
body[data-work-mode="immersive"] #view-home .pra-heatmap-grid{border-color:var(--immersive-border)!important;background:#0b1924!important}
body[data-work-mode="immersive"] #view-home .pra-heat-cell{border-color:#27404d!important;color:#dcebef!important}
body[data-work-mode="immersive"] #view-home .pra-heat-cell.is-low{background:#123020!important}
body[data-work-mode="immersive"] #view-home .pra-heat-cell.is-medium{background:#302814!important}
body[data-work-mode="immersive"] #view-home .pra-heat-cell.is-high{background:#3a2617!important}
body[data-work-mode="immersive"] #view-home .pra-heat-cell.is-critical{background:#3a2025!important}

/* Audit scheme: neutral rows are neutral; amber is reserved for real gaps. */
body[data-work-mode="immersive"] #view-taskarrange :is(
  .wf-scheme-brief,
  .wf-scheme-brief-head,
  .wf-scheme-summary-line,
  .wf-program-ledger,
  .wf-program-ledger-head,
  .wf-program-ledger-summary,
  .wf-program-row,
  .wf-scheme-support-drawer,
  .wf-scheme-support-drawer>summary,
  .wf-scheme-integrity,
  .wf-risk-program-matrix,
  .wf-scheme-module-drawer,
  .wf-scheme-secondary-drawer
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-scheme-brief-head,
body[data-work-mode="immersive"] #view-taskarrange .wf-program-row.is-head,
body[data-work-mode="immersive"] #view-taskarrange .wf-program-ledger-summary{
  background:var(--immersive-surface-raised)!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-scheme-brief-head :is(h3,small,span){color:var(--immersive-text)!important}
body[data-work-mode="immersive"] #view-taskarrange .wf-program-row.is-program-summary:not(.is-risk-gap):not(.is-source-stale){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-program-row:is(.is-risk-gap,.is-source-stale),
body[data-work-mode="immersive"] #view-taskarrange .wf-scheme-change-alert{
  border-color:#725726!important;
  background:#302814!important;
  color:#f0d79d!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-scheme-support-drawer>summary{
  min-height:42px!important;
  padding:10px 14px!important;
  color:var(--immersive-text-soft)!important;
}

/* Program execution: evidence and analysis are the primary surface. */
body[data-work-mode="immersive"] #view-walkthrough :is(
  .at-current-program-bar,
  .at-current-program-meta,
  .at-evidence-workbench,
  .at-evidence-workbench-head,
  .at-evidence-sources,
  .at-evidence-preview,
  .at-evidence-preview-head,
  .at-evidence-preview-empty,
  .at-evidence-work-area,
  .at-project-material-link,
  .at-section,
  .at-section-head,
  .at-execution-adjustments,
  .at-execution-adjustments>summary,
  .at-inline-materials,
  .at-inline-materials>summary
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-walkthrough :is(.at-evidence-workbench-head,.at-section-head,.at-evidence-preview-head){background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-walkthrough .at-evidence-kpis>span{
  border-color:var(--immersive-border)!important;
  background:#0b1924!important;
  color:var(--immersive-text-soft)!important;
}
body[data-work-mode="immersive"] #view-walkthrough .at-evidence-preview-empty{min-height:280px!important;color:var(--immersive-text-muted)!important}

/* Working-paper collection: directory, evidence chain and review share one tone. */
body[data-work-mode="immersive"] #view-workpaper :is(
  .wpm-desk-head,
  .wpm-desk-layout,
  .wpm-desk-list,
  .wpm-desk-row,
  .wpm-desk-detail,
  .wpm-desk-current,
  .wpm-desk-fields>article,
  .wpm-desk-next,
  .wpm-desk-kpis>span
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-workpaper :is(.wpm-desk-head,.wpm-desk-list,.wpm-desk-next){background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-workpaper .wpm-desk-row.active{
  border-color:#3f6f8e!important;
  background:#163650!important;
}
body[data-work-mode="immersive"] #view-workpaper .wpm-desk-current>b.open{
  border-color:#725726!important;
  background:#302814!important;
  color:#f0d79d!important;
}

/* Shared formatted workpaper preview: execution and collection use one sheet. */
.at-workpaper-preview-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.at-workpaper-preview-actions .at-workpaper-preview-close{position:static!important;margin-left:2px}
.workpaper-document-overlay{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:24px;background:rgba(15,23,42,.62);backdrop-filter:blur(3px)}
.workpaper-document-dialog{width:min(1180px,96vw);height:min(900px,94vh);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #cbd5e1;border-radius:18px;background:#f1f5f9;box-shadow:0 28px 80px rgba(15,23,42,.28)}
.workpaper-document-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 20px;border-bottom:1px solid #dbe3ef;background:#fff}
.workpaper-document-dialog>header>div:first-child{display:grid;gap:3px;min-width:0}
.workpaper-document-dialog>header span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#2563eb}
.workpaper-document-dialog>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#0f172a}
.workpaper-document-dialog>header small{font-size:12px;color:#64748b}
.workpaper-document-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.workpaper-document-actions label{display:flex;align-items:center;gap:7px;font-size:12px;color:#475569}
.workpaper-document-actions select{min-width:150px;padding:7px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a}
.workpaper-document-dialog>main{overflow:auto;padding:28px}
.audit-workpaper-sheet{width:min(900px,100%);min-height:1120px;margin:0 auto;padding:54px 58px 42px;border:1px solid #d7dee8;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.08);color:#1e293b;font-size:13px;line-height:1.65}
.audit-workpaper-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:3px solid #1f4e79}
.audit-workpaper-sheet-head>div{display:grid;gap:3px}
.audit-workpaper-sheet-head span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#64748b}
.audit-workpaper-sheet-head strong{font-size:26px;line-height:1.25;color:#153b5b}
.audit-workpaper-sheet-head small{font-size:15px;font-weight:700;color:#334155}
.audit-workpaper-sheet-head>b{padding:6px 10px;border-radius:999px;font-size:11px;white-space:nowrap}
.audit-workpaper-sheet-head>b.is-fixed{background:#e7f7ef;color:#087443}
.audit-workpaper-sheet-head>b.is-draft{background:#fff7dd;color:#9a6700}
.audit-workpaper-sheet-head>b.is-legacy{background:#fff0e8;color:#a24b18}
.audit-workpaper-sheet table{width:100%;border-collapse:collapse;table-layout:fixed}
.audit-workpaper-meta{margin:20px 0 12px}
.audit-workpaper-meta th,.audit-workpaper-meta td,.audit-workpaper-signoff th,.audit-workpaper-signoff td{padding:9px 10px;border:1px solid #cbd5e1;vertical-align:middle;text-align:left}
.audit-workpaper-meta th,.audit-workpaper-signoff th{width:16%;background:#edf3f8;color:#1f4e79;font-size:11px}
.audit-workpaper-meta td,.audit-workpaper-signoff td{width:34%;color:#1e293b}
.audit-workpaper-lineage{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}
.audit-workpaper-lineage span{padding:5px 8px;border:1px solid #dbe3ef;border-radius:6px;background:#f8fafc;font-size:11px;color:#475569}
.audit-workpaper-sheet section{margin-top:24px}
.audit-workpaper-sheet section h3{margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid #cbd5e1;font-size:15px;color:#153b5b}
.audit-workpaper-definition{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;border:1px solid #dbe3ef;border-radius:8px;overflow:hidden}
.audit-workpaper-definition>div{display:grid;grid-template-columns:88px minmax(0,1fr);border-bottom:1px solid #e5eaf0}
.audit-workpaper-definition>div:nth-last-child(-n+2){border-bottom:0}
.audit-workpaper-definition>div:nth-child(odd){border-right:1px solid #e5eaf0}
.audit-workpaper-definition dt,.audit-workpaper-definition dd{margin:0;padding:9px 10px}
.audit-workpaper-definition dt{background:#f8fafc;font-size:11px;font-weight:800;color:#475569}
.audit-workpaper-definition dd{color:#1e293b}
.audit-workpaper-data-table th,.audit-workpaper-data-table td{padding:8px 9px;border:1px solid #cbd5e1;vertical-align:top;text-align:left;word-break:break-word}
.audit-workpaper-data-table th{background:#1f4e79;color:#fff;font-size:11px}
.audit-workpaper-data-table td{font-size:12px}
.audit-workpaper-empty{margin:0;padding:14px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b}
.audit-workpaper-evidence-index{margin-top:10px;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc}
.audit-workpaper-evidence-index summary{padding:9px 11px;cursor:pointer;font-weight:700;color:#334155}
.audit-workpaper-evidence-index ul{display:grid;gap:7px;margin:0;padding:0 12px 12px 28px}
.audit-workpaper-evidence-index li strong,.audit-workpaper-evidence-index li span{display:block}
.audit-workpaper-evidence-index li span{font-size:11px;color:#64748b}
.audit-workpaper-conclusion{padding:14px 16px;border-left:4px solid #13808b;background:#eef8f8}
.audit-workpaper-conclusion span{display:block;font-size:11px;font-weight:800;color:#0f766e}
.audit-workpaper-conclusion strong{display:block;margin-top:4px;font-size:14px;color:#17324d}
.audit-workpaper-conclusion p{margin:6px 0 0;color:#475569}
.audit-workpaper-conclusion .audit-workpaper-conclusion-detail{font-size:13px;line-height:1.75;color:#24364b;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}
.audit-workpaper-record{margin-top:10px;padding:12px 14px;border:1px solid #dbe3ef;background:#fff}
.audit-workpaper-record span{font-size:11px;font-weight:800;color:#64748b}
.audit-workpaper-record p{margin:4px 0 0;white-space:normal;color:#334155}
.audit-workpaper-record h4{margin:16px 0 8px;font-size:13px;line-height:1.5;color:#153b5b}
.audit-workpaper-record h4:first-child{margin-top:0}
.audit-workpaper-record-table-wrap{max-width:100%;overflow-x:auto;margin:8px 0 14px}
.audit-workpaper-record-fields th,.audit-workpaper-record-fields td,.audit-workpaper-record-steps th,.audit-workpaper-record-steps td{padding:8px 10px;border:1px solid #dbe3ef;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.audit-workpaper-record-fields th,.audit-workpaper-record-steps th{background:#edf3f8;color:#314b65;font-size:11px;font-weight:700}
.audit-workpaper-record-fields th:first-child{width:28%}
.audit-workpaper-record-steps th:first-child{width:60px}
.audit-workpaper-record-fields td:first-child{width:28%;background:#f8fafc;font-weight:700;color:#475569}
.audit-workpaper-record-steps td:first-child{width:48px;background:#f8fafc;text-align:center;font-weight:700;color:#475569}
.audit-workpaper-record-fields tbody tr:nth-child(even) td:last-child,.audit-workpaper-record-steps tbody tr:nth-child(even) td:last-child{background:#fbfcfe}
.audit-workpaper-record-paragraph{line-height:1.75;overflow-wrap:anywhere}
.audit-workpaper-record-context{margin:10px 0;border:1px solid #dbe3ef;border-radius:6px;background:#fafcff}
.audit-workpaper-record-context summary{padding:8px 10px;cursor:pointer;font-weight:700;color:#334155}
.audit-workpaper-record-context>p,.audit-workpaper-record-context>.audit-workpaper-record-table-wrap{margin:8px 10px 12px}
.audit-workpaper-sheet>footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:30px;padding-top:12px;border-top:1px solid #cbd5e1;font-size:10px;color:#64748b}
html[data-theme="dark"] .workpaper-document-dialog{border-color:#334155;background:#111827}
html[data-theme="dark"] .workpaper-document-dialog>header{border-color:#334155;background:#172033}
html[data-theme="dark"] .workpaper-document-dialog>header strong{color:#f8fafc}
@media(max-width:820px){
  .workpaper-document-overlay{padding:0}.workpaper-document-dialog{width:100vw;height:100vh;max-height:none;border:0;border-radius:0}
  .workpaper-document-dialog>header{align-items:flex-start;flex-direction:column;gap:10px}.workpaper-document-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .workpaper-document-dialog>main{padding:10px}.audit-workpaper-sheet{min-height:0;padding:26px 20px}
  .audit-workpaper-definition{grid-template-columns:1fr}.audit-workpaper-definition>div,.audit-workpaper-definition>div:nth-child(odd){border-right:0;border-bottom:1px solid #e5eaf0}
  .audit-workpaper-meta th,.audit-workpaper-meta td,.audit-workpaper-signoff th,.audit-workpaper-signoff td{padding:7px 6px;font-size:10px}
}

/* Findings: override legacy !important light cards with one review desk. */
body[data-work-mode="immersive"] #view-findings :is(
  .ff-workbench,
  .finding-closeout-desk,
  .finding-closeout-desk .fcd-head,
  .finding-closeout-desk .fcd-list,
  .finding-closeout-desk .fcd-row,
  .finding-closeout-desk .fcd-detail,
  .finding-closeout-desk .fcd-current,
  .finding-closeout-desk .fcd-facts,
  .finding-closeout-desk .fcd-next,
  .finding-closeout-desk .fcd-empty,
  .ff-all-findings,
  .ff-finding-master-detail,
  .ff-selected-finding,
  .ff-selected-finding>.finding-card
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-findings :is(.finding-closeout-desk .fcd-head,.finding-closeout-desk .fcd-list,.finding-closeout-desk .fcd-next){background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-findings .finding-closeout-desk .fcd-row.active{
  border-color:#3f6f8e!important;
  background:#163650!important;
}
body[data-work-mode="immersive"] #view-findings .finding-closeout-desk :is(.fcd-head,.fcd-row,.fcd-detail,.fcd-current,.fcd-facts,.fcd-next) :is(strong,h2,h3,h4){color:var(--immersive-text)!important}
body[data-work-mode="immersive"] #view-findings .finding-closeout-desk :is(.fcd-head,.fcd-row,.fcd-detail,.fcd-current,.fcd-facts,.fcd-next) :is(p,span,small){color:var(--immersive-text-soft)!important}

/* Communication: external feedback work is distinct from system chrome. */
body[data-work-mode="immersive"] #view-mgmtinteraction :is(
  .mi-container,
  .mi-container.view-card,
  .mi-communication-toolbar,
  .mi-communication-summary>span,
  .mi-feedback-queue,
  .mi-feedback-detail,
  .mi-communication-brief,
  .mi-communication-brief>div,
  .mi-audit-evaluation,
  .mi-other-records,
  .view-card
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-mgmtinteraction :is(.mi-communication-toolbar,.mi-feedback-queue,.mi-other-records){background:var(--immersive-surface-raised)!important}

/* Report editor stays dark; the actual report/export document stays white. */
body[data-work-mode="immersive"] #view-report :is(
  .rp-editing-workbench,
  .rpew-head,
  .rpew-metrics>span,
  .rpew-layout,
  .rpew-nav,
  .rpew-nav-row,
  .rpew-editor,
  .rp-narrative-editor,
  .rp-finding-editor,
  .rpn-head,
  .rpn-source-drawer,
  .rpfe-head,
  .rpfe-body,
  .rpfe-closeout>article,
  .rpfe-form,
  .rp-report-management,
  .rp-delivery-support
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-report :is(.rpew-head,.rpew-nav,.rpn-head,.rpfe-head){background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-report .rpew-nav-row.active{
  border-color:#3f6f8e!important;
  background:#163650!important;
}
body[data-work-mode="immersive"] #view-report :is(.report-container,.report,.rp-version-preview-document){
  background:#fff!important;
  color:#172033!important;
  color-scheme:light;
}
body[data-work-mode="immersive"] #view-report :is(.report-container,.report,.rp-version-preview-document) :is(h1,h2,h3,h4,h5,strong,p,span,small,li,td,th){color:inherit!important}

/* Remediation: maintain status semantics and improve empty-state readability. */
body[data-work-mode="immersive"] #view-remediationtrack :is(
  .ff-project-remediation,
  .ff-remediation-head,
  .ff-remediation-kpis>article,
  .ff-remediation-layout,
  .ff-remediation-list,
  .ff-remediation-row,
  .ff-remediation-detail,
  .ff-remediation-detail-grid>article,
  .ff-remediation-detail-actions,
  .ff-remediation-operation,
  .ff-remediation-empty,
  .ft-track,
  .ft-plan-form
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-remediationtrack :is(.ff-remediation-list,.ff-remediation-detail-actions){background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-remediationtrack .ff-remediation-row.active{
  border-color:#3f6f8e!important;
  background:#163650!important;
}
body[data-work-mode="immersive"] #view-remediationtrack .ff-remediation-row.is-overdue{
  border-left-color:#d36a74!important;
  background:#2d1c22!important;
}

/* Project remediation: compact task desk, with history and source kept on demand. */
#view-remediationtrack .ff-project-remediation{display:grid;gap:10px}
#view-remediationtrack .ff-remediation-head{
  align-items:center;
  min-height:64px;
  padding:12px 16px;
  border-radius:12px;
  background:#fff;
}
#view-remediationtrack .ff-remediation-head h2{margin-top:2px;font-size:1.18rem}
#view-remediationtrack .ff-remediation-head p{margin-top:3px;font-size:.76rem;line-height:1.45}
#view-remediationtrack .ff-remediation-head-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
#view-remediationtrack .ff-remediation-head-actions>b{color:#52637a;font-size:.72rem;font-weight:800}
#view-remediationtrack .ff-remediation-conflict-summary{
  display:block;
  margin:0;
  padding:0;
  overflow:hidden;
  border-radius:10px;
}
#view-remediationtrack .ff-remediation-conflict-summary>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:9px 13px;
  cursor:pointer;
  list-style:none;
}
#view-remediationtrack .ff-remediation-conflict-summary>summary::-webkit-details-marker{display:none}
#view-remediationtrack .ff-remediation-conflict-summary>summary>div{display:flex;align-items:center;gap:10px}
#view-remediationtrack .ff-remediation-conflict-summary>summary span{margin:0;font-size:.7rem}
#view-remediationtrack .ff-remediation-conflict-summary>summary>b{font-size:.7rem}
#view-remediationtrack .ff-remediation-conflict-summary>p{margin:0;padding:9px 13px;border-top:1px solid #f3c98b;font-size:.72rem;line-height:1.5}
#view-remediationtrack .ff-remediation-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0;
  overflow:hidden;
  border:1px solid #dbe5f2;
  border-radius:12px;
  background:#fff;
}
#view-remediationtrack .ff-remediation-kpis article{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:2px 12px;
  min-height:52px;
  padding:9px 14px;
  border:0;
  border-right:1px solid #e2e8f0;
  border-radius:0;
  background:transparent;
}
#view-remediationtrack .ff-remediation-kpis article:last-child{border-right:0}
#view-remediationtrack .ff-remediation-kpis span{font-size:.71rem}
#view-remediationtrack .ff-remediation-kpis strong{grid-column:2;grid-row:1/3;margin:0;font-size:1.25rem}
#view-remediationtrack .ff-remediation-kpis small{grid-column:1;font-size:.66rem}
#view-remediationtrack .ff-remediation-layout{
  grid-template-columns:292px minmax(0,1fr);
  min-height:560px;
  border-radius:12px;
}
#view-remediationtrack .ff-remediation-list{padding:0;background:#f8fafc}
#view-remediationtrack .ff-remediation-list>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px 9px;
  color:#52637a;
  font-size:.72rem;
}
#view-remediationtrack .ff-remediation-list>header span{color:#8795a9}
#view-remediationtrack .ff-remediation-row{margin:0 8px 6px;width:calc(100% - 16px);padding:11px;border-radius:9px}
#view-remediationtrack .ff-remediation-row strong{font-size:.8rem}
#view-remediationtrack .ff-remediation-row small{font-size:.68rem}
#view-remediationtrack .ff-remediation-detail{padding:16px 18px}
#view-remediationtrack .ff-remediation-detail-head{padding-bottom:12px}
#view-remediationtrack .ff-remediation-detail-head h3{font-size:1.1rem;line-height:1.4}
#view-remediationtrack .ff-remediation-detail-head p{font-size:.72rem}
#view-remediationtrack .ff-remediation-context{margin-top:8px;border-bottom:1px solid #e2e8f0}
#view-remediationtrack .ff-remediation-context>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 2px;
  color:#52637a;
  cursor:pointer;
  list-style:none;
  font-size:.74rem;
  font-weight:800;
}
#view-remediationtrack .ff-remediation-context>summary::-webkit-details-marker{display:none}
#view-remediationtrack .ff-remediation-context>summary>b{color:#8795a9;font-size:.66rem;font-weight:700}
#view-remediationtrack .ff-remediation-context>.problem-passport-projection{margin:0 0 12px}
#view-remediationtrack .ff-remediation-operation{margin-top:10px;padding:0;border:0;border-radius:0;background:transparent}
#view-remediationtrack .ff-remediation-operation>.ft-track{padding:0;border:0;background:transparent}
#view-remediationtrack .ft-flow-head{padding:9px 0;border-bottom:1px solid #dbe5f2;background:transparent}
#view-remediationtrack .ft-step{padding:14px 0;border-bottom:1px solid #e5eaf0;background:transparent}
#view-remediationtrack .ft-step:last-of-type{border-bottom:0}
#view-remediationtrack .ft-record,#view-remediationtrack .ft-progress-current,#view-remediationtrack .ft-completion-form{border-radius:9px}
#view-remediationtrack .ff-remediation-detail-actions{margin-top:10px;padding:10px 0;border-top:1px solid #e2e8f0;border-radius:0;background:transparent}
#view-remediationtrack .ff-remediation-detail-actions span{font-size:.7rem}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-kpis,
html[data-theme="dark"] #view-remediationtrack .ff-remediation-head{background:#1b2940;border-color:#314158}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-kpis article{border-color:#314158}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-context,
html[data-theme="dark"] #view-remediationtrack .ft-flow-head,
html[data-theme="dark"] #view-remediationtrack .ft-step,
html[data-theme="dark"] #view-remediationtrack .ff-remediation-detail-actions{border-color:#314158}
@media(max-width:900px){
  #view-remediationtrack .ff-remediation-head{align-items:flex-start;flex-direction:column}
  #view-remediationtrack .ff-remediation-head-actions{width:100%;justify-content:space-between}
  #view-remediationtrack .ff-remediation-kpis{grid-template-columns:1fr 1fr}
  #view-remediationtrack .ff-remediation-kpis article:nth-child(2){border-right:0}
  #view-remediationtrack .ff-remediation-kpis article:nth-child(-n+2){border-bottom:1px solid #e2e8f0}
  #view-remediationtrack .ff-remediation-layout{grid-template-columns:1fr}
  #view-remediationtrack .ff-remediation-list{max-height:300px;border-right:0;border-bottom:1px solid #e2e8f0}
}

/* Remediation tracking: one-account task desk for audit-side proxy entry. */
#view-remediationtrack .ff-remediation-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
}
#view-remediationtrack .ff-remediation-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
#view-remediationtrack .ff-remediation-head-actions>.btn{min-height:36px}
#view-remediationtrack .ff-remediation-status-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(110px,1fr));
  margin:0;
  overflow:hidden;
  border:1px solid #dbe5f2;
  border-radius:12px;
  background:#fff;
}
#view-remediationtrack .ff-remediation-status-strip button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:44px;
  padding:8px 11px;
  border:0;
  border-right:1px solid #e5eaf0;
  background:transparent;
  color:#526174;
  font-family:inherit;
  font-size:.7rem;
  font-weight:750;
  line-height:1.35;
  cursor:pointer;
}
#view-remediationtrack .ff-remediation-status-strip button:last-child{border-right:0}
#view-remediationtrack .ff-remediation-status-strip button:hover{background:#f7fafc;color:#173b38}
#view-remediationtrack .ff-remediation-status-strip button[aria-pressed="true"]{
  background:#eaf5f2;
  color:#176257;
  box-shadow:inset 0 -2px #2f7d71;
}
#view-remediationtrack .ff-remediation-status-strip b{
  display:grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 5px;
  border-radius:999px;
  background:#eef2f6;
  color:inherit;
  font-size:.66rem;
  font-variant-numeric:tabular-nums;
}
#view-remediationtrack .ff-remediation-status-strip button[aria-pressed="true"] b{background:#d7ebe5}
#view-remediationtrack .ff-remediation-status-strip button:focus-visible,
#view-remediationtrack .ff-remediation-row:focus-visible{
  position:relative;
  z-index:1;
  outline:3px solid rgba(47,125,113,.22);
  outline-offset:-3px;
}
#view-remediationtrack .ff-remediation-layout{grid-template-columns:310px minmax(0,1fr);min-height:590px}
#view-remediationtrack .ff-remediation-layout.is-empty-shell{min-height:430px}
#view-remediationtrack .ff-remediation-list-placeholder{display:grid;gap:9px;padding:14px 14px 2px}
#view-remediationtrack .ff-remediation-list-placeholder i{
  display:block;
  box-sizing:border-box;
  height:58px;
  border:1px solid #e6ebf0;
  border-left:92px solid #f4f6f8;
  border-radius:9px;
  background:#fbfcfd;
}
#view-remediationtrack .ff-remediation-list-placeholder+p{margin:10px 14px;color:#7a8799;font-size:.68rem;line-height:1.5;text-align:center}
#view-remediationtrack .is-empty-shell .ff-remediation-empty{min-height:360px}
#view-remediationtrack .ff-remediation-row{border-left:3px solid transparent}
#view-remediationtrack .ff-remediation-row.active{
  border-color:#a9d5cc;
  border-left-color:#2f7d71;
  background:#edf7f4;
  box-shadow:none;
}
#view-remediationtrack .ff-remediation-row.is-overdue{border-left-color:#c94c4c}
#view-remediationtrack .ff-remediation-row mark,
#view-remediationtrack .ff-remediation-detail-status mark{font-size:.66rem}
#view-remediationtrack mark.is-draft{background:#eef2f6!important;color:#526174!important}
#view-remediationtrack mark.is-sent{background:#fff3d8!important;color:#925f14!important}
#view-remediationtrack mark.is-active{background:#e3f1ff!important;color:#245f98!important}
#view-remediationtrack mark.is-overdue{background:#feeceb!important;color:#a93c3c!important}
#view-remediationtrack .ff-remediation-detail-status{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}
#view-remediationtrack .ff-remediation-detail-status em{
  padding:3px 7px;
  border-radius:999px;
  background:#feeceb;
  color:#a33a3a;
  font-size:.66rem;
  font-style:normal;
  font-weight:850;
}
#view-remediationtrack .ff-remediation-exchange{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:12px;
  border:1px solid #dfe7ec;
  border-radius:10px;
  overflow:hidden;
  background:#fbfcfd;
}
#view-remediationtrack .ff-remediation-exchange>div{min-width:0;padding:10px 12px;border-right:1px solid #e5eaf0}
#view-remediationtrack .ff-remediation-exchange>div:last-child{border-right:0;background:#f2f8f6}
#view-remediationtrack .ff-remediation-exchange span{
  display:block;
  margin-bottom:4px;
  color:#7a8799;
  font-size:.65rem;
  font-weight:750;
}
#view-remediationtrack .ff-remediation-exchange strong{display:block;color:#2f3e51;font-size:.74rem;line-height:1.45}
#view-remediationtrack .ff-remediation-current-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:10px;
  padding:11px 13px;
  border-left:3px solid #2f7d71;
  background:#f2f8f6;
}
#view-remediationtrack .ff-remediation-current-action h4{margin:0;color:#173b38;font-size:.84rem}
#view-remediationtrack .ff-remediation-current-action p{margin:4px 0 0;color:#526174;font-size:.7rem;line-height:1.5}
#view-remediationtrack .ff-remediation-current-action>span{
  flex:0 0 auto;
  color:#7a8799;
  font-size:.65rem;
  text-align:right;
}
#view-remediationtrack .ff-remediation-current-action>span strong{display:block;margin-top:3px;color:#245d55;font-size:.72rem}
#view-remediationtrack .ft-flow-head{display:none}
#view-remediationtrack .ft-step{grid-template-columns:minmax(0,1fr);gap:0;padding:13px 0}
#view-remediationtrack .ft-step-index{display:none}
#view-remediationtrack .ft-step-title strong{font-size:.82rem}
#view-remediationtrack .ft-step-title span{font-size:.7rem}
#view-remediationtrack .ft-step:not(.is-current)>.ft-step-body>.ft-step-title{opacity:.82}
#view-remediationtrack .ft-step.is-current>.ft-step-body{padding:12px;border:1px solid #cfe1dc;border-radius:10px;background:#fbfdfc}
#view-remediationtrack .ft-notice-form,
#view-remediationtrack .ft-plan-form,
#view-remediationtrack .ft-completion-form{
  display:grid;
  gap:10px;
  margin-top:10px;
  padding:12px;
  border:1px solid #dce5e2;
  border-radius:8px;
  background:#fff;
}
#view-remediationtrack .ft-notice-form>label,
#view-remediationtrack .ft-notice-form .ft-form-row label{
  display:grid;
  gap:5px;
  color:#475569;
  font-size:.72rem;
  font-weight:750;
}
#view-remediationtrack .ft-notice-form input,
#view-remediationtrack .ft-notice-form select,
#view-remediationtrack .ft-plan-form select{
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  border:1px solid #cad6e2;
  border-radius:7px;
  background:#fff;
  color:#172033;
  padding:7px 9px;
  font-family:inherit;
  font-size:.74rem;
  font-weight:500;
  line-height:1.4;
}
#view-remediationtrack .ft-proxy-basis{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:9px;
  border-bottom:1px solid #e7ecef;
}
#view-remediationtrack .ft-proxy-basis strong{color:#173b38;font-size:.76rem}
#view-remediationtrack .ft-proxy-basis span{color:#6d7b8d;font-size:.68rem;line-height:1.45;text-align:right}
#view-remediationtrack .ft-notice-form>.btn,
#view-remediationtrack .ft-plan-form>.btn,
#view-remediationtrack .ft-completion-form>.btn{justify-self:end}
#view-remediationtrack .ft-plan-more{border-top:1px solid #edf1f3;padding-top:8px}
#view-remediationtrack .ft-plan-more>summary{color:#526174;font-size:.7rem;font-weight:750;cursor:pointer}
#view-remediationtrack .ft-plan-more-body{display:grid;gap:8px;padding-top:9px}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-status-strip,
html[data-theme="dark"] #view-remediationtrack .ff-remediation-exchange,
html[data-theme="dark"] #view-remediationtrack .ft-notice-form,
html[data-theme="dark"] #view-remediationtrack .ft-plan-form,
html[data-theme="dark"] #view-remediationtrack .ft-completion-form,
html[data-theme="dark"] #view-remediationtrack .ft-step.is-current>.ft-step-body{background:#1b2940;border-color:#314158}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-status-strip button,
html[data-theme="dark"] #view-remediationtrack .ff-remediation-exchange>div{border-color:#314158;color:#c2cede}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-status-strip button[aria-pressed="true"],
html[data-theme="dark"] #view-remediationtrack .ff-remediation-exchange>div:last-child,
html[data-theme="dark"] #view-remediationtrack .ff-remediation-current-action{background:#18332f;color:#c7e2dc}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-row.active{background:#163650;border-color:#3f6f8e}
html[data-theme="dark"] #view-remediationtrack .ff-remediation-exchange strong,
html[data-theme="dark"] #view-remediationtrack .ff-remediation-current-action h4{color:#e2e8f0}
html[data-theme="dark"] #view-remediationtrack .ft-notice-form input,
html[data-theme="dark"] #view-remediationtrack .ft-notice-form select,
html[data-theme="dark"] #view-remediationtrack .ft-plan-form select{background:#172235;color:#d8e1ee;border-color:#3a4b63}
@media(max-width:1040px){
  #view-remediationtrack .ff-remediation-status-strip{display:flex;overflow-x:auto}
  #view-remediationtrack .ff-remediation-status-strip button{flex:0 0 142px}
}
@media(max-width:900px){
  #view-remediationtrack .ff-remediation-head{grid-template-columns:1fr}
  #view-remediationtrack .ff-remediation-head-actions{justify-content:flex-start}
  #view-remediationtrack .ff-remediation-layout{grid-template-columns:1fr}
  #view-remediationtrack .ff-remediation-exchange{grid-template-columns:1fr}
  #view-remediationtrack .ff-remediation-exchange>div{border-right:0;border-bottom:1px solid #e5eaf0}
  #view-remediationtrack .ff-remediation-exchange>div:last-child{border-bottom:0}
}
@media(max-width:620px){
  #view-remediationtrack .ff-remediation-head-actions>.btn{width:100%}
  #view-remediationtrack .ff-remediation-current-action{align-items:flex-start;flex-direction:column;gap:8px}
  #view-remediationtrack .ff-remediation-current-action>span{text-align:left}
  #view-remediationtrack .ft-proxy-basis{align-items:flex-start;flex-direction:column;gap:4px}
  #view-remediationtrack .ft-proxy-basis span{text-align:left}
}

@media(max-width:1180px){
  body[data-work-mode="immersive"] #view-home .pra-object-risk-table table{min-width:860px!important}
}

/* Immersive lifecycle deep components discovered during rendered-page QA. */
body[data-work-mode="immersive"] #view-home :is(
  .pra-risk-visual-workbench,
  .pra-workbench-tabs,
  .pra-risk-ranking ol>li>button
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-home .pra-workbench-tabs button{
  border-color:transparent!important;
  background:transparent!important;
  color:var(--immersive-text-soft)!important;
}
body[data-work-mode="immersive"] #view-home .pra-workbench-tabs button.is-active,
body[data-work-mode="immersive"] #view-home .pra-risk-ranking ol>li>button.is-active{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-score.is-low{
  border-color:#2d6449!important;
  background:#123020!important;
  color:#b9dec5!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-score.is-medium{
  border-color:#725726!important;
  background:#302814!important;
  color:#f0d79d!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-score.is-high,
body[data-work-mode="immersive"] #view-home .pra-risk-score.is-critical{
  border-color:#7d4650!important;
  background:#3a2229!important;
  color:#f3cbd0!important;
}
body[data-work-mode="immersive"] #view-home .pra-risk-score.is-pending{
  border-color:var(--immersive-border-strong)!important;
  background:#172a36!important;
  color:#b9cbd3!important;
}
body[data-work-mode="immersive"] #view-workpaper :is(
  .wpm-evidence-chain,
  .wpm-evidence-chain-head
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-workpaper .wpm-evidence-chain-head{background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-findings :is(
  .ff-all-findings>summary,
  .finding-closeout-flow,
  .finding-closeout-flow>summary,
  .finding-flow-drawer,
  .finding-flow-drawer>summary
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface-raised)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-mgmtinteraction :is(
  .mi-support-records,
  .mi-support-records>summary,
  .stage-two-secondary-drawer,
  .stage-two-secondary-drawer>summary
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface-raised)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-report :is(
  .rp-report-composer,
  .rp-generate,
  .rp-compact-composer,
  .rp-report-management>summary,
  .rp-delivery-support>summary,
  .rpm-status,
  .pq-summary,
  .pq-handoff-desk,
  .pq-handoff-list,
  .pq-handoff-item,
  .rp-archive-panel
){
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-report :is(.pq-handoff-list,.rp-report-management>summary,.rp-delivery-support>summary){background:var(--immersive-surface-raised)!important}
body[data-work-mode="immersive"] #view-report .pq-handoff-item:is(.fail,.warning),
body[data-work-mode="immersive"] #view-report .pq-summary.pq-state-blocked,
body[data-work-mode="immersive"] #view-report .rp-archive-panel.is-blocked{
  border-color:#725726!important;
  background:#302814!important;
  color:#f0d79d!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-risk-revision-review p{
  background:transparent!important;
  color:#f0d79d!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-scheme-integrity-list button{
  border-color:var(--immersive-border)!important;
  background:var(--immersive-surface-raised)!important;
  color:var(--immersive-text-soft)!important;
  box-shadow:none!important;
}
body[data-work-mode="immersive"] #view-taskarrange .wf-scheme-integrity-list button:hover{
  border-color:#3f6f8e!important;
  background:#163650!important;
  color:#c2e0f0!important;
}
/* 审前研判：把专业风险库收束为可验证假设，不另造一套大页面。 */
.pra-preaudit-investigation {
  margin: 12px 0;
  border: 1px solid #cbd9ef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.pra-preaudit-investigation > summary {
  min-height: 58px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  background: #f8fbff;
}

.pra-preaudit-investigation > summary::-webkit-details-marker { display: none; }

.pra-preaudit-investigation > summary > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 14px;
}

.pra-preaudit-investigation > summary b {
  color: #245fc7;
  font-size: 13px;
  letter-spacing: .04em;
}

.pra-preaudit-investigation > summary strong {
  color: #18253a;
  font-size: 17px;
}

.pra-preaudit-investigation > summary small {
  color: #66758a;
  font-size: 13px;
}

.pra-preaudit-investigation > summary em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #245fc7;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.pra-preaudit-body { border-top: 1px solid #dce5f2; }

.pra-preaudit-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e4ebf5;
  background: #fff;
}

.pra-preaudit-explain p {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  display: grid;
  gap: 3px;
}

.pra-preaudit-explain p + p { border-left: 1px solid #e4ebf5; }
.pra-preaudit-explain strong { color: #2b5da9; font-size: 12px; }
.pra-preaudit-explain span { color: #59697f; font-size: 12px; line-height: 1.55; }

.pra-preaudit-intro,
.pra-preaudit-boundary {
  min-height: 44px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fbfdff;
}

.pra-preaudit-intro > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pra-preaudit-intro strong { color: #17243a; font-size: 14px; }
.pra-preaudit-intro span,
.pra-preaudit-intro small,
.pra-preaudit-boundary span { color: #65748a; font-size: 12px; }

.pra-hypothesis-grid { border-top: 1px solid #e4ebf5; }

.pra-hypothesis-head,
.pra-hypothesis-row {
  display: grid;
  grid-template-columns: minmax(128px, .72fr) minmax(260px, 1.65fr) minmax(300px, 1.8fr) minmax(150px, .86fr);
  align-items: start;
}

.pra-hypothesis-head {
  padding: 8px 14px;
  color: #617087;
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 700;
}

.pra-hypothesis-row {
  position: relative;
  border-top: 1px solid #e5ebf4;
  background: #fff;
}

.pra-hypothesis-row:first-of-type { border-top: 0; }
.pra-hypothesis-row.is-adopted { box-shadow: inset 3px 0 #2b6de8; }
.pra-hypothesis-row.is-dismissed { background: #fafbfc; opacity: .82; }

.pra-hypothesis-row > div:not(.pra-hypothesis-dismiss) {
  min-width: 0;
  padding: 12px 14px;
}

.pra-hypothesis-row > div + div:not(.pra-hypothesis-dismiss) { border-left: 1px solid #edf1f7; }

.pra-hypothesis-row strong {
  display: block;
  color: #17243a;
  font-size: 13px;
  line-height: 1.45;
}

.pra-hypothesis-row small,
.pra-hypothesis-row p {
  margin: 4px 0 0;
  color: #68778c;
  font-size: 12px;
  line-height: 1.55;
}

.pra-hypothesis-row details { margin-top: 7px; }
.pra-hypothesis-row details > summary {
  color: #2b64bf;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.pra-hypothesis-row dl { margin: 8px 0 0; }
.pra-hypothesis-row dl > div { margin-top: 6px; }
.pra-hypothesis-row dt { color: #40516a; font-size: 11px; font-weight: 700; }
.pra-hypothesis-row dd { margin: 2px 0 0; color: #68778c; font-size: 12px; line-height: 1.5; }

.pra-hypothesis-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pra-hypothesis-actions > span {
  flex: 0 0 100%;
  color: #5d6c80;
  font-size: 11px;
  font-weight: 700;
}

.pra-hypothesis-row.is-adopted .pra-hypothesis-actions > span { color: #176544; }
.pra-hypothesis-row.is-dismissed .pra-hypothesis-actions > span { color: #7b8798; }

.pra-hypothesis-dismiss {
  grid-column: 1 / -1;
  padding: 9px 14px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-top: 1px dashed #cfdaea;
  background: #f8fafc;
}

.pra-hypothesis-dismiss[hidden] { display: none; }
.pra-hypothesis-dismiss label { flex: 1; color: #43536b; font-size: 12px; font-weight: 700; }
.pra-hypothesis-dismiss input {
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid #bdcbe0;
  border-radius: 8px;
  background: #fff;
  color: #17243a;
}

.pra-preaudit-boundary {
  justify-content: flex-start;
  border-top: 1px solid #e4ebf5;
  background: #fffaf1;
}

.pra-preaudit-boundary strong { color: #8a5b10; font-size: 12px; }

@media (max-width: 1180px) {
  .pra-preaudit-investigation > summary > span { grid-template-columns: auto 1fr; }
  .pra-preaudit-investigation > summary small { grid-column: 1 / -1; }
  .pra-hypothesis-head { display: none; }
  .pra-hypothesis-row { grid-template-columns: minmax(130px, .7fr) minmax(250px, 1.4fr) minmax(260px, 1.5fr); }
  .pra-hypothesis-row > div:nth-child(4) { grid-column: 1 / -1; border-top: 1px dashed #e2e8f1; border-left: 0; }
  .pra-hypothesis-actions > span { flex: 0 0 auto; margin-right: auto; }
}

@media (max-width: 820px) {
  .pra-preaudit-investigation > summary { align-items: flex-start; }
  .pra-preaudit-investigation > summary > span { display: flex; flex-direction: column; gap: 3px; }
  .pra-preaudit-intro { align-items: flex-start; }
  .pra-preaudit-intro > div { display: block; }
  .pra-preaudit-explain { grid-template-columns: 1fr; }
  .pra-preaudit-explain p + p { border-top: 1px solid #e4ebf5; border-left: 0; }
  .pra-hypothesis-row { display: block; }
  .pra-hypothesis-row > div + div:not(.pra-hypothesis-dismiss) { border-left: 0; border-top: 1px solid #edf1f7; }
  .pra-hypothesis-dismiss { display: flex; }
}

/* Professional workspace palette -----------------------------------------
 * 常规模式继续使用明亮蓝白；专业模式使用冷蓝灰工作区和克制的靛紫灰层级。
 * 只改变工作环境与信息层级，不改主操作蓝色和风险/状态语义色。
 */
body[data-work-mode="deep"] {
  --bg-page: #e9edf5;
  --card-bg: #fbfbfe;
  --bg-card: #fbfbfe;
  --bg-secondary: #f0f1f7;
  --bg-hover: #eef0f7;
  --border-color: #cfd5e3;
  --text-primary: #27283b;
  --text-secondary: #62677a;
  --text-muted: #8a90a3;
  --card-shadow: 0 2px 8px rgba(45, 51, 78, .065);
  background: #e9edf5;
  color: #27283b;
}

body[data-work-mode="deep"] .app-layout {
  background:
    radial-gradient(circle at 82% -12%, rgba(113, 92, 163, .12) 0, transparent 30%),
    #e9edf5;
}

body[data-work-mode="deep"] .project-toolbar {
  border-bottom-color: #c8c8dc;
  background: rgba(246, 247, 252, .94);
  box-shadow: inset 0 -2px 0 rgba(103, 81, 153, .30), 0 4px 16px rgba(39, 40, 59, .05);
}

body[data-work-mode="deep"] .project-context,
body[data-work-mode="deep"] .project-switch-trigger,
body[data-work-mode="deep"] .user-info-bar {
  border-color: #cbcfe0;
  background: #fbfbfe;
}

body[data-work-mode="deep"] .breadcrumb {
  color: #70758a;
}
body[data-work-mode="deep"] .breadcrumb .bc-link { color: #65558f; }
body[data-work-mode="deep"] .breadcrumb .bc-current { color: #2d2c42; }

body[data-work-mode="deep"] .main-content {
  border: 1px solid #d2d5e2;
  border-radius: 12px;
  background: #f3f4f9;
  box-shadow: inset 0 3px 0 rgba(103, 81, 153, .38), 0 12px 30px rgba(45, 51, 78, .06);
}

body[data-work-mode="deep"] .sidebar .nav-item.active {
  border-left-color: #b9a5e7;
  background: #3a3f69;
  box-shadow: inset 3px 0 0 #b9a5e7;
}

body[data-work-mode="deep"] .global-work-mode-options {
  border-color: #c9c8db;
  background: #ebeaf2;
}
body[data-work-mode="deep"] .global-work-mode-options button { color: #686b7d; }
body[data-work-mode="deep"] .global-work-mode-options button:hover {
  background: #f7f6fb;
  color: #38354e;
}
body[data-work-mode="deep"] .global-work-mode-options button.is-active {
  border: 1px solid #c5b9e0;
  background: #e7e1f3;
  color: #59417f;
  box-shadow: 0 1px 4px rgba(71, 55, 105, .12);
}

body[data-work-mode="deep"] .view-panel.active :where(
  .view-card,
  .form-card,
  .section,
  .result-header,
  .stat-card,
  .dash-panel,
  .dash-kpi-card,
  .pra-workbench,
  .pra-object-risk-table,
  .wf-scheme-brief,
  .wf-program-ledger,
  .at-evidence-workbench,
  .wpm-desk-layout,
  .finding-closeout-desk,
  .mi-container,
  .rp-editing-workbench,
  .ff-project-remediation
) {
  border-color: #cfd4e2;
  background-color: #fbfbfe;
  box-shadow: 0 2px 8px rgba(45, 51, 78, .055);
}

body[data-work-mode="deep"] .view-panel.active :where(
  .pra-risk-table-head,
  .wf-program-head,
  .at-workbench-head,
  .wpm-desk-head,
  .finding-closeout-head,
  .mi-header,
  .rp-editor-head,
  thead tr
) {
  border-color: #cfd4e2;
  background-color: #edeef5;
  color: #45475e;
}

body[data-work-mode="deep"] .view-panel.active :where(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  border-color: #c7ccda;
  background-color: #fdfdff;
  color: #2d2f42;
}
body[data-work-mode="deep"] .view-panel.active :where(input, select, textarea):focus {
  border-color: #7762a8;
  box-shadow: 0 0 0 3px rgba(103, 81, 153, .13);
}

body[data-work-mode="deep"] .view-panel.active :where(
  .page-heading,
  .page-title,
  .page-eyebrow,
  [class*="kicker"]
) {
  border-color: #cfd4e2;
}
body[data-work-mode="deep"] .view-panel.active :where(.page-eyebrow, [class*="kicker"]) {
  color: #665091 !important;
}

@media (max-width: 768px) {
  body[data-work-mode="deep"] .main-content {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

/* AI 审计研判：AI 缺席时不提供规则替代；结果按待验证方向呈现。 */
.pra-ai-empty,
.pra-ai-start,
.pra-ai-result-head {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
}
.pra-ai-empty strong,
.pra-ai-scope strong,
.pra-ai-result-head strong { display: block; color: #17243a; font-size: 14px; line-height: 1.45; }
.pra-ai-empty p,
.pra-ai-scope p,
.pra-ai-result-head small { margin: 3px 0 0; color: #66758a; font-size: 12px; line-height: 1.55; }
.pra-ai-empty.is-unavailable { background: #fffaf1; }
.pra-ai-start { align-items: flex-start; }
.pra-ai-scope > span,
.pra-ai-result-head span { display: block; margin-bottom: 3px; color: #2b64bf; font-size: 11px; font-weight: 800; }
.pra-ai-start-action { flex: 0 0 auto; display: grid; justify-items: end; gap: 5px; }
.pra-ai-start-action small { max-width: 360px; color: #7b8798; font-size: 11px; text-align: right; }
.pra-ai-result-head { border-bottom: 1px solid #e3eaf4; }
.pra-ai-spinner,
.at-ai-review-running i {
  width: 18px;
  height: 18px;
  border: 2px solid #c9d7ee;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: audit-ai-spin .8s linear infinite;
}
@keyframes audit-ai-spin { to { transform: rotate(360deg); } }
.pra-ai-direction-list { background: #fff; }
.pra-ai-direction {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1.65fr) minmax(160px, .55fr);
  gap: 0;
  border-bottom: 1px solid #e5ebf4;
}
.pra-ai-direction.is-adopted { box-shadow: inset 3px 0 #159568; }
.pra-ai-direction-main,
.pra-ai-direction-core,
.pra-ai-direction-action { min-width: 0; padding: 13px 15px; }
.pra-ai-direction-main > span { color: #2b64bf; font-size: 11px; font-weight: 800; }
.pra-ai-direction-main strong { display: block; margin-top: 3px; color: #17243a; font-size: 14px; line-height: 1.4; }
.pra-ai-direction-main p { margin: 5px 0 0; color: #53647a; font-size: 12px; line-height: 1.55; }
.pra-ai-direction-core { display: grid; gap: 10px; border-left: 1px solid #edf1f7; border-right: 1px solid #edf1f7; }
.pra-ai-direction-core section { padding: 9px 11px; border-left: 3px solid #7aa6ee; background: #f7faff; }
.pra-ai-direction-core section > span { color: #1f5fbd; font-size: 12px; font-weight: 850; }
.pra-ai-direction-core section > p { margin: 4px 0 0; color: #263b58; font-size: 13.5px; line-height: 1.6; }
.pra-ai-direction-core .pra-ai-next { border-left-color: #69a77e; background: #f7fcf8; }
.pra-ai-direction-core .pra-ai-next > span { color: #177451; }
.pra-ai-direction-core > details { border-top: 1px dashed #dce5f1; }
.pra-ai-direction-core > details > summary { padding: 8px 2px 2px; color: #607087; font-size: 11px; font-weight: 750; cursor: pointer; }
.pra-ai-direction-core dl { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 16px; }
.pra-ai-direction-core dl > div:last-child { grid-column: 1 / -1; }
.pra-ai-direction-core dt { color: #526176; font-size: 11px; font-weight: 800; }
.pra-ai-direction-core dd { margin: 3px 0 0; color: #526176; font-size: 12px; line-height: 1.55; }
.pra-ai-direction-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.pra-ai-direction-action span { color: #6b7788; font-size: 11px; font-weight: 700; text-align: right; }
.pra-ai-direction.is-adopted .pra-ai-direction-action span { color: #157653; }
.pra-ai-limitations,
.at-ai-review-boundary { padding: 0 15px; background: #fbfcfe; }
.pra-ai-limitations > summary,
.at-ai-review-boundary > summary { padding: 10px 0; color: #526176; font-size: 12px; font-weight: 750; cursor: pointer; }
.pra-ai-limitations ul,
.at-ai-review-boundary ul { margin: 0; padding: 0 0 12px 18px; color: #66758a; font-size: 12px; line-height: 1.55; }
.pra-ai-limitations p { margin: 0 -15px; padding: 9px 15px; border-top: 1px solid #e5ebf4; color: #806020; font-size: 11px; }
.pra-ai-no-gap { padding: 18px 16px; border-bottom: 1px solid #e5ebf4; background: #f7fbf8; }
.pra-ai-no-gap strong { color: #176b4f; font-size: 14px; }
.pra-ai-no-gap p { margin: 4px 0 0; color: #607087; font-size: 12px; line-height: 1.55; }

/* 程序执行中的 AI 查漏是支持动作，不改变程序和底稿主线。 */
.at-ai-depth-review {
  margin: 12px 0;
  border: 1px solid #cfdcf0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.at-ai-depth-review > header {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e3eaf4;
  background: #f8fbff;
}
.at-ai-depth-review > header .btn { flex: 0 0 auto; white-space: nowrap; }
.at-ai-depth-review > header span { display: block; color: #2563eb; font-size: 11px; font-weight: 850; }
.at-ai-depth-review > header strong { display: block; margin-top: 2px; color: #17243a; font-size: 15px; }
.at-ai-depth-review > header small { display: block; margin-top: 2px; color: #66758a; font-size: 12px; line-height: 1.5; }
.at-ai-review-running { display: flex !important; align-items: center; gap: 7px; color: #2563eb !important; white-space: nowrap; }
.at-ai-review-empty { padding: 14px; }
.at-ai-review-empty strong { color: #27364c; font-size: 13px; }
.at-ai-review-empty p { margin: 4px 0 0; color: #68778c; font-size: 12px; line-height: 1.55; }
.at-ai-review-context { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); border-bottom: 1px solid #e5ebf4; }
.at-ai-review-context > div { padding: 11px 14px; }
.at-ai-review-context > div + div { border-left: 1px solid #e5ebf4; background: #fbfcfe; }
.at-ai-review-context span { color: #627187; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.at-ai-review-context p { margin: 4px 0 0; color: #2f4057; font-size: 12px; line-height: 1.55; }
.at-ai-review-inputs { margin: 0; border-bottom: 1px solid #e5ebf4; background: #fbfcfe; }
.at-ai-review-inputs > summary { padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; color: #66758a; font-size: 11px; font-weight: 800; cursor: pointer; }
.at-ai-review-inputs > summary b { color: #2563eb; font-size: 10px; }
.at-ai-review-inputs > div { padding: 0 14px 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.at-ai-review-inputs > div > b { padding: 3px 7px; border: 1px solid #dce5f2; border-radius: 999px; background: #fff; color: #526176; font-size: 11px; font-weight: 700; }
.at-ai-review-inputs em { color: #2563eb; font-style: normal; }
.at-ai-security-line { padding: 8px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e5ebf4; background: #f7fafc; }
.at-ai-security-line span { flex: 0 0 auto; color: #49617f; font-size: 10px; font-weight: 850; }
.at-ai-security-line p { margin: 0; color: #68778c; font-size: 11px; line-height: 1.45; }
.at-ai-gap-list article { padding: 13px 14px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #e8edf5; }
.at-ai-gap-list article > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eaf2ff; color: #2563eb; font-size: 11px; font-weight: 850; }
.at-ai-gap-list strong { color: #17243a; font-size: 13px; }
.at-ai-gap-main > p { max-width: 900px; margin: 3px 0 10px; color: #65748a; font-size: 12px; line-height: 1.5; }
.at-ai-next-core { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.45fr); gap: 14px; }
.at-ai-next-core > div { padding: 9px 11px; border-left: 2px solid #dbe7f8; background: #fbfcfe; }
.at-ai-next-core > div:last-child { border-left-color: #2563eb; background: #f7faff; }
.at-ai-next-core b { color: #315079; font-size: 11px; }
.at-ai-next-core p { margin: 4px 0 0; color: #53647a; font-size: 12px; line-height: 1.5; }
.at-ai-next-core ol { margin: 4px 0 0; padding-left: 18px; color: #263b58; font-size: 12px; line-height: 1.55; }
.at-ai-gap-detail { margin-top: 8px; }
.at-ai-gap-detail > summary { color: #68778c; font-size: 11px; font-weight: 750; cursor: pointer; }
.at-ai-gap-detail dl { margin: 9px 0 0; padding: 10px 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; border-top: 1px dashed #dce5f1; background: #fbfcfe; }
.at-ai-gap-list dt { color: #526176; font-size: 11px; font-weight: 800; }
.at-ai-gap-list dd { margin: 2px 0 0; color: #66758a; font-size: 12px; line-height: 1.5; }
.at-ai-human-review { padding: 14px; border-top: 1px solid #d9e5f4; background: #f8fbff; }
.at-ai-human-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.at-ai-human-review-head span { display: block; color: #2563eb; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.at-ai-human-review-head strong { display: block; margin-top: 2px; color: #1f3149; font-size: 13px; }
.at-ai-human-review-head p { margin: 3px 0 0; color: #68778c; font-size: 11px; line-height: 1.5; }
.at-ai-human-review-head > b { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #fff3d8; color: #916200; font-size: 10px; }
.at-ai-human-review > label { display: block; margin-top: 10px; color: #40536c; font-size: 11px; font-weight: 800; }
.at-ai-human-review > label em { color: #c2413a; font-style: normal; }
.at-ai-human-review > label small { margin-left: 5px; color: #7b8798; font-size: 10px; font-weight: 600; }
.at-ai-human-review textarea { width: 100%; margin-top: 5px; padding: 8px 10px; resize: vertical; border: 1px solid #cfd9e7; border-radius: 7px; background: #fff; color: #26364c; font: inherit; font-size: 12px; line-height: 1.5; }
.at-ai-human-review textarea:focus { outline: 2px solid rgba(37, 99, 235, .14); border-color: #6894da; }
.at-ai-human-review-actions { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.at-ai-human-review.is-decided { background: #f7faf8; }
.at-ai-human-review.is-decided .at-ai-human-review-head > b { background: #e7f6ed; color: #177451; }
.at-ai-human-review.is-decided dl { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.at-ai-human-review.is-decided dt { color: #617085; font-size: 10px; font-weight: 850; }
.at-ai-human-review.is-decided dd { margin: 2px 0 0; color: #34465e; font-size: 12px; line-height: 1.5; }
.at-ai-review-history { border-top: 1px solid #dfe7f2; background: #f8fafc; }
.at-ai-review-history > summary { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.at-ai-review-history > summary::-webkit-details-marker { display: none; }
.at-ai-review-history > summary span { display: block; color: #526176; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.at-ai-review-history > summary strong { display: block; margin-top: 2px; color: #26364d; font-size: 13px; }
.at-ai-review-history > summary small { display: block; margin-top: 2px; color: #718096; font-size: 11px; font-weight: 500; }
.at-ai-review-history > summary > b { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #e8eef7; color: #526176; font-size: 10px; }
.at-ai-history-list { display: grid; gap: 10px; padding: 0 14px 14px; }
.at-ai-history-list > article { border: 1px solid #dce4ef; border-radius: 8px; background: #fff; overflow: hidden; }
.at-ai-history-list > article > header { padding: 10px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf1f6; }
.at-ai-history-list > article > header span { display: block; color: #2563eb; font-size: 10px; font-weight: 850; }
.at-ai-history-list > article > header strong { display: block; margin-top: 2px; color: #26364d; font-size: 12px; }
.at-ai-history-list > article > header small { display: block; margin-top: 2px; color: #7b8798; font-size: 10px; }
.at-ai-history-list > article > header > b { flex: 0 0 auto; color: #526176; font-size: 10px; }
.at-ai-history-list > article > p { margin: 0; padding: 9px 12px; color: #526176; font-size: 11px; line-height: 1.55; }
.at-ai-history-directions { border-top: 1px solid #edf1f6; }
.at-ai-history-directions > details + details { border-top: 1px solid #edf1f6; }
.at-ai-history-directions > details > summary { padding: 8px 12px; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 8px; cursor: pointer; }
.at-ai-history-directions > details > summary span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #eef4ff; color: #2563eb; font-size: 9px; font-weight: 850; }
.at-ai-history-directions > details > summary strong { color: #34465e; font-size: 11px; }
.at-ai-history-directions > details > div { padding: 0 12px 9px 40px; }
.at-ai-history-directions > details p { margin: 4px 0 0; color: #66758a; font-size: 11px; line-height: 1.5; }
.at-ai-history-directions > details p b { color: #40536c; }
.at-ai-history-list > article > footer { padding: 8px 12px; display: grid; gap: 3px; border-top: 1px solid #edf1f6; background: #f8fbf9; }
.at-ai-history-list > article > footer span { color: #3f5f52; font-size: 11px; line-height: 1.45; }
.at-ai-history-list > article > footer small { color: #728178; font-size: 10px; }

@media (max-width: 980px) {
  .pra-ai-direction { grid-template-columns: 1fr; }
  .pra-ai-direction-core { border: 0; border-top: 1px solid #edf1f7; border-bottom: 1px solid #edf1f7; }
  .pra-ai-direction-action { flex-direction: row; align-items: center; justify-content: space-between; }
  .at-ai-next-core { grid-template-columns: 1fr; }
  .at-ai-gap-detail dl { grid-template-columns: 1fr; }
  .at-ai-human-review.is-decided dl { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pra-ai-empty,
  .pra-ai-start,
  .pra-ai-result-head,
  .at-ai-depth-review > header { align-items: flex-start; flex-direction: column; }
  .pra-ai-start-action { width: 100%; justify-items: stretch; }
  .pra-ai-start-action small { max-width: none; text-align: left; }
  .pra-ai-direction-core dl { grid-template-columns: 1fr; }
  .pra-ai-direction-core dl > div:last-child { grid-column: auto; }
  .at-ai-review-context { grid-template-columns: 1fr; }
  .at-ai-review-context > div + div { border-top: 1px solid #e5ebf4; border-left: 0; }
}

/* P1 审计任务编排：复用工具结果，不新增一级入口 */
.tb-task-orchestration { margin: 14px 0; border: 1px solid #cfdcf4; border-radius: 10px; background: #fff; overflow: hidden; }
.tb-task-orchestration > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; background: #f5f8ff; }
.tb-task-orchestration > header span { display: block; color: #2458d3; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.tb-task-orchestration > header strong { display: block; margin-top: 3px; color: #172033; font-size: 16px; }
.tb-task-orchestration > header small { display: block; max-width: 720px; margin-top: 4px; color: #65758a; font-size: 12px; line-height: 1.5; }
.tb-task-progress { min-width: 76px; text-align: right; }
.tb-task-progress b { display: block; color: #2458d3; font-size: 20px; }
.tb-task-progress span { color: #738298 !important; font-size: 11px !important; letter-spacing: 0 !important; }
.tb-task-program-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #dfe7f3; border-bottom: 1px solid #dfe7f3; }
.tb-task-program-strip span { padding: 9px 12px; border-right: 1px solid #e5ebf4; color: #78879b; font-size: 12px; text-align: center; }
.tb-task-program-strip span:last-child { border-right: 0; }
.tb-task-program-strip span.is-complete { color: #0f766e; background: #f0fdfa; font-weight: 700; }
.tb-task-runline { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr) auto; align-items: end; gap: 14px; padding: 12px 14px; }
.tb-task-runline label span { display: block; margin-bottom: 5px; color: #334155; font-size: 12px; font-weight: 700; }
.tb-task-runline select { width: 100%; min-height: 36px; border: 1px solid #cbd7e8; border-radius: 7px; background: #fff; padding: 0 10px; color: #26364d; }
.tb-task-runline p { margin: 0 0 5px; color: #718096; font-size: 12px; line-height: 1.5; }
.tb-task-review-queue { border-top: 1px solid #e5ebf4; padding: 11px 14px; }
.tb-task-review-queue > header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.tb-task-review-queue > header strong { font-size: 13px; }
.tb-task-review-queue > header span { color: #718096; font-size: 11px; }
.tb-task-review-queue article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #edf1f7; }
.tb-task-review-queue article b { display: block; color: #29384e; font-size: 12px; }
.tb-task-review-queue article small { display: block; margin-top: 2px; color: #75849a; font-size: 11px; line-height: 1.45; }
.tb-task-more { margin: 6px 0 0; color: #718096; font-size: 11px; }
.tb-task-orchestration > footer { padding: 8px 14px; border-top: 1px solid #e5ebf4; background: #fbfcfe; color: #7a899d; font-size: 11px; }
@media (max-width: 860px) {
  .tb-task-orchestration > header { align-items: flex-start; flex-direction: column; }
  .tb-task-progress { text-align: left; }
  .tb-task-program-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-task-runline { grid-template-columns: 1fr; align-items: stretch; }
  .tb-task-review-queue article { grid-template-columns: 1fr; }
}

/* 程序执行主线：常规底稿始终留在页面，智能能力按需从右侧进入。 */
.at-execution-lineage{
  display:grid;
  grid-template-columns:minmax(150px,1fr) 18px minmax(135px,.82fr) 18px minmax(135px,.82fr) 18px minmax(150px,1fr);
  align-items:center;
  gap:6px;
  margin:8px 10px;
  padding:8px 10px;
  border:1px solid #dbe5f2;
  border-radius:10px;
  background:#f8fafc;
  overflow:hidden;
}
.at-execution-lineage>div{
  display:flex;
  align-items:center;
  min-width:0;
  gap:8px;
  padding:6px 8px;
  border-radius:8px;
}
.at-execution-lineage>div>span{
  display:grid;
  flex:0 0 auto;
  width:24px;
  height:24px;
  place-items:center;
  border:1px solid #cbd5e1;
  border-radius:50%;
  color:#64748b;
  background:#fff;
  font-size:11px;
  font-weight:850;
}
.at-execution-lineage>div>div{min-width:0}
.at-execution-lineage small,
.at-execution-lineage strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.at-execution-lineage small{color:#64748b;font-size:10px;font-weight:800}
.at-execution-lineage strong{margin-top:2px;color:#334155;font-size:11px}
.at-execution-lineage>div.is-done>span{border-color:#a7f3d0;color:#047857;background:#ecfdf5}
.at-execution-lineage>div.is-active{background:#eff6ff}
.at-execution-lineage>div.is-active>span{border-color:#2563eb;color:#fff;background:#2563eb}
.at-execution-lineage>div.is-active strong{color:#1d4ed8}
.at-execution-lineage>i{color:#94a3b8;font-size:13px;font-style:normal;text-align:center}

.at-execution-assistance{
  margin:8px 10px;
  border:1px solid #dbe5f2;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.at-execution-assistance>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:48px;
  padding:9px 13px;
  cursor:pointer;
  list-style:none;
  background:#fbfcfe;
}
.at-execution-assistance>summary::-webkit-details-marker{display:none}
.at-execution-assistance>summary span{display:block;color:#64748b;font-size:10px;font-weight:850}
.at-execution-assistance>summary strong{display:block;margin-top:2px;color:#27364c;font-size:13px}
.at-execution-assistance>summary small{display:block;margin-top:2px;color:#718096;font-size:11px}
.at-execution-assistance>summary>b{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  color:#526176;
  background:#eef2f7;
  font-size:10px;
}
.at-execution-assistance>.at-ai-depth-review{margin:0;border-width:1px 0 0;border-radius:0}

.at-capability-assist-layer{
  position:fixed;
  inset:0;
  z-index:9000;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(680px,min(920px,76vw));
  grid-template-rows:minmax(0,1fr);
}
.at-capability-assist-backdrop{
  grid-column:1/-1;
  grid-row:1;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(15,23,42,.36);
  cursor:default;
}
.at-capability-assist-layer>.at-capability-pilot{
  position:relative;
  z-index:1;
  grid-column:2;
  grid-row:1;
  width:100%;
  height:100dvh;
  margin:0;
  border-width:0 0 0 1px;
  border-radius:0;
  background:#f8fbff;
  overflow-x:hidden;
  overflow-y:auto;
  box-shadow:-18px 0 46px rgba(15,23,42,.18);
  outline:none;
}
.at-capability-assist-layer>.at-capability-pilot>header{
  position:sticky;
  top:0;
  z-index:3;
  min-height:78px;
  border-bottom:1px solid #dbe7f7;
  background:rgba(248,251,255,.97);
  backdrop-filter:blur(10px);
}
.at-capability-assist-layer>.at-capability-pilot>footer{
  padding:12px 16px 18px;
  border-top:1px solid #dbe7f7;
  background:#fff;
}
@media(max-width:900px){
  .at-execution-lineage{display:flex;overflow-x:auto}
  .at-execution-lineage>div{min-width:160px}
  .at-execution-lineage>i{flex:0 0 auto;width:14px}
  .at-capability-assist-layer{grid-template-columns:1fr}
  .at-capability-assist-layer>.at-capability-pilot{grid-column:1}
  .at-capability-assist-backdrop{display:none}
}
@media(prefers-reduced-motion:no-preference){
  .at-capability-assist-layer>.at-capability-pilot{animation:at-capability-drawer-in .16s ease-out}
}
@keyframes at-capability-drawer-in{
  from{transform:translateX(24px)}
  to{transform:translateX(0)}
}
.at-professional-task-pilot>header{padding:20px 22px 16px}
.at-professional-task-pilot>header strong{font-size:1.1rem;letter-spacing:-.01em}
.at-professional-task-pilot>header p{max-width:68ch;font-size:.78rem;line-height:1.6}
.at-professional-task-source,
.at-professional-task-ready,
.at-professional-task-result>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  border-bottom:1px solid #dbe7f7;
  background:#fff;
}
.at-professional-task-source span,
.at-professional-task-result>header span{display:block;color:#64748b;font-size:.7rem;font-weight:800}
.at-professional-task-source strong,
.at-professional-task-ready strong,
.at-professional-task-result>header strong{display:block;margin-top:3px;color:#172033;font-size:.92rem}
.at-professional-task-source small,
.at-professional-task-ready p,
.at-professional-task-result>header p{display:block;margin:4px 0 0;color:#64748b;font-size:.76rem;line-height:1.55}
.at-professional-task-source>b,
.at-professional-task-result>header>b{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:#eef2f7;
  color:#526176;
  font-size:.68rem;
}
.at-professional-task-source>b.is-ready{background:#e7f5ee;color:#17634a}
.at-professional-task-source>b.is-pending{background:#fff3db;color:#925f12}
.at-professional-task-ready{border-bottom:0;background:transparent}
.at-professional-task-result{margin:14px 16px 18px;border:1px solid #dbe7f7;border-radius:14px;background:#fff;overflow:hidden}
.at-professional-task-result>header{padding:16px 18px;background:#fbfdff}
.at-professional-task-outcome{padding:22px 24px 18px;background:#fff}
.at-professional-task-outcome>span{display:block;color:#375d91;font-size:.74rem;font-weight:800}
.at-professional-task-outcome>strong{display:block;margin:8px 0 17px;color:#172033;font-size:1.14rem;line-height:1.5;font-weight:750}
.at-professional-task-outcome dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin:0}
.at-professional-task-outcome dl>div{min-width:0}
.at-professional-task-outcome dl>div.is-next{grid-column:1/-1;padding:12px 14px;border-left:3px solid #3167c7;background:#f3f7ff}
.at-professional-task-outcome dt{margin-bottom:5px;color:#56657a;font-size:.73rem;font-weight:800}
.at-professional-task-outcome dd{margin:0;color:#26354a;font-size:.84rem;line-height:1.65}
.at-professional-task-outcome>p{margin:16px 0 0;color:#66758b;font-size:.76rem;line-height:1.55}
.at-professional-saved-outcome{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;border-top:1px solid #cce6da;border-bottom:1px solid #cce6da;background:#f3fbf6}
.at-professional-saved-outcome strong{color:#17634a;font-size:.88rem}
.at-professional-saved-outcome p{margin:4px 0 0;color:#456359;font-size:.76rem;line-height:1.5}
.at-professional-saved-outcome button{flex:0 0 auto}
.at-professional-run-context{display:flex;align-items:center;gap:12px;padding:10px 24px;border-bottom:1px solid #e6edf5;color:#526176;background:#fbfdff}
.at-professional-run-context>div{display:grid;gap:2px;min-width:0;margin-right:auto}
.at-professional-run-context strong{color:#445269;font-size:.75rem}
.at-professional-run-context small{font-size:.7rem}
.at-professional-run-context>span{font-size:.72rem;font-weight:800}
.at-professional-task-trace{padding:0 24px;border-bottom:1px solid #e6edf5;background:#fbfdff}
.at-professional-task-trace summary{padding:12px 0;color:#49627d;font-size:.75rem;font-weight:750;cursor:pointer}
.at-professional-task-trace>div{display:grid;gap:6px;padding:0 0 14px;color:#526176;font-size:.74rem;line-height:1.5}
.at-professional-task-trace p{margin:3px 0 0}
.at-professional-task-items{border-top:1px solid #e2eaf4}
.at-professional-task-items>summary{padding:17px 24px;color:#2457a8;background:#f7faff;font-size:.84rem;font-weight:800;cursor:pointer;list-style-position:inside}
.at-professional-task-items>summary:hover{background:#eff5ff}
.at-professional-task-items[open]>summary{border-bottom:1px solid #e2eaf4}
.at-professional-task-list{display:grid}
.at-professional-task-list>h3{margin:0;padding:17px 18px 12px;color:#26354a;font-size:.9rem}
.at-professional-task-list>article{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:13px 18px;border-top:1px solid #edf2f8}
.at-professional-task-list>article>b{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#edf4ff;color:#245ebf;font-size:.7rem;font-variant-numeric:tabular-nums}
.at-professional-task-list>article strong{display:block;color:#253248;font-size:.8rem}
.at-professional-task-list>article p{margin:4px 0 0;color:#56657a;font-size:.74rem;line-height:1.55}
.at-professional-task-list>article small{display:block;margin-top:5px;color:#7a8798;font-size:.68rem}
.at-professional-task-list>small{display:block;padding:10px 18px;border-top:1px solid #edf2f8;color:#64748b}
.at-professional-item-review{display:grid;grid-template-columns:minmax(160px,.72fr) minmax(240px,1.28fr);gap:10px;margin:12px 0 2px;padding:12px;border:1px solid #dbe7f7;border-radius:10px;background:#f8fbff}
.at-professional-item-review legend{padding:0 5px;color:#445269;font-size:.7rem;font-weight:800}
.at-professional-item-review label{display:grid;gap:5px;min-width:0}
.at-professional-item-review label>span{color:#526176;font-size:.68rem;font-weight:800}
.at-professional-item-review label em{color:#b45309;font-style:normal}
.at-professional-item-review select,
.at-professional-item-review textarea{width:100%;min-height:44px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;color:#26354a;font-size:.74rem}
.at-professional-item-review textarea{min-height:64px;resize:vertical;line-height:1.5}
.at-professional-register-fact{margin-top:9px}
.at-professional-task-review{display:grid;gap:12px;padding:16px 18px;border-top:1px solid #dbe7f7;background:#fbfdff}
.at-professional-task-review>strong{color:#253248;font-size:.8rem}
.at-professional-task-review>p{margin:-6px 0 0;color:#64748b;font-size:.72rem;line-height:1.55}
.at-professional-task-review label{display:grid;gap:6px}
.at-professional-task-review label>span{color:#445269;font-size:.72rem;font-weight:800}
.at-professional-task-review label em{color:#b45309;font-style:normal}
.at-professional-task-review select,
.at-professional-task-review textarea{width:100%;border:1px solid #cbd8e8;border-radius:10px;background:#fff;color:#26354a}
.at-professional-task-review textarea{min-height:82px;resize:vertical;line-height:1.55}
.at-professional-task-review>div{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:720px){
  .at-professional-task-source,
  .at-professional-task-ready,
  .at-professional-task-result>header{align-items:stretch;flex-direction:column}
  .at-professional-task-ready button{width:100%}
  .at-professional-item-review{grid-template-columns:1fr}
  .at-professional-task-review>div{align-items:stretch;flex-direction:column}
  .at-professional-task-outcome dl{grid-template-columns:1fr}
  .at-professional-task-outcome dl>div.is-next{grid-column:1}
  .at-professional-saved-outcome{align-items:stretch;flex-direction:column}
  .at-professional-saved-outcome button{width:100%}
  .at-professional-run-context{flex-wrap:wrap}
}
.qa-ingestion-ai{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:14px 16px;border:1px solid #dbe7f5;border-radius:12px;background:#f8fbff}.qa-ingestion-ai>div{display:grid;gap:4px}.qa-ingestion-ai span,.qa-ingestion-ai small{color:#64748b;font-size:13px}.qa-ingestion-ai button{white-space:nowrap}.qa-ingestion-ai.is-loading{justify-content:flex-start;background:#f3f8ff}.qa-ingestion-ai.has-result{display:block}.qa-ingestion-ai.has-result header,.qa-ingestion-ai.has-result footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.qa-ingestion-ai.has-result header>div{display:grid;gap:3px}.qa-ingestion-ai.has-result>p{margin:12px 0;color:#1e293b;line-height:1.7}.qa-ingestion-ai.has-result dl{display:grid;gap:8px;margin:0}.qa-ingestion-ai.has-result dl>div{display:grid;grid-template-columns:90px 1fr;gap:12px}.qa-ingestion-ai.has-result dt{font-weight:700;color:#334155}.qa-ingestion-ai.has-result dd{margin:0;color:#475569;line-height:1.6}.qa-ingestion-ai.has-result details{margin:12px 0;border-top:1px solid #e2e8f0;padding-top:10px}.qa-ingestion-ai.has-result details p{margin:8px 0;line-height:1.6}.qa-ingestion-ai.has-result footer{justify-content:flex-end}
.wpm-editor-message {
  display: none;
  flex: 1 1 100%;
  padding: 10px 12px;
  border: 1px solid #f3c67a;
  border-radius: 8px;
  background: #fff8e8;
  color: #8a4b08;
  line-height: 1.55;
}
.wpm-editor-message.is-visible { display: block; }
.rps-finding-ref {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  color: #315d86;
  background: #edf6ff;
  border: 1px solid #cfe3f5;
}

.rps-finding-ref.is-legacy {
  color: #7a5b28;
  background: #fff8e7;
  border-color: #ead7a8;
}

.ad-local-recovery { padding: 12px 18px; color: #31445f; border-top: 1px solid #dfe6ee; }
.ad-local-recovery summary { cursor: pointer; font-weight: 650; }
.ad-local-recovery p { line-height: 1.6; overflow-wrap: anywhere; }
.ad-local-recovery > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ad-local-recovery > div > span { min-width: 0; overflow-wrap: anywhere; }
.ad-primary-report {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(180px, .8fr) minmax(320px, 1.8fr);
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #cfe0ee;
  border-radius: 12px;
  background: #f7fbfe;
}

.ad-primary-report span { color: #5d7182; font-size: 12px; }
.ad-primary-report strong { color: #17364f; font-size: 14px; }
.ad-primary-report p { margin: 0; color: #506b80; font-size: 12px; }

@media (max-width: 900px) {
  .ad-primary-report { grid-template-columns: 1fr; }
}

/* 2026-08-16 审计方案首屏收束：保留方案事项主工作区，仅修正顶部错位并压缩前置信息。 */
body[data-active-view="taskarrange"] .project-context{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  gap:0!important;
  padding:4px!important;
}
body[data-active-view="taskarrange"] .project-context .project-label{
  display:none!important;
}
body[data-active-view="taskarrange"] .project-context .project-switch-trigger{
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  padding:5px 7px 5px 10px!important;
}
body[data-active-view="taskarrange"] .project-context .project-switch-trigger em{
  margin-left:8px!important;
}
body[data-active-view="taskarrange"] #global-work-mode-status{
  display:none!important;
}
body[data-active-view="taskarrange"] .global-work-mode{
  padding-right:8px!important;
}

#view-taskarrange .project-flow-nav.pfn-compact{
  margin-bottom:6px!important;
}
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head{
  min-height:38px!important;
  padding:4px 9px!important;
}
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head>div:first-child{
  display:block!important;
  min-width:0!important;
}
#view-taskarrange .project-flow-nav.pfn-compact .pfn-head h3{
  max-width:560px!important;
  font-size:13px!important;
}
#view-taskarrange .project-flow-nav.pfn-compact .pfn-actions{
  gap:6px!important;
}
#view-taskarrange .project-flow-nav.pfn-compact .pfn-actions .btn{
  min-height:30px!important;
  padding:0 9px!important;
  font-size:12px!important;
}

#view-taskarrange .adpe-entry[data-audit-data-preparation-entry="audit-plan"]{
  min-height:38px!important;
  margin:0 0 6px!important;
  padding:5px 8px 5px 11px!important;
  border-radius:9px!important;
}
#view-taskarrange .adpe-entry[data-audit-data-preparation-entry="audit-plan"]>div{
  gap:8px!important;
  min-width:0!important;
}
#view-taskarrange .adpe-entry[data-audit-data-preparation-entry="audit-plan"]>div:first-child>span{
  display:none!important;
}
#view-taskarrange .adpe-entry[data-audit-data-preparation-entry="audit-plan"] b{
  font-size:12px!important;
}
#view-taskarrange .adpe-entry[data-audit-data-preparation-entry="audit-plan"] button{
  min-height:28px!important;
  padding:4px 9px!important;
  border-radius:7px!important;
  font-size:12px!important;
}

#view-taskarrange .wf-scheme-detail-page .wf-scheme-plan-first{
  margin-bottom:6px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head{
  min-height:40px!important;
  padding:6px 10px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head>div:first-child>span{
  font-size:10px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head h3{
  margin-top:1px!important;
  font-size:14px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-brief-compact .wf-scheme-brief-head>div:first-child>small{
  display:none!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-brief-actions .btn{
  min-height:30px!important;
  padding:0 9px!important;
  font-size:12px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-summary-line>div{
  min-height:36px!important;
  padding:5px 8px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-summary-line span,
#view-taskarrange .wf-scheme-detail-page .wf-scheme-summary-line small{
  font-size:10px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-scheme-summary-line strong{
  display:block!important;
  overflow:hidden!important;
  font-size:12px!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-head{
  min-height:46px!important;
  padding:7px 10px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-head>div:first-child>span{
  font-size:10px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-head h3{
  margin:1px 0 0!important;
  font-size:15px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-head p{
  display:none!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-actions{
  gap:6px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-actions .btn{
  min-height:30px!important;
  padding:0 9px!important;
  font-size:12px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-summary{
  min-height:30px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-summary>span{
  min-height:30px!important;
  padding:4px 10px!important;
  font-size:11px!important;
}
#view-taskarrange .wf-scheme-detail-page .wf-program-ledger-summary strong{
  font-size:14px!important;
}

@media (min-width: 769px) and (max-width: 1180px){
  body[data-active-view="taskarrange"] .project-bar-inner{
    grid-template-columns:minmax(235px,1fr) auto minmax(355px,auto)!important;
    gap:8px!important;
  }
  body[data-active-view="taskarrange"] .project-actions{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  body[data-active-view="taskarrange"] .user-info-bar{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
  }
}

@media (max-width: 900px){
  #view-taskarrange .wf-scheme-detail-page .wf-program-ledger-head{
    align-items:stretch!important;
  }
  #view-taskarrange .wf-scheme-detail-page .wf-program-actions{
    justify-content:flex-start!important;
  }
}

/* ===== Program conclusion: readable analysis fact batches =====
   模型输出先作为待核实线索呈现。主卡片只保留核查对象，证据位置按需展开。 */
.at-evidence-result .at-fact-list .at-analysis-fact-batch{
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #d7e1ee!important;
  border-left:3px solid #d97706!important;
  border-radius:10px!important;
  background:#fff!important;
}
.at-analysis-fact-batch>header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:14px 16px 12px!important;
  border-bottom:1px solid #e6edf5!important;
  background:#fbfcfe!important;
}
.at-analysis-fact-batch>header>div:first-child{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:2px 10px!important;
  min-width:0!important;
}
.at-analysis-fact-batch>header>div:first-child>span{
  grid-row:1 / span 2!important;
  align-self:start!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#fff4dc!important;
  color:#9a5a00!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.at-analysis-fact-batch>header strong{
  min-width:0!important;
  overflow:hidden!important;
  color:#182438!important;
  font-size:15px!important;
  line-height:1.45!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.at-analysis-fact-batch>header small{
  grid-column:2!important;
  margin:0!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.at-analysis-fact-batch>header .at-fact-actions{
  display:flex!important;
  flex:0 0 auto!important;
  gap:6px!important;
  margin:0!important;
}
.at-analysis-fact-overview{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  padding:10px 16px!important;
  color:#52627a!important;
  font-size:13px!important;
  line-height:1.4!important;
}
.at-analysis-fact-overview b{
  color:#172033!important;
  font-size:14px!important;
}
.at-analysis-fact-candidates{
  display:grid!important;
  gap:0!important;
  margin:0!important;
  padding:0 16px!important;
  list-style:none!important;
}
.at-analysis-fact-candidates li{
  display:grid!important;
  grid-template-columns:28px minmax(210px,.72fr) minmax(0,1.28fr)!important;
  align-items:start!important;
  gap:10px!important;
  padding:10px 0!important;
  border-top:1px solid #edf1f6!important;
}
.at-analysis-fact-candidates li>em{
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border-radius:6px!important;
  background:#eef3f9!important;
  color:#52627a!important;
  font-size:11px!important;
  font-style:normal!important;
  font-weight:850!important;
  line-height:1!important;
}
.at-analysis-fact-candidates li>div{
  display:contents!important;
}
.at-analysis-fact-candidates li strong{
  color:#26364e!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.at-analysis-fact-candidates li p{
  margin:0!important;
  color:#5c6d84!important;
  font-size:13px!important;
  line-height:1.6!important;
}
.at-analysis-fact-more,
.at-analysis-fact-source{
  margin:0 16px!important;
  border-top:1px solid #e6edf5!important;
}
.at-analysis-fact-more>summary,
.at-analysis-fact-source>summary{
  padding:10px 0!important;
  list-style:none!important;
  color:#1d4ed8!important;
  font-size:13px!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.at-analysis-fact-more>summary::-webkit-details-marker,
.at-analysis-fact-source>summary::-webkit-details-marker{display:none!important}
.at-analysis-fact-more>summary::before,
.at-analysis-fact-source>summary::before{
  content:'›'!important;
  display:inline-block!important;
  margin-right:7px!important;
  transition:transform .16s ease!important;
}
.at-analysis-fact-more[open]>summary::before,
.at-analysis-fact-source[open]>summary::before{transform:rotate(90deg)!important}
.at-analysis-fact-more .at-analysis-fact-candidates{padding:0!important}
.at-analysis-fact-source>div{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) auto auto!important;
  gap:10px 18px!important;
  padding:0 0 12px!important;
  color:#64748b!important;
  font-size:13px!important;
}
.at-analysis-fact-source strong{
  overflow:hidden!important;
  color:#334155!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html[data-theme="dark"] .at-evidence-result .at-fact-list .at-analysis-fact-batch,
html[data-theme="dark"] .at-analysis-fact-batch>header{background:#152136!important;border-color:#314158!important}
html[data-theme="dark"] .at-analysis-fact-batch>header strong,
html[data-theme="dark"] .at-analysis-fact-overview b,
html[data-theme="dark"] .at-analysis-fact-candidates li strong{color:#e5edf8!important}
html[data-theme="dark"] .at-analysis-fact-batch>header small,
html[data-theme="dark"] .at-analysis-fact-overview,
html[data-theme="dark"] .at-analysis-fact-candidates li p,
html[data-theme="dark"] .at-analysis-fact-source>div{color:#a8b7ca!important}
html[data-theme="dark"] .at-analysis-fact-candidates li,
html[data-theme="dark"] .at-analysis-fact-more,
html[data-theme="dark"] .at-analysis-fact-source{border-color:#314158!important}
@media(max-width:820px){
  .at-analysis-fact-batch>header{flex-direction:column!important}
  .at-analysis-fact-candidates li{grid-template-columns:28px minmax(0,1fr)!important}
  .at-analysis-fact-candidates li p{grid-column:2!important}
  .at-analysis-fact-source>div{grid-template-columns:1fr!important}
}

/* 2026-08-21：结论阶段一次只呈现一个下一步，底稿历史与复核默认退到二级查看。 */
.at-execution-worksheet .at-single-closeout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  margin:12px 0 0!important;
  padding:16px 18px!important;
  border:1px solid #cfdbea!important;
  border-left:4px solid #2563eb!important;
  border-radius:12px!important;
  background:#fff!important;
}
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="facts"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="evidence"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="mapping"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="record"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="draft"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="scheme"]{
  border-left-color:#d97706!important;
}
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="returned"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="finding-returned"]{
  border-left-color:#c2410c!important;
  background:#fffaf5!important;
}
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="ready"]{
  border-left-color:#16805d!important;
}
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="review"]{
  border-left-color:#4f6fa3!important;
}
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="finding"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="close"],
.at-execution-worksheet .at-single-closeout[data-at-closeout-state="completed"]{
  border-left-color:#16805d!important;
}
.at-closeout-copy{min-width:0!important}
.at-closeout-copy>span{
  margin:0 0 4px!important;
  color:#5d6e85!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.at-closeout-copy>strong{
  color:#172a45!important;
  font-size:17px!important;
  line-height:1.35!important;
}
.at-execution-worksheet .at-closeout-copy>p{
  max-width:760px!important;
  margin:5px 0 0!important;
  color:#607189!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.at-execution-worksheet .at-single-closeout .at-closeout-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
.at-execution-worksheet .at-single-closeout .at-closeout-actions .btn{
  min-width:132px!important;
  white-space:nowrap!important;
}
.at-execution-worksheet .at-required-entry{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  margin:12px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.at-execution-worksheet .at-required-entry>div:first-child{
  display:grid!important;
  grid-column:auto!important;
  gap:2px!important;
}
.at-execution-worksheet .at-required-entry>div:first-child b{color:#25364f!important;font-size:13px!important}
.at-execution-worksheet .at-required-entry>div:first-child small{color:#718198!important;font-size:11px!important}
.at-execution-worksheet .at-required-entry-fields label{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:5px!important;
  max-width:720px!important;
}
.at-execution-worksheet .at-required-entry-fields label span{font-size:12px!important}
.at-execution-worksheet .at-required-entry-fields textarea{
  min-height:58px!important;
  border-color:#bdcbe0!important;
  border-radius:8px!important;
}
.at-closeout-requirements{
  max-width:760px!important;
  margin-top:10px!important;
}
.at-closeout-requirements>summary{
  width:max-content!important;
  list-style:none!important;
  color:#536b8e!important;
  font-size:12px!important;
  font-weight:750!important;
  cursor:pointer!important;
}
.at-closeout-requirements>summary::-webkit-details-marker{display:none!important}
.at-closeout-requirements>summary::before{content:'›';display:inline-block;margin-right:6px;transition:transform .16s ease}
.at-closeout-requirements[open]>summary::before{transform:rotate(90deg)}
.at-closeout-requirements .at-submit-blockers{
  gap:0!important;
  margin-top:8px!important;
  overflow:hidden!important;
  border:1px solid #e2e8f0!important;
  border-radius:8px!important;
}
.at-closeout-requirements .at-submit-blockers li{
  grid-template-columns:minmax(170px,.65fr) minmax(260px,1.35fr)!important;
  padding:8px 10px!important;
  border:0!important;
  border-bottom:1px solid #edf1f6!important;
  border-radius:0!important;
  background:#fafbfd!important;
}
.at-closeout-requirements .at-submit-blockers li:last-child{border-bottom:0!important}
.at-closeout-requirements .at-submit-blockers li strong{color:#475569!important}
.at-closeout-requirements .at-submit-blockers li span{color:#64748b!important}
.at-primary-view-panel[data-at-work-view-panel="conclusion"]>.at-workpaper-followup{
  margin:10px 0 0!important;
  border:0!important;
  border-top:1px solid #dce5ef!important;
  border-radius:0!important;
  background:transparent!important;
}
.at-primary-view-panel[data-at-work-view-panel="conclusion"]>.at-workpaper-followup>summary{
  min-height:44px!important;
  padding:10px 2px!important;
  background:transparent!important;
}
.at-primary-view-panel[data-at-work-view-panel="conclusion"]>.at-workpaper-followup>summary span{
  color:#526985!important;
  letter-spacing:0!important;
}
.at-primary-view-panel[data-at-work-view-panel="conclusion"]>.at-workpaper-followup>summary strong{
  color:#24364f!important;
  font-size:13px!important;
  font-weight:750!important;
}
.at-primary-view-panel[data-at-work-view-panel="conclusion"]>.at-workpaper-followup>summary>b{
  color:#718198!important;
  font-weight:650!important;
}
.at-primary-view-panel[data-at-work-view-panel="conclusion"]>.at-workpaper-followup-body{
  border:1px solid #dce5ef!important;
  border-radius:10px!important;
}
html[data-theme="dark"] .at-execution-worksheet .at-single-closeout{background:#142238!important;border-color:#354761!important;border-left-color:#4d8dff!important}
html[data-theme="dark"] .at-execution-worksheet .at-single-closeout[data-at-closeout-state="returned"],
html[data-theme="dark"] .at-execution-worksheet .at-single-closeout[data-at-closeout-state="finding-returned"]{background:#2d211b!important;border-left-color:#e58b4b!important}
html[data-theme="dark"] .at-closeout-copy>strong{color:#e8eef7!important}
html[data-theme="dark"] .at-execution-worksheet .at-closeout-copy>p,
html[data-theme="dark"] .at-closeout-copy>span{color:#a9b8ca!important}
html[data-theme="dark"] .at-closeout-requirements .at-submit-blockers{border-color:#354761!important}
html[data-theme="dark"] .at-closeout-requirements .at-submit-blockers li{background:#18283f!important;border-color:#354761!important}
@media(max-width:760px){
  .at-execution-worksheet .at-single-closeout{grid-template-columns:1fr!important;padding:14px!important}
  .at-execution-worksheet .at-single-closeout .at-closeout-actions{justify-content:flex-start!important}
  .at-closeout-requirements .at-submit-blockers li{grid-template-columns:1fr!important}
}

/* 知识检索：非 AI 模式只展示可解释的字面命中与原文位置 */
.qa-message.qa-system.qa-local-search-message{width:min(1080px,100%);max-width:100%}
.qa-message.qa-system.qa-local-search-message>.qa-msg-content{width:100%}
.qa-local-search-results{width:min(960px,100%)}
.qa-local-search-summary{gap:6px;margin:0 0 10px;padding:10px 2px 12px;border:0;border-bottom:1px solid #dbe3ed;border-radius:0;background:transparent}
.qa-local-search-summary>div{display:flex;align-items:center;gap:8px}
.qa-local-search-summary strong{color:#172033;font-size:15px}
.qa-local-search-summary em{padding:3px 7px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#52637a;font-size:10px;font-style:normal;font-weight:850}
.qa-local-search-summary span{max-width:78ch;color:#607188;font-size:12px;line-height:1.55}
.qa-local-result-group{display:grid;gap:0}
.qa-local-result-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px;color:#334155}
.qa-local-result-group>header strong{font-size:12px;font-weight:900}
.qa-local-result-group>header span{color:#718198;font-size:11px;font-weight:750}
.qa-local-result-list{gap:0;border-top:1px solid #e2e8f0}
.qa-local-result-card{padding:14px 2px;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;background:transparent}
.qa-local-result-card:hover{background:#fbfdff}
.qa-local-result-card header strong{font-size:15px;line-height:1.4}
.qa-local-result-card header>span{border:1px solid #e2e8f0;background:#f8fafc;font-size:10px}
.qa-local-result-meta{gap:5px 11px;margin-top:5px;font-size:11px}
.qa-local-result-meta span+span:before{content:"·";margin-right:11px;color:#94a3b8}
.qa-local-result-match{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 10px;margin-top:10px;padding:9px 11px;border:1px solid #dbeafe;border-radius:9px;background:#f8fbff}
.qa-local-result-match>span{grid-row:1/3;color:#2563eb;font-size:10px;font-weight:900;line-height:1.8;white-space:nowrap}
.qa-local-result-match>strong{color:#263b57;font-size:12px;line-height:1.45}
.qa-local-result-match>p{margin:0;color:#52637a;font-size:12px;line-height:1.65}
.qa-local-result-match mark,.qa-project-record-match mark,.qa-project-sheet-table-wrap mark,.qa-project-document-reader mark{padding:0 2px;border-radius:3px;background:#fef08a;color:#713f12}
.qa-local-result-card>footer{align-items:center;gap:7px;margin-top:9px;padding-top:0;border-top:0}
.qa-local-result-card>footer button{min-height:32px;border-color:#cbd5e1;background:#fff;color:#475569}
.qa-local-result-card>footer button:hover{border-color:#60a5fa;color:#1d4ed8}
.qa-local-result-card>footer button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}
.qa-local-result-card>footer>span{margin-right:auto;color:#718198;font-size:11px}
.qa-local-method-results{margin-top:14px;border-top:1px solid #dbe3ed}
.qa-local-method-results>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 2px;color:#475569;cursor:pointer;list-style:none}
.qa-local-method-results>summary::-webkit-details-marker{display:none}
.qa-local-method-results>summary>span{display:grid;gap:2px}
.qa-local-method-results>summary strong{font-size:12px}
.qa-local-method-results>summary small{color:#7a899d;font-size:10px}
.qa-local-method-results>summary b{padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#52637a;font-size:10px}
.qa-local-method-results[open]>summary{color:#1d4ed8}

.qa-project-record-preview{width:min(1120px,96vw);height:auto;max-height:92vh;grid-template-rows:auto auto minmax(180px,auto) auto;border-radius:14px}
.qa-project-record-preview>header{padding:13px 16px;background:#fff}
.qa-project-record-preview>header span{font-size:10px;letter-spacing:.03em}
.qa-project-record-preview>header strong{font-size:17px}
.qa-project-record-match{display:grid;grid-template-columns:auto minmax(150px,auto) minmax(0,1fr);align-items:start;gap:6px 10px;padding:9px 16px;border-bottom:1px solid #dbeafe;background:#f8fbff}
.qa-project-record-match>span{padding:2px 6px;border-radius:5px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:900}
.qa-project-record-match>strong{color:#263b57;font-size:12px;line-height:1.55}
.qa-project-record-match>p{margin:0;color:#607188;font-size:12px;line-height:1.55}
.qa-project-record-match.is-context{background:#f8fafc;border-bottom-color:#e2e8f0}
.qa-project-record-match.is-context>span{background:#e2e8f0;color:#475569}
.qa-project-record-preview-files{max-height:620px;padding:12px 16px 16px;background:#f8fafc}
.qa-project-record-preview-files>header{margin-bottom:8px}
.qa-project-record-preview-files>header span{font-size:11px}
.qa-project-attachment{margin:0 0 12px;border:1px solid #dbe3ed;border-radius:10px;background:#fff;overflow:hidden}
.qa-project-attachment>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#fff}
.qa-project-attachment>header strong,.qa-project-attachment>header small{display:block}
.qa-project-attachment>header strong{color:#172033;font-size:13px}
.qa-project-attachment>header small{margin-top:3px;color:#718198;font-size:11px}
.qa-project-attachment>header>span{flex:0 0 auto;color:#15803d;font-size:10px;font-weight:850}
.qa-project-sheet-tabs{display:flex;gap:3px;padding:7px 9px;border-bottom:1px solid #e2e8f0;background:#f8fafc;overflow-x:auto;scrollbar-width:thin}
.qa-project-sheet-tabs button{min-height:29px;padding:0 9px;border:1px solid transparent;border-radius:6px;background:transparent;color:#607188;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}
.qa-project-sheet-tabs button:hover{background:#eef4fb;color:#1d4ed8}
.qa-project-sheet-tabs button.is-active{border-color:#bfdbfe;background:#fff;color:#1d4ed8}
.qa-project-sheet-panel{display:none}
.qa-project-sheet-panel.is-active{display:block}
.qa-project-sheet-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px;border-bottom:1px solid #edf2f7}
.qa-project-sheet-caption strong{color:#334155;font-size:12px}
.qa-project-sheet-caption span{color:#718198;font-size:10px}
.qa-project-sheet-table-wrap{max-height:430px;overflow:auto;scrollbar-gutter:stable}
.qa-project-sheet-table-wrap table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;color:#334155;font-size:11px;font-variant-numeric:tabular-nums}
.qa-project-sheet-table-wrap th,.qa-project-sheet-table-wrap td{max-width:260px;padding:7px 9px;border-right:1px solid #edf2f7;border-bottom:1px solid #edf2f7;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qa-project-sheet-table-wrap thead th{position:sticky;z-index:2;top:0;background:#edf3f9;color:#334155;font-weight:850}
.qa-project-sheet-table-wrap tr>th:first-child{position:sticky;z-index:1;left:0;background:#f8fafc;color:#7a899d;text-align:right}
.qa-project-sheet-table-wrap thead th:first-child{z-index:3;background:#e7eef6}
.qa-project-sheet-table-wrap tbody tr:hover td{background:#f8fbff}
.qa-project-sheet-table-wrap tbody tr.is-match td,.qa-project-sheet-table-wrap tbody tr.is-match>th{background:#fff7d6}
.qa-project-document-reader{max-width:78ch;margin:0 auto;padding:18px 24px 30px;color:#334155}
.qa-project-document-reader h4{margin:22px 0 8px;color:#172033;font-size:15px;line-height:1.45}
.qa-project-document-reader h4:first-child{margin-top:0}
.qa-project-document-reader p{margin:0 0 9px;font-size:13px;line-height:1.8}
.qa-project-document-spacer{height:5px}
.qa-project-record-preview>footer{padding:10px 16px}
.qa-project-record-preview>footer>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-project-record-preview>footer>div{display:flex;flex:0 0 auto;gap:7px}
.qa-project-record-preview>footer button{border-color:#cbd5e1;background:#fff;color:#475569}
.qa-project-record-preview>footer button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}
.qa-project-record-preview button:focus-visible,.qa-local-result-card button:focus-visible{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}

html[data-theme="dark"] .qa-local-search-summary{border-color:#314158;background:transparent}
html[data-theme="dark"] .qa-local-search-summary strong,html[data-theme="dark"] .qa-local-result-match>strong{color:#e5edf8}
html[data-theme="dark"] .qa-local-search-summary em,html[data-theme="dark"] .qa-local-result-card header>span{border-color:#40506a;background:#172235;color:#cbd5e1}
html[data-theme="dark"] .qa-local-result-list,html[data-theme="dark"] .qa-local-result-card{border-color:#314158}
html[data-theme="dark"] .qa-local-result-card:hover{background:#142036}
html[data-theme="dark"] .qa-local-result-match,html[data-theme="dark"] .qa-project-record-match{border-color:#314a70;background:#152642}
html[data-theme="dark"] .qa-project-record-preview,html[data-theme="dark"] .qa-project-record-preview>header,html[data-theme="dark"] .qa-project-attachment,html[data-theme="dark"] .qa-project-attachment>header{border-color:#314158;background:#101a2b}
html[data-theme="dark"] .qa-project-record-preview-files,html[data-theme="dark"] .qa-project-sheet-tabs,html[data-theme="dark"] .qa-project-sheet-table-wrap tr>th:first-child{background:#142036}
html[data-theme="dark"] .qa-project-sheet-table-wrap thead th{background:#1c2d46;color:#dce6f2}
html[data-theme="dark"] .qa-project-sheet-table-wrap th,html[data-theme="dark"] .qa-project-sheet-table-wrap td{border-color:#314158;color:#cbd5e1}

@media(max-width:760px){
  .qa-project-record-preview{height:auto;max-height:94vh;grid-template-rows:auto auto minmax(160px,auto) auto}
  .qa-local-result-match{grid-template-columns:1fr}
  .qa-local-result-match>span{grid-row:auto;width:max-content}
  .qa-project-record-match{grid-template-columns:1fr}
  .qa-project-record-match>span{width:max-content}
  .qa-project-record-preview>footer>span{white-space:normal}
  .qa-project-record-preview>footer>div{width:100%;flex-direction:column}
}

/* 知识检索：Markdown 摘录按段落结构阅读，不再把标记符与正文挤成一行。 */
.qa-local-result-match>.qa-document-excerpt,.qa-local-result-match>.qa-document-render{grid-column:2;min-width:0}
.qa-local-result-match>.qa-document-excerpt{display:grid;gap:6px}
.qa-local-result-match>.qa-document-render{max-height:260px;overflow:auto}
.qa-document-excerpt-heading{display:block;margin-top:2px;color:#263b57;font-size:13px;line-height:1.55}
.qa-document-excerpt>p,.qa-document-excerpt-list>p{margin:0;color:#52637a;font-size:12px;line-height:1.7;white-space:pre-wrap}
.qa-document-excerpt-list{display:grid;grid-template-columns:6px minmax(0,1fr);gap:7px;align-items:start}
.qa-document-excerpt-list>span{width:4px;height:4px;margin-top:.65em;border-radius:50%;background:#7c8da5}
.qa-document-excerpt>small{color:#7a899d;font-size:10px;line-height:1.5}

/* 私人笔记保留资料目录；列表独立查询，新建和编辑在弹窗中完成。 */
.qa-personal-note-browser{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100%;min-height:0;background:#fff}
.qa-personal-note-browser-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px;border-bottom:1px solid #e2e8f0}
.qa-personal-note-browser-head strong,.qa-personal-note-browser-head small{display:block}
.qa-personal-note-browser-head strong{color:#172033;font-size:15px;line-height:1.4}
.qa-personal-note-browser-head small{margin-top:4px;color:#718198;font-size:11px;line-height:1.5}
.qa-personal-note-browser-head button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 11px;border:1px solid #2563eb;border-radius:8px;background:#2563eb;color:#fff;font:inherit;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap}
.qa-personal-note-browser-head button:hover{background:#1d4ed8}
.qa-personal-note-browser-head button svg{width:14px;height:14px}
.qa-personal-note-query{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid #e2e8f0;background:#fbfcfe}
.qa-personal-note-results{min-height:0;overflow:auto}
.qa-personal-note-results .qa-knowledge-card-index-row{padding:14px 16px}
.qa-personal-note-index-head{position:sticky;z-index:2;top:0;display:grid;gap:10px;padding:13px 14px;border-bottom:1px solid #e2e8f0;background:#fbfcfe}
.qa-personal-note-index-head>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}
.qa-personal-note-index-head>div:first-child>strong{color:#334155;font-size:12px}
.qa-personal-note-index-head button{min-height:30px;padding:0 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#315d8d;font:inherit;font-size:10px;font-weight:850;cursor:pointer}
.qa-personal-note-index-head button:hover{border-color:#93c5fd;background:#f8fbff;color:#1d4ed8}
.qa-personal-note-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;min-height:36px;padding:0 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#718198}
.qa-personal-note-search svg{width:14px;height:14px}
.qa-personal-note-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#172033;font:inherit;font-size:11px}
.qa-personal-note-search input::placeholder{color:#7a899d}
.qa-personal-note-search:focus-within{border-color:#60a5fa;outline:2px solid #bfdbfe;outline-offset:1px}
.qa-personal-note-filter{display:flex;align-items:center;justify-content:space-between;gap:10px}
.qa-personal-note-filter select{min-width:130px;min-height:32px;padding:0 28px 0 9px;border:1px solid #d8e1ed;border-radius:7px;background:#fff;color:#475569;font:inherit;font-size:10px;font-weight:750}
.qa-personal-note-filter>span{color:#8492a6;font-size:10px}
.qa-knowledge-card-index-row>span>em{padding:2px 6px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:9px;font-style:normal;font-weight:800}
.qa-personal-note-history-empty,.qa-personal-note-filter-empty{display:grid;gap:5px;padding:22px 14px;color:#64748b}
.qa-personal-note-filter-empty[hidden]{display:none}
.qa-personal-note-history-empty>span{font-size:12px;font-weight:850}
.qa-personal-note-history-empty>small,.qa-personal-note-filter-empty>small{font-size:10px;line-height:1.55}
.qa-personal-note-filter-empty>span{font-size:12px;font-weight:850}
.qa-personal-note-compose{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;overflow:hidden;background:#fff}
.qa-personal-note-compose>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 22px 14px;border-bottom:1px solid #e2e8f0}
.qa-personal-note-compose>header strong,.qa-personal-note-compose>header small{display:block}
.qa-personal-note-compose>header strong{color:#172033;font-size:18px;line-height:1.4}
.qa-personal-note-compose>header small{margin-top:4px;color:#718198;font-size:11px;line-height:1.55}
.qa-personal-note-compose>header>button{min-height:30px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:#a33f36;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.qa-personal-note-compose>header>button:hover{background:#fff5f3;color:#b42318}
.qa-personal-note-compose-fields{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px 16px;min-height:0;padding:18px 22px;overflow:auto}
.qa-personal-note-compose-fields>label{display:grid;align-content:start;gap:6px;min-width:0;color:#334155;font-size:11px;font-weight:850}
.qa-personal-note-compose-fields>label>span{display:flex;align-items:center;gap:5px}
.qa-personal-note-compose-fields>label b{color:#b42318}
.qa-personal-note-compose-fields>label small{color:#8492a6;font-size:10px;font-weight:600}
.qa-personal-note-compose-fields :is(input,select,textarea){width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font:inherit;font-size:13px}
.qa-personal-note-compose-fields :is(input,select){min-height:40px;padding:0 11px}
.qa-personal-note-compose-fields textarea{min-height:290px;padding:11px 12px;line-height:1.75;resize:vertical}
.qa-personal-note-compose-fields :is(input,select,textarea):focus{outline:2px solid #bfdbfe;outline-offset:1px;border-color:#60a5fa}
.qa-personal-note-title{grid-column:2}
.qa-personal-note-content,.qa-personal-note-tags,.qa-personal-note-compose-fields>.qa-personal-note-source{grid-column:1/-1}
.qa-personal-note-compose>.qa-personal-note-compose-fields .qa-personal-note-source{margin:0;padding-top:13px}
.qa-personal-note-compose>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 22px;border-top:1px solid #e2e8f0;background:#fbfcfe}
.qa-personal-note-compose>footer>span{color:#718198;font-size:10px;line-height:1.5}
.qa-personal-note-compose>footer>button{min-height:36px;padding:0 14px;border:1px solid #2563eb;border-radius:8px;background:#2563eb;color:#fff;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.qa-personal-note-compose>footer>button:hover{background:#1d4ed8}
.qa-personal-note-compose>footer>button:disabled{opacity:.55;cursor:wait}
.qa-personal-note-body{min-height:180px;padding-top:22px}
.qa-personal-note-body>p{margin:0;font-size:14px;line-height:1.9}
.qa-personal-note-source{display:grid;grid-template-columns:minmax(180px,.42fr) minmax(0,1fr);gap:18px;margin:12px 0 4px;padding:13px 0;border-top:1px solid #e2e8f0}
.qa-personal-note-source span,.qa-personal-note-source strong,.qa-personal-note-source small{display:block}
.qa-personal-note-source span{color:#718198;font-size:10px;font-weight:850}
.qa-personal-note-source strong{margin-top:4px;color:#334155;font-size:12px;line-height:1.5}
.qa-personal-note-source small{margin-top:4px;color:#94a3b8;font-size:10px;line-height:1.5}
.qa-personal-note-source>div:last-child{display:grid;justify-items:start;gap:8px}
.qa-personal-note-source p{display:-webkit-box;max-width:74ch;margin:0;overflow:hidden;color:#607188;font-size:11px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.qa-personal-note-source button,.qa-personal-note-empty button{min-height:32px;padding:0 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font:inherit;font-size:11px;font-weight:850;cursor:pointer}
.qa-personal-note-empty button.is-primary{border-color:#2563eb;background:#2563eb;color:#fff}
.qa-personal-note-editor{width:min(680px,94vw)}
.qa-personal-note-editor-source details{margin-top:8px;color:#475569;font-size:11px}
.qa-personal-note-editor-source summary{cursor:pointer;font-weight:800}
.qa-personal-note-editor-source details p{max-height:110px;margin:7px 0 0;overflow:auto;line-height:1.65;white-space:pre-wrap}
html[data-theme="dark"] .qa-document-excerpt-heading,html[data-theme="dark"] .qa-personal-note-source strong{color:#e5edf8}
html[data-theme="dark"] .qa-personal-note-source{border-color:#314158}
html[data-theme="dark"] .qa-knowledge-card-index-row>span>em{background:#223047;color:#cbd5e1}
html[data-theme="dark"] .qa-personal-note-index-head,html[data-theme="dark"] .qa-personal-note-compose,html[data-theme="dark"] .qa-personal-note-compose>footer{border-color:#314158;background:#111c2e}
html[data-theme="dark"] .qa-personal-note-index-head>div:first-child>strong,html[data-theme="dark"] .qa-personal-note-compose>header strong{color:#e5edf8}
html[data-theme="dark"] .qa-personal-note-browser,html[data-theme="dark"] .qa-personal-note-browser-head,html[data-theme="dark"] .qa-personal-note-query{border-color:#314158;background:#111c2e}
html[data-theme="dark"] .qa-personal-note-browser-head strong{color:#e5edf8}
html[data-theme="dark"] .qa-personal-note-search,html[data-theme="dark"] .qa-personal-note-filter select{border-color:#3c4e67;background:#101a2b;color:#dce7f5}
html[data-theme="dark"] .qa-personal-note-search input{color:#dce7f5}
html[data-theme="dark"] .qa-personal-note-compose-fields :is(input,select,textarea){border-color:#3c4e67;background:#101a2b;color:#dce7f5}

@media(max-width:760px){
  .qa-local-result-match>.qa-document-excerpt,.qa-local-result-match>.qa-document-render{grid-column:1}
  .qa-personal-note-browser-head{align-items:stretch;flex-direction:column}
  .qa-personal-note-query{grid-template-columns:1fr}
  .qa-personal-note-source{grid-template-columns:1fr}
  .qa-personal-note-compose-fields{grid-template-columns:1fr;padding:16px}
  .qa-personal-note-title,.qa-personal-note-content,.qa-personal-note-tags,.qa-personal-note-compose-fields>.qa-personal-note-source{grid-column:1}
  .qa-personal-note-compose>header,.qa-personal-note-compose>footer{padding-left:16px;padding-right:16px}
  .qa-personal-note-compose>footer{align-items:stretch;flex-direction:column}
  .qa-library-workspace.is-card-mode .qa-knowledge-card-workspace{grid-template-columns:1fr}
}

/* 组织主体台账：正式登记与业务记录识别分层，避免把候选对象误算为已登记对象。 */
.ap-coverage-entity-manager{display:grid;overflow:hidden;margin-top:14px;border:1px solid #dbe5f1;border-radius:12px;background:#fff}
.ap-coverage-entity-empty{display:grid;gap:4px;padding:18px}.ap-coverage-entity-empty strong{color:#26364d;font-size:13px}.ap-coverage-entity-empty span{color:#718096;font-size:11px;line-height:1.5}
.ap-coverage-entity-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-top:1px solid #e8edf3;border-bottom:1px solid #e8edf3;background:#f8fafc}.ap-coverage-entity-subhead strong{color:#52637a;font-size:11px}.ap-coverage-entity-subhead span{color:#8491a3;font-size:10px}
.ap-coverage-entity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;min-height:62px;padding:10px 12px;border-bottom:1px solid #edf1f5}.ap-coverage-entity-row:last-child{border-bottom:0}.ap-coverage-entity-row.is-detected{background:#fffdf7}.ap-coverage-entity-row>span{display:grid;min-width:0;gap:4px}.ap-coverage-entity-row strong,.ap-coverage-entity-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ap-coverage-entity-row strong{color:#26364d;font-size:12px}.ap-coverage-entity-row small{color:#718096;font-size:10px}
.ap-coverage-entity-actions{display:flex;gap:6px}.ap-coverage-entity-actions button{min-height:30px;padding:5px 9px;border:1px solid #d8e1ed;border-radius:8px;color:#334155;font:inherit;font-size:10px;font-weight:700;background:#fff;cursor:pointer}.ap-coverage-entity-actions button:hover{border-color:#9eb7dc;color:#125dcc;background:#f6f9ff}.ap-coverage-entity-actions button.is-danger{color:#a33f36}.ap-coverage-entity-actions button.is-danger:hover{border-color:#e6b7b1;background:#fff5f3}
@media(max-width:620px){.ap-coverage-entity-row{grid-template-columns:1fr}.ap-coverage-entity-actions{justify-content:flex-start}}

/* 审计资料归口：清单与已收资料共享一个项目级入口。 */
.pmat-view-tabs{display:flex;align-items:center;gap:4px;padding:0 20px;border-bottom:1px solid #e3e9f1;background:#fbfcfe}
.pmat-view-tabs button{display:flex;align-items:center;gap:7px;min-height:42px;padding:0 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:#607188;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.pmat-view-tabs button:hover{color:#1f4f91}.pmat-view-tabs button.is-active{border-bottom-color:#2e65c7;color:#193f78}
.pmat-view-tabs b{min-width:20px;padding:2px 6px;border-radius:999px;background:#edf2f8;color:#63748b;font-size:10px;text-align:center}.pmat-view-tabs .is-active b{background:#e4edff;color:#2859b3}
.pmat-row-actions .pmat-row-action-line{display:flex;align-items:center;gap:3px;white-space:nowrap}
.pmat-row-actions .pmat-row-action-line button,.pmat-row-actions .pmat-row-action-line .pmat-upload-label{display:inline-flex;width:auto;min-height:30px;padding:5px 8px;border:1px solid #d9e2ec;border-radius:7px;background:#fff;color:#40516a;font-size:10px;font-weight:800;text-align:center}
.pmat-row-actions .pmat-row-action-line .pmat-upload-label:hover,.pmat-row-actions .pmat-row-action-line button:hover{border-color:#a9bdd8;background:#f7f9fc;color:#174f99}
.pmat-registration-stamp{grid-template-columns:auto auto 1fr;align-items:center;gap:8px;padding:9px 11px;border:1px solid #e1e7ef;border-radius:8px;background:#f8fafc}.pmat-registration-stamp>span{color:#718198}.pmat-registration-stamp>strong{font-size:11px}.pmat-registration-stamp>small{justify-self:end;color:#8492a6;font-size:10px}
.pmat-received-table th:nth-child(1){width:31%}.pmat-received-table th:nth-child(2){width:15%}.pmat-received-table th:nth-child(3),.pmat-received-table th:nth-child(4){width:17%}.pmat-received-table td>strong,.pmat-received-table td>small{display:block}.pmat-received-table td>small{margin-top:4px;color:#8190a4;font-size:10px}.pmat-received-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eaf7f1;color:#147257;font-size:10px;font-weight:850}
.at-central-material-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 12px;padding:13px 16px;border:1px solid #dce5ef;border-radius:10px;background:#f8fafc}.at-central-material-entry>div:first-child{display:grid;gap:3px}.at-central-material-entry span{color:#6d7d92;font-size:10px;font-weight:800}.at-central-material-entry strong{color:#23334a;font-size:13px}.at-central-material-entry p{margin:0;color:#728197;font-size:10px;line-height:1.5}.at-central-material-entry>div:last-child{display:flex;gap:7px;flex:0 0 auto}
.at-program-material-center{display:grid;gap:2px;width:100%;padding:9px 10px;border:1px solid #dbe3ec;border-radius:8px;background:#fff;color:#334155;text-align:left;cursor:pointer}.at-program-material-center:hover{border-color:#a9bdd8;background:#f8fafc}.at-program-material-center strong{font-size:11px}.at-program-material-center small{color:#7d8ba0;font-size:9px}
@media(max-width:760px){.pmat-view-tabs{padding:0 12px}.at-central-material-entry{align-items:stretch;flex-direction:column}.at-central-material-entry>div:last-child{flex-wrap:wrap}.pmat-row-actions .pmat-row-action-line{flex-wrap:wrap}}

/* Project scoring assumptions stay with scope settings, outside the risk overview. */
.pra-project-score-method { margin: 20px 0; border-top: 1px solid var(--border-color, #dbe5f0); padding-top: 16px; }
.pra-project-score-method summary { cursor: pointer; font-weight: 600; }
.pra-project-score-method > p { max-width: 72ch; font-size: 13px; line-height: 1.7; color: var(--text-secondary, #526176); }
.pra-project-score-method .pra-field { display: grid; gap: 8px; margin-top: 16px; }
.pra-project-score-method-summary { padding: 8px 14px; }
.pra-project-score-method-summary p { display: grid; gap: 4px; font-size: 13px; line-height: 1.7; }
.pra-project-score-method-summary span { white-space: pre-wrap; overflow-wrap: anywhere; }

/* The enterprise map stays independent; the current project's control work has a clear entry. */
.ic-project-map-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:15px 18px;border:1px solid #cddbd8;border-radius:12px;background:#f4f8f6}
.ic-project-map-entry strong{display:block;color:#183b36;font-size:15px}
.ic-project-map-entry p{margin:4px 0 0;color:#526963;font-size:12px;line-height:1.5}
.ic-project-execution-mode .ic-project-scope-summary{grid-template-columns:minmax(0,1fr) repeat(3,auto)}
.ic-source-form label>small{color:#6b7890;font-size:11px;line-height:1.5}
.ic-context-project-risks{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 14px;margin:0;padding:12px;border:1px solid #d8e1ec;border-radius:8px}
.ic-context-project-risks legend{padding:0 5px;color:#46566f;font-size:12px;font-weight:700}
.ic-context-project-risks label{display:flex;align-items:center;gap:6px;max-width:100%;font-size:12px}
.ic-context-project-risks input{width:16px;min-height:16px;margin:0;accent-color:#3568e8}
html[data-theme="dark"] .ic-project-map-entry{border-color:#35524b;background:#1a2c29}
html[data-theme="dark"] .ic-project-map-entry strong{color:#e4f4ec}
html[data-theme="dark"] .ic-project-map-entry p{color:#a7c2b8}
@media(max-width:900px){.ic-project-execution-mode .ic-project-scope-summary{grid-template-columns:1fr 1fr}.ic-project-execution-mode .ic-project-scope-summary>div{grid-column:1/-1}}
@media(max-width:600px){.ic-project-map-entry{align-items:stretch;flex-direction:column}.ic-project-execution-mode .ic-project-scope-summary{grid-template-columns:1fr}}
.ic-project-deficiency-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #dce6f2;border-radius:13px;background:#fff}
.ic-project-deficiency-entry strong{display:block;color:#18324e;font-size:.91rem}
.ic-project-deficiency-entry p{margin:4px 0 0;color:#60758e;font-size:.75rem;line-height:1.55}
html[data-theme="dark"] .ic-project-deficiency-entry{background:#172235;border-color:#314158}
html[data-theme="dark"] .ic-project-deficiency-entry strong{color:#eef4ff}
html[data-theme="dark"] .ic-project-deficiency-entry p{color:#b7c5d8}
@media(max-width:760px){.ic-project-deficiency-entry{align-items:stretch;flex-direction:column}.ic-project-deficiency-entry .btn{width:100%}}
