#review-entry[hidden] { display: none !important; }
#review-dialog { width: min(900px, calc(100% - 24px)); max-height: 90dvh; padding: 24px; border: 0; border-radius: 16px; color: #253449; background: #f5f7fa; box-sizing: border-box; }
#review-dialog::backdrop { background: rgb(15 23 42 / 55%); }
.review-toolbar, .review-controls, .review-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-toolbar h2 { font-size: 1.25rem; margin: 0; }
.review-local-note { margin: 16px 0; color: #526174; font-size: .9rem; }
.review-controls { flex-wrap: wrap; margin: 16px 0; }
.review-controls select { padding: 10px; border: 1px solid #b7c2d1; border-radius: 8px; background: white; font: inherit; }
#review-message { color: #8a3520; min-height: 1.5em; }
.review-card { background: white; margin: 16px 0; border: 1px solid #d4dce6; border-left: 5px solid #a56b13; border-radius: 12px; padding: 20px; overflow-wrap: anywhere; }
.review-card.risk-low { border-left-color: #218066; }
.review-card.risk-high { border: 2px solid #c93636; border-left-width: 7px; background: #fff8f8; }
.review-card h3 { font-size: 1.05rem; margin: 0; }
.review-risk { white-space: nowrap; font-size: .8rem; font-weight: 700; border-radius: 20px; padding: 5px 10px; color: #845009; background: #fff0cb; }
.risk-low .review-risk { color: #136650; background: #dff4ec; }
.risk-high .review-risk { color: #a31f1f; background: #ffe0e0; }
.review-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.review-values > div { background: #f0f3f7; padding: 14px; border-radius: 8px; min-width: 0; }
.review-values > div:last-child { background: #eaf2ff; }
.review-values h4 { font-size: .8rem; color: #526174; margin: 0 0 8px; }
.review-values p { margin: 0; font-weight: 600; }
.review-card dl { margin: 16px 0; }
.review-card dt { font-size: .8rem; font-weight: 600; color: #526174; margin-top: 10px; }
.review-card dd { margin: 4px 0; white-space: pre-wrap; }
.review-card a { color: #215ca8; }
.review-decision { font-weight: 600; }
.review-automation { display: block; margin: 16px 0; font-size: .9rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.review-actions .btn { min-height: 44px; }
.review-actions [aria-pressed="true"] { outline: 3px solid #2d6b99; outline-offset: 2px; }
@media (max-width: 600px) {
  #review-dialog { padding: 14px; max-height: 94dvh; }
  .review-card { padding: 14px; }
  .review-card-heading { align-items: flex-start; flex-direction: column; }
  .review-values { grid-template-columns: 1fr; }
  .review-actions { flex-direction: column; }
  .review-actions .btn { width: 100%; justify-content: center; }
}
