.review-desk, .rd-detail, .rd-confirm { --rd-soft: color-mix(in srgb, var(--ink) 4%, var(--surface)); --rd-accent-soft: color-mix(in srgb, var(--coral) 10%, var(--surface)); color: var(--ink); }
.review-desk { padding-top: 12px; }
.rd-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin: 12px 0 28px; }
.rd-kicker { margin: 0 0 11px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.rd-intro h2 { margin: 0 0 14px; font-size: clamp(28px, 3.3vw, 43px); font-weight: 600; line-height: 1.12; letter-spacing: -1.5px; }
.rd-intro h2 > span { font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.rd-intro p:not(.rd-kicker) { max-width: 510px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.rd-intro > .button { flex-shrink: 0; margin-top: 29px; }
.rd-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.rd-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 25px; }
.rd-stats > div + div { border-left: 1px solid var(--line); }
.rd-stats span { color: var(--muted); font-size: 13px; }
.rd-stats strong { font-size: 31px; font-weight: 550; letter-spacing: -1px; }
.rd-workflow { margin: 0 0 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--rd-soft); }
.rd-workflow > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; min-height: 62px; padding: 15px 21px; font-size: 15px; font-weight: 650; cursor: pointer; }
.rd-workflow > summary::after { content: '+'; margin-left: auto; font-size: 24px; font-weight: 400; }
.rd-workflow[open] > summary::after { content: '−'; }
.rd-workflow > summary::-webkit-details-marker { display: none; }
.rd-workflow > summary span { color: var(--muted); font-size: 12px; font-weight: 400; }
.rd-workflow > div { padding: 0 24px 21px; font-size: 14px; line-height: 1.8; }
.rd-workflow ol { margin: 8px 0 13px; padding-left: 23px; }
.rd-workflow li + li { margin-top: 10px; }
.rd-workflow p { margin: 0; color: var(--muted); }
.rd-notice { padding: 15px 19px; border-left: 3px solid var(--coral); border-radius: 0 9px 9px 0; background: var(--rd-accent-soft); font-size: 14px; line-height: 1.7; }
.rd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 0 16px; }
.rd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rd-filters button { min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }
.rd-filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--surface); }
.rd-filters button:hover { color: var(--ink); background: var(--rd-soft); }
.rd-visible-count { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.rd-selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 62px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: var(--rd-soft); font-size: 13px; }
.rd-select-all, .rd-select { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.rd-select-all input, .rd-select input, .rd-confirm-check input { width: 19px; height: 19px; flex: 0 0 19px; margin: 0; accent-color: var(--coral); cursor: pointer; }
.rd-select { justify-content: center; width: 44px; }
.rd-select:has(input:disabled), .rd-select-all:has(input:disabled) { cursor: default; }
.rd-select input:disabled, .rd-select-all input:disabled { cursor: default; opacity: .5; }
#rd-selection-count { margin-left: auto; color: var(--muted); }
.rd-selection-bar .button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.rd-queue { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; background: var(--surface); }
.rd-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 166px 157px; align-items: center; gap: 13px; padding: 23px 17px 23px 8px; }
.rd-row + .rd-row { border-top: 1px solid var(--line); }
.rd-row.is-selected { background: var(--rd-accent-soft); }
.rd-listing { min-width: 0; }
.rd-listing-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.rd-listing h3 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.35px; overflow-wrap: anywhere; }
.rd-listing > p { margin: 6px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.rd-listing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 15px; color: var(--muted); font-size: 11px; }
.rd-revision { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 11px; }
.rd-revision code { font-size: 11px; letter-spacing: -.1px; overflow-wrap: anywhere; }
.rd-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--rd-soft); font-size: 10px; font-weight: 650; line-height: 1.5; }
.rd-badge-pending { background: var(--rd-accent-soft); }
.rd-badge-attention { border-color: var(--coral); background: var(--rd-accent-soft); }
.rd-checks { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.rd-check-label, .rd-check-caption { color: var(--muted); font-size: 11px; }
.rd-row-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.rd-row-actions .button { min-height: 44px; width: 100%; padding: 11px 12px; font-size: 12px; }
.rd-row-actions > span { color: var(--muted); font-size: 10px; }
.rd-batch-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rd-batch-bar > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.rd-batch-bar strong { font-size: 14px; font-weight: 650; }
.rd-batch-bar span { color: var(--muted); font-size: 12px; }
.rd-batch-bar > div:last-child { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.rd-batch-bar .button { min-height: 44px; font-size: 12px; }
.rd-footnote { margin: 15px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rd-empty { display: flex; flex-direction: column; align-items: center; padding: 58px 24px; text-align: center; }
.rd-empty > svg { width: 32px; height: 32px; margin-bottom: 15px; color: var(--muted); }
.rd-empty h3, .rd-empty h2 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.5px; }
.rd-empty p { max-width: 490px; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.rd-results { margin-bottom: 25px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.rd-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.rd-panel-heading .rd-kicker { margin-bottom: 5px; }
.rd-panel-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.5px; }
.rd-results ul { margin: 17px 0 0; padding: 0; list-style: none; }
.rd-results li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rd-results li > svg { flex-shrink: 0; margin-top: 2px; }
.rd-results li > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.rd-results li strong { font-size: 14px; overflow-wrap: anywhere; }
.rd-results li span { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.rd-detail, .rd-confirm { font-size: 14px; line-height: 1.75; }
.rd-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; margin-bottom: 20px; }
.rd-detail-meta > span:last-child { color: var(--muted); font-size: 12px; }
.rd-detail-offer { display: grid; grid-template-columns: 1fr 1fr 1.25fr; border: 1px solid var(--line); border-radius: 10px; background: var(--rd-soft); }
.rd-detail-offer > div { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 16px; }
.rd-detail-offer > div + div { border-left: 1px solid var(--line); }
.rd-detail-offer span { color: var(--muted); font-size: 11px; }
.rd-detail-offer strong { font-size: 13px; font-weight: 650; line-height: 1.6; }
.rd-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 12px; }
.rd-detail-actions .button { min-height: 44px; font-size: 12px; }
.rd-private-note { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rd-evidence { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--rd-soft); }
.rd-evidence h3, .rd-detail-section h3 { margin: 0 0 10px; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.rd-evidence p, .rd-detail-section > p { margin: 0 0 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rd-evidence-links { display: flex; flex-wrap: wrap; gap: 5px 19px; margin: 11px 0; }
.rd-evidence-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.rd-evidence-link svg { width: 14px; height: 14px; }
.rd-evidence dl { display: grid; grid-template-columns: 127px minmax(0, 1fr); gap: 8px 12px; margin: 14px 0 0; font-size: 13px; }
.rd-evidence dt { color: var(--muted); }
.rd-evidence dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.rd-detail-section { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.rd-section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rd-section-title h3 { margin: 0; }
.rd-quiet { color: var(--muted); font-size: 12px; line-height: 1.75; }
.rd-findings { list-style: none; margin: 15px 0; padding: 0; }
.rd-findings li { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rd-findings li > svg { flex: 0 0 18px; margin-top: 3px; }
.rd-findings li > div { min-width: 0; }
.rd-findings strong { font-size: 12px; }
.rd-findings p { margin: 3px 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rd-findings code { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.rd-history { margin: 0; padding: 0; list-style: none; }
.rd-history li { margin-top: 15px; padding-left: 14px; border-left: 2px solid var(--line); }
.rd-history li > div { display: flex; flex-direction: column; gap: 3px; }
.rd-history strong { font-size: 13px; }
.rd-history span { color: var(--muted); font-size: 11px; }
.rd-history p { margin: 8px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rd-detail-footer { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); }
.rd-detail-footer span { color: var(--muted); font-size: 12px; }
.rd-confirm-list { max-height: 250px; overflow-y: auto; padding: 0; margin: 0 0 21px; list-style: none; border: 1px solid var(--line); border-radius: 10px; }
.rd-confirm-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 17px; background: var(--rd-soft); }
.rd-confirm-list li + li { border-top: 1px solid var(--line); }
.rd-confirm-list strong { font-size: 14px; overflow-wrap: anywhere; }
.rd-confirm-list li > span { color: var(--muted); font-size: 11px; }
.rd-confirm-list .rd-confirm-warning { color: var(--ink); font-weight: 600; }
.rd-note-label { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; font-size: 13px; font-weight: 600; }
.rd-note-label textarea { width: 100%; min-height: 104px; padding: 12px 14px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; line-height: 1.7; }
.rd-note-label textarea::placeholder { color: var(--muted); }
.rd-confirm-check { display: flex; align-items: flex-start; gap: 11px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--rd-accent-soft); cursor: pointer; font-size: 13px; line-height: 1.7; }
.rd-confirm-check input { margin-top: 3px; }
.rd-dialog-error { margin: 13px 0; font-size: 13px; font-weight: 600; line-height: 1.6; }
.rd-dialog-error:empty { display: none; }
.rd-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 22px 0 15px; }
.rd-confirm-actions .button { min-height: 44px; }
.review-desk .button.secondary, .rd-detail .button.secondary, .rd-confirm .button.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.review-desk button:disabled, .rd-confirm button:disabled, .rd-detail button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 1000px) {
  .rd-row { grid-template-columns: 38px minmax(0, 1fr) 145px; gap: 10px; }
  .rd-checks { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .rd-check-label { display: none; }
  .rd-row-actions { grid-column: 3; grid-row: 1 / 3; }
  .rd-stats > div { align-items: flex-start; flex-direction: column; gap: 7px; padding: 19px; }
  .rd-stats strong { font-size: 28px; }
  .rd-batch-bar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .rd-batch-bar > div:last-child { align-self: flex-end; }
}
@media (max-width: 600px) {
  .rd-intro { flex-direction: column; gap: 15px; margin-top: 6px; }
  .rd-intro > .button { margin-top: 0; }
  .rd-intro h2 { font-size: 30px; letter-spacing: -.9px; }
  .rd-intro p:not(.rd-kicker) { font-size: 14px; }
  .rd-stats { gap: 0; border-radius: 12px; }
  .rd-stats > div { padding: 15px 12px; }
  .rd-stats span { min-height: 43px; font-size: 11px; line-height: 1.7; }
  .rd-stats strong { font-size: 27px; }
  .rd-workflow > summary { padding: 15px; font-size: 14px; }
  .rd-workflow > summary span { flex-basis: 100%; order: 3; padding-left: 31px; font-size: 10px; }
  .rd-workflow > div { padding-inline: 17px; font-size: 13px; }
  .rd-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .rd-filters { gap: 1px; }
  .rd-filters button { padding-inline: 9px; font-size: 11px; }
  .rd-visible-count { padding-left: 10px; }
  .rd-selection-bar { gap: 5px 12px; padding: 9px 13px; font-size: 12px; }
  .rd-select-all { gap: 10px; }
  #rd-selection-count { margin-left: 29px; }
  .rd-row { grid-template-columns: 33px minmax(0, 1fr); gap: 9px; padding: 20px 15px 20px 5px; }
  .rd-row > .rd-select { width: 33px; align-self: start; }
  .rd-listing h3 { font-size: 17px; }
  .rd-listing > p { font-size: 12px; }
  .rd-listing-meta { gap: 5px 10px; }
  .rd-row-actions { grid-column: 2; grid-row: auto; align-items: flex-start; margin-top: 8px; }
  .rd-row-actions .button { width: auto; min-width: 151px; }
  .rd-checks { gap: 7px; }
  .rd-batch-bar { padding: 19px 17px; }
  .rd-batch-bar > div:last-child { align-self: stretch; flex-wrap: wrap; }
  .rd-batch-bar .button { flex: 1 1 140px; }
  .rd-batch-bar span { font-size: 11px; }
  .rd-detail-offer { grid-template-columns: 1fr 1fr; }
  .rd-detail-offer > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .rd-detail-offer > div { padding: 13px; }
  .rd-detail-actions { flex-direction: column; }
  .rd-evidence { padding: 17px; }
  .rd-evidence dl { grid-template-columns: 1fr; gap: 2px; }
  .rd-evidence dd + dt { margin-top: 10px; }
  .rd-detail-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rd-panel-heading { align-items: flex-start; }
  .rd-panel-heading h3 { font-size: 17px; }
  .rd-results { padding: 18px; }
  .rd-confirm-actions { flex-direction: column-reverse; }
  .rd-confirm-list { max-height: 220px; }
}
