/* V12.1 / b34 · 人类遗传资源合规提示 + 捐献告知书 */

.b34-comp {
  margin-bottom: 12px; border: 1px solid #f0c98a; border-left: 4px solid #d97706;
  border-radius: 8px; background: #fffbf3; padding: 10px 12px; font-size: 12px; line-height: 1.65;
}
.b34-comp-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.b34-comp-hd b { color: #92400e; }
.b34-risk { padding: 1px 8px; border-radius: 10px; font-size: 11px; color: #fff; }
.b34-risk-high { background: #dc2626; }
.b34-risk-medium { background: #d97706; }
.b34-risk-low { background: #0d9488; }
.b34-comp-title { font-weight: 600; color: #7c2d12; margin-bottom: 5px; }
.b34-comp-row { display: flex; gap: 8px; margin: 2px 0; }
.b34-comp-row > span { flex: 0 0 62px; color: #a16207; }
.b34-comp-row > div { flex: 1; color: #78350f; }
.b34-donate { font-weight: 600; color: #b91c1c !important; }
.b34-comp-note { margin-top: 6px; color: #92400e; font-size: 11px; }
.b34-comp-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.b34-gate-state { font-size: 12px; color: #94a3b8; }
.b34-gate-state.ok { color: #047857; font-weight: 600; }
.b34-gate-state.bad { color: #dc2626; font-weight: 600; }

.b34-btn {
  border: 1px solid #12b3a6; background: #12b3a6; color: #fff; border-radius: 6px;
  padding: 7px 13px; font-size: 12px; cursor: pointer;
}
.b34-btn:hover { filter: brightness(.96); }
.b34-btn.ghost { background: #fff; color: #0b8f85; }
.b34-btn.primary { background: #b91c1c; border-color: #b91c1c; }
.b34-btn:disabled { opacity: .55; cursor: not-allowed; }

.b34-wrap { padding: 4px 2px; }
.b34-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.b34-head h2 { font-size: 18px; margin: 0 0 4px; }
.b34-head p { font-size: 12px; color: #64748b; margin: 0; }
.b34-badge { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: #eef8f7; color: #0b8f85; }
.b34-redline {
  margin: 12px 0; padding: 9px 12px; border-radius: 8px; font-size: 12px; line-height: 1.7;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 600;
}
.b34-tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.b34-tpl {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.7;
  background: #fff; color: #475569;
}
.b34-tpl b { display: block; font-size: 14px; color: #0f172a; margin-bottom: 2px; }
.b34-tpl > span { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 8px; }
.b34-tpl .b34-btn { margin-top: 10px; }
.b34-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.b34-bar input, .b34-bar select {
  border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 9px; font-size: 12px;
}
.b34-section-hd { font-size: 14px; font-weight: 600; margin: 16px 0 8px; color: #0f172a; }
.b34-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
.b34-table th, .b34-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.b34-table th { background: #f8fafc; color: #475569; }
.b34-table button {
  border: none; background: none; color: #0b8f85; cursor: pointer; font-size: 12px; margin-right: 8px;
}
.b34-table button:hover { text-decoration: underline; }
.b34-st { padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #f1f5f9; color: #475569; }
.b34-st-signed { background: #dcfce7; color: #166534; }
.b34-st-archived { background: #dbeafe; color: #1e40af; }
.b34-st-revoked { background: #fee2e2; color: #991b1b; }
.b34-empty { padding: 22px; text-align: center; color: #94a3b8; font-size: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; }
.b34-rules { margin: 12px 0; padding: 10px 12px; background: #fffbf3; border: 1px solid #f0c98a; border-radius: 8px; }
.b34-rule { font-size: 12px; line-height: 1.65; padding: 6px 0; border-bottom: 1px dashed #f0c98a; color: #78350f; }
.b34-rule:last-child { border-bottom: none; }
.b34-rule b { color: #92400e; }

.b34-mask {
  position: fixed; inset: 0; z-index: 99000; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.b34-modal {
  width: min(880px, 100%); max-height: 88vh; overflow: auto; background: #fff;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}
.b34-modal-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid #e2e8f0; font-size: 15px;
}
.b34-modal-hd span { cursor: pointer; font-size: 20px; color: #94a3b8; }
.b34-modal-bd { padding: 14px 18px; }
.b34-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.b34-form-grid label { font-size: 12px; color: #475569; display: block; }
.b34-form-grid label i { color: #dc2626; font-style: normal; }
.b34-form-grid input { width: 100%; margin-top: 4px; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 9px; font-size: 12px; }
.b34-span2 { grid-column: 1 / -1; }
.b34-sign-grid { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cbd5e1; }
.b34-modal-ft {
  display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px;
  border-top: 1px solid #e2e8f0;
}
@media (max-width: 860px) {
  .b34-tpl-grid, .b34-form-grid { grid-template-columns: 1fr; }
  .b34-span2 { grid-column: auto; }
}
