/* Manual review mode and full-frame inspection history photo viewer. */
.inspection-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0 15px}
.inspect-form-panel .inspection-mode-options .inspection-mode-choice{display:flex;align-items:center;gap:10px;min-height:76px;margin:0;padding:13px 12px;border:1px solid #dae5f1;border-radius:11px;background:#f8fbff;cursor:pointer;font-size:12px;font-weight:600;transition:border-color .15s,background .15s}
.inspection-mode-choice:has(input:checked){border-color:#397cec!important;background:#eaf3ff!important;box-shadow:0 0 0 1px #397cec24 inset}
.inspection-mode-choice input[type=radio]{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#2366eb}
.inspection-mode-choice span{display:grid;gap:5px}
.inspection-mode-choice strong{font-size:13px;color:#244563}
.inspection-mode-choice small{font-size:11px;font-weight:500;color:#7d91a7;line-height:1.45}
.manual-verdict-panel{padding:15px;border:1px solid #c8def9;border-radius:10px;background:#f1f7ff;margin:9px 0 14px}
.manual-verdict-panel[hidden],#inspection-ai-note[hidden]{display:none!important}
.inspect-form-panel .manual-verdict-panel>label{margin:0 0 8px}
.manual-verdict-panel select{background:#fff}
.detail-panel .image-detail{height:min(58vh,520px);min-height:330px;max-height:580px;background:#edf2f8}
.detail-panel .image-detail img{width:100%;height:100%;object-fit:contain;object-position:center;cursor:zoom-in}
.history-enlarge{margin-top:12px;width:100%}
.vision-photo-dialog{border:0;border-radius:14px;box-shadow:0 25px 90px #0b233f65;padding:0;background:#102033;color:#eaf3ff;width:min(96vw,1400px);max-width:none;max-height:96vh;overflow:hidden}
.vision-photo-dialog::backdrop{background:rgba(7,17,29,.88);backdrop-filter:blur(3px)}
.photo-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 17px;border-bottom:1px solid #344960;font-size:13px}
.photo-dialog-top form{margin:0}
.photo-dialog-content{height:min(83vh,900px);display:grid;place-items:center;padding:10px;min-height:0}
.photo-dialog-content img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:720px){
  .inspection-mode-options{grid-template-columns:1fr}
  .inspect-form-panel .inspection-mode-options .inspection-mode-choice{min-height:66px}
  .detail-panel .image-detail{height:380px;min-height:260px}
  .vision-photo-dialog{width:99vw;max-height:98vh}
  .photo-dialog-content{height:80vh;padding:5px}
}
.vision-judge-result { margin: 12px 0; padding: 16px 18px; border: 1px solid #98b8fa; border-radius: 12px;
  background: #eef4ff; color: #132c51; line-height: 1.65; overflow-wrap: anywhere; }
.vision-judge-result strong { font-size: 1.07rem; }
.vision-judge-result p { margin: 4px 0 0; }
.history-manage { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dae4f2; }
.history-manage h3 { margin: 0 0 8px; font-size: 1rem; }
.history-manage label { display: block; margin: 8px 0; }
.history-manage select, .history-manage textarea { display: block; width: 100%; margin-top: 4px; }
.history-manage form { margin-top: 10px; }
.history-manage .note { line-height: 1.6; }
.vision-judge-result[hidden], .history-manage[hidden], #history-manage-help[hidden] { display: none !important; }
