.party_manage_test {
  --pmt-bg: #f5f7f8;
  --pmt-panel: #ffffff;
  --pmt-soft: #f9fafb;
  --pmt-line: #dfe5ea;
  --pmt-text: #1f2933;
  --pmt-muted: #657282;
  --pmt-strong: #111827;
  --pmt-blue: #245fc7;
  --pmt-green: #157a55;
  --pmt-amber: #a86600;
  --pmt-red: #bd3b2f;
  display: grid;
  --pmt-dock-safe-area: 88px;
  grid-template-columns: 320px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--pmt-bg);
  color: var(--pmt-text);
}

.party_manage_test.is-module-page {
  user-select: none;
  -webkit-user-select: none;
}

.party_manage_test.is-module-page input,
.party_manage_test.is-module-page textarea,
.party_manage_test.is-module-page select,
.party_manage_test.is-module-page [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

.pmt_category_column,
.pmt_subject_column {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--pmt-line);
  background: #fff;
}

.pmt_category_column {
  display: none;
}

.pmt_subject_header {
  min-height: 68px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--pmt-line);
  background: #fbfcfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pmt_subject_header_title_line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pmt_subject_header h2 { margin: 0; color: var(--pmt-strong); font-size: 18px; line-height: 1.2; }
.pmt_subject_header_actions { display: flex; align-items: center; gap: 5px; }
.pmt_subject_header_tool { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: #526274; cursor: pointer; }
.pmt_subject_header_tool:hover, .pmt_subject_header_tool:focus-visible { background: #eef4ff; color: var(--pmt-blue); outline: none; }
.pmt_subject_header_tool[aria-expanded="true"] { background: #eaf2ff; color: var(--pmt-blue); }
.pmt_subject_header_tool svg { width: 18px; height: 18px; }
.pmt_global_party_file_tool { width: auto; padding: 0 7px; gap: 4px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.pmt_global_party_governance_tool { width: auto; padding: 0 7px; gap: 4px; white-space: nowrap; font-size: 12px; font-weight: 700; }

.pmt_material_governance_modal[hidden] { display: none; }
.pmt_material_governance_modal { position: fixed; inset: 0; z-index: 1700; display: grid; place-items: center; padding: 22px; }
/* 全屏文件预览必须覆盖治理弹窗，治理内容作为返回背景保留。 */
.pmt_public_preview_modal { z-index: 12000 !important; }
.pmt_party_material_compose_btn.is-loading { position: relative; min-width: 92px; cursor: wait; opacity: .82; }
.pmt_party_material_compose_btn.is-loading::before { content: ""; width: 12px; height: 12px; margin-right: 6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: pmt_governance_preview_spin .72s linear infinite; }
@keyframes pmt_governance_preview_spin { to { transform: rotate(360deg); } }
.pmt_material_governance_backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .38); }
.pmt_material_governance_panel { position: relative; width: min(1080px, 96vw); max-height: min(780px, 92vh); overflow: hidden; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); border: 1px solid #d8e2ef; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); }
.pmt_material_governance_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid #e5eaf1; }
.pmt_material_governance_head h3 { margin: 4px 0 3px; color: #0f172a; font-size: 18px; }
.pmt_material_governance_head span { color: #64748b; font-size: 12px; }
.pmt_material_governance_head_actions { display: flex; align-items: center; gap: 7px; }
.pmt_material_governance_summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid #e5eaf1; color: #475569; font-size: 12px; }
.pmt_material_governance_summary strong { color: #0f172a; }
.pmt_material_governance_tabs { display: flex; gap: 4px; padding: 8px 20px 0; border-bottom: 1px solid #e5eaf1; background: #fff; }
.pmt_material_governance_tab { border: 0; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0; background: transparent; padding: 9px 11px; color: #64748b; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.pmt_material_governance_tab:hover, .pmt_material_governance_tab:focus-visible { background: #f1f5f9; color: #1d4ed8; outline: none; }
.pmt_material_governance_tab.is-active { border-bottom-color: #2563eb; color: #1d4ed8; }
.pmt_material_governance_tab em { display: inline-flex; min-width: 18px; justify-content: center; margin-left: 4px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 10px; font-style: normal; }
.pmt_material_governance_tab.is-active em { background: #dbeafe; color: #1d4ed8; }
.pmt_material_governance_body { overflow: auto; padding: 14px 20px 20px; }
.pmt_material_governance_group { margin-bottom: 16px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.pmt_material_governance_group_head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 13px; background: #f8fafc; }
.pmt_material_governance_group_head strong { color: #0f172a; font-size: 13px; }
.pmt_material_governance_group_head small { color: #64748b; font-size: 11px; }
.pmt_material_governance_item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 13px; border-top: 1px solid #edf2f7; }
.pmt_material_governance_item strong { display: block; overflow: hidden; color: #1e293b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pmt_material_governance_item small { display: block; margin-top: 3px; color: #64748b; font-size: 11px; line-height: 1.45; }
.pmt_material_governance_item small code { color: #475569; font-size: 10px; }
.pmt_material_governance_item_actions { display: flex; align-items: center; gap: 6px; }
.pmt_material_governance_item.is-primary { background: #f0fdf4; }
.pmt_material_governance_badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 800; }
.pmt_material_governance_source_badge { display: inline-flex; align-items: center; padding: 6px 8px; border: 1px solid #dbeafe; border-radius: 7px; background: #eff6ff; color: #1d4ed8; font-size: 10px; font-weight: 800; white-space: nowrap; }
@media (max-width: 760px) {
  .pmt_material_governance_modal { padding: 8px; }
  .pmt_material_governance_panel { width: 100%; max-height: 96vh; }
  .pmt_material_governance_head { flex-direction: column; }
  .pmt_material_governance_head_actions { width: 100%; justify-content: flex-end; }
  .pmt_material_governance_item { grid-template-columns: 1fr; }
  .pmt_material_governance_item_actions { justify-content: flex-end; }
}

.pmt_subject_list_title_row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 10px; }
.pmt_filter_button, .pmt_filter_reset { border: 1px solid #cbd8ea; border-radius: 7px; background: #fff; color: var(--pmt-blue); padding: 5px 10px; font-weight: 700; cursor: pointer; }
.pmt_filter_button[aria-expanded="true"] { background: #eef4ff; border-color: #8fb3ff; }
.pmt_party_filter_options { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.pmt_party_filter_options::-webkit-scrollbar { display: none; }
.pmt_party_filter_options > * { flex: 0 0 auto; white-space: nowrap; }
.pmt_party_category_options { gap: 0; }
.pmt_party_category_option { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 56px; min-height: 30px; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #526274; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pmt_party_category_option:hover, .pmt_party_category_option:focus-visible { border-color: #abc5ef; background: #f6f9ff; color: var(--pmt-blue); outline: none; }
.pmt_party_category_option.is-active { border-color: #8fb3ef; background: #eaf2ff; color: var(--pmt-blue); }
.pmt_party_category_option.is-drop-target { background: #dceaff; color: var(--pmt-blue); box-shadow: inset 0 0 0 1px #80aaf2; }
.pmt_party_category_option.is-recycle { color: #9c4b47; }
.pmt_party_category_option em { color: #7a8da5; font-style: normal; font-weight: 700; }
.pmt_party_filter_panel { margin: 0; padding: 8px 12px 10px; border: 0; border-bottom: 1px solid #e5ecf5; border-radius: 0; background: #fff; display: grid; gap: 8px; }
.pmt_party_filter_panel[hidden] { display: none; }
.pmt_party_filter_row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 30px; font-size: 12px; color: var(--pmt-muted); }
.pmt_party_filter_section { gap: 5px; padding-top: 0; }
.pmt_party_filter_row > span:first-child { color: var(--pmt-muted); font-weight: 700; }
.pmt_party_search { align-items: center; }
.pmt_party_search input { min-width: 0; padding: 6px 8px; border: 1px solid #cbd8ea; border-radius: 6px; background: #fff; color: var(--pmt-text); }
.pmt_party_filter_group { gap: 8px; padding-top: 0; }
.pmt_party_filter_group label { display: inline-flex; align-items: center; gap: 4px; color: var(--pmt-text); }
.pmt_party_relation_option { min-height: 30px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: #526274; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pmt_party_relation_option { border: 1px solid transparent; }
.pmt_party_relation_option:hover, .pmt_party_relation_option:focus-visible { border-color: #abc5ef; background: #f6f9ff; color: var(--pmt-blue); outline: none; }
.pmt_party_relation_option.is-active { border-color: #8fb3ef; background: #eaf2ff; color: var(--pmt-blue); }
.pmt_subject_health_tabs { display: flex; flex-wrap: nowrap; gap: 5px; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.pmt_subject_health_tabs::-webkit-scrollbar { display: none; }
.pmt_party_filter_panel .pmt_subject_health_tab { flex: 0 0 auto; min-height: 30px; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; }
.pmt_party_filter_panel .pmt_subject_health_tab:hover,
.pmt_party_filter_panel .pmt_subject_health_tab:focus-visible { border-color: #abc5ef; background: #f6f9ff; outline: none; }
.pmt_party_filter_panel .pmt_subject_health_tab.is-active { border-color: #8fb3ef; background: #eaf2ff; color: var(--pmt-blue); box-shadow: none; }

.pmt_column_header,
.pmt_topbar,
.pmt_panel_head,
.pmt_panel_subhead,
.pmt_subject_meta,
.pmt_hit_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pmt_column_header {
  min-height: 86px;
  padding: 18px;
  border-bottom: 1px solid var(--pmt-line);
}

.pmt_eyebrow {
  margin: 0 0 5px;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmt_taxonomy_label {
  color: var(--pmt-red);
}

.pmt_list_label {
  margin: 10px 12px 0;
  font-size: 12px;
  font-weight: 700;
}

.pmt_panel .pmt_list_label {
  margin: 0;
}

.pmt_column_header h2,
.pmt_topbar h1,
.pmt_panel_head h3,
.pmt_panel_subhead h4 {
  margin: 0;
  color: var(--pmt-strong);
  letter-spacing: 0;
}

.pmt_column_header h2 {
  font-size: 18px;
}

.pmt_column_title_line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pmt_column_title_line h2 {
  min-width: 0;
  white-space: nowrap;
}

.pmt_header_sync_status {
  min-height: 20px;
  margin-top: 5px;
  padding: 2px 7px;
  font-size: 11px;
}

.pmt_topbar h1 {
  font-size: 20px;
}

.pmt_panel_head h3 {
  font-size: 16px;
}

.pmt_panel_subhead h4 {
  font-size: 14px;
}

.pmt_count,
.pmt_badge,
.pmt_subject_tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pmt_count {
  min-height: 20px;
  margin-top: 2px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f3f5f7;
  color: #475569;
  font-size: 11px;
}

.pmt_badge {
  border: 1px solid var(--pmt-line);
  background: #fff;
  color: var(--pmt-muted);
}

.pmt_badge.is-lock {
  border-color: #f1c7c0;
  background: #fff5f3;
  color: var(--pmt-red);
}

.pmt_badge.is-safe {
  border-color: #b9dfcc;
  background: #f0fbf5;
  color: var(--pmt-green);
}

.pmt_badge.is-warn {
  border-color: #f0d6a8;
  background: #fff8e8;
  color: var(--pmt-amber);
}

.pmt_group_tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px 12px 12px;
}

.pmt_group_tab,
.pmt_subject_card,
.pmt_material_editor select {
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pmt-text);
}

.pmt_group_tab {
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.pmt_group_marker {
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: #e5e7eb;
}

.pmt_group_tab.is-active .pmt_group_marker {
  background: #2563eb;
}

.pmt_group_name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_group_count {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.pmt_group_tab.is-active {
  border-color: #bed0f5;
  background: #eef4ff;
  color: var(--pmt-blue);
}

.pmt_group_tab.is-drop-target {
  border-color: #8fb3ff;
  background: #e8f0ff;
  box-shadow: inset 0 0 0 1px #8fb3ff;
}

.pmt_group_tab.is-recycle.is-active {
  border-color: #f1c7c0;
  background: #fff5f3;
  color: var(--pmt-red);
}

.pmt_group_tab.is-recycle.is-drop-target {
  border-color: #e49a8f;
  background: #fff0ed;
  box-shadow: inset 0 0 0 1px #e49a8f;
}

.pmt_subject_list {
  display: grid;
  gap: 6px;
  padding: 8px 12px calc(12px + var(--pmt-dock-safe-area));
  overflow: auto;
  scrollbar-gutter: stable;
}

.pmt_subject_card {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.pmt_subject_card:hover,
.pmt_subject_card.is-active {
  border-color: #bed0f5;
  background: #f9fbff;
}

.pmt_subject_card.is-selected {
  border-color: #7da4f8;
  background: #f4f8ff;
  box-shadow: inset 3px 0 0 #3f7ee8;
}

.pmt_subject_card.is-dragging {
  opacity: 0.35;
  cursor: grabbing;
}

.pmt_subject_card.is-drag-ready {
  border-color: #9dbcf2;
  background: #eef5ff;
  cursor: grab;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.pmt_subject_drag_ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 190px;
  min-height: 44px;
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid #8fb3f5;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24), 0 6px 16px rgba(37, 99, 235, 0.18);
  color: var(--pmt-strong);
  pointer-events: none;
  transform-origin: left top;
}

.pmt_subject_drag_ghost::after {
  content: attr(data-count);
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.pmt_subject_drag_ghost.is-multi::after {
  display: flex;
}

.pmt_subject_drag_ghost .pmt_subject_select {
  display: grid;
  gap: 3px;
}

.pmt_subject_select {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 3px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pmt_subject_health {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
}

.pmt_subject_health_button {
  width: 30px;
  height: 30px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.14s ease, transform 0.14s ease;
}

.pmt_subject_health_button svg,
.pmt_subject_health_floating svg,
.pmt_subject_health_dialog_status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pmt_subject_health.is-complete .pmt_subject_health_button {
  color: #08775a;
}

.pmt_subject_health.is-issues .pmt_subject_health_button {
  color: #c2410c;
}

.pmt_subject_health_button:hover,
.pmt_subject_health_button:focus-visible {
  background: transparent;
  box-shadow: none;
  outline: none;
  transform: translateY(-1px);
}

.pmt_subject_health_button:hover svg,
.pmt_subject_health_button:focus-visible svg {
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.2));
}

.pmt_subject_health_floating {
  position: fixed;
  z-index: 1450;
  width: min(300px, calc(100vw - 44px));
  display: grid;
  gap: 9px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
  color: #334155;
  pointer-events: none;
  animation: pmt-subject-health-tooltip-in 0.12s ease-out;
}

.pmt_subject_health_tooltip_head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f172a;
}

.pmt_subject_health_tooltip_head > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pmt_subject_health_tooltip_head span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.pmt_subject_health_floating.is-complete .pmt_subject_health_tooltip_head {
  color: #08775a;
}

.pmt_subject_health_floating.is-issues .pmt_subject_health_tooltip_head {
  color: #c2410c;
}

.pmt_subject_health_floating small {
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
  color: #94a3b8;
  font-size: 10px;
}

@keyframes pmt-subject-health-tooltip-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pmt_subject_health_group {
  display: grid;
  gap: 5px;
}

.pmt_subject_health_group strong {
  color: #b42318;
  font-size: 11px;
}

.pmt_subject_health_group.is-warning strong {
  color: #b45309;
}

.pmt_subject_health_group ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
}

.pmt_subject_health_empty {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.pmt_subject_name_row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pmt_subject_card strong {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: 0;
  color: var(--pmt-strong);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_subject_status_tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.pmt_subject_card .pmt_subject_meta_row {
  align-items: flex-start;
}

.pmt_subject_card .pmt_subject_status_tag {
  flex: 0 1 auto;
  max-width: calc(100% - 52px);
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
}

.pmt_subject_status_tag.is-warn {
  background: #fff7ed;
  color: #c2410c;
}

.pmt_subject_status_tag.is-miss {
  background: #fef2f2;
  color: #b91c1c;
}

.pmt_subject_status_tag.is-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.pmt_subject_status_tag.is-ok {
  background: #f0fdf4;
  color: #15803d;
}

.pmt_subject_meta_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pmt_subject_id_row {
  display: block;
  min-width: 0;
  color: var(--pmt-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_subject_meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_subject_meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_subject_tag {
  flex: 0 0 auto;
  min-height: 22px;
  background: #eef1f4;
  color: var(--pmt-muted);
}

.pmt_workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pmt_mobile_back {
  display: none;
  width: max-content;
  min-height: 34px;
  margin: 0 0 8px;
  border: 1px solid #bfd3ef;
  border-radius: 8px;
  background: #f5f9ff;
  padding: 0 11px;
  color: var(--pmt-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.party_manage_test.is-module-page .pmt_workspace {
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.party_manage_test.is-module-page[data-pmt-active-module="batch"] .pmt_workspace,
.party_manage_test.is-module-page[data-pmt-active-module="caseBinding"] .pmt_workspace {
  grid-template-rows: minmax(0, 1fr);
}

.party_manage_test.is-module-page[data-pmt-active-module="batch"] .pmt_topbar,
.party_manage_test.is-module-page[data-pmt-active-module="caseBinding"] .pmt_topbar {
  display: none;
}

.pmt_topbar {
  display: block;
  min-height: 0;
  padding: 8px 18px 10px;
  border-bottom: 1px solid var(--pmt-line);
  background: var(--pmt-panel);
}

.pmt_topbar_title {
  min-width: 0;
  flex: 1 1 auto;
}

.pmt_topbar_title_line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.pmt_topbar_title_line h1 {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_topbar_module_badge {
  flex: 0 0 auto;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.pmt_topbar_module_badge[hidden] {
  display: none;
}

.pmt_party_file_manager_trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  padding: 6px 10px;
  border: 1px solid #b8d1ff;
  border-radius: 8px;
  background: #f5f9ff;
  color: var(--pmt-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.pmt_party_file_manager_trigger:hover,
.pmt_party_file_manager_trigger:focus-visible {
  background: #eaf2ff;
  outline: none;
}

.pmt_party_file_manager_trigger[hidden] {
  display: none;
}

.pmt_topbar p:last-child {
  margin: 4px 0 0;
  color: var(--pmt-muted);
  font-size: 12px;
}

.party_manage_test.is-module-page .pmt_tabs {
  display: none;
}

.party_manage_test.is-module-page .pmt_topbar {
  min-height: auto;
  padding: 10px 18px;
}

.party_manage_test.is-module-page .pmt_topbar h1 {
  font-size: 18px;
}

.party_manage_test.is-module-page .pmt_topbar p:last-child {
  max-width: 760px;
  margin-top: 4px;
  font-size: 12px;
}

.party_manage_test .pmt_topbar [data-pmt-summary]:empty {
  display: none;
}

.pmt_tabs {
  display: flex;
  min-width: 0;
  gap: 2px;
  padding: 6px 18px 0;
  border-bottom: 1px solid var(--pmt-line);
  background: var(--pmt-panel);
  overflow-x: auto;
}

.pmt_tab {
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 12px;
  color: var(--pmt-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pmt_tab.is-active {
  border-bottom-color: var(--pmt-blue);
  color: var(--pmt-blue);
}

.pmt_panel_stack {
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding-bottom: var(--pmt-dock-safe-area);
  overflow: hidden;
}

.pmt_tab_panel {
  display: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 100%;
  padding: 12px;
}

.pmt_tab_panel.is-active {
  display: block;
}

.pmt_tab_panel[data-pmt-panel="materials"].is-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px 14px;
}

.pmt_tab_panel[data-pmt-panel="ai"].is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pmt_module_page.is-active {
  display: block;
}

.pmt_content_grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 12px;
  width: 100%;
  min-height: 0;
}

.pmt_home_grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  height: 100%;
}

.pmt_home_grid .pmt_real_panel {
  max-height: 100%;
  background: #fff;
}

.pmt_home_grid > .pmt_real_panel:nth-child(2) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.pmt_home_grid > .pmt_real_panel:nth-child(2) > .pmt_relation_area.is-active {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.pmt_home_grid > .pmt_real_panel:nth-child(2) .pmt_binding_flat_list,
.pmt_home_grid > .pmt_real_panel:nth-child(2) .pmt_binding_list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.pmt_home_grid .pmt_identity_card {
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.pmt_home_grid > .pmt_real_panel:first-child {
  gap: 14px;
  border-color: #d8e3f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #f8fafc 100%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
}

.pmt_home_grid > .pmt_real_panel:first-child > .pmt_panel_head {
  position: relative;
  margin: -14px -14px 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px 12px 18px;
  background: linear-gradient(105deg, #f8fbff 0%, #ffffff 72%);
}

.pmt_home_grid > .pmt_real_panel:first-child > .pmt_panel_head::before {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pmt-blue);
  content: "";
}

.pmt_home_grid > .pmt_real_panel:first-child > .pmt_panel_head h3 {
  margin-top: 3px;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_row {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
  padding: 1px 6px;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_row > span:first-child {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_control {
  height: 36px;
  border-color: #d6e0ec;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_control:hover:not(:disabled) {
  border-color: #b6c9e2;
  background: #fbfdff;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_control:focus {
  border-color: #6b9df0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_row.is-readiness-warning,
.pmt_home_grid > .pmt_real_panel:first-child .pmt_field_row.is-readiness-blocking {
  margin: 2px 0;
  border-bottom-color: transparent;
  border-radius: 9px;
  padding: 6px 7px;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_legal_rep_section {
  gap: 10px;
  margin-top: 4px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_legal_rep_section.is-readiness-warning,
.pmt_home_grid > .pmt_real_panel:first-child .pmt_legal_rep_section.is-readiness-blocking {
  padding: 9px;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_legal_rep_head {
  border-bottom: 1px solid #e5edf6;
  padding-bottom: 8px;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_legal_rep_drop {
  min-height: 60px;
  border-radius: 9px;
  background: #fff;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_identity_more {
  margin-top: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_identity_more summary {
  min-height: 36px;
  padding: 0 11px;
}

.pmt_home_grid > .pmt_real_panel:first-child .pmt_identity_more_body {
  border-top: 1px solid #edf1f6;
  padding: 10px;
  background: #fbfdff;
}

.pmt_panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--pmt-line);
  border-radius: 8px;
  background: var(--pmt-panel);
  padding: 14px;
  overflow: auto;
}

.pmt_focus_panel {
  border-color: #b9dfcc;
  box-shadow: inset 3px 0 0 var(--pmt-green);
}

.pmt_firewall_panel {
  grid-column: 1 / -1;
}

.pmt_ocr_panel {
  min-height: 760px;
}

.pmt_identity_card,
.pmt_json_preview,
.pmt_material_editor,
.pmt_safe_output,
.pmt_hit_log {
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: var(--pmt-soft);
}

.pmt_identity_card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.pmt_field_group {
  display: grid;
  gap: 5px;
  border-top: 1px solid #e5ebf2;
  padding-top: 10px;
}

.pmt_field_group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pmt_field_group > h4 {
  margin: 0 6px 2px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.pmt_field_group_body {
  display: grid;
  gap: 2px;
}

.pmt_field_group.is-contact {
  border-color: #f0dfc2;
}

.pmt_field_group.is-legal-representative {
  border-color: #dbe5f1;
}

.pmt_party_materials {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  min-height: 0;
  align-content: stretch;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.pmt_party_material_library_column {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pmt_required_materials {
  display: grid;
  gap: 8px;
  border: 1px solid #cddced;
  border-radius: 9px;
  padding: 10px;
  background: #f8fbff;
}

.pmt_residence_source_note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px dashed #cfd9e8;
  border-radius: 7px;
  padding: 7px 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.pmt_residence_source_note button {
  flex: 0 0 auto;
  border: 1px solid #b9cff4;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #1f5fc4;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pmt_required_material_head,
.pmt_required_material_title,
.pmt_required_material_actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pmt_required_material_head {
  align-items: flex-start;
}

.pmt_required_material_head > div {
  display: grid;
  gap: 2px;
}

.pmt_required_material_title > div {
  display: grid;
  gap: 3px;
}

.pmt_required_material_head span {
  color: #26364f;
  font-size: 14px;
  font-weight: 800;
}

.pmt_required_material_head strong,
.pmt_required_material_title span {
  color: #6b7890;
  font-size: 12px;
  font-weight: 500;
}

.pmt_required_material_actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.pmt_required_material_actions > * {
  min-width: 0;
  text-align: center;
}

.pmt_required_material_auto_state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pmt_required_material_auto_state.is-generated {
  background: #e7f8ef;
  color: #08775a;
}

.pmt_required_material_auto_state.is-pending {
  background: #fff1dd;
  color: #a64b00;
}

.pmt_required_material_head button,
.pmt_required_material_actions button,
.pmt_required_material_actions a,
.pmt_required_material_empty button {
  border: 1px solid #b9cff4;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: #1f5fc4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pmt_required_material_actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pmt_required_material_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.pmt_required_material_card {
  display: grid;
  gap: 6px;
  border: 0;
  border-top: 1px solid #dce5f0;
  border-radius: 8px;
  padding: 9px 0 0;
  background: transparent;
}

.pmt_required_material_card.is-completed {
  border-color: #9fd9c2;
  background: #f4fcf8;
}

.pmt_required_material_card.is-not_applicable {
  background: #f8fafc;
}

.pmt_required_material_card.is-need_confirmation {
  border-color: #e7c56f;
  background: #fffdf6;
}

.pmt_required_material_card.is-not_required {
  border-color: #d8dee8;
  background: #f8fafc;
}

.pmt_required_material_title strong {
  color: #14233d;
  font-size: 14px;
}

.pmt_required_material_title em {
  border-radius: 999px;
  padding: 3px 8px;
  background: #e8f0ff;
  color: #225fc2;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pmt_required_material_card p,
.pmt_required_material_missing,
.pmt_required_material_file,
.pmt_required_material_empty {
  margin: 0;
  color: #68758a;
  font-size: 12px;
  line-height: 1.55;
}

.pmt_required_material_missing {
  color: #b45309;
}

.pmt_required_material_case_context {
  color: #48627f;
  font-size: 12px;
  font-weight: 700;
}

.pmt_required_material_need_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pmt_required_material_need_actions button {
  border: 1px solid #cbd7e8;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #53657d;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pmt_required_material_need_actions button.is-active {
  border-color: #2f6fed;
  background: #eaf1ff;
  color: #1e56b6;
}

.pmt_required_material_source_panel {
  display: grid;
  gap: 6px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  padding: 8px 9px;
  background: #f6faff;
}

.pmt_required_material_source_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pmt_required_material_source_head strong {
  color: #294765;
  font-size: 12px;
}

.pmt_required_material_source_head span {
  color: #6b7c91;
  font-size: 11px;
}

.pmt_required_material_source_panel p {
  font-size: 11px;
}

.pmt_required_material_source_list {
  display: grid;
  gap: 4px;
}

.pmt_required_material_source_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: #415873;
  font-size: 11px;
}

.pmt_required_material_source_item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.pmt_required_material_source_item em {
  flex: 0 0 auto;
  color: #1f7a5b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.pmt_required_material_source_panel > button {
  justify-self: start;
  border: 1px solid #a9c5e8;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #205bb7;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pmt_required_material_modal[hidden] {
  display: none;
}

.pmt_required_material_modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.pmt_required_material_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 46%);
  backdrop-filter: blur(2px);
}

.pmt_required_material_modal_panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(900px, calc(100vw - 56px));
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid #cbd9eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(15 23 42 / 28%);
}

.pmt_required_material_modal_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding: 18px 22px 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.pmt_required_material_modal_head h3 {
  margin: 3px 0 4px;
  color: #1f3654;
  font-size: 20px;
}

.pmt_required_material_modal_head span {
  color: #6b7c91;
  font-size: 12px;
}

.pmt_required_material_modal_close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #d2deec;
  border-radius: 9px;
  background: #fff;
  color: #60728a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pmt_required_material_modal_body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.pmt_required_material_modal_body .pmt_required_materials {
  border: 0;
  padding: 0;
  background: transparent;
}

.pmt_required_material_file.is-pdf {
  color: #08775a;
}

.pmt_required_material_empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pmt_required_material_empty.is-error {
  color: #b42318;
}

.pmt_party_material_workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(300px, 0.48fr) minmax(360px, 0.52fr);
  align-items: stretch;
  gap: 12px;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pmt_party_material_workspace .pmt_party_material_library_column,
.pmt_party_material_workspace .pmt_party_material_preview_shell {
  min-height: 520px;
}

.pmt_party_materials_panel {
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  height: 100%;
  border-color: #d8e3f1;
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.pmt_party_materials_panel .pmt_panel_head,
.pmt_party_material_ocr_panel .pmt_panel_head {
  align-items: center;
}

.pmt_party_materials_panel > .pmt_panel_head {
  position: relative;
  margin: -14px -14px 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px 12px 18px;
  background: linear-gradient(105deg, #f8fbff 0%, #fff 72%);
}

.pmt_party_materials_panel > .pmt_panel_head::before {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pmt-blue);
  content: "";
}

.pmt_party_materials_panel .pmt_panel_head h3,
.pmt_party_material_ocr_panel .pmt_panel_head h3 {
  margin-top: 2px;
  font-size: 17px;
}

.pmt_party_material_ocr_panel {
  flex: 1 1 auto;
  margin-top: 0;
  gap: 10px;
  padding: 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.pmt_party_material_ocr_workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(300px, 1.08fr);
  align-items: stretch;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.pmt_party_material_preview_panel,
.pmt_party_material_ocr_result_panel {
  min-width: 0;
  min-height: 0;
  border-radius: 6px;
}

.pmt_party_material_preview_panel {
  display: block;
  height: 100%;
}

.pmt_party_material_preview_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pmt_party_material_preview_head strong {
  color: var(--pmt-strong);
  font-size: 13px;
  font-weight: 800;
}

.pmt_party_material_resident_preview {
  display: grid;
  min-height: 0;
  min-width: 0;
  height: 100%;
}

.pmt_party_material_preview_shell {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid #d7e4f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.pmt_party_material_preview_shell .pmt_file_preview_empty {
  min-height: 498px;
  align-content: center;
  border: 1px dashed #cbd8e8;
  border-radius: 9px;
  background: #fbfdff;
}

.pmt_party_material_preview_module {
  height: 100%;
}

.pmt_party_material_preview_shell .pmt_party_material_preview_module,
.pmt_party_material_preview_shell .pmt_file_preview,
.pmt_party_material_preview_shell [data-pmt-party-material-preview-box] {
  min-height: 0;
  height: 100%;
}

.pmt_party_material_preview_shell .pmt_pdf_viewer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pmt_party_material_preview_shell .pmt_pdf_document_shell {
  flex: 0 0 auto;
  margin-right: 0;
  margin-left: 0;
}

.pmt_party_material_preview_module > .pmt_file_preview[data-pmt-public-preview] {
  min-height: 0;
}

.pmt_party_material_preview_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pmt_party_material_preview_meta strong,
.pmt_party_material_preview_meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_party_material_preview_meta strong {
  color: var(--pmt-strong);
  font-size: 12px;
  font-weight: 800;
}

.pmt_party_material_preview_meta span {
  flex: 0 0 auto;
  color: var(--pmt-muted);
  font-size: 11px;
  font-weight: 700;
}

.pmt_party_material_preview_box {
  min-height: 280px;
  height: 100%;
  border: 1px dashed #d8e2f1;
  border-radius: 7px;
  background: #fbfdff;
  overflow: auto;
}

.pmt_party_material_ocr_result_panel {
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: auto;
}

.pmt_party_material_ocr_result_panel [data-pmt-party-material-ocr] {
  min-height: 0;
}

.pmt_party_material_ocr_result_panel .pmt_ocr_data_block {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.pmt_party_materials_head_actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.pmt_party_material_context_bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d7e4f4;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f8ff 0%, #fbfdff 100%);
}

.pmt_party_material_context_name {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_party_material_context_actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.pmt_party_material_flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border-top: 1px solid #d8e4f2;
  padding-top: 9px;
}

.pmt_party_material_flow > i {
  color: #94a3b8;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.pmt_party_material_flow_step {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
}

.pmt_party_material_flow_step > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
}

.pmt_party_material_flow_step > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pmt_party_material_flow_step strong,
.pmt_party_material_flow_step small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_party_material_flow_step strong {
  color: #334155;
  font-size: 11px;
}

.pmt_party_material_flow_step small {
  color: #64748b;
  font-size: 9px;
}

.pmt_party_material_flow_step.is-source > span {
  background: #f1f5f9;
  color: #475569;
}

.pmt_party_material_flow_step.is-preprocess > span {
  background: #e0f2fe;
  color: #0369a1;
}

.pmt_party_material_flow_step.is-recognition > span {
  background: #fef3c7;
  color: #b45309;
}

.pmt_party_material_flow_step.is-formal > span {
  background: #dcfce7;
  color: #15803d;
}

.pmt_party_material_flow_step.is-complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.pmt_party_material_flow_step.is-complete > span::before {
  content: "✓";
  font-size: 11px;
}

.pmt_party_material_flow_step.is-complete > span {
  font-size: 0;
}

.pmt_party_material_flow_step.is-current {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.pmt_party_material_flow_step.is-current strong {
  color: #1d4ed8;
}

.pmt_party_material_flow_step.is-pending {
  opacity: .58;
}

.pmt_party_material_context_bar > .pmt_required_materials {
  grid-column: 1 / -1;
  gap: 7px;
  margin-top: 2px;
  border: 0;
  border-top: 1px solid #d8e4f2;
  border-radius: 0;
  padding: 9px 0 0;
  background: transparent;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_head {
  align-items: center;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_head span {
  color: #1e3a5f;
  font-size: 12px;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_head strong {
  font-size: 11px;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_card {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  border: 1px solid #d8e4f2;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fbfdff;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_card.is-missing_data {
  border-color: #f0d2ad;
  background: #fffaf4;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_title,
.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_card > p,
.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_missing,
.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_file {
  grid-column: 1;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_title {
  align-items: flex-start;
  padding-bottom: 2px;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_title > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
  min-width: 0;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_title strong {
  font-size: 14px;
  line-height: 1.4;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_title em {
  flex: 0 0 auto;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_statuses {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_card.is-missing_data .pmt_required_material_title em {
  background: #ffedd5;
  color: #b45309;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_actions {
  grid-column: 1;
  grid-row: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  border-top: 1px solid #e4ebf4;
  padding-top: 9px;
}

.pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_actions > * {
  min-width: 116px;
}

.pmt_party_material_context_bar > .pmt_required_materials > .pmt_required_material_empty {
  min-height: 28px;
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 11px;
}

.pmt_party_material_file_grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  min-height: 150px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  overflow: auto;
}

.pmt_party_material_group {
  display: grid;
  grid-template-rows: auto minmax(112px, 1fr);
  gap: 10px;
  align-content: start;
  border: 1px solid #d7e4f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
  padding: 11px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.pmt_party_material_group.is-categorized {
  grid-template-rows: auto auto minmax(112px, 1fr);
}

.pmt_party_material_category_tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 0 1px 2px;
}

.pmt_party_material_category_tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  border: 1px solid #cbd9eb;
  border-radius: 8px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.88);
  color: #526987;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.pmt_party_material_category_tabs button:hover:not(:disabled) {
  border-color: #86b5f4;
  color: #1d4ed8;
}

.pmt_party_material_category_tabs button.is-active {
  border-color: #22a05a;
  background: #eafaf0;
  color: #13753f;
  box-shadow: 0 0 0 2px rgb(34 160 90 / 10%);
}

.pmt_party_material_category_tabs button:disabled {
  opacity: 0.48;
  cursor: default;
}

.pmt_party_material_category_tabs button em {
  min-width: 17px;
  border-radius: 999px;
  padding: 1px 5px;
  background: #edf3fa;
  color: currentColor;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.pmt_party_material_category_tabs button.is-active em {
  background: #d4f4df;
}

.pmt_party_material_group.is-prepared {
  border-color: #bfe6cf;
  background: linear-gradient(180deg, #f3fff7 0%, #fbfffc 100%);
}

.pmt_party_material_group.is-raw {
  border-color: #dbe7f5;
  background: #fbfdff;
}

.pmt_party_material_group.is-drop-target {
  border-color: #2563eb;
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

.pmt_party_material_group.is-prepared.is-drop-target {
  border-color: #16a34a;
  background: #ecfdf3;
  box-shadow: 0 0 0 3px rgb(22 163 74 / 14%);
}

.pmt_party_material_file_grid [data-pmt-party-material-db-file][draggable="true"] {
  cursor: grab;
}

.pmt_party_material_file_grid [data-pmt-party-material-db-file][draggable="true"]:active {
  cursor: grabbing;
}

.pmt_party_material_file_grid [data-pmt-party-material-db-file].is-dragging {
  opacity: 0.48;
  transform: scale(0.98);
}

.pmt_party_material_group_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 1px 2px 0;
}

.pmt_party_material_group_head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pmt_party_material_group_head strong {
  color: var(--pmt-strong);
  font-size: 14px;
  font-weight: 900;
}

.pmt_party_material_group_head span {
  color: var(--pmt-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.pmt_party_material_group_head em {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #3f5f86;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pmt_party_material_group.is-prepared .pmt_party_material_group_head em {
  background: #dcfce7;
  color: #15803d;
}

.pmt_party_material_file_grid .mfm_file_card {
  border-radius: 9px;
  min-height: 148px;
  padding: 12px 9px 9px;
  background: rgba(255, 255, 255, 0.72);
}

.pmt_party_material_file_grid .mfm_file_card:hover {
  border-color: #a9c5ef;
  background: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.09);
}

.pmt_party_material_file_grid .mfm_file_card.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}

.pmt_party_material_file_grid .mfm_file_thumb {
  width: 58px;
  height: 68px;
}

.pmt_party_material_file_grid .mfm_file_card strong {
  min-height: 36px;
  font-size: 11px;
  line-height: 1.4;
}

.pmt_party_materials_empty {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
}

.pmt_party_material_tool_btn,
.pmt_party_material_compose_btn,
.pmt_party_material_preview_btn,
.pmt_party_material_download_btn,
.pmt_party_material_open_btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pmt-muted);
  cursor: pointer;
}

.pmt_party_material_compose_btn {
  width: auto;
  min-width: 92px;
  padding: 0 10px;
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pmt_party_material_tool_btn:hover,
.pmt_party_material_tool_btn:focus-visible,
.pmt_party_material_compose_btn:hover,
.pmt_party_material_compose_btn:focus-visible,
.pmt_party_material_preview_btn:hover,
.pmt_party_material_preview_btn:focus-visible,
.pmt_party_material_download_btn:hover,
.pmt_party_material_download_btn:focus-visible,
.pmt_party_material_open_btn:hover,
.pmt_party_material_open_btn:focus-visible {
  border-color: var(--pmt-blue);
  color: var(--pmt-blue);
  outline: none;
}

.pmt_party_material_compose_btn:disabled,
.pmt_party_material_preview_btn:disabled,
.pmt_party_material_download_btn:disabled,
.pmt_party_material_open_btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pmt_party_material_compose_btn.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.pmt_party_material_tool_btn svg,
.pmt_party_material_preview_btn svg,
.pmt_party_material_download_btn svg,
.pmt_party_material_open_btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pmt_id_card_quad_dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
}

.pmt_id_card_quad_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.pmt_id_card_quad_modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d9e3f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  padding: 0;
}

.pmt_id_card_quad_modal_head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
  border-bottom: 1px solid #e7edf5;
  padding: 18px 22px 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.pmt_id_card_quad_modal_head h3 {
  margin: 2px 0 3px;
  font-size: 21px;
  line-height: 1.25;
  color: var(--pmt-text);
}

.pmt_id_card_header_copy > p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.pmt_id_card_workflow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.pmt_id_card_workflow span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pmt_id_card_workflow b {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
}

.pmt_id_card_workflow i {
  width: 26px;
  height: 1px;
  background: #dbe3ee;
}

.pmt_id_card_workflow .is-done {
  color: #15803d;
}

.pmt_id_card_workflow .is-done b {
  border-color: #86efac;
  background: #dcfce7;
}

.pmt_id_card_workflow .is-current {
  color: #1d4ed8;
}

.pmt_id_card_workflow .is-current b {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.pmt_id_card_source_mode {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.pmt_id_card_processing_modal {
  width: min(680px, calc(100vw - 48px));
  height: auto;
  overflow: visible;
  padding: 24px;
}

.pmt_id_card_processing_head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.pmt_id_card_processing_head h3 {
  margin: 2px 0 4px;
  color: var(--pmt-text);
  font-size: 20px;
}

.pmt_id_card_processing_head small {
  display: block;
  overflow: hidden;
  max-width: 440px;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_id_card_processing_head > em {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pmt_id_card_processing_spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pmt-id-card-spin 0.85s linear infinite;
}

@keyframes pmt-id-card-spin {
  to { transform: rotate(360deg); }
}

.pmt_id_card_processing_bar {
  overflow: hidden;
  height: 5px;
  margin: 20px 0 18px;
  border-radius: 999px;
  background: #dbeafe;
}

.pmt_id_card_processing_bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
  animation: pmt-id-card-progress 1.35s ease-in-out infinite;
}

@keyframes pmt-id-card-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

.pmt_id_card_processing_steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pmt_id_card_processing_steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 9px;
  background: #f8fafc;
  color: #64748b;
}

.pmt_id_card_processing_steps b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  font-size: 10px;
}

.pmt_id_card_processing_steps span {
  min-width: 0;
  font-size: 11px;
  font-weight: 750;
}

.pmt_id_card_processing_steps small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
}

.pmt_id_card_processing_steps li.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.pmt_id_card_processing_steps li.is-active b {
  background: #2563eb;
  color: #fff;
}

.pmt_id_card_processing_steps li.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.pmt_id_card_processing_steps li.is-done b {
  background: #22c55e;
  color: #fff;
}

.pmt_id_card_processing_hint {
  margin: 16px 0 0;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.pmt_id_card_processing_modal.is-error {
  text-align: center;
}

.pmt_id_card_processing_modal.is-error > h3 {
  margin: 12px 0 6px;
  color: #991b1b;
}

.pmt_id_card_processing_modal.is-error > p {
  color: #64748b;
  font-size: 13px;
}

.pmt_id_card_processing_error_icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 24px;
  font-weight: 900;
}

.pmt_id_card_generation_progress {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 9px;
  min-width: 280px;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  padding: 8px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}

.pmt_id_card_generation_progress .pmt_id_card_processing_spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.pmt_id_card_generation_progress em {
  margin-left: auto;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.pmt_id_card_quad_actions.is-processing {
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .pmt_id_card_processing_head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pmt_id_card_processing_head > em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pmt_id_card_processing_steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pmt_id_card_quad_close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.pmt_id_card_quad_close:hover {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.pmt_id_card_quad_notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  margin: 12px 20px 0;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
}

.pmt_id_card_quad_notice.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.pmt_id_card_notice_icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 900;
}

.pmt_id_card_quad_notice.is-warning .pmt_id_card_notice_icon {
  background: #fef3c7;
  color: #b45309;
}

.pmt_id_card_quad_notice strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.pmt_id_card_quad_notice p {
  margin: 1px 0 0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.pmt_id_card_quad_notice small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.pmt_id_card_quad_notice .pmt_id_card_source_mode {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .72);
  color: #475569;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.pmt_id_card_quad_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 20px 16px;
  background: #f8fafc;
}

.pmt_id_card_quad_panel {
  align-self: start;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  border-radius: 15px;
  background: #fff;
  padding: 0 0 12px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .035);
}

.pmt_id_card_quad_panel_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  border-bottom: 1px solid #edf2f7;
  padding: 11px 13px;
  background: #fbfdff;
  color: var(--pmt-text);
}

.pmt_id_card_quad_panel_head strong {
  color: #0f172a;
  font-size: 13px;
}

.pmt_id_card_quad_panel_head span {
  min-width: 0;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_id_card_quad_panel_head > div {
  min-width: 0;
}

.pmt_id_card_side_identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pmt_id_card_side_identity > b {
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 12px;
}

.pmt_id_card_side_identity > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pmt_id_card_side_badge {
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 5px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.pmt_id_card_side_badge small {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.pmt_id_card_side_badge.is-matched {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.pmt_id_card_side_badge.is-unknown {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.pmt_id_card_side_badge.is-conflict {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.pmt_id_card_quad_stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
  height: min(52vh, 520px);
  max-height: none;
  margin: 12px 12px 0;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background-color: #f8fbff;
  background-image: linear-gradient(45deg, #eff6ff 25%, transparent 25%), linear-gradient(-45deg, #eff6ff 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eff6ff 75%), linear-gradient(-45deg, transparent 75%, #eff6ff 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.pmt_id_card_quad_stage img {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.pmt_id_card_quad_toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 12px 0;
  color: #64748b;
}

.pmt_id_card_quad_toolbar button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbd8ea;
  border-radius: 7px;
  background: #fff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.pmt_id_card_quad_toolbar button:hover {
  border-color: #93b4e9;
  background: #eff6ff;
}

.pmt_id_card_quad_toolbar span {
  min-width: 42px;
  color: #334155;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pmt_id_card_quad_toolbar small {
  margin-left: 4px;
  color: #64748b;
  font-size: 10px;
}

.pmt_id_card_quad_stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pmt_id_card_quad_stage polygon {
  fill: rgba(37, 99, 235, 0.08);
  stroke: #2563eb;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.pmt_id_card_quad_handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  cursor: grab;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pmt_id_card_quad_handle:active {
  cursor: grabbing;
}

.pmt_id_card_quad_hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 12px 0;
  color: #475569;
}

.pmt_id_card_quad_hint > span {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 900;
}

.pmt_id_card_quad_hint.is-warning > span {
  background: #fef3c7;
  color: #b45309;
}

.pmt_id_card_quad_hint strong,
.pmt_id_card_quad_hint small {
  display: block;
}

.pmt_id_card_quad_hint strong {
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.pmt_id_card_quad_hint small {
  margin-top: 1px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .pmt_id_card_quad_grid {
    grid-template-columns: minmax(0, 1fr);
  }

.pmt_id_card_quad_stage {
    height: min(56vh, 560px);
  }
}

.pmt_id_card_quad_actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  margin: 0;
  border-top: 1px solid #e2e8f0;
  padding: 13px 20px;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .035);
}

.pmt_id_card_action_note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pmt_id_card_action_note > span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 900;
}

.pmt_id_card_action_note p {
  margin: 0;
}

.pmt_id_card_action_note strong,
.pmt_id_card_action_note small {
  display: block;
}

.pmt_id_card_action_note strong {
  color: #334155;
  font-size: 11px;
}

.pmt_id_card_action_note small {
  margin-top: 1px;
  color: #64748b;
  font-size: 10px;
}

.pmt_id_card_clean_edge_option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pmt_id_card_clean_edge_option input {
  accent-color: #2563eb;
}

.pmt_id_card_action_buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.pmt_id_card_quad_actions .pmt_primary_btn,
.pmt_id_card_quad_actions .pmt_secondary_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.pmt_id_card_quad_actions .pmt_primary_btn svg,
.pmt_id_card_quad_actions .pmt_secondary_btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pmt_id_card_quad_actions .pmt_secondary_btn {
  border-color: #cbd8ea;
  background: #fff;
  color: #334155;
}

.pmt_id_card_quad_actions .pmt_secondary_btn:hover:not(:disabled) {
  border-color: #93b4e9;
  background: #f7faff;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .09);
  transform: translateY(-1px);
}

.pmt_id_card_quad_actions .pmt_primary_btn {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .22);
}

.pmt_id_card_quad_actions .pmt_primary_btn:hover:not(:disabled) {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 7px 18px rgba(37, 99, 235, .28);
  transform: translateY(-1px);
}

.pmt_id_card_quad_actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

@media (max-width: 920px) {
  .pmt_id_card_quad_modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .pmt_id_card_quad_modal_head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pmt_id_card_workflow {
    display: none;
  }

  .pmt_id_card_quad_grid {
    grid-template-columns: 1fr;
  }

  .pmt_id_card_quad_notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pmt_id_card_quad_notice .pmt_id_card_source_mode {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pmt_id_card_quad_actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .pmt_id_card_action_buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

}

.pmt_field_row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
}

.pmt_field_row span:first-child {
  color: var(--pmt-muted);
}

.pmt_field_row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pmt-strong);
}

.pmt_field_row.is-editable {
  align-items: center;
}

.pmt_field_row.is-readiness-blocking,
.pmt_legal_rep_section.is-readiness-blocking {
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff7f7;
  padding: 6px;
}

.pmt_field_row.is-readiness-warning,
.pmt_legal_rep_section.is-readiness-warning {
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fffaf2;
  padding: 6px;
}

.pmt_field_row.is-readiness-blocking .pmt_field_control {
  border-color: #fca5a5;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08);
}

.pmt_field_row.is-readiness-warning .pmt_field_control {
  border-color: #fdba74;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.pmt_tab.is-readiness-blocking {
  color: #b91c1c;
}

.pmt_tab.is-readiness-warning {
  color: #9a3412;
}

.is-readiness-pulse {
  animation: pmt_readiness_pulse 1.1s ease-out;
}

@keyframes pmt_readiness_pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.pmt_field_control {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pmt-strong);
  font: inherit;
  padding: 0 9px;
  outline: none;
}

.pmt_field_control:focus {
  border-color: var(--pmt-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.pmt_field_control:disabled {
  background: #f8fafc;
  color: var(--pmt-muted);
  cursor: not-allowed;
}

.pmt_field_select {
  cursor: pointer;
}

.pmt_subject_readiness {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e4f4;
  border-radius: 7px;
  padding: 10px;
  background: #f8fbff;
}

.pmt_subject_readiness_head,
.pmt_subject_readiness_checks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pmt_subject_readiness_head {
  justify-content: space-between;
}

.pmt_subject_readiness_head strong {
  min-width: 0;
  color: var(--pmt-strong);
  font-size: 13px;
  font-weight: 800;
}

.pmt_subject_readiness_checks {
  flex-wrap: wrap;
}

.pmt_subject_readiness_checks span {
  border: 1px solid #d7e4f4;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  color: var(--pmt-muted);
  font-size: 11px;
  font-weight: 800;
}

.pmt_subject_readiness_checks span.is-ok,
.pmt_subject_readiness_checks span.is-not_required {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.pmt_subject_readiness_checks span.is-pending,
.pmt_subject_readiness_checks span.is-unbound,
.pmt_subject_readiness_checks span.is-incomplete {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.pmt_subject_readiness_checks span.is-missing {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.pmt_subject_readiness_issues {
  display: grid;
  gap: 4px;
}

.pmt_subject_readiness_issues > span {
  color: var(--pmt-muted);
  font-size: 11px;
  font-weight: 800;
}

.pmt_subject_readiness_issues ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pmt_subject_readiness_issues.is-warning ul {
  color: #92400e;
}

.pmt_legal_rep_section {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  border-top: 1px solid var(--pmt-line);
  padding-top: 10px;
}

.pmt_legal_rep_reverse_section {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  border-top: 1px solid var(--pmt-line);
  padding-top: 10px;
}
.pmt_legal_rep_reverse_list { display: grid; gap: 7px; }
.pmt_legal_rep_reverse_card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  padding: 8px 10px;
  background: #f8fbff;
}
.pmt_legal_rep_reverse_main {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pmt_legal_rep_reverse_main:hover strong,
.pmt_legal_rep_reverse_main:focus-visible strong { color: var(--pmt-blue); }
.pmt_legal_rep_reverse_main:focus-visible { outline: 2px solid #8fb3ef; outline-offset: 2px; }
.pmt_legal_rep_reverse_main strong,
.pmt_legal_rep_reverse_main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmt_legal_rep_reverse_main strong { color: var(--pmt-strong); font-size: 13px; font-weight: 800; }
.pmt_legal_rep_reverse_main span { color: var(--pmt-muted); font-size: 12px; font-weight: 700; }
.pmt_legal_rep_reverse_card > em {
  grid-column: 1 / -1;
  color: #166534;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.pmt_legal_rep_reverse_unbind { right: -8px; top: -8px; }
.pmt_legal_rep_reverse_empty { border: 1px dashed #cbd5e1; border-radius: 8px; padding: 10px; color: var(--pmt-muted); font-size: 12px; }

.pmt_legal_rep_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pmt_legal_rep_head strong {
  color: var(--pmt-strong);
  font-size: 13px;
  font-weight: 800;
}

.pmt_legal_rep_head span {
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmt_legal_rep_drop {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px dashed #b8c8de;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pmt_legal_rep_drop[role="button"] {
  cursor: pointer;
}

.pmt_legal_rep_drop[role="button"]:hover,
.pmt_legal_rep_drop[role="button"]:focus-visible {
  border-color: var(--pmt-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  outline: none;
}

.pmt_legal_rep_drop.is-bound {
  border-style: solid;
  border-color: #bfdbfe;
  background: #f8fbff;
}

.pmt_legal_rep_drop.is-candidate {
  border-style: solid;
  border-color: #fed7aa;
  background: #fffaf3;
}

.pmt_legal_rep_drop.is-drop-target {
  border-color: var(--pmt-blue);
  background: #eef5ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.pmt_legal_rep_card_main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pmt_legal_rep_card_main strong,
.pmt_legal_rep_card_main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_legal_rep_card_main strong {
  color: var(--pmt-strong);
  font-size: 13px;
  font-weight: 800;
}

.pmt_legal_rep_card_main span {
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmt_legal_rep_drop em {
  flex: 0 0 auto;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pmt_legal_rep_drop.is-bound em {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.pmt_legal_rep_drop.is-candidate em {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.pmt_legal_rep_unbind {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.22);
  z-index: 1;
}

.pmt_legal_rep_unbind:hover,
.pmt_legal_rep_unbind:focus-visible {
  background: #dc2626;
  outline: none;
}

.pmt_legal_rep_warning {
  border: 1px solid #fed7aa;
  border-radius: 7px;
  padding: 7px 9px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pmt_legal_rep_candidate_list {
  display: grid;
  gap: 8px;
}

.pmt_legal_rep_person_summary {
  display: grid;
  gap: 6px;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

.pmt_legal_rep_person_summary div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.pmt_legal_rep_person_summary span {
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_legal_rep_person_summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pmt-strong);
  font-size: 12px;
}

.pmt_identity_more {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  border-top: 1px solid var(--pmt-line);
  padding-top: 8px;
}

.pmt_identity_more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--pmt-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.pmt_identity_more summary::-webkit-details-marker {
  display: none;
}

.pmt_identity_more summary em {
  flex: 0 0 auto;
  border: 1px solid var(--pmt-line);
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff;
  color: var(--pmt-muted);
  font-size: 12px;
  font-style: normal;
}

.pmt_identity_more[open] summary em {
  color: var(--pmt-blue);
}

.pmt_identity_more[open] summary em::before {
  content: "收起";
}

.pmt_identity_more[open] summary em {
  font-size: 0;
}

.pmt_identity_more[open] summary em::before {
  font-size: 12px;
}

.pmt_identity_more_body {
  display: grid;
  gap: 8px;
}

.pmt_identity_info_trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 0 11px;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.pmt_identity_info_trigger:hover,
.pmt_identity_info_trigger:focus-visible {
  border-color: #9dbcf2;
  color: var(--pmt-blue);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.09);
  outline: none;
}

.pmt_identity_info_trigger em {
  border-radius: 999px;
  background: #edf4ff;
  padding: 3px 8px;
  color: var(--pmt-blue);
  font-size: 10px;
  font-style: normal;
}

.pmt_panel_head_actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.pmt_panel_head .pmt_identity_info_trigger {
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border-color: #c9daf1;
  border-radius: 8px;
  background: #f5f9ff;
  color: var(--pmt-blue);
  white-space: nowrap;
}

.pmt_panel_head .pmt_identity_info_trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pmt_identity_info_dialog_body {
  display: grid;
  gap: 0;
  padding: 8px 16px 14px;
}

.pmt_identity_info_dialog_body .pmt_field_row {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  min-height: 42px;
  border-bottom: 1px solid #edf1f6;
  padding: 10px 2px;
}

.pmt_identity_info_dialog_body .pmt_field_row:last-child {
  border-bottom: 0;
}

.pmt_identity_info_dialog_body .pmt_field_row > span:first-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.pmt_identity_info_dialog_body .pmt_field_row > span:last-child {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.55;
}

.pmt_subject_health_dialog {
  width: min(460px, calc(100vw - 32px));
}

.pmt_subject_health_dialog .pmt_identity_info_dialog_body {
  gap: 12px;
  padding: 16px;
}

.pmt_subject_health_dialog_status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  border: 1px solid #bbebd3;
  border-radius: 10px;
  background: #f0fdf4;
  padding: 11px 12px;
  color: #08775a;
}

.pmt_subject_health_dialog_status.is-issues {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.pmt_subject_health_dialog_status svg {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
}

.pmt_subject_health_dialog_status strong {
  font-size: 14px;
}

.pmt_subject_health_dialog_status span {
  color: #64748b;
  font-size: 11px;
}

.pmt_subject_health_dialog .pmt_subject_health_group {
  border: 1px solid #fee2e2;
  border-radius: 9px;
  background: #fffafa;
  padding: 10px 12px;
}

.pmt_subject_health_dialog .pmt_subject_health_group.is-warning {
  border-color: #ffedd5;
  background: #fffbeb;
}

.pmt_subject_health_dialog .pmt_subject_health_group strong {
  font-size: 12px;
}

.pmt_subject_health_dialog .pmt_subject_health_group ul {
  gap: 5px;
  padding-left: 0;
  list-style: none;
  font-size: 12px;
}

.pmt_subject_health_issue_action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pmt_subject_health_issue_action small {
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pmt_subject_health_issue_action small::after {
  content: " →";
}

.pmt_subject_health_issue_action:hover,
.pmt_subject_health_issue_action:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
  transform: translateX(2px);
}

.pmt_subject_health_group.is-blocking .pmt_subject_health_issue_action small {
  color: #dc2626;
}

.pmt_subject_health_group.is-blocking .pmt_subject_health_issue_action:hover,
.pmt_subject_health_group.is-blocking .pmt_subject_health_issue_action:focus-visible {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.pmt_subject_health_case_summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.pmt_subject_health_case_summary > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.pmt_subject_health_case_summary > strong {
  justify-self: start;
  border-radius: 999px;
  background: #f0fdf4;
  padding: 3px 8px;
  color: #08775a;
  font-size: 11px;
}

.pmt_subject_health_case_summary > strong.is-blocked {
  background: #fef2f2;
  color: #b42318;
}

.pmt_subject_health_case_summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

.pmt_relation_area {
  display: none;
  gap: 8px;
  min-height: 0;
  padding-top: 2px;
}

.pmt_relation_area.is-active {
  display: grid;
}

.pmt_relation_tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 2px 10px 4px;
  padding: 4px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f1f5f9;
}

.pmt_relation_tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.pmt_relation_tab:hover {
  color: var(--pmt-blue);
  background: rgba(255, 255, 255, 0.68);
}

.pmt_relation_tab.is-active {
  border-color: #c7d8f5;
  background: #fff;
  color: var(--pmt-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
}

.pmt_relation_tab em {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  padding: 0 6px;
  font-size: 11px;
  font-style: normal;
  line-height: 20px;
  text-align: center;
}

.pmt_relation_tab.is-active em {
  background: #e8f0ff;
  color: var(--pmt-blue);
}

.pmt_relation_area .pmt_panel_subhead {
  padding: 0 12px;
}

.pmt_relation_area .pmt_panel_subhead h4 {
  margin: 0;
  color: var(--pmt-strong);
  font-size: 13px;
}

.pmt_panel_subhead span {
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_binding_list,
.pmt_hit_log {
  display: grid;
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.pmt_binding_flat_list {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 10px 10px;
}

.pmt_binding_role_tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
  overflow-x: auto;
}

.pmt_binding_role_tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.pmt_binding_role_tab:hover {
  border-color: #b9cdf2;
  color: var(--pmt-blue);
}

.pmt_binding_role_tab.is-active {
  border-color: #9dbcf2;
  background: #edf4ff;
  color: var(--pmt-blue);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.pmt_binding_role_tab em {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 0 5px;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}

.pmt_binding_role_tab.is-active em {
  background: #fff;
  color: var(--pmt-blue);
}

.pmt_binding_audit {
  padding: 0 10px;
}

.pmt_binding_audit_card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  color: var(--pmt-text);
}

.pmt_binding_audit_card.is-ok {
  border-color: #bbf7d0;
  background: #f7fef9;
}

.pmt_binding_audit_card.is-warn,
.pmt_binding_audit_card.is-error {
  border-color: #fed7aa;
  background: #fff7ed;
}

.pmt_binding_audit_card.is-loading {
  background: #f8fafc;
}

.pmt_binding_audit_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pmt_binding_audit_title span {
  margin-left: auto;
}

.pmt_binding_audit_title strong,
.pmt_binding_audit_card > strong {
  color: var(--pmt-strong);
  font-size: 12px;
  font-weight: 700;
}

.pmt_binding_audit_title span,
.pmt_binding_audit_card > span {
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_binding_audit_metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pmt_binding_audit_metrics span {
  min-height: 22px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #fff;
  padding: 3px 8px;
  color: var(--pmt-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.pmt_binding_audit_metrics span.is-warn {
  border-color: #fdba74;
  color: #9a3412;
}

.pmt_binding_audit_repair {
  min-height: 26px;
  border: 1px solid #f97316;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pmt_binding_audit_repair:hover {
  background: #ffedd5;
}

.pmt_binding_audit_repair:disabled {
  opacity: 0.62;
  cursor: wait;
}

.pmt_binding_group {
  display: none;
  gap: 8px;
  min-width: 0;
  padding: 0;
}

.pmt_binding_group.is-active {
  display: grid;
}

.pmt_binding_group_head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.pmt_binding_group_head strong {
  color: var(--pmt-strong);
  font-size: 12px;
  font-weight: 700;
}

.pmt_binding_group_head span {
  color: var(--pmt-muted);
  font-size: 11px;
  line-height: 1.4;
}

.pmt_binding_item,
.pmt_hit_item {
  position: relative;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  font-size: 13px;
}

.pmt_binding_readonly_item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 8fr);
  gap: 0;
  align-items: stretch;
  border-color: #d7e4f4;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pmt_binding_readonly_item:hover,
.pmt_binding_readonly_item:focus-visible {
  border-color: var(--pmt-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.pmt_binding_identity_column,
.pmt_binding_case_column {
  min-width: 0;
}

.pmt_binding_identity_column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-right: 1px solid #dbe4ef;
  background: #f4f8ff;
}

.pmt_binding_identity_cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  text-align: center;
}

button.pmt_binding_identity_cell {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.pmt_binding_identity_cell + .pmt_binding_identity_cell {
  border-top: 1px solid #dbe4ef;
}

.pmt_binding_identity_cell span,
.pmt_binding_case_kicker {
  color: var(--pmt-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.pmt_binding_identity_cell strong {
  margin: 0;
  padding: 0;
  color: var(--pmt-blue);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pmt_binding_legal_edit em {
  color: #94a3b8;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.pmt_binding_legal_edit:hover,
.pmt_binding_legal_edit:focus-visible {
  background: #eaf2ff;
  outline: none;
}

.pmt_binding_legal_edit:hover em,
.pmt_binding_legal_edit:focus-visible em {
  opacity: 1;
}

.pmt_binding_case_column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 10px;
  padding: 12px;
}

.pmt_binding_case_kicker,
.pmt_binding_case_column strong,
.pmt_binding_case_column p {
  grid-column: 1 / -1;
}

.pmt_binding_case_column strong {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--pmt-strong);
  font-size: 13px;
  line-height: 1.45;
}

.pmt_binding_case_column p,
.pmt_hit_item p {
  margin: 0;
  color: var(--pmt-muted);
  line-height: 1.45;
}

.pmt_binding_open_hint {
  grid-column: 2;
  justify-self: end;
  margin-top: 4px;
  color: var(--pmt-blue);
  font-size: 11px;
  font-weight: 700;
}

.pmt_binding_empty_card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 8fr);
  min-height: 118px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.pmt_binding_empty_identity {
  display: grid;
  grid-template-rows: auto 1fr auto 1fr;
  align-items: center;
  border-right: 1px dashed #cbd5e1;
  background: #f8fafc;
  padding: 9px 5px;
  text-align: center;
}

.pmt_binding_empty_identity span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

.pmt_binding_empty_identity strong {
  color: #cbd5e1;
  font-size: 13px;
}

.pmt_binding_empty_case {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  text-align: center;
}

.pmt_binding_empty_case strong {
  color: #64748b;
  font-size: 13px;
}

.pmt_binding_empty_case span {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.pmt_legal_identity_dialog_backdrop {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 20px;
  backdrop-filter: blur(2px);
}

.pmt_legal_identity_dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.pmt_legal_identity_dialog header,
.pmt_legal_identity_dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.pmt_legal_identity_dialog header {
  border-bottom: 1px solid #e2e8f0;
}

.pmt_legal_identity_dialog header span {
  color: var(--pmt-blue);
  font-size: 10px;
  font-weight: 700;
}

.pmt_legal_identity_dialog h3 {
  margin: 2px 0 0;
  color: var(--pmt-strong);
  font-size: 17px;
}

.pmt_legal_identity_dialog header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
}

.pmt_legal_identity_dialog_body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pmt_legal_identity_dialog_body > p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.pmt_legal_identity_dialog_body label {
  display: grid;
  gap: 6px;
  color: var(--pmt-strong);
  font-size: 12px;
  font-weight: 700;
}

.pmt_legal_identity_dialog_body input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--pmt-strong);
  font: inherit;
  box-sizing: border-box;
}

.pmt_legal_identity_dialog_body input:focus {
  border-color: var(--pmt-blue);
  outline: 3px solid rgba(37, 99, 235, 0.10);
}

.pmt_legal_identity_suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pmt_legal_identity_suggestions button,
.pmt_legal_identity_dialog footer button {
  min-height: 30px;
  border: 1px solid #dbe4ef;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.pmt_legal_identity_dialog footer {
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pmt_legal_identity_dialog footer button.is-primary {
  border-color: var(--pmt-blue);
  background: var(--pmt-blue);
  color: #fff;
}

.pmt_legal_identity_dialog footer button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pmt_legal_identity_error {
  border-radius: 7px;
  background: #fff1f2;
  padding: 8px 10px;
  color: #be123c;
  font-size: 11px;
}

.pmt_binding_alias {
  display: grid;
  gap: 4px;
  margin: 8px 52px 8px 0;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmt_binding_alias input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
  color: var(--pmt-text);
  font-size: 13px;
}

.pmt_binding_alias input:focus {
  border-color: #9bbbf2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pmt_binding_form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px auto;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
  position: relative;
}

.pmt_binding_form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmt_binding_request {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 8px 10px;
  background: #eff6ff;
}

.pmt_binding_request strong {
  color: #1d4ed8;
  font-size: 12px;
}

.pmt_binding_request span {
  overflow: hidden;
  color: var(--pmt-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_case_select_area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  align-items: stretch;
}

.pmt_case_select_card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #d9e4f6;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.pmt_case_select_card div {
  min-width: 0;
}

.pmt_case_select_card strong {
  display: block;
  overflow: hidden;
  color: var(--pmt-text);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_case_select_card p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_case_select_card > span {
  flex: 0 0 auto;
  align-self: flex-start;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  padding: 2px 7px;
  color: #255aa8;
  background: #eef5ff;
  font-size: 11px;
  font-weight: 700;
}

.pmt_case_select_card.is-empty {
  border-style: dashed;
  background: #fbfcfe;
}

.pmt_case_select_actions {
  display: grid;
  gap: 6px;
}

.pmt_binding_form select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: var(--pmt-text);
  font-size: 13px;
}

.pmt_binding_form button,
.pmt_binding_remove {
  min-height: 32px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--pmt-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pmt_binding_form button:hover,
.pmt_binding_remove:hover {
  border-color: #bed0f5;
  background: #eef4ff;
}

.pmt_binding_form button:disabled,
.pmt_binding_remove:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pmt_binding_remove {
  position: absolute;
  top: 8px;
  right: 8px;
}

.pmt_case_picker_overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
}

.pmt_case_picker_panel {
  width: min(720px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.pmt_case_picker_panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pmt_case_picker_panel header strong {
  display: block;
  color: var(--pmt-text);
  font-size: 15px;
  line-height: 1.35;
}

.pmt_case_picker_panel header span {
  display: block;
  margin-top: 2px;
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_case_picker_panel header button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.pmt_case_picker_search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--pmt-text);
  font-size: 13px;
}

.pmt_case_picker_search input:focus {
  border-color: #9bbbf2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pmt_case_picker_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pmt_case_picker_filters button {
  min-height: 28px;
  border: 1px solid var(--pmt-line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pmt_case_picker_filters button.is-active {
  border-color: #9dbcf2;
  background: #eef5ff;
  color: #255aa8;
}

.pmt_case_picker_list {
  min-height: 180px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.pmt_case_picker_item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: var(--pmt-text);
  text-align: left;
  cursor: pointer;
}

.pmt_case_picker_item:hover,
.pmt_case_picker_item.is-selected {
  border-color: #9dbcf2;
  background: #f3f7ff;
}

.pmt_case_picker_item span {
  min-width: 0;
}

.pmt_case_picker_item strong,
.pmt_case_picker_item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_case_picker_item strong {
  font-size: 13px;
  line-height: 1.35;
}

.pmt_case_picker_item em {
  margin-top: 3px;
  color: var(--pmt-muted);
  font-size: 12px;
  font-style: normal;
}

.pmt_case_picker_item small {
  border: 1px solid #d7e4f7;
  border-radius: 999px;
  padding: 3px 8px;
  color: #315f9d;
  background: #f5f8fd;
  font-size: 11px;
  font-weight: 700;
}

.pmt_case_picker_empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed var(--pmt-line);
  border-radius: 7px;
  color: var(--pmt-muted);
  font-size: 13px;
}

.pmt_case_binding_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: transparent;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.pmt_case_binding_layout .pmt_panel {
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px;
  overflow: hidden;
}

.pmt_case_binding_case_panel,
.pmt_case_binding_subject_panel {
  min-height: 0;
}

.pmt_case_binding_case_panel .pmt_case_binding_split,
.pmt_case_binding_subject_panel .pmt_case_binding_split {
  flex: 1 1 auto;
}

.pmt_case_binding_case_panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pmt_case_binding_subject_panel {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--pmt-line);
}

.pmt_case_binding_layout .pmt_case_binding_case_panel,
.pmt_case_binding_layout .pmt_case_binding_subject_panel {
  background: #fff;
}

.pmt_case_binding_split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pmt_case_binding_case_panel .pmt_case_binding_split {
  grid-template-columns: minmax(0, 1fr);
}

.pmt_case_binding_subject_panel .pmt_case_binding_split {
  grid-template-columns: minmax(0, 1fr);
}

.pmt_case_binding_zone {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
  overflow: hidden;
}

.pmt_case_binding_select_zone {
  grid-template-rows: auto minmax(0, 1fr);
}

.pmt_case_binding_confirm_zone {
  grid-template-rows: auto minmax(0, 1fr);
}

.pmt_case_binding_subject_panel .pmt_case_binding_confirm_zone {
  grid-template-rows: auto minmax(0, 1fr);
  background: #fbfdff;
  overflow: hidden;
}

.pmt_binding_workspace {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 8fr);
  gap: 10px;
  align-items: stretch;
}

.pmt_binding_category_zone {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.pmt_binding_workspace > .pmt_case_binding_confirm_zone {
  height: 100%;
}

.pmt_case_picker_workspace {
  height: 100%;
}

.pmt_case_picker_category_zone {
  padding: 8px;
  gap: 6px;
}

.pmt_case_picker_list_zone {
  height: 100%;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pmt_case_picker_list_zone > .pmt_case_binding_case_list {
  min-height: 0;
}

.pmt_binding_mode_switch,
.pmt_case_binding_filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.pmt_binding_mode_switch button,
.pmt_case_binding_filters button {
  min-height: 30px;
  border: 1px solid var(--pmt-line);
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.pmt_binding_mode_switch button.is-active,
.pmt_case_binding_filters button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.pmt_case_binding_subject_drop_zone.is-drop-target {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.pmt_case_binding_drop_hint {
  margin: 0;
  border: 1px dashed #c9d8ec;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--pmt-muted);
  font-size: 12px;
  line-height: 1.45;
}

.pmt_case_binding_layout .pmt_panel_head {
  align-items: center;
  gap: 8px;
}

.pmt_case_binding_layout .pmt_panel_head h3 {
  font-size: 15px;
}

.pmt_case_binding_layout .pmt_panel_head .pmt_eyebrow {
  margin-bottom: 2px;
}

.pmt_case_binding_zone .pmt_panel_subhead {
  align-items: center;
  gap: 8px;
}

.pmt_case_binding_zone .pmt_panel_subhead h4 {
  font-size: 13px;
}

.pmt_case_binding_zone .pmt_panel_subhead span {
  min-width: 0;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_subject_confirm_head_actions,
.pmt_case_confirm_head_actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.pmt_subject_confirm_head_actions > span:first-child,
.pmt_case_confirm_head_actions > span:first-child {
  min-width: 0;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_subject_confirm_head_actions > .pmt_badge,
.pmt_case_confirm_head_actions > .pmt_badge {
  flex: 0 0 auto;
}

.pmt_case_binding_search input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--pmt-text);
  font-size: 13px;
}

.pmt_case_binding_search input:focus,
.pmt_case_binding_fields input:focus,
.pmt_case_binding_fields select:focus {
  border-color: #9bbbf2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pmt_case_binding_filters {
  min-height: 0;
  overflow: auto;
}

.pmt_case_binding_case_list,
.pmt_case_binding_subject_list,
.pmt_case_binding_editor_list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.pmt_case_binding_editor_list {
  padding-bottom: 12px;
  overscroll-behavior: contain;
}

.pmt_case_binding_editor_list:has(> .pmt_empty:only-child) {
  align-content: center;
  justify-items: center;
  padding-bottom: 0;
}

.pmt_case_binding_editor_list > .pmt_empty:only-child {
  width: 100%;
  max-width: 240px;
  text-align: center;
}

.pmt_binding_role_zone {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid #dbe7f4;
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px 16px 16px;
}

.pmt_binding_role_zone.is-drop-target {
  border-color: #8ab4ff;
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.pmt_binding_role_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pmt_binding_role_head strong {
  color: var(--pmt-strong);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.pmt_binding_role_head span {
  flex: 0 0 auto;
  min-width: 50px;
  border: 1px solid #d1deed;
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.pmt_binding_role_cards {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 74px;
}

.pmt_binding_role_cards > .pmt_empty {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px dashed #b8cdea;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.pmt_case_binding_confirm_card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  padding: 9px 10px;
}

.pmt_case_binding_confirm_main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pmt_case_binding_confirm_main strong,
.pmt_case_binding_confirm_main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_case_binding_confirm_main strong {
  color: var(--pmt-strong);
  font-size: 14px;
  line-height: 1.35;
}

.pmt_case_binding_confirm_main span {
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_case_binding_confirm_meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  justify-content: flex-end;
}

.pmt_case_binding_confirm_meta small {
  flex: 0 0 auto;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  padding: 3px 7px;
  color: #255aa8;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pmt_case_binding_case,
.pmt_case_binding_subject {
  width: 100%;
  min-width: 0;
  border: 1px solid #e0e7f0;
  border-radius: 7px;
  background: #fff;
  color: var(--pmt-text);
  cursor: pointer;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}

.pmt_case_binding_case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 8px 10px;
}

.pmt_case_binding_subject {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 7px 9px;
}

.pmt_case_binding_case:hover,
.pmt_case_binding_case.is-active,
.pmt_case_binding_subject:hover,
.pmt_case_binding_subject.is-selected {
  border-color: #9dbcf2;
  background: #f3f7ff;
}

.pmt_case_binding_subject.is-selected .pmt_subject_check {
  border-color: #2563eb;
  background: #2563eb;
}

.pmt_case_binding_subject.is-selected .pmt_subject_check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pmt_case_binding_case span,
.pmt_case_binding_subject span {
  min-width: 0;
}

.pmt_case_binding_case span {
  grid-column: 1;
}

.pmt_case_binding_subject .pmt_subject_check {
  grid-column: 1;
  grid-row: 1;
}

.pmt_case_binding_subject > span:not(.pmt_subject_check) {
  grid-column: 2;
  grid-row: 1;
}

.pmt_case_binding_case strong,
.pmt_case_binding_case em,
.pmt_case_binding_subject strong,
.pmt_case_binding_subject em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_case_binding_case strong,
.pmt_case_binding_subject strong {
  color: var(--pmt-strong);
  font-size: 13px;
  line-height: 1.35;
}

.pmt_case_binding_case em,
.pmt_case_binding_subject em {
  margin-top: 3px;
  color: var(--pmt-muted);
  font-size: 12px;
  font-style: normal;
}

.pmt_case_binding_case small,
.pmt_case_binding_subject small {
  justify-self: start;
  flex: 0 0 auto;
  border: 1px solid #d7e4f7;
  border-radius: 999px;
  padding: 3px 7px;
  color: #315f9d;
  background: #f5f8fd;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pmt_case_binding_case small {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.pmt_case_binding_subject small {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.pmt_case_binding_subject.is-bound small {
  border-color: #bbd7c7;
  background: #edf8f1;
  color: #23734d;
}

.pmt_case_binding_editor_card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  border: 1px solid #d5e2f1;
  border-radius: 10px;
  background: #fff;
  padding: 14px 14px 14px 20px;
  color: var(--pmt-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.pmt_case_binding_editor_card::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #3b82f6;
}

.pmt_case_binding_editor_card[draggable="true"] {
  cursor: grab;
}

.pmt_case_binding_editor_card:hover,
.pmt_case_binding_editor_card:focus-within {
  border-color: #8ab4ff;
  background: #f5f8ff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.pmt_case_binding_editor_card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.pmt_binding_card_main {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.pmt_binding_card_status {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.pmt_binding_card_main strong,
.pmt_binding_card_main span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_binding_card_main strong {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--pmt-strong);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.pmt_case_binding_editor_card > strong {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  color: var(--pmt-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_binding_card_main span {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid #c9dcfb;
  border-radius: 999px;
  padding: 5px 12px;
  background: #f5f8fd;
  color: #2563eb;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.pmt_binding_card_status span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
}

.pmt_binding_card_status span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #94a3b8;
}

.pmt_binding_card_status span:nth-child(1) {
  border-color: #bbd7c7;
  background: #f0fdf4;
  color: #166534;
}

.pmt_binding_card_status span:nth-child(1)::before {
  background: #22c55e;
}

.pmt_binding_card_status span:nth-child(2) {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.pmt_binding_card_status span:nth-child(2)::before {
  background: #f59e0b;
}

.pmt_case_binding_editor_card > button {
  display: inline-grid;
  align-self: start;
  width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pmt-muted);
  cursor: pointer;
}

.pmt_case_binding_editor_card > .pmt_binding_view_icon {
  grid-column: 2;
  grid-row: 1;
}

.pmt_case_binding_editor_card > .pmt_binding_remove_icon {
  grid-column: 3;
  grid-row: 1;
}

.pmt_case_binding_editor_card:not(:has(.pmt_binding_view_icon)) > .pmt_binding_remove_icon {
  grid-column: 2;
}

.pmt_case_binding_editor_card > button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pmt_case_binding_editor_card > button:hover {
  border-color: #9bbcf0;
  background: #eff6ff;
  color: #1d4ed8;
}

.pmt_case_binding_editor_card > .pmt_binding_remove_icon:hover {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #dc2626;
}

.pmt_party_binding_editor_card {
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  gap: 6px 8px;
  min-height: 0;
  border-color: #dbe5f1;
  border-radius: 8px;
  padding: 12px 12px 12px 16px;
  background: #fff;
  box-shadow: none;
}

.pmt_party_binding_editor_card::before {
  inset: 12px auto 12px 0;
  width: 3px;
}

.pmt_party_binding_editor_card:hover,
.pmt_party_binding_editor_card:focus-within {
  background: #fbfdff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: none;
}

.pmt_party_binding_editor_card .pmt_binding_card_main {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.pmt_party_binding_editor_card .pmt_binding_card_main strong {
  grid-column: auto;
  grid-row: auto;
  font-size: 15px;
  line-height: 1.35;
}

.pmt_party_binding_editor_card .pmt_binding_card_main span {
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.pmt_party_binding_editor_card .pmt_binding_card_status {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: flex-start;
  gap: 4px 10px;
  color: #64748b;
}

.pmt_party_binding_editor_card .pmt_binding_card_status span {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.pmt_party_binding_editor_card .pmt_binding_card_status span::before {
  width: 4px;
  height: 4px;
}

.pmt_party_binding_editor_card .pmt_case_binding_fields {
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 4px;
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
}

.pmt_party_binding_editor_card .pmt_case_binding_fields label {
  grid-template-columns: minmax(0, 68px) minmax(0, 1fr);
  gap: 8px;
}

.pmt_party_binding_editor_card .pmt_case_binding_fields label > span {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
}

.pmt_party_binding_editor_card .pmt_case_binding_fields select,
.pmt_party_binding_editor_card .pmt_case_binding_fields input {
  height: 28px;
  min-height: 28px;
  border-color: #dbe5f1;
  background: #fff;
  font-size: 13px;
}

.pmt_party_binding_editor_card > button {
  width: 28px;
  height: 28px;
  min-height: 28px;
}

.pmt_party_binding_editor_card > .pmt_binding_view_icon {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  color: transparent;
}

.pmt_party_binding_editor_card > .pmt_binding_view_icon::before {
  content: "查";
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 800;
}

.pmt_party_binding_editor_card > .pmt_binding_remove_icon {
  grid-column: 3;
  grid-row: 1;
}

.pmt_entrust_binding_editor_card {
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: start;
  gap: 8px 10px;
  min-height: 0;
  padding: 12px 12px 12px 18px;
}

.pmt_entrust_binding_editor_card > strong {
  grid-column: 1;
  grid-row: 1;
  min-height: 30px;
  align-content: center;
  font-size: 15px;
}

.pmt_entrust_binding_editor_card > .pmt_binding_remove_icon {
  grid-column: 2;
  grid-row: 1;
}

.pmt_entrust_binding_editor_card .pmt_case_binding_fields {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid #d8e6f7;
  padding-top: 10px;
}

.pmt_entrust_binding_editor_card .pmt_case_binding_fields label {
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  gap: 8px;
}

.pmt_entrust_binding_editor_card .pmt_case_binding_fields label > span {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
}

.pmt_entrust_binding_editor_card .pmt_case_binding_fields select {
  min-width: 0;
  height: 30px;
  min-height: 30px;
  font-size: 13px;
}

.pmt_case_binding_fields {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin-top: 0;
  border-top: 1px solid #e5eef8;
  padding-top: 10px;
}

.pmt_case_binding_fields.is-legal-only {
  grid-template-columns: minmax(0, 1fr);
}

.pmt_case_binding_fields label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmt_case_binding_fields label > span {
  white-space: nowrap;
}

.pmt_case_binding_fields input,
.pmt_case_binding_fields select {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: var(--pmt-text);
  font-size: 13px;
}

@container (max-width: 560px) {
  .pmt_case_binding_split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmt_case_binding_subject_panel .pmt_case_binding_split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmt_case_binding_subject_panel .pmt_case_binding_confirm_zone {
    grid-template-rows: auto auto minmax(96px, 1fr);
  }

  .pmt_case_binding_case_panel .pmt_case_binding_case {
    min-height: 46px;
  }

  .pmt_case_binding_case_panel .pmt_case_binding_case em {
    margin-top: 1px;
  }
}

.pmt_json_preview {
  min-height: 150px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #19324d;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.pmt_material_editor {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 10px;
}

.pmt_material_editor select {
  min-height: 32px;
  padding: 0 8px;
}

.pmt_material_editor textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 10px;
  color: var(--pmt-text);
  font: inherit;
  line-height: 1.5;
}

.pmt_firewall_grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 12px;
  min-height: 0;
}

.pmt_firewall_output {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.pmt_safe_output {
  min-height: 150px;
  padding: 12px;
  overflow: auto;
  color: var(--pmt-strong);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pmt_hit_log {
  min-height: 0;
}

.pmt_hit_item {
  align-items: flex-start;
}

.pmt_hit_item strong {
  color: var(--pmt-strong);
  font-size: 13px;
}

.pmt_ocr_upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 96px;
  gap: 8px;
  align-items: center;
}

.pmt_file_picker,
.pmt_ocr_upload select,
.pmt_primary_btn,
.pmt_secondary_btn {
  min-height: 34px;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pmt-text);
  font: inherit;
}

.pmt_file_picker {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 10px;
  cursor: pointer;
}

.pmt_file_picker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_file_picker input {
  display: none;
}

.pmt_ocr_upload select {
  padding: 0 8px;
}

.pmt_primary_btn,
.pmt_secondary_btn {
  cursor: pointer;
  font-weight: 700;
}

.pmt_subject_list_head { display: block; }

.pmt_subject_list_head .pmt_list_label {
  margin: 0;
}

.pmt_subject_status_filters {
  display: grid;
  gap: 5px;
  padding: 7px 12px 6px;
  border-bottom: 1px solid #e5ecf5;
  background: #fbfdff;
}

.pmt_subject_health_tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.pmt_subject_health_tab {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d5e0ee;
  border-radius: 7px;
  background: #fff;
  color: #536276;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.pmt_subject_health_tab em {
  min-width: 18px;
  border-radius: 999px;
  padding: 1px 5px;
  background: #edf2f8;
  color: #718096;
  font-size: 10px;
  font-style: normal;
  line-height: 1.5;
}

.pmt_subject_health_tab:hover {
  border-color: #abc5ef;
  background: #f6f9ff;
}

.pmt_subject_health_tab.is-active {
  border-color: #8fb3ef;
  background: #eaf2ff;
  color: #165fc4;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.pmt_subject_health_tab.is-active em {
  background: #d9e8ff;
  color: #165fc4;
}

.pmt_db_status_tag {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 6px;
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  background: #f8fbff;
  color: #536276;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.pmt_db_status_tag.is-ok {
  border-color: #b9dfcc;
  background: #f0fbf5;
  color: var(--pmt-green);
}

.pmt_db_status_tag.is-loading {
  border-color: #bfd7ff;
  background: #eef5ff;
  color: var(--pmt-blue);
}

.pmt_db_status_tag.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626;
}

.pmt_primary_btn {
  border-color: #b9dfcc;
  background: #f0fbf5;
  color: var(--pmt-green);
}

.pmt_primary_btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.pmt_switch {
  appearance: none;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.pmt_switch_track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .18s ease;
}

.pmt_switch_track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .24);
  transition: transform .18s ease;
}

.pmt_switch.is-on {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.pmt_switch.is-on .pmt_switch_track {
  background: #2563eb;
}

.pmt_switch.is-on .pmt_switch_track::after {
  transform: translateX(14px);
}

.pmt_switch.is-disabled {
  cursor: not-allowed;
  opacity: .82;
}

.pmt_secondary_btn {
  border-color: #bed0f5;
  background: #eef4ff;
  color: var(--pmt-blue);
}

.pmt_ocr_status {
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: var(--pmt-soft);
  padding: 10px;
  color: var(--pmt-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pmt_ocr_result {
  display: grid;
  gap: 10px;
  min-height: 500px;
  align-content: start;
}

.pmt_party_material_ocr_panel .pmt_ocr_result {
  min-height: 260px;
}

.pmt_ocr_empty,
.pmt_ocr_warnings {
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: var(--pmt-soft);
  padding: 10px;
}

.pmt_ocr_data_block {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #c8daf6;
  border-radius: 12px;
  background: #f7faff;
  padding: 12px;
}

.pmt_ocr_data_head,
.pmt_ocr_group_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pmt_ocr_data_head {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.pmt_ocr_overview_bar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #dbe7f7;
  border-radius: 9px;
  background: #eef5ff;
}

.pmt_ocr_overview_title {
  flex: 0 0 auto;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.pmt_ocr_review_card {
  padding: 10px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #fff;
}

.pmt_ocr_data_head > div:first-child {
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
}

.pmt_ocr_data_head h4 {
  margin: 0;
  color: var(--pmt-strong);
  font-size: 15px;
  letter-spacing: 0;
}

.pmt_ocr_file_name_input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 34px;
  margin: 2px 0 0;
  padding: 5px 10px;
  border: 1px solid #d7e4f7;
  border-radius: 7px;
  background: #fff;
  color: var(--pmt-strong);
  font-size: 15px;
  font-weight: 900;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_ocr_file_name_input:hover {
  border-color: #d7e4f7;
  background: #f8fbff;
}

.pmt_ocr_file_name_input:focus {
  border-color: #2563eb;
  background: #fff;
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.pmt_ocr_data_metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.pmt_ocr_metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  min-height: 22px;
  border: 1px solid #d7e4f7;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f8fbff;
}

.pmt_ocr_metric span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.pmt_ocr_metric strong {
  min-width: 0;
  overflow: hidden;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_ocr_summary_field,
.pmt_ocr_data_field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pmt_ocr_summary_head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pmt_ocr_summary_label,
.pmt_ocr_data_field span,
.pmt_ocr_group_head span {
  font-size: 12px;
  font-weight: 700;
}

.pmt_ocr_summary_head em {
  min-width: 0;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_ocr_summary_label,
.pmt_ocr_data_field span {
  color: var(--pmt-muted);
}

.pmt_ocr_summary_field textarea,
.pmt_ocr_data_field input,
.pmt_ocr_data_field select {
  width: 100%;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  background: #fff;
  color: var(--pmt-strong);
  font: inherit;
}

.pmt_ocr_summary_field textarea {
  min-height: 190px;
  max-height: 340px;
  resize: vertical;
  padding: 10px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pmt_ocr_field_group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pmt_ocr_group_head em {
  min-width: 0;
  overflow: hidden;
  color: var(--pmt-muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_ocr_data_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pmt_duplicate_review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.pmt_duplicate_review.is-duplicate {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.pmt_duplicate_review.is-conflict {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.pmt_duplicate_review.is-clear {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.pmt_duplicate_review_badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.pmt_duplicate_review em {
  font-style: normal;
  opacity: .86;
}

.pmt_duplicate_review_actions {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.pmt_duplicate_review_actions .pmt_secondary_btn {
  min-height: 26px;
  padding-inline: 8px;
  font-size: 12px;
}

.pmt_ocr_data_field.is-full {
  grid-column: 1 / -1;
}

.pmt_ocr_data_field input {
  min-height: 34px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmt_ocr_actions {
  display: flex;
  justify-content: flex-end;
}

.pmt_ocr_head_actions {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.pmt_ocr_head_actions .pmt_secondary_btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.pmt_ocr_rerun_btn.is-loading {
  position: relative;
  padding-left: 28px;
  cursor: wait;
}

.pmt_ocr_rerun_btn.is-loading::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(37, 99, 235, .22);
  border-top-color: var(--pmt-blue);
  border-radius: 999px;
  animation: pmt_ocr_rerun_spin .72s linear infinite;
}

@keyframes pmt_ocr_rerun_spin {
  to {
    transform: rotate(360deg);
  }
}

.pmt_ocr_type_select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0 8px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}

.pmt_ocr_type_select span {
  color: inherit;
  font-size: 11px;
  white-space: nowrap;
}

.pmt_ocr_type_select select {
  max-width: 76px;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pmt_ocr_warnings {
  display: grid;
  gap: 6px;
  color: var(--pmt-amber);
  font-size: 13px;
}

.pmt_batch_layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.pmt_batch_modal[hidden] {
  display: none !important;
}

.pmt_batch_modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
}

.pmt_party_ocr_diff {
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid #dbe7f5;
  border-radius: 9px;
  background: #f8fbff;
  color: #52657d;
  font-size: 12px;
}

.pmt_party_ocr_diff.is-changed {
  border-color: #f6c55f;
  background: #fffaf0;
}

.pmt_party_ocr_diff strong {
  color: var(--pmt-strong);
}

.pmt_party_ocr_diff em {
  color: #7a5b13;
  font-style: normal;
  font-weight: 700;
}

.pmt_party_file_ocr_empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed #bfcee1;
  border-radius: 12px;
  background: #f8fbff;
  color: #60728a;
  text-align: center;
}

.pmt_batch_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.pmt_batch_modal_panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(94vw, 1480px);
  height: min(90vh, 920px);
  min-width: min(94vw, 960px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.pmt_batch_modal_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pmt-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pmt_batch_modal_head h3 {
  margin: 2px 0 0;
  color: var(--pmt-strong);
  font-size: 18px;
  font-weight: 900;
}

.pmt_batch_modal_title_row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.pmt_batch_modal_title_row .pmt_ocr_status {
  max-width: min(52vw, 680px);
  margin: 2px 0 0;
  padding: 4px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_batch_modal_head_actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pmt_batch_modal_head_actions .pmt_primary_btn {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.pmt_batch_ocr_toggle_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 108px;
}

.pmt_batch_ocr_toggle_btn.is-running {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7ed 0%, #fee2e2 100%);
  color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.pmt_batch_ocr_toggle_btn.is-stopping {
  opacity: 0.78;
}

.pmt_batch_ocr_spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: pmt-batch-ocr-spin 0.72s linear infinite;
}

@keyframes pmt-batch-ocr-spin {
  to {
    transform: rotate(360deg);
  }
}

.pmt_batch_modal_close_btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.pmt_batch_modal_close_btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pmt_batch_modal_close_btn:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.14);
}

.pmt_batch_modal_close_btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.pmt_batch_modal_layout {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  gap: 0;
  min-height: 0;
}

.pmt_batch_modal_layout .pmt_batch_folder_panel,
.pmt_batch_modal_layout .pmt_batch_detail_panel {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pmt_batch_modal_layout .pmt_batch_folder_panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  border-right: 1px solid var(--pmt-line);
  padding: 12px;
  overflow: hidden;
}

.pmt_batch_modal_layout .pmt_batch_folder_panel .pmt_panel_head {
  align-items: flex-start;
  padding-bottom: 2px;
}

.pmt_batch_modal_layout .pmt_batch_folder_panel .pmt_panel_head h3 {
  margin-top: 1px;
  font-size: 15px;
}

.pmt_batch_modal_layout .pmt_batch_detail_panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.pmt_batch_modal_layout .pmt_batch_detail_panel > .pmt_panel_head {
  display: none;
}

.pmt_batch_modal_layout .pmt_batch_review_grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 440px);
  gap: 0;
  height: 100%;
  min-height: 0;
}

.pmt_batch_modal_layout .pmt_file_preview_module,
.pmt_batch_modal_layout .pmt_batch_ocr_detail {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.pmt_batch_modal_layout .pmt_file_preview_module {
  border-right: 1px solid var(--pmt-line);
}

.pmt_batch_modal_layout .pmt_file_preview {
  height: 100%;
  border: 0;
  border-radius: 0;
}

.pmt_batch_modal_layout .pmt_batch_ocr_detail {
  overflow: auto;
  padding: 12px;
}

.pmt_batch_modal_layout .pmt_upload_folder {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: none;
  height: 100%;
  min-height: 0;
}

.pmt_batch_modal_layout .pmt_upload_folder_grid {
  grid-template-columns: 1fr;
  align-content: start;
  overflow: auto;
}

.pmt_batch_modal_layout .mfm_file_card {
  width: 100%;
}

.party_manage_test.is-module-page .pmt_panel_stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.party_manage_test.is-module-page .pmt_module_page {
  display: none;
  container-type: inline-size;
  min-height: 0;
  height: 100%;
  padding: 8px 10px 10px;
  overflow: hidden;
}

.party_manage_test.is-module-page .pmt_module_page.is-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.party_manage_test[data-pmt-active-module="batch"] .pmt_module_page.is-active,
.party_manage_test[data-pmt-active-module="caseBinding"] .pmt_module_page.is-active {
  padding: 0;
}

.party_manage_test.is-module-page .pmt_batch_layout {
  grid-template-rows: max-content minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  gap: 0;
  background: #fff;
}

.party_manage_test.is-module-page .pmt_batch_folder_panel,
.party_manage_test.is-module-page .pmt_batch_detail_panel {
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 10px 12px;
  overflow: hidden;
}

.party_manage_test.is-module-page .pmt_batch_folder_panel {
  align-self: start;
  padding-bottom: 8px;
}

.pmt_batch_detail_panel {
  display: flex;
  flex-direction: column;
}

.party_manage_test.is-module-page .pmt_batch_detail_panel {
  border-top: 1px solid var(--pmt-line);
}

.party_manage_test.is-module-page .pmt_batch_folder_panel .pmt_panel_head,
.party_manage_test.is-module-page .pmt_batch_detail_panel .pmt_panel_head {
  gap: 8px;
}

.party_manage_test.is-module-page .pmt_batch_folder_panel .pmt_panel_head > div:first-child {
  min-width: 0;
}

.pmt_batch_title_row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.party_manage_test.is-module-page .pmt_batch_folder_panel .pmt_panel_head h3,
.party_manage_test.is-module-page .pmt_batch_detail_panel .pmt_panel_head h3 {
  flex: 0 0 auto;
  font-size: 14px;
}

.party_manage_test.is-module-page .pmt_batch_detail_panel .pmt_panel_head h3:empty {
  display: none;
}

.party_manage_test.is-module-page .pmt_batch_folder_panel .pmt_eyebrow,
.party_manage_test.is-module-page .pmt_batch_detail_panel .pmt_eyebrow {
  margin-bottom: 2px;
}

.pmt_batch_head_actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pmt_batch_folder_panel,
.pmt_batch_detail_panel {
  min-height: 0;
}

.pmt_upload_folder {
  position: relative;
  min-height: 0;
  max-height: 236px;
  overflow: auto;
  border: 1px dashed #cfd6df;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fbfcfd;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.pmt_upload_folder > .pmt_eyebrow {
  margin-bottom: 6px;
}

.pmt_upload_folder.is-drag-over {
  border-color: var(--pmt-blue);
  background: #f1f6ff;
}

.pmt_upload_folder > input {
  display: none;
}

.pmt_upload_folder_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 96px));
  gap: 8px 10px;
  align-items: start;
  justify-content: start;
}

.pmt_upload_folder_grid .mfm_file_card {
  cursor: pointer;
}

.pmt_upload_file_card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 4px 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pmt_upload_file_card:hover,
.pmt_upload_file_card.is-active {
  border-color: #bed0f5;
  background: #eef4ff;
}

.pmt_file_thumb {
  position: relative;
  width: 42px;
  height: 52px;
  border: 1px solid #d9dee6;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.pmt_file_thumb::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  right: 9px;
  height: 4px;
  border-radius: 999px;
  background: #d7dde6;
  box-shadow: 0 9px 0 #e1e6ed, 0 18px 0 #e1e6ed, 0 27px 0 #e1e6ed;
}

.pmt_file_thumb span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  max-width: 34px;
  overflow: hidden;
  border-radius: 4px;
  padding: 2px 3px;
  background: #eef1f5;
  color: var(--pmt-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
}

.pmt_file_thumb.is-large {
  width: 80px;
  height: 100px;
}

.pmt_upload_file_card strong {
  display: -webkit-box;
  width: 100%;
  min-height: 28px;
  overflow: hidden;
  color: var(--pmt-strong);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pmt_file_badges {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  max-width: calc(100% - 6px);
  justify-content: flex-end;
  gap: 5px;
}

.pmt_file_badges .pmt_badge {
  min-height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

.pmt_upload_folder_empty {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: var(--pmt-muted);
  font-size: 12px;
}

.pmt_batch_head_actions .pmt_primary_btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.party_manage_test.is-module-page .pmt_batch_folder_panel .pmt_ocr_status {
  min-width: 0;
  margin-top: 0;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt_batch_review_grid {
  order: 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(300px, 1.08fr);
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.pmt_file_preview_module,
.pmt_file_preview,
.pmt_batch_ocr_detail {
  min-width: 0;
  min-height: 0;
}

.pmt_file_preview_module {
  display: grid;
  height: 100%;
}

.party_manage_test.is-module-page .pmt_file_preview,
.party_manage_test.is-module-page .pmt_batch_ocr_detail {
  height: 100%;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail {
  display: grid;
  align-content: start;
  align-items: start;
  overflow: auto;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_block {
  gap: 6px;
  align-self: start;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 8px;
  border-radius: 6px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_head h4 {
  font-size: 14px;
  line-height: 1.25;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_file_name_input {
  height: 28px;
  font-size: 14px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_head_actions {
  gap: 5px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_head_actions .pmt_secondary_btn,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_type_select,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_switch {
  min-height: 26px;
  padding-inline: 7px;
  font-size: 11px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_switch {
  padding-left: 4px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_switch_track {
  width: 30px;
  height: 18px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_switch_track::after {
  width: 12px;
  height: 12px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_switch.is-on .pmt_switch_track::after {
  transform: translateX(12px);
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_metrics {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 3px;
  overflow: hidden;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_metric {
  min-height: 20px;
  padding: 1px 5px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_metric span,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_field span,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_group_head span,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_group_head em {
  font-size: 11px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_metric span {
  font-size: 10px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_metric strong {
  font-size: 11px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_metric:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_metric:last-child strong {
  max-width: 112px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_summary_head {
  flex-wrap: nowrap;
  gap: 6px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_overview_bar {
  padding: 5px 7px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_review_card {
  padding: 7px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_summary_label {
  flex: 0 0 auto;
  font-size: 11px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_summary_field,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_field {
  gap: 3px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_summary_field textarea {
  min-height: 82px;
  max-height: 128px;
  padding: 7px;
  font-size: 12px;
  line-height: 1.4;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_field_group {
  gap: 4px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_grid {
  gap: 5px 6px;
}

.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_field input,
.party_manage_test.is-module-page .pmt_batch_ocr_detail .pmt_ocr_data_field select {
  min-height: 27px;
  padding: 0 7px;
  font-size: 12px;
}

.pmt_file_preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--pmt-line);
  border-radius: 8px;
  padding-bottom: 38px;
  background: #f8fafc;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
}

.pmt_file_preview.is-pdf-js {
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
}

.pmt_file_preview.is-locked {
  border-color: #9fb7e8;
  box-shadow: inset 0 0 0 1px rgba(63, 99, 180, 0.16);
}

.pmt_file_preview.is-panning {
  cursor: grabbing;
}

.pmt_preview_toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 30px;
  margin-bottom: 6px;
}

.pmt_file_preview > .pmt_preview_toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 0;
  row-gap: 0;
  border-top: 1px solid rgba(159, 183, 232, 0.55);
  border-radius: 0 0 8px 8px;
  padding: 0;
  background: rgba(248, 250, 252, 0.92);
  margin-bottom: 0;
  backdrop-filter: blur(4px);
}

.pmt_file_preview > .pmt_preview_toolbar button,
.pmt_file_preview > .pmt_preview_toolbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  border-width: 0;
  border-right: 1px solid rgba(159, 183, 232, 0.55);
  border-radius: 0;
  background: transparent;
}

.pmt_file_preview > .pmt_preview_toolbar button:last-child {
  border-right: 0;
}

.pmt_preview_toolbar button {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pmt-line);
  border-radius: 6px;
  padding: 0;
  background: #fff;
  color: var(--pmt-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pmt_preview_toolbar button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pmt_preview_toolbar button:hover {
  border-color: #bed0f5;
  background: #eef4ff;
}

.pmt_preview_toolbar button.is-active {
  border-color: #5278d9;
  background: #e8f0ff;
  color: #254ea8;
}

.pmt_preview_toolbar span {
  min-width: 44px;
  color: var(--pmt-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.pmt_preview_surface {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: max-content;
  max-width: none;
  height: max-content;
  max-height: none;
  place-items: center;
  overflow: visible;
  transform: translate(calc(-50% + var(--pmt-preview-pan-x, 0px)), calc(-50% + var(--pmt-preview-pan-y, 0px))) scale(var(--pmt-preview-zoom, 1));
  transform-origin: center center;
  will-change: transform;
}

.pmt_file_preview[data-pmt-public-preview] .pmt_preview_surface {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: none !important;
  transform-origin: center center;
  will-change: auto;
}

.pmt_file_preview[data-pmt-public-preview] .pmt_pdf_viewer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 40px;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: auto;
  transform: none !important;
  transform-origin: center center;
  will-change: auto;
}

.pmt_file_preview[data-pmt-public-preview] .pmt_preview_surface > img,
.pmt_file_preview[data-pmt-public-preview] .pmt_preview_surface [data-pmt-preview-content] {
  transform-origin: center center;
}

.pmt_file_preview[data-pmt-public-preview] .pmt_preview_surface .pmt_file_preview_placeholder {
  margin: auto;
  max-width: min(360px, 82%);
  text-align: center;
}

.pmt_file_preview[data-pmt-public-preview] .pmt_preview_surface.is-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: none;
}

.pmt_preview_surface img,
.pmt_preview_surface .pmt_file_preview_placeholder {
  pointer-events: none;
}

.pmt_file_preview img,
.pmt_file_preview iframe {
  border: 0;
  background: #fff;
}

.pmt_file_preview img {
  width: auto;
  max-width: min(calc(100vw - 96px), 960px);
  max-height: 100%;
  object-fit: contain;
}

.pmt_file_preview iframe {
  width: 100%;
  min-height: 0;
  height: 100%;
}

.pmt_pdf_viewer {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 14px;
  background: var(--pmt-soft);
  scrollbar-gutter: stable both-edges;
  touch-action: none;
}

.pmt_id_card_quad_stage.is-panning {
  cursor: grabbing;
}

.pmt_pdf_document_shell {
  position: relative;
  min-width: max-content;
  margin: 0 auto;
}

.pmt_pdf_document {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: max-content;
  transform-origin: top center;
  will-change: transform;
}

.pmt_pdf_page {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.pmt_pdf_viewer.is-live-zooming .pmt_pdf_document {
  transform: scale(var(--pmt-pdf-live-scale, 1));
}

.pmt_pdf_page canvas {
  display: block;
  max-width: none;
  image-rendering: auto;
}

.pmt_preview_modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pmt-public-preview-modal-padding, 28px);
}

.pmt_preview_modal.is-open {
  display: flex;
}

.pmt_preview_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.pmt_preview_modal_panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: var(--pmt-public-preview-modal-panel-width, min(980px, calc(100vw - 56px)));
  height: var(--pmt-public-preview-modal-panel-height, min(760px, calc(100vh - 56px)));
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.pmt_preview_modal.is-fullscreen {
  padding: var(--pmt-public-preview-modal-fullscreen-padding, 10px);
}

.pmt_preview_modal.is-fullscreen .pmt_preview_modal_panel {
  width: var(--pmt-public-preview-modal-fullscreen-width, calc(100vw - 20px));
  height: var(--pmt-public-preview-modal-fullscreen-height, calc(100vh - 20px));
}

.pmt_preview_modal_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pmt-line);
  background: #f8fafc;
}

.pmt_preview_modal_head h3 {
  margin: 4px 0 0;
  color: var(--pmt-strong);
  font-size: 16px;
}

.pmt_file_preview_fullscreen {
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.pmt_file_preview_fullscreen iframe {
  width: 100%;
  height: 100%;
}

.pmt_file_preview_empty,
.pmt_file_preview_placeholder {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--pmt-muted);
  text-align: center;
}

.pmt_file_preview_placeholder strong {
  color: var(--pmt-strong);
  word-break: break-all;
}

.pmt_file_preview_placeholder p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .party_manage_test {
    grid-template-columns: 220px 220px minmax(0, 1fr);
  }

  .pmt_content_grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .pmt_tab_panel {
    padding: 10px;
  }

  .pmt_panel {
    min-height: 280px;
  }

  .pmt_tab_panel[data-pmt-panel="materials"].is-active .pmt_party_materials_panel {
    min-height: 0;
  }

  .pmt_tab_panel[data-pmt-panel="materials"].is-active .pmt_party_material_ocr_panel {
    min-height: 0;
  }

  .pmt_shadow_panel {
    min-height: 300px;
  }

  .pmt_firewall_panel {
    min-height: 460px;
  }

  .pmt_firewall_grid {
    grid-template-columns: 1fr;
  }

  .pmt_json_preview,
  .pmt_safe_output {
    max-height: 220px;
  }

  .pmt_binding_list,
  .pmt_hit_log {
    max-height: 180px;
  }

  .pmt_ocr_upload {
    grid-template-columns: 1fr;
  }

  .pmt_ocr_panel {
    min-height: 740px;
  }

  .pmt_ocr_result {
    min-height: 500px;
  }

  .pmt_file_preview,
  .pmt_batch_ocr_detail {
    min-height: 360px;
  }

  .pmt_party_material_ocr_workspace {
    grid-template-columns: 1fr;
  }

  .pmt_party_materials {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmt_party_material_context_bar {
    grid-template-columns: 1fr;
  }

  .pmt_party_material_context_actions {
    justify-content: flex-start;
  }

  .pmt_party_material_workspace {
    grid-template-columns: minmax(260px, 0.48fr) minmax(320px, 0.52fr);
  }

  .pmt_batch_modal_panel {
    width: 96vw;
    height: 92vh;
    min-width: 0;
  }

  .pmt_batch_modal_layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .pmt_batch_modal_layout .pmt_batch_review_grid {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 380px);
  }

  .pmt_topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pmt_case_binding_editor_card {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .pmt_binding_card_status {
    grid-column: 1 / -1;
  }

}

@media (max-width: 760px) {
  .pmt_required_material_modal {
    padding: 10px;
  }

  .pmt_required_material_modal_panel {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .pmt_required_material_modal_head {
    padding: 15px 16px 13px;
  }

  .pmt_tab_panel[data-pmt-panel="materials"].is-active {
    grid-template-rows: max-content;
    overflow: auto;
  }

  .pmt_party_materials_panel {
    height: auto;
    overflow: visible;
  }

  .pmt_party_material_workspace {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .pmt_party_materials {
    grid-template-rows: repeat(2, minmax(184px, auto));
    height: auto;
  }

  .pmt_party_material_preview_shell {
    min-height: 420px;
    height: 420px;
  }

  .pmt_party_material_preview_shell .pmt_file_preview_empty {
    min-height: 398px;
  }
}

@media (max-width: 820px) {
  .party_manage_test {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .pmt_category_column,
  .pmt_subject_column {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--pmt-line);
  }

  .pmt_group_tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmt_workspace {
    overflow: visible;
  }

  .pmt_workspace:has(.pmt_tab_panel[data-pmt-panel="materials"].is-active) {
    height: 100%;
    overflow: hidden;
  }

  .pmt_topbar,
  .pmt_column_header {
    padding: 14px;
  }

  .pmt_ocr_upload {
    grid-template-columns: 1fr;
  }

  .pmt_field_row,
  .pmt_ocr_data_grid {
    grid-template-columns: 1fr;
  }

  .pmt_field_row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .pmt_batch_review_grid {
    grid-template-columns: 1fr;
  }

  .pmt_case_binding_editor_card,
  .pmt_binding_card_status,
  .pmt_case_binding_fields {
    grid-template-columns: 1fr;
  }

  .pmt_case_binding_fields,
  .pmt_binding_card_main,
  .pmt_binding_card_status {
    grid-column: 1 / -1;
  }

  .pmt_batch_modal {
    place-items: stretch;
  }

  .pmt_batch_modal_panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .pmt_batch_modal_layout,
  .pmt_batch_modal_layout .pmt_batch_review_grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(240px, auto);
    overflow: auto;
  }

  .pmt_batch_modal_layout .pmt_batch_folder_panel,
  .pmt_batch_modal_layout .pmt_file_preview_module {
    border-right: 0;
    border-bottom: 1px solid var(--pmt-line);
  }

}

/* 当事人页面嵌在主壳内，断点必须依据页面实际可用宽度，而不是浏览器总宽度。 */
#party_manage_test_view_mount {
  container-name: pmt-shell;
  container-type: inline-size;
}

/* 桌面三栏的内容起始线保持一致：标题栏 86px，中栏筛选 86px，右栏标题 46px + 页签 40px。 */
@container pmt-shell (min-width: 1180px) {
  .pmt_column_header,
  .pmt_subject_status_filters {
    box-sizing: border-box;
    height: 86px;
    min-height: 86px;
  }

  .pmt_subject_status_filters {
    align-content: center;
  }

  .pmt_workspace {
    grid-template-rows: 46px 40px minmax(0, 1fr);
  }

  .pmt_topbar {
    display: flex;
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    align-items: center;
  }

  .pmt_tabs {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
  }
}

@container pmt-shell (max-width: 1179px) {
  .party_manage_test {
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
    overflow: hidden;
  }

  .pmt_category_column {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--pmt-line);
  }

  .pmt_category_column .pmt_column_header {
    min-height: 64px;
    border-bottom: 0;
    padding: 10px 14px;
  }

  .pmt_category_column .pmt_column_header h2 {
    font-size: 16px;
  }

  .pmt_category_column > .pmt_list_label {
    display: none;
  }

  .pmt_category_column .pmt_group_tabs {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
    align-items: center;
    gap: 6px;
    padding: 9px 12px 9px 0;
  }

  .pmt_category_column .pmt_group_tab {
    min-height: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 0 9px;
    text-align: center;
  }

  .pmt_category_column .pmt_group_marker {
    display: none;
  }

  .pmt_subject_column {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    border-right: 1px solid var(--pmt-line);
    border-bottom: 0;
  }

  .pmt_workspace {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
  }

  .pmt_panel_stack {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .pmt_tab_panel {
    min-height: 0;
  }

  .pmt_content_grid,
  .pmt_home_grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    height: auto;
  }

  .pmt_home_grid .pmt_real_panel {
    max-height: none;
    overflow: visible;
  }

  .pmt_home_grid > .pmt_real_panel:nth-child(2) {
    display: flex;
    overflow: visible;
  }

  .pmt_home_grid > .pmt_real_panel:nth-child(2) > .pmt_relation_area.is-active {
    overflow: visible;
  }

  .pmt_home_grid > .pmt_real_panel:nth-child(2) .pmt_binding_flat_list,
  .pmt_home_grid > .pmt_real_panel:nth-child(2) .pmt_binding_list {
    overflow: visible;
    scrollbar-gutter: auto;
  }

}

@container pmt-shell (max-width: 760px) {
  .party_manage_test {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .pmt_category_column {
    grid-column: 1;
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .pmt_category_column .pmt_column_header {
    padding-inline: 12px;
  }

  .pmt_category_column .pmt_column_title_line {
    gap: 5px;
  }

  .pmt_category_column .pmt_column_header h2 {
    font-size: 15px;
  }

  .pmt_category_column .pmt_header_sync_status {
    min-height: 18px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .pmt_category_column .pmt_count {
    display: none;
  }

  .pmt_category_column .pmt_group_tabs {
    display: flex;
    gap: 6px;
    padding-right: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pmt_category_column .pmt_group_tab {
    min-width: 92px;
  }

  .pmt_subject_column,
  .pmt_workspace {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 0;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="list"] .pmt_workspace {
    display: none;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] {
    grid-template-rows: minmax(0, 1fr);
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] .pmt_category_column,
  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] .pmt_subject_column {
    display: none;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] .pmt_workspace {
    display: grid;
    grid-row: 1;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] .pmt_mobile_back {
    display: inline-flex;
    align-items: center;
  }

  .party_manage_test.is-module-page {
    grid-template-rows: 64px minmax(260px, 0.44fr) minmax(360px, 0.56fr);
    overflow-y: auto;
  }

  .party_manage_test.is-module-page .pmt_subject_column {
    grid-row: 2;
  }

  .party_manage_test.is-module-page .pmt_workspace {
    grid-row: 3;
  }

  .pmt_topbar {
    padding: 10px 12px;
  }

  .pmt_tabs {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pmt_home_grid > .pmt_real_panel:first-child .pmt_field_row,
  .pmt_field_row {
    grid-template-columns: minmax(94px, 112px) minmax(0, 1fr);
  }
}

@container pmt-shell (max-width: 520px) {
  .pmt_party_material_flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .pmt_party_material_flow > i {
    display: none;
  }

  .pmt_party_material_flow_step {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 5px 3px;
    text-align: center;
  }

  .pmt_party_material_flow_step > div {
    width: 100%;
  }
}

@container pmt-shell (max-width: 520px) {
  .pmt_category_column {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 40px 48px;
  }

  .party_manage_test {
    grid-template-rows: 88px minmax(0, 1fr);
  }

  .pmt_category_column .pmt_column_header {
    min-height: 40px;
    padding: 6px 10px 2px;
  }

  .pmt_category_column .pmt_group_tabs {
    padding: 4px 10px 6px;
  }

  .pmt_home_grid > .pmt_real_panel:first-child .pmt_field_row,
  .pmt_field_row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
  }

  .pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_card {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_actions {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmt_party_material_context_bar > .pmt_required_materials .pmt_required_material_actions > * {
    min-width: 0;
  }
}

/* 单列主体列表：分类入口收进列表区，保留移动端列表/详情切换。 */
.party_manage_test .pmt_category_column {
  display: none !important;
}

@container pmt-shell (min-width: 761px) {
  .party_manage_test {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }

  .party_manage_test .pmt_subject_column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-right: 1px solid var(--pmt-line);
    border-bottom: 0;
  }

  .party_manage_test .pmt_workspace {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
}

@container pmt-shell (max-width: 760px) {
  .party_manage_test {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }

  .party_manage_test .pmt_subject_column,
  .party_manage_test .pmt_workspace {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-right: 0;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="list"] .pmt_workspace {
    display: none;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] .pmt_subject_column {
    display: none;
  }

  .party_manage_test:not(.is-module-page)[data-pmt-mobile-pane="detail"] .pmt_workspace {
    display: grid;
  }
}
.pmt_subject_list .pmt_empty_detail {
  display: block;
  margin-top: 8px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.pmt_subject_list .pmt_empty_retry {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid #8fb8ff;
  border-radius: 8px;
  background: #fff;
  color: #1769e0;
  cursor: pointer;
}
