/* Pictures for the existing IMO problem reader. */
.imo-pictures{max-width:980px;margin:0 auto;padding:24px 32px 0;color:#111}
.imo-pictures [hidden],.imo-image-dialog [hidden]{display:none!important}
.imo-pictures-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.imo-pictures-head h3{display:flex;align-items:center;gap:9px;font:600 19px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0}
.imo-pictures-actions{display:flex;align-items:center;gap:8px}
.imo-picture-count{border:1px solid #ddd;border-radius:999px;background:#fafafa;color:#555;font-size:11px;font-weight:500;line-height:1.8;min-width:25px;padding:0 7px;text-align:center}
.imo-picture-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}
.imo-picture-card{min-width:0;overflow:hidden;border:1px solid #ddd;border-radius:10px;background:#fff}
.imo-picture-open{display:block;width:100%;height:180px;padding:10px;border:0;border-bottom:1px solid #e8e8e8;background:#fafafa;cursor:zoom-in}
.imo-picture-open:hover{background:#f1f1f1}
.imo-picture-open img{display:block;width:100%;height:100%;object-fit:contain}
.imo-picture-details{padding:11px 12px}
.imo-picture-name{font-size:12px;font-weight:600;line-height:1.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0}
.imo-picture-date{display:block;font-size:10px;line-height:1.6;color:#666;margin:4px 0 9px;overflow-wrap:anywhere}
.imo-picture-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#777;font-size:10px}
.imo-picture-delete{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:3px 0;font-family:inherit;font-size:11px;font-weight:500;line-height:1.5;color:#444}
.imo-picture-empty{padding:22px 18px;background:#fafafa;border:1px dashed #ddd;border-radius:9px;color:#777;font-size:13px;text-align:center}
.imo-picture-message{font-size:12px;line-height:1.7;margin:12px 0 0;color:#555;overflow-wrap:anywhere}
.imo-picture-message[data-error=true]{color:#111;font-weight:600;border-left:3px solid #111;padding-left:10px}
.imo-picture-composer{border:1px solid #ccc;border-radius:10px;padding:20px;background:#fafafa;margin-top:17px}
.imo-picture-drop{border:1px dashed #aaa;border-radius:8px;background:#fff;padding:21px 15px;text-align:center;transition:background .15s,border-color .15s}
.imo-picture-drop[data-drag=true]{border:2px solid #111;padding:20px 14px;background:#eee}
.imo-picture-drop p{margin:8px 0 0;font-size:11px;color:#666}
.imo-picture-queue{display:grid;gap:9px;margin-top:14px}
.imo-picture-pending{display:flex;align-items:center;gap:11px;border:1px solid #ddd;border-radius:7px;padding:8px;background:white;min-width:0}
.imo-picture-pending img{width:48px;height:48px;object-fit:contain;flex:none;background:#fafafa;border-radius:4px}
.imo-picture-pending-text{min-width:0;flex:1}
.imo-picture-pending-text strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500}
.imo-picture-pending-text span{display:block;font-size:10px;color:#666;overflow-wrap:anywhere}
.imo-picture-pending-text span[data-error=true]{font-weight:600;color:#111}
.imo-picture-remove{border:0;background:transparent;font-size:20px;padding:4px 8px;flex:none;border-radius:4px}
.imo-picture-submit{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:17px}
.imo-picture-password{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:650;letter-spacing:.6px;color:#555;max-width:260px;width:100%}
.imo-picture-password input{background:white;color:#111;font:400 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;border:1px solid #ccc;border-radius:7px;min-width:0;width:100%;padding:10px 12px}
.imo-picture-submit .btn{min-height:43px}
.imo-picture-form-actions{display:flex;gap:9px}
.imo-picture-progress{margin-top:14px}
.imo-picture-progress progress{display:block;accent-color:#111;width:100%;height:7px}
.imo-picture-progress p{font-size:11px;color:#555;margin:6px 0 0}
.imo-image-dialog{padding:0;border:1px solid #ccc;border-radius:12px;color:#111;background:#fff;box-shadow:0 24px 100px #00000060;max-height:94vh;max-height:94dvh;max-width:96vw}
.imo-image-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}
.imo-image-dialog button,.imo-image-dialog input{font-family:inherit}
.imo-image-viewer{width:min(1200px,96vw)}
.imo-image-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-bottom:1px solid #ddd}
.imo-image-viewer-head h3{font-size:14px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;min-width:0}
.imo-image-viewer-controls{display:flex;gap:7px;align-items:center;flex:none}
.imo-image-viewer-image{display:block;max-width:100%;width:100%;height:min(70vh,900px);height:min(70dvh,900px);object-fit:contain;padding:16px;background:#f6f6f6}
.imo-image-viewer-foot{padding:11px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#666}
.imo-image-viewer-foot a{white-space:nowrap;font-weight:600;color:#111}
.imo-image-confirm{width:min(440px,94vw);padding:24px}
.imo-image-confirm h3{font-size:19px;margin:0 0 12px;line-height:1.35}
.imo-image-confirm p{font-size:13px;line-height:1.7;color:#555;margin:0 0 16px;overflow-wrap:anywhere}
.imo-image-confirm img{width:100%;height:135px;object-fit:contain;background:#fafafa;border:1px solid #ddd;border-radius:7px;margin-bottom:16px}
.imo-image-confirm .imo-picture-password{max-width:none}
.imo-image-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
.imo-image-confirm .imo-picture-message{margin:12px 0 0}
@media(max-width:760px){.imo-pictures{padding:20px 18px 0}.imo-picture-composer{padding:15px}.imo-picture-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.imo-picture-open{height:155px}.imo-image-viewer-head{padding:12px}.imo-image-viewer-head h3{font-size:12px}.imo-image-viewer-controls .btn{padding:6px 9px}}
@media(max-width:470px){.imo-pictures-head h3{font-size:17px}.imo-pictures-head{gap:9px}.imo-pictures-actions{gap:6px}.imo-pictures-actions .btn{font-size:11px;padding:6px 8px}.imo-picture-open{height:130px;padding:7px}.imo-picture-details{padding:9px}.imo-picture-name{font-size:11px}.imo-picture-date{font-size:9px}.imo-picture-submit{flex-direction:column;align-items:stretch}.imo-picture-password{max-width:none}.imo-picture-password input{font-size:16px}.imo-picture-form-actions .btn{flex:1}.imo-image-viewer-head{flex-wrap:wrap;gap:9px}.imo-image-viewer-head h3{flex-basis:100%}.imo-image-viewer-controls{margin-left:auto}.imo-image-viewer-image{height:65vh;height:65dvh;padding:8px}.imo-image-confirm{padding:20px}}
@media(prefers-reduced-motion:reduce){.imo-picture-drop{transition:none}}
