:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f3f0e9;
  background: #10110f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; background: #10110f; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }

.review-app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { position: fixed; z-index: 5; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(16, 17, 15, .94); border-bottom: 1px solid rgba(243, 240, 233, .16); backdrop-filter: blur(7px); }
.top-left { display: flex; gap: 7px; }
.small-button { padding: 7px 10px; border: 1px solid rgba(243, 240, 233, .3); background: transparent; color: #f3f0e9; font-size: 12px; cursor: pointer; }
.small-button:hover, .small-button:focus-visible { background: #d8ff52; }
.progress, .counts { color: #9f9c92; font-size: 12px; }
.progress { display: flex; gap: 4px; align-items: baseline; }
.progress strong { color: #f3f0e9; font-size: 15px; }

.review-stage { display: grid; min-height: 100vh; place-items: center; padding: 74px 20px 116px; background: #10110f; }
.capture-wrap { display: flex; max-width: 100%; flex-direction: column; align-items: center; }
.image-button { display: block; max-width: min(96vw, 1180px); max-height: calc(100vh - 170px); padding: 0; border: 0; background: transparent; cursor: pointer; }
.image-button:focus-visible { outline: 3px solid #f3f0e9; outline-offset: 5px; }
#review-image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 170px); object-fit: contain; }
.capture-caption { display: flex; max-width: min(96vw, 1180px); width: 100%; justify-content: space-between; gap: 15px; padding-top: 8px; color: #9f9c92; font-size: 12px; }
#record-domain { overflow: hidden; color: #f3f0e9; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.actions { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px 16px 16px; background: rgba(16, 17, 15, .94); border-top: 1px solid rgba(243, 240, 233, .16); backdrop-filter: blur(7px); }
.action-button { display: flex; height: 54px; align-items: center; justify-content: center; gap: 9px; border: 0; color: white; cursor: pointer; }
.action-button:hover, .action-button:focus-visible { filter: brightness(.9); outline: 3px solid #f3f0e9; outline-offset: 2px; }
.action-button.like { background: #2da44e; }
.action-button.report { background: #b08320; }
.action-button.reject { background: #c84b4b; }
.action-icon { font-size: 24px; line-height: 1; }
.action-label { font-size: 13px; font-weight: 700; }
.completed-state { display: grid; place-items: center; align-content: center; min-height: 100vh; padding: 100px 20px; text-align: center; }
.completed-state p { margin: 0 0 12px; color: #9f9c92; }
.completed-state strong { display: block; font-size: 48px; }
.completed-state span { color: #9f9c92; font-size: 12px; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 23, 19, .84); backdrop-filter: blur(6px); }
.modal-panel { position: relative; z-index: 1; width: min(1440px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #171713; color: #f3f0e9; box-shadow: 0 22px 55px rgba(0, 0, 0, .45); }
.modal-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(243, 240, 233, .2); }
.modal-index { color: #9f9c92; font-size: 10px; letter-spacing: .13em; }
.icon-button { width: 32px; height: 32px; border: 1px solid rgba(243, 240, 233, .25); background: transparent; color: #f3f0e9; font-size: 25px; line-height: 1; cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { background: #d8ff52; color: #171713; }
.modal-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; padding: 30px; }
.full-capture { display: grid; min-height: 330px; place-items: center; background: #090909; }
.full-capture img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }
.modal-details { padding: 7px 0 20px; }
.modal-details .kicker, .people-block .kicker { margin: 0 0 17px; color: #9f9c92; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.modal-details h2 { max-width: 260px; margin: 0 0 9px; color: #f3f0e9; font-size: 30px; line-height: .96; letter-spacing: -.055em; overflow-wrap: anywhere; }
.domain-link { display: inline-block; margin-bottom: 30px; color: #f08a61; font-size: 12px; font-weight: 700; text-decoration: none; }
.domain-link:hover { text-decoration: underline; }
.detail-list { margin: 0; border-top: 1px solid rgba(243, 240, 233, .2); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.detail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(243, 240, 233, .2); }
.detail-list dt { color: #9f9c92; }
.detail-list dd { max-width: 180px; margin: 0; color: #f3f0e9; text-align: right; }
.people-block { padding-top: 34px; }
.people-list { display: grid; gap: 11px; }
.person-chip { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: #f3f0e9; }
.person-avatar { display: block; width: 28px; height: 28px; flex: 0 0 28px; border: 2px solid #171713; border-radius: 50%; background: #3d3d38; object-fit: cover; }
.person-avatar.pending { animation: pulse 1.3s ease-in-out infinite alternate; }
.person-name { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.people-list .person-chip { padding: 7px 0; border-bottom: 1px solid rgba(243, 240, 233, .2); }
.people-list .person-id { margin-left: auto; color: #9f9c92; font-size: 9px; }

.export-modal[hidden] { display: none; }
.export-modal { position: fixed; z-index: 25; inset: 0; display: grid; place-items: center; padding: 18px; }
.export-panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #171713; color: #f3f0e9; box-shadow: 0 22px 55px rgba(0, 0, 0, .45); }
.export-body { padding: 28px 30px 34px; }
.export-body .kicker { margin: 0 0 12px; color: #9f9c92; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.export-body h2 { margin: 0 0 22px; font-size: 34px; line-height: .96; letter-spacing: -.055em; }
.export-meta { margin: 0; border-top: 1px solid rgba(243, 240, 233, .2); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.export-meta > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(243, 240, 233, .2); }
.export-meta dt { color: #9f9c92; }
.export-meta dd { max-width: 70%; margin: 0; color: #f3f0e9; text-align: right; overflow-wrap: anywhere; }
.export-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0; }
.export-stats div { padding: 12px; background: #24241f; }
.export-stats strong, .export-stats span { display: block; }
.export-stats strong { font-size: 22px; }
.export-stats span { margin-top: 4px; color: #9f9c92; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.export-lists { display: grid; gap: 8px; }
.export-lists details { border-top: 1px solid rgba(243, 240, 233, .2); }
.export-lists summary { padding: 12px 0; color: #f3f0e9; font-size: 12px; font-weight: 700; cursor: pointer; }
.export-lists p { margin: 0 0 14px; color: #9f9c92; font: 11px/1.5 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }

.toast { position: fixed; z-index: 30; right: 16px; bottom: 92px; max-width: min(380px, calc(100% - 32px)); transform: translateY(20px); padding: 11px 14px; opacity: 0; border: 1px solid #f3f0e9; background: #d8ff52; color: #171713; font-size: 12px; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 700px) {
  .counts { display: none; }
  .review-stage { padding-right: 10px; padding-left: 10px; }
  .capture-caption { font-size: 11px; }
  .modal { padding: 0; }
  .modal-panel { width: 100%; max-height: 100vh; }
  .modal-content { display: block; padding: 0 17px 24px; }
  .full-capture { min-height: 260px; margin: 0 -17px 25px; }
  .full-capture img { max-height: 66vh; }
  .export-modal { padding: 0; }
  .export-panel { width: 100%; max-height: 100vh; }
  .export-body { padding: 24px 17px 28px; }
  .export-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
