:root { color-scheme: light; font-family: Inter, Segoe UI, Arial, sans-serif; background: #eef1f4; color: #172027; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; border: 1px solid #c5ccd2; border-radius: 6px; background: #fff; padding: 0 16px; cursor: pointer; font-weight: 650; }
button:hover { background: #f5f7f8; }
button:disabled { opacity: .55; cursor: wait; }
.hidden { display: none !important; }
.brand { color: #d45f25; font-weight: 800; margin: 0 0 3px; }
h1, h2, p { margin-top: 0; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(400px, 100%); background: #fff; border: 1px solid #d5dadd; border-radius: 8px; padding: 32px; box-shadow: 0 12px 35px #17202714; }
label { display: grid; gap: 6px; margin: 18px 0; font-size: 14px; font-weight: 700; }
input, select { width: 100%; min-height: 44px; border: 1px solid #b8c0c6; border-radius: 5px; padding: 8px 11px; background: #fff; }
.primary, .approve { color: #fff; background: #16754a; border-color: #16754a; }
.primary:hover, .approve:hover { background: #105f3b; }
.error { min-height: 20px; color: #ad2525; font-size: 14px; }
.app-shell { min-height: 100vh; }
header { height: 72px; background: #fff; border-bottom: 1px solid #d5dadd; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
header h1 { font-size: 22px; margin: 0; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { width: 44px; padding: 0; font-size: 21px; }
.tabs { min-height: 52px; display: flex; gap: 3px; align-items: end; padding: 8px 24px 0; background: #fff; border-bottom: 1px solid #d5dadd; overflow-x: auto; }
.tab { min-height: 36px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; color: #526069; }
.tab.active { color: #172027; border-bottom-color: #d45f25; }
.review-layout { height: calc(100vh - 124px); display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.image-stage { overflow: auto; display: grid; place-items: center; padding: 20px; background: #252a2e; }
.image-wrap { position: relative; display: inline-block; max-width: 100%; max-height: calc(100vh - 112px); }
.image-stage img { display: block; max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; background: #fff; box-shadow: 0 8px 30px #0007; }
.assist-overlay { position: absolute; inset: 0; cursor: crosshair; user-select: none; }
.assist-overlay.active { background: rgba(22, 117, 74, .08); }
.assist-box { position: absolute; border: 3px solid #16754a; background: rgba(22, 117, 74, .12); pointer-events: none; }
.assist-box.number { border-color: #d45f25; background: rgba(212, 95, 37, .16); }
.assist-box.draft { border-style: dashed; border-color: #ffffff; background: rgba(255, 255, 255, .13); }
.assist-box span { position: absolute; left: -3px; top: -28px; padding: 4px 7px; border-radius: 4px; background: #172027; color: #fff; font-size: 12px; font-weight: 750; }
.details { overflow-y: auto; padding: 24px; background: #fff; border-left: 1px solid #d5dadd; }
.progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.progress span { padding: 5px 8px; border-radius: 4px; background: #e9edf0; font-size: 12px; font-weight: 750; }
dl { margin: 0; }
dl div { padding: 13px 0; border-bottom: 1px solid #e2e5e7; }
dt { font-size: 12px; color: #66727a; text-transform: uppercase; }
dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.reject { color: #a42020; border-color: #d7a7a7; }
.correction { border-top: 1px solid #d5dadd; margin-top: 20px; padding-top: 5px; }
.correction-actions { display: flex; gap: 8px; }
.assist-panel { border-top: 1px solid #d5dadd; margin-top: 20px; padding-top: 16px; }
.assist-panel h2 { font-size: 18px; margin-bottom: 8px; }
.assist-panel p { color: #526069; font-size: 14px; line-height: 1.4; }
.assist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.assist-panel button.active { border-color: #16754a; background: #e7f3ed; color: #105f3b; }
.wide-button { width: 100%; margin-top: 10px; }
.assist-status { min-height: 20px; margin: 8px 0 0; color: #526069; font-size: 13px; line-height: 1.35; }
.decision-note { margin-top: 20px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(18, 24, 31, .62); }
.modal-backdrop.hidden { display: none; }
.modal-panel { width: min(480px, 100%); padding: 24px; border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(0, 0, 0, .28); }
.modal-panel h2 { margin: 0 0 8px; font-size: 22px; }
.modal-panel textarea { width: 100%; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.empty { max-width: 520px; margin: 15vh auto; text-align: center; background: #fff; border: 1px solid #d5dadd; border-radius: 8px; padding: 40px; }
@media (max-width: 820px) {
  .review-layout { height: auto; grid-template-columns: 1fr; }
  .image-stage { min-height: 55vh; padding: 10px; }
  .image-stage img { max-height: 52vh; }
  .image-wrap { max-height: 52vh; }
  .details { border-left: 0; border-top: 1px solid #d5dadd; }
}
