.inspection-media{margin:18px 0 4px;border:1px solid #d7d9df;border-radius:14px;padding:16px;background:#fff;min-width:0;color:#24262b}
.inspection-media h3{margin:0 0 8px;font-size:18px}
.inspection-capture{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.inspection-pick{position:relative;display:flex;align-items:center;justify-content:center;min-height:54px!important;padding:12px!important;font-weight:750!important;overflow:hidden;cursor:pointer;text-align:center;border:1px solid #c9ccd3!important;border-radius:10px;background:#fff!important;color:#202227!important}
.inspection-pick input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.inspection-pick:focus-within{outline:3px solid #bd273e;outline-offset:3px}
.inspection-pick:hover{background:#fff3f5!important;border-color:#bd273e!important}
.inspection-media-toggle{width:100%;min-height:48px;text-align:left;justify-content:flex-start;font-weight:750!important}
.inspection-media-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:10px}
.inspection-media-list:empty{display:none}
.inspection-media-card{border:1px solid #d7d9df;border-radius:12px;overflow:hidden;min-width:0;background:#fafafa}
.inspection-media-card [data-preview]{display:flex;align-items:center;justify-content:center;min-height:56px;background:#f1f2f4;color:#42454d;padding:6px}
.inspection-media-card img,.inspection-media-card video{width:100%;max-height:200px;object-fit:contain;border-radius:8px}
.inspection-file-info{padding:12px;min-width:0}.inspection-file-info strong{display:block;overflow-wrap:anywhere;font-size:15px}.inspection-file-info small{display:block;color:#525762;margin-top:5px}.inspection-file-info p{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0}
.inspection-file-info progress{width:100%;accent-color:#bf213b;height:12px}
.inspection-file-actions{display:flex;gap:8px;flex-wrap:wrap}.inspection-file-actions button{min-height:44px;flex:1;white-space:normal}
.inspection-media-card[data-status=failed]{border-color:#bb1935;background:#fff6f7}.inspection-media-card[data-status=saved]{border-color:#a6b7ae}
.inspection-media-status{font-weight:700;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.inspection-media-status:empty{display:none}
.inspection-media-status[aria-busy=true]::before{content:'';display:inline-block;width:14px;height:14px;margin-right:8px;border:2px solid #d7d9df;border-top-color:#bb1935;border-radius:50%;vertical-align:middle;animation:inspection-saving-spin .8s linear infinite}
@keyframes inspection-saving-spin{to{transform:rotate(360deg)}}
.pdf-mobile-form .pdf-check{min-width:0}.pdf-mobile-form .module-note{color:#4b505a}.pdf-mobile-form .check-choices span{min-height:48px;display:flex;align-items:center;justify-content:center}
@media(max-width:640px){
 dialog.pdf-mobile-dialog{width:100vw!important;max-width:100vw!important;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0!important;border:0!important;border-radius:0!important;padding:0!important}
 .pdf-mobile-form{min-height:100%;padding:0!important}
 .pdf-mobile-form .dialog-head{padding:16px 16px 12px!important;gap:12px;align-items:center}
 .pdf-mobile-form .dialog-head h2{font-size:22px;line-height:1.35}.pdf-mobile-form .icon-close{min-width:48px;min-height:48px}
 .pdf-mobile-form #dialogFields{display:block;padding:16px!important}.pdf-mobile-form #dialogFields>.field{display:block;margin:0 0 18px}
 .pdf-mobile-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.pdf-mobile-form select,.pdf-mobile-form textarea{font-size:16px!important;min-height:48px;max-width:100%}
 .pdf-mobile-form .pdf-group{font-size:19px;margin-top:24px}.pdf-mobile-form .pdf-check h3{font-size:18px;line-height:1.45}
 .pdf-mobile-form .check-choices{gap:6px}.pdf-mobile-form .check-choices span{font-size:14px;padding:12px 5px!important;font-weight:750}.pdf-mobile-form .pdf-check{padding:18px 0}
 .pdf-mobile-form .check-finding{grid-template-columns:1fr}.pdf-mobile-form .pdf-money{font-size:16px;padding:14px;line-height:1.6}
 .pdf-mobile-form .dialog-actions{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid #d7d9df;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;display:grid;grid-template-columns:1fr 2fr;gap:10px}
 .pdf-mobile-form .dialog-actions button{min-height:50px;font-size:16px;font-weight:750;white-space:normal}.pdf-mobile-form #dialogMessage{margin:0 16px;overflow-wrap:anywhere}
 .inspection-media{padding:12px;border-radius:12px}.inspection-capture{gap:7px}.inspection-pick{min-height:58px!important;font-size:15px!important;padding:10px 4px!important}
 .inspection-media-list{grid-template-columns:1fr}.inspection-media .module-note{font-size:14px;line-height:1.6}.inspection-media-card img,.inspection-media-card video{max-height:220px}
}
@media(prefers-reduced-motion:reduce){.inspection-media *{scroll-behavior:auto!important;transition:none!important}}
@media(prefers-reduced-motion:reduce){.inspection-media-status::before{animation:none!important}}
