/* Shared mobile rules extend the existing RTL design; no operational content is hidden. */
:root{--visible-height:100dvh;--keyboard-gap:0px}html{scroll-padding-block:18px 90px;-webkit-text-size-adjust:100%}body{overflow-wrap:break-word}img,video,canvas{max-width:100%}button,a,input,select,textarea,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #83baa8;outline-offset:3px}.mobile-network{position:sticky;top:0;z-index:30;padding:10px 16px;background:#fff3df;color:#765522;border-bottom:1px solid #e7d2a5;text-align:center}.mobile-network[hidden],.mobile-keyboard-action[hidden]{display:none}.mobile-keyboard-action{position:fixed;inset-inline:10px;bottom:calc(var(--keyboard-gap) + env(safe-area-inset-bottom,0px) + 6px);z-index:2500;display:flex;gap:8px;padding:8px;border-radius:12px;background:#f3f6f4;box-shadow:0 -4px 24px #123d4330}.mobile-keyboard-action button{flex:1;min-height:44px}.mobile-install{margin-block:12px;padding:12px;background:#eaf4ee;border-radius:10px}.mobile-install button{margin-inline-end:8px}.mobile-offline{max-width:500px;margin:10vh auto;padding:24px}.mobile-table td{overflow-wrap:anywhere}
@media(max-width:700px){
 body{min-width:0;margin:0}main,.portal-main{width:100%;min-width:0;padding-inline:max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-left,0px));padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}.portal-header{padding-inline:max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-left,0px));padding-top:max(14px,env(safe-area-inset-top,0px))}.portal-brand,.portal-controls,.page-heading,.toolbar,.top,.actions{min-width:0;flex-wrap:wrap}.portal-brand{font-size:16px}.portal-brand span{min-width:0}.portal-brand img{flex-shrink:0}.portal-controls{gap:8px}.portal-controls>details{flex:1}.portal-controls summary{min-height:44px;display:flex;align-items:center}.tools-dropdown{position:absolute;inset-inline:0;top:100%;min-width:0;width:min(320px,calc(100vw - 24px));max-height:70dvh;overflow-y:auto}.tools-dropdown a{min-height:44px}.portal-hero>div{padding:22px 18px}.portal-hero h2{font-size:22px}.section-grid,.subpage-grid,.split,.portal-fields,.form-grid,.enterprise-routing{grid-template-columns:minmax(0,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.section-grid>*,.subpage-grid>*,.form-grid>*,.split>*,.cards>*,.portal-fields>*{min-width:0}.subpage-card{padding:16px;gap:12px}.section-banner{flex-wrap:wrap}.section-banner>div{flex:1;min-width:160px}.page-heading h1{font-size:22px}.toolbar{align-items:stretch}.toolbar input,.toolbar select{max-width:none;width:100%;flex:1 1 150px}.toolbar a,.toolbar button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:normal}.toolbar input{min-width:0}.actions{display:flex;gap:8px}.actions>*{min-width:0;max-width:100%}button,input,select,textarea{font-size:16px}button,select,input:not([type=checkbox]):not([type=radio]){min-height:44px}input[type=file]{width:100%;font-size:14px;overflow:hidden}textarea{max-width:100%;resize:vertical}input[type=checkbox],input[type=radio]{width:22px;height:22px;vertical-align:middle}label{overflow-wrap:anywhere}.login{width:calc(100% - 24px);max-width:460px;margin:5dvh auto;padding:26px 20px}.panel{padding:16px;min-width:0}.panel dl,.followup-card dl{min-width:0}.panel dd,.followup-card dd{margin-inline-start:0;overflow-wrap:anywhere}
 dialog{position:fixed;inset:8px;width:calc(100% - 16px);max-width:600px;max-height:calc(var(--visible-height) - 16px);height:auto;margin:auto;padding:18px 14px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:16px 90px}dialog .top{position:sticky;top:-18px;background:white;z-index:6;padding-block:8px;align-items:center;gap:8px}dialog .top h2{font-size:19px;flex:1}dialog .top button{flex-shrink:0}dialog form{padding-bottom:12px}dialog.mobile-keyboard-open form{padding-bottom:85px}body.mobile-keyboard-open .portal-main{padding-bottom:100px}.followup-form{scroll-padding-bottom:90px}.mobile-submit{scroll-margin-block:30px 90px}.followup-header h1{font-size:24px}.followup-header{padding:22px 16px}.followup-summary,.followup-fields{grid-template-columns:minmax(0,1fr)}.followup-photo-columns{grid-template-columns:minmax(0,1fr)}.observation-location-details{grid-template-columns:minmax(0,1fr)}.observation-location-details dt{margin-top:8px}.observation-previews article{max-width:100%}.followup-local-previews img{max-width:45%}.followup-lightbox{padding:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));height:100dvh}.followup-lightbox img{max-height:60dvh}
 .table-wrap{overflow:visible;max-width:100%;min-width:0}.mobile-table,.mobile-table tbody{display:block;width:100%;max-width:100%}.mobile-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-table tbody tr{display:block;padding:12px;margin-block:12px;background:#fff;border:1px solid var(--line);border-radius:12px}.mobile-table td{display:block;white-space:normal;padding:9px 0;border-bottom:1px solid var(--line);width:100%;max-width:100%;min-width:0;text-align:start}.mobile-table td:before{content:attr(data-mobile-label);display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.mobile-table td:last-child{border-bottom:0}.mobile-table td button{width:100%}.mobile-table td pre{white-space:pre-wrap}.mobile-table td:empty{display:none}
 #toast{inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto;max-width:calc(100% - 24px);overflow-wrap:anywhere}.mobile-keyboard-open #toast{bottom:calc(var(--keyboard-gap) + 76px)}
}
@media(max-width:700px){dialog.mobile-keyboard-open{top:8px;bottom:auto;margin:0 auto}}
@media(pointer:coarse){input,select,textarea,button{font-size:16px}button,select,input:not([type=checkbox]):not([type=radio]){min-height:44px}}
@media(max-height:500px) and (pointer:coarse){dialog{position:fixed;inset:8px;width:min(780px,calc(100% - 16px));max-height:calc(var(--visible-height) - 16px);overflow-y:auto}dialog.mobile-keyboard-open{top:8px;bottom:auto;margin:0 auto}dialog.mobile-keyboard-open form{padding-bottom:85px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.mobile-network,.mobile-install,.mobile-keyboard-action{display:none!important}}
