#viewRepeat [hidden] { display: none !important; }
#viewRepeat .cq {
  --cq-border: var(--bd, var(--border, #dbe4ec));
  --cq-muted: var(--muted, #53647a);
  --cq-fill: var(--bg, #f4f7fb);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
#viewRepeat .cq :is(button, input, select, textarea) { font-family: inherit; font-size: 12px; }
#viewRepeat .cq :is(p, li) { font-size: inherit; }
#viewRepeat .cq p.cq-muted { font-size: 12px; }
.cq-heading, .cq-toolbar, .cq-panel-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cq h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cq-heading { justify-content: flex-start; column-gap: 16px; row-gap: 5px; margin-bottom: 9px; }
.cq-heading h2 { font-size: 18px; }
.cq-muted { color: var(--muted, #53647a); font-size: 12px; }
.cq-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12px; }
.cq-stats > div { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.cq-stats dt { color: var(--cq-muted); }
.cq-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cq-risk-stat dd { color: #b42318; }
#cqRetry { margin-inline-start: auto; }
.cq-filters { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.cq-filters label { display: grid; gap: 4px; font-size: 12px; }
.cq-filters select, .cq-filters input {
  min-height: 32px; max-width: 100%; border: 1px solid var(--bd, var(--border, #dbe4ec));
  padding: 4px 7px; border-radius: 6px; font: inherit; color: inherit; background: var(--card, #fff);
}
.cq-toolbar { border-bottom: 1px solid var(--cq-border); padding-bottom: 9px; }
.cq-toolbar p { margin: 0; }
.cq-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.cq-tabs button {
  border: none; border-radius: 6px; background: transparent; color: inherit; cursor: pointer;
  padding: 7px 9px; font-weight: 600;
}
.cq-tabs button[aria-pressed="true"] { background: #dbeafe; color: #16467e; }
.cq-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
.cq-workspace.cq-open { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.cq-list { min-width: 0; }
.cq-reports { overflow: auto; margin-top: 9px; }
.cq-reports table { width: 100%; border-collapse: collapse; font: inherit; }
.cq-reports th, .cq-reports td { padding: 6px 8px; border-bottom: 1px solid var(--cq-border); text-align: left; vertical-align: top; }
.cq-reports th { background: var(--cq-fill); white-space: nowrap; }
.cq-reports td { min-width: 40px; overflow-wrap: anywhere; }
.cq-review-text { min-width: 180px; }
.cq-results { display: grid; gap: 7px; }
.cq-case { border: 1px solid var(--cq-border); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.cq-case.cq-high { border-inline-start: 3px solid #cf4339; }
.cq-case.cq-selected { border-color: #78a4d8; background: var(--cq-fill); }
.cq-case-header { display: flex; justify-content: space-between; align-items: start; gap: 9px; }
.cq-case-header button { flex-shrink: 0; }
.cq-locator { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.cq-copy-order {
  border: 0; padding: 0; background: transparent; color: #245c94;
  text-decoration: underline; cursor: pointer; font-variant-numeric: tabular-nums;
}
.cq-case p { margin: 7px 0 0; }
.cq-case p > strong, .cq-detail p > strong { font-weight: 600; }
.cq-labels { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 5px; }
.cq-badge { border-radius: 5px; background: #e9f0f6; color: #294b68; padding: 2px 6px; font-size: 12px; }
.cq-badge.cq-risk { background: #fee4e2; color: #9e221d; }
.cq-badge.cq-evidence { background: #fef0c7; color: #75460e; }
.cq-badge.cq-confirmed { background: #dcfce7; color: #166534; }
.cq-empty { padding: 27px 5px; text-align: center; color: var(--muted, #53647a); }
.cq-paging { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 13px; }
.cq-panel {
  position: sticky; top: 8px; min-width: 0; max-height: min(76dvh, calc(100dvh - 108px));
  overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--cq-border); border-radius: 10px; background: var(--card, #fff);
}
.cq-panel:focus { outline: none; }
.cq-panel-heading {
  position: sticky; top: 0; z-index: 1; padding: 8px 11px; border-bottom: 1px solid var(--cq-border);
  background: var(--card, #fff); justify-content: flex-start; gap: 5px 10px;
}
.cq-panel-heading h2 { font-size: 15px; }
.cq-quick-review { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cq-quick-review button[aria-pressed="true"] { background: #dbeafe; color: #16467e; font-weight: 600; }
#cqReviewStatus:empty { display: none; }
#cqClose { margin-inline-start: auto; }
.cq-detail { padding: 9px 11px 11px; overflow-wrap: anywhere; }
.cq-detail h3 { margin: 9px 0 4px; font-size: 13px; font-weight: 600; }
.cq-detail p { margin: 4px 0; }
.cq-reply { white-space: pre-wrap; border-inline-start: 3px solid #4983cb; padding: 5px 8px; background: #eaf3fe; color: #163a62; }
.cq-messages {
  list-style: none; padding: 2px 4px; margin: 4px 0 8px;
  border: 1px solid var(--cq-border); border-radius: 7px;
}
.cq-messages li { padding: 3px 6px; border-radius: 4px; line-height: 1.4; }
.cq-messages li + li { margin-top: 2px; border-top: 1px solid var(--cq-border); }
.cq-messages li.cq-evidence-line { background: #fff2cd; color: #522c05; }
.cq-message-meta { margin: 0; font-size: 12px; line-height: 1.35; }
.cq-message-meta strong { font-weight: 600; }
.cq-message-text { margin-top: 1px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cq-review-log { padding-inline-start: 18px; }
@media (max-width: 900px) {
  .cq-workspace.cq-open { grid-template-columns: minmax(0, 1fr); }
  .cq-panel { grid-row: 1; position: static; max-height: 74dvh; }
}
@media (max-width: 650px) {
  .cq-case-header { flex-wrap: wrap; }
}
