/* ============================================================================
 * Arbiter AI (AI 客观裁判系统) — 核心样式表
 * 域名: arbiter.sinogenomics.com / 1155.sinogenomics.com
 * ========================================================================== */

:root {
  --arb-bg: #f8fafc;
  --arb-panel: #ffffff;
  --arb-line: #e2e8f0;
  --arb-line-light: #f1f5f9;
  --arb-text-primary: #0f172a;
  --arb-text-secondary: #475569;
  --arb-text-muted: #64748b;
  
  --arb-navy: #0f172a;
  --arb-navy-light: #1e293b;
  --arb-brand: #2563eb;
  --arb-brand-dark: #1d4ed8;
  --arb-brand-light: #eff6ff;
  --arb-brand-border: #bfdbfe;
  
  --arb-gold: #d97706;
  --arb-gold-light: #fef3c7;
  --arb-gold-border: #fde68a;
  
  --arb-success: #16a34a;
  --arb-success-light: #f0fdf4;
  --arb-success-border: #bbf7d0;
  
  --arb-danger: #dc2626;
  --arb-danger-light: #fef2f2;
  --arb-danger-border: #fecaca;
  
  --arb-radius-sm: 6px;
  --arb-radius-md: 10px;
  --arb-radius-lg: 16px;
  --arb-radius-full: 9999px;
  
  --arb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --arb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --arb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* 顶部工作台全局导航卡片 */
.arb-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--arb-radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.arb-hero-banner::after {
  content: "⚖️";
  position: absolute;
  right: 24px;
  bottom: -20px;
  font-size: 140px;
  opacity: 0.08;
  pointer-events: none;
}

.arb-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.arb-hero-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.arb-hero-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.arb-hero-text h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.arb-hero-text p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: #94a3b8;
}

.arb-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arb-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--arb-radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arb-pill.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.arb-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* 主工作台 Tab 导航 */
.arb-tabs-nav {
  display: flex;
  gap: 8px;
  background: var(--arb-panel);
  padding: 6px;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  margin-bottom: 20px;
  overflow-x: auto;
  box-shadow: var(--arb-shadow-sm);
}

.arb-tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--arb-text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--arb-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.arb-tab-btn:hover {
  background: var(--arb-line-light);
  color: var(--arb-text-primary);
}

.arb-tab-btn.active {
  background: var(--arb-brand);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* 工作台面板 */
.arb-tab-panel {
  display: none;
  animation: arbFadeIn 0.2s ease-in-out;
}

.arb-tab-panel.active {
  display: block;
}

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

/* 卡片容器 */
.arb-card {
  background: var(--arb-panel);
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--arb-shadow-sm);
}

.arb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--arb-line-light);
  flex-wrap: wrap;
  gap: 12px;
}

.arb-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--arb-text-primary);
  margin: 0;
}

.arb-card-subtitle {
  font-size: 13px;
  color: var(--arb-text-muted);
  margin: 4px 0 0 0;
}

/* 快速预设按钮组 */
.arb-preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: var(--arb-radius-md);
  margin-bottom: 18px;
}

.arb-preset-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--arb-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.arb-preset-btn {
  background: #fff;
  border: 1px solid var(--arb-line);
  color: var(--arb-text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--arb-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.arb-preset-btn:hover {
  background: var(--arb-brand-light);
  border-color: var(--arb-brand-border);
  color: var(--arb-brand);
}

/* 表单输入组件 */
.arb-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.arb-party-box {
  background: #f8fafc;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  padding: 16px;
  position: relative;
  transition: border-color 0.15s ease;
}

.arb-party-box:focus-within {
  border-color: var(--arb-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.arb-party-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.arb-party-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--arb-radius-full);
}

.arb-tag-a { background: #dbeafe; color: #1d4ed8; }
.arb-tag-b { background: #fef3c7; color: #b45309; }
.arb-tag-c { background: #e0e7ff; color: #4338ca; }

.arb-input-group {
  margin-bottom: 12px;
}

.arb-input-group:last-child {
  margin-bottom: 0;
}

.arb-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--arb-text-secondary);
  margin-bottom: 5px;
}

.arb-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-sm);
  font-size: 13.5px;
  color: var(--arb-text-primary);
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.arb-input:focus {
  border-color: var(--arb-brand);
}

.arb-textarea {
  width: 100%;
  height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--arb-text-primary);
  background: #ffffff;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.arb-textarea:focus {
  border-color: var(--arb-brand);
}

/* 主操作按钮 */
.arb-action-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--arb-line-light);
}

.arb-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: var(--arb-radius-md);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.arb-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.arb-btn-secondary {
  background: #ffffff;
  color: var(--arb-text-secondary);
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.arb-btn-secondary:hover {
  background: var(--arb-line-light);
  color: var(--arb-text-primary);
}

/* 裁决结果展示区域 */
.arb-verdict-box {
  margin-top: 24px;
  background: #ffffff;
  border: 2px solid var(--arb-brand);
  border-radius: var(--arb-radius-lg);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
  display: none;
}

.arb-verdict-box.active {
  display: block;
  animation: arbFadeIn 0.3s ease;
}

.arb-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--arb-line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.arb-verdict-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 6px 14px;
  border-radius: var(--arb-radius-full);
  font-size: 13px;
  font-weight: 700;
}

.arb-verdict-meta {
  font-size: 12px;
  color: var(--arb-text-muted);
  font-family: var(--mono);
}

/* 责任划分比例进度条 */
.arb-ratio-container {
  background: #f8fafc;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.arb-ratio-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--arb-text-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arb-ratio-bar-wrap {
  height: 24px;
  border-radius: var(--arb-radius-full);
  overflow: hidden;
  display: flex;
  background: #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.arb-ratio-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.arb-seg-a { background: #2563eb; }
.arb-seg-b { background: #d97706; }
.arb-seg-c { background: #4f46e5; }
.arb-seg-d { background: #059669; }

.arb-ratio-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.arb-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--arb-text-secondary);
}

.arb-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* 裁决书内容网格 */
.arb-verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.arb-v-card {
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  padding: 16px;
  background: #fbfcfe;
}

.arb-v-card.highlight {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.arb-v-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--arb-text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arb-v-card-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--arb-text-secondary);
}

/* 贡献度评分成员卡片 */
.arb-member-card {
  background: #ffffff;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--arb-shadow-sm);
  position: relative;
}

.arb-member-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.arb-member-name-input {
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-bottom: 1px dashed var(--arb-line);
  padding: 2px 4px;
  outline: none;
  color: var(--arb-text-primary);
  width: 180px;
}

.arb-member-name-input:focus {
  border-bottom-color: var(--arb-brand);
}

.arb-metric-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.arb-metric-name {
  font-size: 12.5px;
  color: var(--arb-text-secondary);
  font-weight: 500;
}

.arb-slider {
  width: 100%;
  accent-color: var(--arb-brand);
  cursor: pointer;
}

.arb-metric-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--arb-text-primary);
  text-align: right;
}

/* 打印裁决文书样式 */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .top, nav.side, .arb-tabs-nav, .arb-preset-bar, .arb-action-area, button { display: none !important; }
  .layout { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
  .arb-verdict-box { display: block !important; border: 1px solid #000 !important; box-shadow: none !important; }
}

/* ============================================================================
 * 语音与录音输入专属样式 (Voice Recording & Audio Input)
 * ========================================================================== */

.arb-voice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: var(--arb-radius-sm);
  padding: 6px 10px;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.arb-voice-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arb-voice-btn {
  background: #ffffff;
  border: 1px solid var(--arb-line);
  color: var(--arb-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--arb-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.arb-voice-btn:hover {
  background: var(--arb-brand-light);
  border-color: var(--arb-brand-border);
  color: var(--arb-brand);
}

.arb-voice-btn.recording {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  animation: arbRecPulse 1.2s infinite;
}

@keyframes arbRecPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.arb-rec-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
}

.arb-rec-status.active {
  display: flex;
}

.arb-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
  animation: arbBlink 0.8s infinite alternate;
}

@keyframes arbBlink {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.3; transform: scale(0.85); }
}

/* 声波动画 */
.arb-wave-visualizer {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  padding: 0 4px;
}

.arb-wave-bar {
  width: 3px;
  height: 100%;
  background: #2563eb;
  border-radius: 2px;
  animation: arbWave 0.9s infinite ease-in-out alternate;
}

.arb-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.arb-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.arb-wave-bar:nth-child(4) { animation-delay: 0.45s; }
.arb-wave-bar:nth-child(5) { animation-delay: 0.2s; }
.arb-wave-bar:nth-child(6) { animation-delay: 0.35s; }

@keyframes arbWave {
  0% { height: 4px; opacity: 0.4; }
  100% { height: 16px; opacity: 1; }
}

/* 音频播放器容器 */
.arb-audio-player-box {
  display: none;
  background: #f8fafc;
  border: 1px solid #bfdbfe;
  border-radius: var(--arb-radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.arb-audio-player-box.active {
  display: flex;
}

.arb-audio-player-box audio {
  height: 32px;
  flex: 1;
  min-width: 200px;
  outline: none;
}

.arb-audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #1e40af;
  font-weight: 600;
  background: #dbeafe;
  padding: 3px 8px;
  border-radius: var(--arb-radius-full);
}

/* 动态多方当事人样式 (N-Party System) */
.arb-dynamic-parties {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .arb-dynamic-parties {
    grid-template-columns: 1fr 1fr;
  }
}
.arb-party-box.dynamic-party {
  border-top: 4px solid #8b5cf6;
  position: relative;
  animation: arbFadeIn 0.25s ease;
}
.arb-tag-dynamic {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.arb-party-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--arb-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.arb-party-remove-btn:hover {
  background: #fee2e2;
}

/* 双轨语义透视对照器样式 (Emotion vs Fact Semantic Heatmap Diff) */
.arb-diff-container {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-md);
  padding: 14px;
}
.arb-diff-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.arb-diff-btn {
  background: #fff;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--arb-text-secondary);
}
.arb-diff-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.arb-tag-emotion {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 4px;
  padding: 1px 5px;
  text-decoration: line-through;
  font-weight: 500;
}
.arb-tag-fact {
  background: #dcfce7;
  color: #15803d;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
}
.arb-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 600;
}

/* 时间轴证据链与因果时序悖论检测器样式 (Timeline & Paradox Detector) */
.arb-timeline-box {
  margin-top: 14px;
  position: relative;
  padding-left: 24px;
}
.arb-timeline-box::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #cbd5e1;
}
.arb-timeline-item {
  position: relative;
  margin-bottom: 16px;
}
.arb-timeline-item:last-child {
  margin-bottom: 0;
}
.arb-timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #93c5fd;
}
.arb-timeline-dot.paradox {
  background: #ef4444;
  box-shadow: 0 0 0 2px #fca5a5;
  animation: agp 1.2s infinite;
}
.arb-timeline-time {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 2px;
}
.arb-timeline-content {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--arb-line);
  border-radius: var(--arb-radius-sm);
  padding: 8px 12px;
  line-height: 1.6;
}
.arb-timeline-paradox-alert {
  background: #fff1f2;
  border-left: 3px solid #f43f5e;
  padding: 6px 10px;
  margin-top: 6px;
  font-size: 12px;
  color: #9f1239;
  border-radius: 0 var(--arb-radius-sm) var(--arb-radius-sm) 0;
  font-weight: 500;
}

/* 逻辑谬误与认知偏差诊断矩阵样式 (Fallacy Diagnostic Matrix) */
.arb-fallacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.arb-fallacy-card {
  background: #fff;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: var(--arb-radius-sm);
  padding: 12px;
}
.arb-fallacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.arb-fallacy-tag {
  background: #ffedd5;
  color: #c2410c;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
}
.arb-fallacy-party {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.arb-fallacy-quote {
  font-size: 12.5px;
  color: #1e293b;
  background: #f8fafc;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 6px 0;
  font-style: italic;
  border-left: 2px solid #cbd5e1;
}
.arb-fallacy-critique {
  font-size: 12px;
  color: #9a3412;
  line-height: 1.5;
}

/* 联盟敏感度与反事实崩溃模拟器样式 (Coalition Impact Simulator) */
.arb-coalition-box {
  margin-top: 16px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: var(--arb-radius-md);
  padding: 18px;
}
.arb-sim-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.arb-sim-btn {
  background: #fff;
  border: 1px solid #f472b6;
  color: #db2777;
  padding: 6px 14px;
  border-radius: var(--arb-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.arb-sim-btn.active {
  background: #db2777;
  color: #fff;
  box-shadow: 0 4px 10px rgba(219, 39, 119, 0.25);
}
.arb-sim-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.arb-sim-metric-card {
  background: #fff;
  border: 1px solid #fce7f3;
  border-radius: var(--arb-radius-sm);
  padding: 12px;
  text-align: center;
}
.arb-sim-metric-num {
  font-size: 24px;
  font-weight: 800;
  color: #be185d;
  font-family: var(--mono);
}
.arb-sim-metric-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* 双盲去偏见评审模式样式 (Blind Audition / Bias-Free Mode) */
.arb-blind-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  user-select: none;
  transition: all 0.15s ease;
}
.arb-blind-switch:hover {
  background: #f1f5f9;
}
.arb-blind-switch.active {
  background: #1e1b4b;
  color: #e0e7ff;
  border-color: #4338ca;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.35);
}
.arb-blind-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  padding: 4px 10px;
  border-radius: var(--arb-radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* 哈佛谈判项目 BATNA 与妥协让步阶梯样式 (BATNA & Concession Ladder) */
.arb-batna-box {
  margin-top: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--arb-radius-md);
  padding: 16px;
}
.arb-ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.arb-ladder-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--arb-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.arb-ladder-card.rec {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
  border-top: 4px solid #10b981;
}
.arb-ladder-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.arb-ladder-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  flex: 1;
}
.arb-ladder-btn {
  margin-top: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--arb-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  text-align: center;
  transition: all 0.15s ease;
}
.arb-ladder-btn:hover {
  background: #e2e8f0;
}
.arb-batna-cost-box {
  background: #fff1f2;
  border-left: 3px solid #f43f5e;
  padding: 10px 14px;
  margin-top: 12px;
  border-radius: 0 var(--arb-radius-sm) var(--arb-radius-sm) 0;
  font-size: 12.5px;
  color: #9f1239;
  line-height: 1.6;
}

/* 司法级电子防伪公章与验真样式 (Judicial-Grade Seal & Verification) */
.arb-seal-container {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-right: 30px;
}
.arb-official-seal {
  width: 120px;
  height: 120px;
  border: 3px solid #dc2626;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-family: "Songti SC", "SimSun", serif;
  transform: rotate(-10deg);
  box-shadow: inset 0 0 0 1.5px #dc2626;
  position: relative;
  background: rgba(254, 226, 226, 0.08);
  user-select: none;
}
.arb-seal-star {
  font-size: 22px;
  line-height: 1;
  color: #dc2626;
}
.arb-seal-text-top {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
}
.arb-seal-text-mid {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 2px 0;
}
.arb-seal-text-bot {
  font-size: 8.5px;
  letter-spacing: 0.5px;
}
.arb-verify-badge-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-family: var(--mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--arb-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.arb-verify-badge-btn:hover {
  background: #dbeafe;
}

/* 打印排版样式 (A4 Judicial Print Format) */
@media print {
  body { background: #fff !important; color: #000 !important; font-size: 12pt !important; }
  .arb-tabs-nav, .arb-preset-bar, .arb-action-area, .arb-form-grid,
  .arb-input-group, header.top, footer.foot, .arb-voice-btn-group,
  .arb-diff-tabs, .arb-party-remove-btn, .arb-hero-wrap, nav, button {
    display: none !important;
  }
  .arb-content-wrap { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  .arb-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .arb-verdict-box { display: block !important; border: 2px solid #000 !important; box-shadow: none !important; }
  .arb-verdict-header { border-bottom: 2px solid #000 !important; }
}

/* 经济损失与法定减损清算器样式 (Damages & Mitigation Calculator) */
.arb-damages-box {
  margin-top: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--arb-radius-md);
  padding: 16px;
}
.arb-damages-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0;
  background: #fff;
  border-radius: var(--arb-radius-sm);
  overflow: hidden;
}
.arb-damages-table th {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
}
.arb-damages-table td {
  padding: 8px 12px;
  border-top: 1px solid #fef3c7;
  color: #334155;
}
.arb-net-settlement-bar {
  background: #78350f;
  color: #fef3c7;
  border-radius: var(--arb-radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 8px;
}

/* 争端紧急冷静舱与非暴力沟通向导样式 (De-escalation Cool-down & NVC) */
.arb-nvc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--arb-radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.arb-nvc-btn {
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: var(--arb-radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.arb-nvc-btn:hover {
  background: #0f766e;
}
.arb-nvc-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.arb-nvc-modal.active {
  display: flex;
}
.arb-nvc-dialog {
  background: #fff;
  border-radius: var(--arb-radius-lg);
  max-width: 620px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: arbFadeIn 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.arb-nvc-step {
  margin-bottom: 12px;
  background: #f8fafc;
  border-radius: var(--arb-radius-sm);
  padding: 10px 12px;
  border-left: 3px solid #0d9488;
}
.arb-nvc-step-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #0d9488;
  margin-bottom: 2px;
}
.arb-nvc-step-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}
