/* Exam & visa photo / signature pages */
.fm-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 14px 0; }
.fm-item { background: #fff; border: 1px solid #e5e5ea; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 22px rgba(0, 0, 0, .05); }
.fm-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.fm-rule { margin: 0; font-size: .92rem; color: #1d1d1f; }
.fm-out { margin: 4px 0 0; }
.fm-stage { display: flex; justify-content: center; }
.fm-stage:empty { display: none; }
.fm-item:not(.has) .pdf-opts, .fm-item:not(.has) .fm-adv { display: none; }
.fm-adv summary { cursor: pointer; color: #0071e3; font-size: .9rem; }
.fm-adv input[type=number] { width: 80px; }
.fm-item .pdf-opts input[type=text] { width: 150px; }
.fm-result { margin: 0; font-size: .92rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fm-result.ok { color: #137333; }
.fm-result.err { color: #b3261e; }
.fm-prev { max-height: 110px; max-width: 160px; border: 1px solid #e5e5ea; border-radius: 6px; }
.fm-note { background: #fff8e6; border: 1px solid #f3d58a; border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin: 10px 0; }
.fm-note.ok { background: #eef8f0; border-color: #b7e0c0; }
.fm-stage .crop-wrap, .img-stage .crop-wrap { overflow: hidden; border-radius: 8px; }
.fm-stage .crop-box .h, .img-stage .crop-box .h { right: 3px; bottom: 3px; }
