.source-download { width: 100%; margin-top: 10px; }
.source-preview-button { width: 100%; margin-top: 8px; }

.source-preview { width: min(900px, 100%); }
.source-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.source-preview-head .secondary-button { flex: 0 0 auto; }
.source-preview pre { margin: 16px 0 0; padding: 14px; overflow: auto; border: 1px solid #e1e8f3; border-radius: 7px; background: #f8faff; color: #263650; font: 12px/1.75 Consolas, "Microsoft YaHei", monospace; white-space: pre-wrap; word-break: break-word; }
.citation-open { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.citation-card.citation-open:hover,
.ai-evidence .citation-open:hover { background: #f2f7ff; }
.citation-card.citation-open span,
.ai-evidence .citation-open small { display: block; margin-top: 6px; color: #2864ed; font-size: 10px; }

.review-head { align-items: flex-start; }

.review-source-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 250px;
}

.review-source-actions .small-muted { padding-top: 8px; }

.diff-column { min-height: 185px; }

.diff-column p { margin-bottom: 0; }

.settings-grid { max-width: 1120px; }

.settings-panel .setting-row { min-height: 78px; padding: 16px 18px; }

.settings-panel .setting-row > span:first-child { max-width: 620px; }

.settings-panel .setting-row b { display: block; margin-bottom: 4px; color: #253651; font-size: 13px; }

.settings-panel .setting-row span span { color: #718099; font-size: 11px; line-height: 1.6; }

@media (max-width: 900px) {
  .review-source-actions { max-width: none; justify-content: flex-start; margin-top: 10px; }
  .review-head { flex-direction: column; }
}

.member-scope-button { margin-left: 6px; }
.member-scope-modal label,
.member-scope-modal small { display: block; margin-top: 14px; color: #56657a; font-size: 11px; font-weight: 700; }
.member-scope-modal small { margin-top: 5px; color: #7b889b; font-weight: 400; }
.member-scope-modal select { width: 100%; min-height: 34px; margin-top: 6px; padding: 7px 9px; border: 1px solid #d8e2f1; border-radius: 7px; background: #fff; color: #263650; font-size: 12px; }
.member-scope-modal select[multiple] { height: auto; }


/* Desktop list actions stay quiet until the row is being used. */
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(4px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.submission-row:hover .row-actions, .submission-row:focus-within .row-actions, .task-row:hover .row-actions, .task-row:focus-within .row-actions, .member-row:hover .row-actions, .member-row:focus-within .row-actions { opacity: 1; visibility: visible; transform: translateX(0); }
.row-actions .submission-action { white-space: nowrap; }
@media (hover: none), (max-width: 900px) { .row-actions { opacity: 1; visibility: visible; transform: none; } }

/* Operations actions remain visible because review and shipping are time-sensitive. */
.operations-row-actions { display: inline-flex; align-items: center; gap: 7px; }

.scope-picker{display:grid;gap:8px;padding:12px 13px;border:1px solid #dbe4ef;background:#fbfcfe}
.scope-picker-head{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#334965;font-size:12px}
.scope-picker-head em{color:#b33d4d;font-style:normal;margin-left:3px}
.scope-picker-count{color:#718099;font-weight:400}
.scope-picker-search{width:100%}
.scope-picker-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:156px;overflow:auto;padding:5px;border:1px solid #dbe4ef;background:#fff}
.scope-picker-option{display:flex;align-items:center;gap:7px;min-width:0;padding:7px 8px;border:1px solid transparent;color:#30445f;font-size:12px;cursor:pointer}
.scope-picker-option:hover{border-color:#b9cce8;background:#f5f9ff}
.scope-picker-option input{margin:0;flex:0 0 auto}
.scope-picker-option:has(input:checked){border-color:#8eb2e8;background:#edf5ff}
.scope-picker-chips{display:flex;flex-wrap:wrap;gap:5px;min-height:24px}
.scope-picker-chip{padding:4px 7px;border-radius:4px;background:#e7f0ff;color:#1f4f94;font-size:11px}
.scope-picker-empty{color:#7b8798;font-size:12px}
@media(max-width:600px){.scope-picker-options{grid-template-columns:1fr}}