.result-review-mount:empty { display: none; }
.result-review-mount { margin-top: 12px; }
.result-review-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--pxds-border, var(--line)); border-radius: 10px; background: var(--pxds-surface-2, var(--surface-2)); }
.result-review-controls > span { color: var(--muted); font-size: 10px; }
.result-review-actions { display: flex; gap: 7px; }
.result-review-actions button { min-width: 74px; padding: 8px 11px; border: 1px solid var(--pxds-border, var(--line-strong)); border-radius: 8px; color: var(--pxds-text-muted, var(--muted)); background: var(--pxds-surface-3, var(--surface-3)); cursor: pointer; font-size: 10px; font-weight: 800; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.result-review-actions button:not(:disabled):is(:hover, :focus-visible) { border-color: var(--pxds-border-strong, var(--accent)); color: var(--pxds-text, var(--text)); background: var(--pxds-hover-surface, var(--surface-3)); box-shadow: 0 4px 12px rgba(24, 46, 72, .12); transform: translateY(-1px); }
.result-review-actions button.is-good.is-active { border-color: var(--color-success, #19845f); color: var(--color-success, #19845f); background: var(--color-success-surface, rgba(25, 132, 95, .13)); }
.result-review-actions button.is-bad.is-active { border-color: var(--color-error, #d53745); color: var(--color-error, #d53745); background: var(--color-error-surface, rgba(213, 55, 69, .13)); }
.result-review-actions button:disabled { cursor: default; opacity: 1; box-shadow: none; transform: none; }

.reviews-view { display: grid; gap: 14px; }
.reviews-summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px; }
.reviews-summary small, .reviews-toolbar small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.reviews-summary h2, .reviews-toolbar h2 { margin: 5px 0 0; font-size: 22px; }
.reviews-summary p { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.reviews-counts { display: grid; grid-template-columns: repeat(2, minmax(96px, 1fr)); gap: 8px; }
.reviews-counts article { min-width: 104px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #0a0d12; }
.reviews-counts strong, .reviews-counts span { display: block; }
.reviews-counts strong { color: var(--accent); font-size: 22px; }
.reviews-counts span { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.reviews-queue { padding: 18px; }
.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.reviews-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 7px; }
.reviews-toolbar button, .reviews-archived-toolbar button { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #11161e; cursor: pointer; font-size: 9px; font-weight: 800; }
.reviews-toolbar button:hover, .reviews-archived-toolbar button:hover { border-color: var(--accent); }
.reviews-toolbar button.is-danger { border-color: #793540; color: #ff9ca7; }
.reviews-toolbar button:disabled, .reviews-archived-toolbar button:disabled { cursor: not-allowed; opacity: .42; }
.reviews-select-all { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.reviews-select-all input, .review-card-select input { accent-color: var(--accent); }
.reviews-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reviews-empty { grid-column: 1 / -1; display: grid; min-height: 180px; place-content: center; justify-items: center; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center; }
.reviews-empty strong { color: var(--text); }
.reviews-empty span { margin-top: 6px; font-size: 10px; }
.review-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #0b0f15; }
.review-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(199,255,89,.12); }
.review-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.review-card-title { min-width: 0; }
.review-card-title small { color: #ff8c99; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.review-card-title h3 { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.review-card-select { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.review-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.review-card-comment { margin: 11px 0 0; padding: 10px; border-left: 2px solid var(--accent); color: var(--text); background: #0e1412; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.review-card-comment.is-empty { border-color: var(--line-strong); color: var(--muted); }
.review-assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.review-asset { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #070a0e; text-decoration: none; }
.review-asset img { display: block; width: 100%; height: 92px; object-fit: contain; background: #05070a; }
.review-asset span { display: block; padding: 6px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.review-asset.is-missing { display: grid; min-height: 122px; place-content: center; padding: 8px; color: #ff9ca7; font-size: 8px; text-align: center; }
.review-card details { margin-top: 10px; border-top: 1px solid var(--line); }
.review-card summary { padding-top: 9px; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 750; }
.review-card pre { max-height: 230px; overflow: auto; padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: #b9c8da; background: #06090d; font: 8px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.reviews-archived { padding: 0; overflow: hidden; }
.reviews-archived > summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; cursor: pointer; font-size: 12px; font-weight: 800; }
.reviews-archived > summary strong { display: grid; min-width: 26px; min-height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 9px; }
.reviews-archived[open] > summary { border-bottom: 1px solid var(--line); }
.reviews-archived-toolbar { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.reviews-archived .reviews-card-grid { padding: 14px 18px 18px; }
.review-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 1px solid #3d5260; border-radius: 14px; color: var(--text); background: #111720; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.review-dialog::backdrop { background: rgba(0,0,0,.72); }
.review-dialog form { padding: 20px; }
.review-dialog small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.review-dialog h2 { margin: 6px 0 0; font-size: 22px; }
.review-dialog p { margin: 9px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.review-dialog label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 750; }
.review-dialog textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #080b10; }
.review-dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 16px; }
.review-dialog-actions button { min-width: 100px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #171d26; cursor: pointer; font-size: 10px; font-weight: 800; }
.review-dialog-actions button.is-primary { border-color: var(--accent); color: #091004; background: var(--accent); }

@media (max-width: 980px) {
  .view-button { min-width: 0; }
  .reviews-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .reviews-summary, .reviews-toolbar { align-items: stretch; flex-direction: column; }
  .reviews-counts { width: 100%; }
  .reviews-toolbar-actions { justify-content: start; }
  .review-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-review-controls { align-items: stretch; flex-direction: column; }
  .result-review-actions button { flex: 1; }
}
