/* V23: font consistency for representative & on-site staff, validated AI annotations and modal layout. */
body.aios-service-type{--aios-label-size:13px;--aios-text-size:15px;--aios-section-size:17px}
body.aios-service-type :is(.onsite-profile p,.onsite-empty p,.page-head p,.card p,.field label,.rep-info-grid strong,.onsite-facts strong,.status,.role-badge){font-family:'YBakh',Tahoma,Arial,sans-serif;font-size:var(--aios-text-size);line-height:1.85}
body.aios-service-type :is(.onsite-facts span,.rep-info-grid small,.eyebrow,.card small,.page-head small){font-family:'YBakh',Tahoma,Arial,sans-serif;font-size:var(--aios-label-size);line-height:1.75}
body.aios-service-type :is(.onsite-job-title,.section-head strong){font-family:'YBakh',Tahoma,Arial,sans-serif;font-size:var(--aios-section-size);line-height:1.6}
body.aios-service-type :is(.btn,.nav-link,.search-select__control,select,input,textarea,button){font-family:'YBakh',Tahoma,Arial,sans-serif;font-size:14px;line-height:1.6}
body.aios-service-type .onsite-profile h1{font-size:clamp(21px,2vw,27px);line-height:1.6}
body.aios-service-type .onsite-stat strong{font-size:26px}
body.aios-service-type :is(.onsite-code,.mono){font-family:Consolas,'Courier New',monospace;direction:ltr;unicode-bidi:plaintext}
/* Annotations are overlayed on the actual submitted photo; never crop the image. */
.aios-annotated-canvas{position:relative;display:block;width:100%;overflow:hidden;border-radius:12px;background:#061a27}
.image-grid .aios-annotated-canvas img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important;border-radius:0!important}
.aios-annotated-canvas .aios-detection-outline{position:absolute;display:block;box-sizing:border-box;z-index:2;border:3px solid #ff4343;border-radius:5px;box-shadow:0 0 0 1px rgba(0,0,0,.7),0 0 12px rgba(255,55,55,.5);pointer-events:none;background:rgba(255,45,45,.07)}
.aios-no-box-notice{font-size:14px;line-height:1.9;padding:12px 14px;border:1px solid #71624d;border-radius:12px;background:rgba(242,184,78,.08);color:#f5d4a1;overflow-wrap:anywhere}
.aios-inspection-overlays figure{min-width:0}
.aios-inspection-overlays figcaption{font-size:12px;line-height:1.7}
/* V23 analysis upload alert: safe on narrow screens, short landscape, and desktop-site-on-phone. */
body.ai-platform #progressModal{box-sizing:border-box;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain}
body.ai-platform #progressModal .progress-card{box-sizing:border-box;width:min(430px,100%);max-width:100%;min-width:0;max-height:calc(100dvh - 30px);overflow-y:auto;overflow-x:hidden;padding:clamp(16px,4vw,28px);margin:auto;border-radius:18px;word-break:normal;overflow-wrap:anywhere}
body.ai-platform #progressModal .progress-card h3{font-size:clamp(16px,4vw,20px);line-height:1.8;margin:8px 0}
body.ai-platform #progressModal .progress-card p{font-size:clamp(13px,3.3vw,15px);line-height:1.95;margin:8px 0 16px}
body.ai-platform #progressModal .progress-card .btn{max-width:100%;white-space:normal;min-height:42px;font-size:14px}
body.ai-platform #progressModal .progress-card .progress-bar{width:100%;max-width:100%}
@media(max-width:540px){body.aios-service-type{--aios-text-size:14px;--aios-section-size:16px}
 body.ai-platform #progressModal .progress-card{width:100%;padding:18px 15px}
 body.ai-platform #progressModal .progress-card .loader-ring{width:44px;height:44px}}
@media(max-height:520px){body.ai-platform #progressModal .progress-card{max-height:calc(100dvh - 16px);padding:12px 16px}}
html.aios-touch-compact body.ai-platform #progressModal .progress-card{max-width:min(420px,100%);width:100%}
