.kb-projection .pr-kb-table th:first-child { width: 30%; }
.kb-projection .pr-document-table th:nth-child(2) { min-width: 230px; }
.kb-projection .pr-document-table th:nth-child(3),
.kb-projection .pr-document-table th:nth-child(4) { min-width: 150px; }
.kb-projection .pr-check-column { width: 46px; min-width: 46px; text-align: center; }
.kb-projection .pr-check-column input,
.kb-projection .pr-page-rail input { width: 16px; height: 16px; accent-color: #e85b2a; }

.kb-projection .pr-batch-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 18px;
  border-top: 1px solid var(--line, #e8e9ed);
  border-bottom: 1px solid var(--line, #e8e9ed);
  background: #fbfbfc;
}
.kb-projection .pr-batch-toolbar label { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.kb-projection .pr-batch-group { display: flex; align-items: center; gap: 12px; }
.kb-projection .pr-batch-group.secondary { margin-left: auto; padding-left: 16px; border-left: 1px solid var(--line, #e8e9ed); }
.kb-projection .pr-batch-group > span { color: var(--muted, #687080); font-size: 13px; white-space: nowrap; }

.kb-projection .pr-page-feedback,
.kb-projection .pr-impact-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #f2cdbd;
  border-left: 3px solid #e85b2a;
  border-radius: 8px;
  background: #fff9f6;
  color: #673421;
  font-size: 13px;
}
.kb-projection .pr-page-feedback[hidden] { display: none; }
.kb-projection .pr-impact-notice strong { flex: 0 0 auto; color: #9a3d1c; }
.kb-projection .pr-impact-notice span { line-height: 1.6; }

.kb-projection .pr-detail-context { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kb-projection .pr-review-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.kb-projection .pr-page-rail,
.kb-projection .pr-compare-grid > article,
.kb-projection .pr-confirm-panel,
.kb-projection .pr-issue-panel,
.kb-projection .pr-version-panel {
  border: 1px solid var(--line, #e3e5e9);
  border-radius: 9px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 2px rgba(32, 39, 53, .04);
}
.kb-projection .pr-page-rail { position: sticky; top: 18px; overflow: hidden; }
.kb-projection .pr-page-rail > header,
.kb-projection .pr-result-panel > header,
.kb-projection .pr-source-panel > header,
.kb-projection .pr-issue-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #e8e9ed);
}
.kb-projection .pr-page-rail h2,
.kb-projection .pr-issue-panel h2,
.kb-projection .pr-version-panel h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.kb-projection .pr-page-rail header span,
.kb-projection .pr-source-panel header span,
.kb-projection .pr-result-panel header span { color: var(--muted, #727987); font-size: 12px; }
.kb-projection .pr-page-actions { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line, #e8e9ed); }
.kb-projection .pr-page-actions .button { width: 100%; justify-content: center; }
.kb-projection .pr-page-rail ol { max-height: 620px; margin: 0; padding: 7px; overflow: auto; list-style: none; }
.kb-projection .pr-page-rail li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 2px 0; border-radius: 6px; }
.kb-projection .pr-page-rail li.active { background: #fff1eb; }
.kb-projection .pr-page-rail li label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 4px 9px 9px; font-size: 13px; font-weight: 650; }
.kb-projection .pr-page-rail li button { padding: 9px 8px; border: 0; background: transparent; color: #89513a; font-size: 12px; cursor: pointer; }
.kb-projection .pr-page-rail li button:hover { color: #cf4517; }

.kb-projection .pr-review-workspace { display: grid; gap: 16px; min-width: 0; }
.kb-projection .pr-compare-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.35fr); gap: 16px; min-width: 0; }
.kb-projection .pr-compare-grid > article { min-width: 0; overflow: hidden; }
.kb-projection .pr-source-preview {
  display: flex;
  min-height: 430px;
  padding: 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #f5f5f6;
}
.kb-projection .pr-source-preview > span { display: grid; width: 68px; height: 82px; place-items: center; margin-bottom: 18px; border: 1px solid #d8d9dd; border-radius: 5px; background: #fff; color: #d94d1e; font-size: 16px; font-weight: 800; box-shadow: 0 7px 18px rgba(35, 39, 47, .08); }
.kb-projection .pr-source-preview strong { max-width: 340px; word-break: break-word; }
.kb-projection .pr-source-preview p { max-width: 340px; margin: 8px 0 20px; color: var(--muted, #6c7380); font-size: 13px; line-height: 1.65; }
.kb-projection .pr-result-panel > header > div { display: grid; gap: 3px; }
.kb-projection .pr-block-list { display: grid; gap: 10px; padding: 14px; }
.kb-projection .pr-block { padding: 14px 15px; border: 1px solid #e2e4e8; border-radius: 7px; background: #fff; }
.kb-projection .pr-block.excluded { border-style: dashed; background: #f6f6f7; opacity: .72; }
.kb-projection .pr-block > header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--muted, #6c7380); font-size: 12px; }
.kb-projection .pr-content-type { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 99px; background: #fff0e9; color: #a63a15; font-weight: 700; }
.kb-projection .pr-block > p { margin: 0; color: #303643; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.kb-projection .pr-block > footer { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eff0f2; }
.kb-projection .pr-block > footer .button { min-height: 31px; padding: 5px 9px; font-size: 12px; }
.kb-projection .pr-formula { padding: 22px 14px; overflow: auto; border-radius: 5px; background: #f7f7f8; text-align: center; }
.kb-projection .pr-formula code { color: #212733; font-family: Cambria, 'Times New Roman', serif; font-size: 18px; }
.kb-projection .pr-table-content { margin: 0; padding: 12px; overflow: auto; border-radius: 5px; background: #f7f7f8; color: #303643; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.kb-projection .pr-list-content { display: grid; gap: 6px; }
.kb-projection .pr-list-content span::before { content: '•'; margin-right: 8px; color: #e85b2a; }
.kb-projection .pr-image-content { display: grid; justify-items: center; gap: 8px; padding: 18px; border-radius: 5px; background: #f7f7f8; text-align: center; }
.kb-projection .pr-image-content > span { font-size: 30px; color: #e85b2a; }
.kb-projection .pr-image-content p { margin: 0; }

.kb-projection .pr-confirm-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; }
.kb-projection .pr-confirm-panel > div:first-child { display: grid; gap: 5px; }
.kb-projection .pr-confirm-panel > div:first-child span { color: var(--muted, #6c7380); font-size: 13px; line-height: 1.55; }
.kb-projection .pr-confirm-panel > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.kb-projection .pr-issue-panel > header h2 { margin-bottom: 3px; }
.kb-projection .pr-issue-panel > header p { margin: 0; color: var(--muted, #6c7380); font-size: 12px; }
.kb-projection .pr-issue-panel > div { display: grid; gap: 10px; padding: 14px; }
.kb-projection .pr-issue { padding: 13px 14px; border: 1px solid #edc8bb; border-radius: 7px; background: #fffaf8; }
.kb-projection .pr-issue.resolved { border-color: #dce6df; background: #f8fbf9; }
.kb-projection .pr-issue > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kb-projection .pr-issue > p { margin: 7px 0; font-size: 13px; line-height: 1.6; }
.kb-projection .pr-issue > small { color: var(--muted, #6c7380); }
.kb-projection .pr-issue > footer { display: flex; gap: 8px; margin-top: 12px; }
.kb-projection .pr-resolution { color: #376948; }

.kb-projection .pr-version-panel { padding: 16px; }
.kb-projection .pr-version-panel h2 { margin-bottom: 12px; }
.kb-projection .pr-version-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-projection .pr-version-list > button { display: grid; gap: 3px; min-width: 170px; padding: 10px 12px; border: 1px solid #dedfe3; border-radius: 6px; background: #fff; color: #353b47; text-align: left; cursor: pointer; }
.kb-projection .pr-version-list > button.active { border-color: #e85b2a; background: #fff5f1; }
.kb-projection .pr-version-list > button span { color: var(--muted, #6c7380); font-size: 11px; }
.kb-projection .pr-version-list > p { margin: 0; color: var(--muted, #6c7380); }
.kb-projection .pr-empty-parse > div { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

.pr-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(20, 24, 32, .48);
  backdrop-filter: blur(2px);
}
.pr-modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 10px; background: #fff; box-shadow: 0 24px 70px rgba(12, 18, 30, .24); }
.pr-modal > form > header { display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #e6e7ea; }
.pr-modal > form > header span { color: #e05220; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pr-modal > form > header h2 { margin: 4px 0 5px; color: #252b36; font-size: 20px; }
.pr-modal > form > header p { margin: 0; color: #697180; font-size: 13px; line-height: 1.6; }
.pr-modal-close { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 6px; background: #f2f3f5; color: #596171; font-size: 22px; cursor: pointer; }
.pr-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px 22px; }
.pr-modal-body label { display: grid; gap: 7px; color: #343a46; font-size: 13px; font-weight: 650; }
.pr-modal-body label.wide { grid-column: 1 / -1; }
.pr-modal-body input,
.pr-modal-body select,
.pr-modal-body textarea { width: 100%; padding: 9px 10px; border: 1px solid #d7d9de; border-radius: 6px; background: #fff; color: #252b36; font: inherit; font-weight: 400; }
.pr-modal-body textarea { resize: vertical; line-height: 1.6; }
.pr-modal-body input:focus,
.pr-modal-body select:focus,
.pr-modal-body textarea:focus { outline: 2px solid rgba(232, 91, 42, .2); border-color: #e85b2a; }
.pr-modal-error { margin: 0 22px 14px; padding: 10px 12px; border-radius: 6px; background: #fff0ed; color: #9e2918; font-size: 13px; }
.pr-modal-error[hidden] { display: none; }
.pr-modal > form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid #e6e7ea; background: #fafafb; }

@media (max-width: 1100px) {
  .kb-projection .pr-detail-context { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kb-projection .pr-review-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .kb-projection .pr-compare-grid { grid-template-columns: 1fr; }
  .kb-projection .pr-source-preview { min-height: 260px; }
}

@media (max-width: 680px) {
  .kb-projection .pr-batch-toolbar { align-items: stretch; flex-direction: column; }
  .kb-projection .pr-batch-group { align-items: stretch; flex-direction: column; }
  .kb-projection .pr-batch-group.secondary { margin-left: 0; padding: 12px 0 0; border-top: 1px solid var(--line, #e8e9ed); border-left: 0; }
  .kb-projection .pr-batch-toolbar .button { width: 100%; justify-content: center; }
  .kb-projection .pr-detail-context { grid-template-columns: 1fr 1fr; }
  .kb-projection .pr-review-layout { grid-template-columns: 1fr; }
  .kb-projection .pr-page-rail { position: static; }
  .kb-projection .pr-page-rail ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 270px; }
  .kb-projection .pr-confirm-panel { align-items: stretch; flex-direction: column; }
  .kb-projection .pr-confirm-panel > div:last-child { display: grid; grid-template-columns: 1fr; }
  .kb-projection .pr-confirm-panel .button { width: 100%; justify-content: center; }
  .kb-projection .pr-source-preview { min-height: 220px; padding: 24px 16px; }
  .kb-projection .pr-result-panel > header { align-items: flex-start; flex-direction: column; }
  .kb-projection .pr-block > footer { display: grid; grid-template-columns: 1fr 1fr; }
  .kb-projection .pr-block > footer .button { width: 100%; justify-content: center; }
  .kb-projection .pr-empty-parse > div { flex-direction: column; }
  .kb-projection .pr-empty-parse .button { width: 100%; justify-content: center; }
  .pr-modal-shell { align-items: end; padding: 0; }
  .pr-modal { width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; }
  .pr-modal-body { grid-template-columns: 1fr; padding: 18px; }
  .pr-modal-body label.wide { grid-column: auto; }
  .pr-modal > form > header { padding: 18px; }
  .pr-modal > form > footer { padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); }
}

@media (max-width: 460px) {
  .kb-projection .pr-detail-context { grid-template-columns: 1fr; }
  .kb-projection .pr-page-rail ol { grid-template-columns: 1fr; }
  .kb-projection .pr-check-column { width: 38px; min-width: 38px; }
}
