.review-import { cursor: pointer; }
#review-files { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-import:has(+ #review-files:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.review-status { color: var(--green); overflow-wrap: anywhere; }
.review-status:empty { display: none; }
.review-source, .review-rationale { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-source { color: var(--dim); margin-bottom: 18px; }
.review-source strong { color: var(--text); margin-right: .45rem; }
.review-source p { margin: .35rem 0; }
.review-layout { display: grid; grid-template-columns: minmax(155px, .31fr) minmax(0, 1fr); gap: 16px; }
.review-queue .sect-title { margin-bottom: 8px; }
.review-item { display: block; width: 100%; text-align: left; overflow-wrap: anywhere; padding: 12px;
  margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.review-item[aria-current="true"] { background: var(--soft); border-color: var(--gold); }
.review-item span { display: block; color: var(--dim); font-size: 11px; margin-top: 3px; }
.review-detail .sect-title { overflow-wrap: anywhere; }
.review-comparison { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.review-comparison table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; }
.review-comparison th, .review-comparison td { vertical-align: top; text-align: left; padding: 9px;
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.review-comparison td { white-space: pre-wrap; }
.review-comparison thead { background: var(--review-table-heading, #15232c); color: var(--gold2); }
.review-comparison th:first-child { width: 24%; }
.review-comparison tr:last-child td, .review-comparison tbody tr:last-child th { border-bottom: 0; }
.review-comparison small { display: block; color: var(--gold); font-weight: 400; }
.review-changed { background: var(--review-highlight, #303b39); }
.review-detail textarea { min-height: 65px; }
.review-actions { margin-top: 12px; }
.review-actions button:disabled { cursor: default; opacity: .45; }
.review-export { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-export p { margin: 4px 0; }
@media (max-width: 650px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-detail { padding: 14px; }
}
.listcard summary, .modal summary { cursor: pointer; color: var(--gold2); }
.listcard dl { font-size: 12px; }
.listcard dt { color: var(--gold2); text-transform: capitalize; }
.listcard dd { color: var(--dim); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 .65rem; }

:root[data-palette] { --review-table-heading: var(--sidebar); --review-highlight: var(--soft); }

.mobile-review-label { display: none; }

@media (max-width: 600px) {
  .review-item { min-height: 44px; }
  .review-comparison table, .review-comparison tbody { display: block; }
  .review-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .review-comparison tbody tr { display: grid; border-bottom: 1px solid var(--line); }
  .review-comparison tbody tr:last-child { border-bottom: 0; }
  .review-comparison tbody th:first-child { width: auto; border-bottom: 0; color: var(--text); }
  .review-comparison tbody td { border-bottom: 0; padding-top: 0; }
  .review-comparison .mobile-review-label { display: block; margin-bottom: 2px; color: var(--gold2); font-size: 11px; }
}
