/* Mobile shared rules: touch targets, safe areas, readable form controls and contained tables. */
@media(max-width:760px){
html{scroll-padding-top:95px}body.cf-app,body.cw-staff,body.cw-public,body.cl-login,body.rp-reader,body.cw-light-legacy{min-height:100vh;min-height:100svh;-webkit-text-size-adjust:100%}body.cf-app *,body.cw-staff *,body.cw-public *,body.cl-login *,body.rp-reader *,body.cw-light-legacy *{box-sizing:border-box}body :is(img,video,audio){max-width:100%}body :is(video,audio){min-width:0}body.cf-app :is(input,textarea,select),body.cw-staff :is(input,textarea,select),body.cw-public :is(input,textarea,select),body.cl-login :is(input,textarea,select),body.rp-reader :is(input,textarea,select),body.cw-light-legacy :is(input,textarea,select){max-width:100%;min-width:0;font-size:16px}body.cf-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.cw-staff input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.cw-public input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.cl-login input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.rp-reader input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.cw-light-legacy input:not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:46px;font-size:16px}body :is(button,.btn,.cap-primary,.cr-button){min-height:44px;touch-action:manipulation}body :is(button,.btn,.cap-primary,.cr-button):not(.cf-attachment-preview button){min-width:44px}body :is(select,textarea){scroll-margin-block:110px 130px}body :is(h1,h2,h3,p,.answer,.notice){overflow-wrap:anywhere}body :is(a,button,input,textarea,select):focus-visible{outline-offset:3px}
body .cw-language-switch{display:inline-flex;align-items:center;max-width:100%;flex-shrink:0}body .cw-language-switch a{min-height:40px;min-width:48px;display:flex;align-items:center;justify-content:center;font-size:12px;padding:7px 10px}body.cf-app .cf-topbar{height:76px;padding-inline:16px}body.cf-app .cf-top-end{gap:7px}body.cf-app .cf-brand{font-size:23px}body.cf-app .cf-brand small{font-size:7px;letter-spacing:1.3px}body.cf-app .cf-layout{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}body.cf-app .cf-rail-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));align-items:stretch;gap:0}body.cf-app .cf-rail-nav a{min-width:0;min-height:58px;flex:1;padding:7px 3px;justify-content:flex-start;gap:4px}body.cf-app .cf-rail-nav a>span{font-size:9px;line-height:1.35;white-space:normal;min-height:24px;display:flex;align-items:center;justify-content:center;text-align:center}body.cf-app .cf-tabs{gap:18px;overflow-x:auto;scrollbar-width:thin}body.cf-app .cf-tabs a{min-height:48px;white-space:nowrap;flex-shrink:0}body.cf-app .cf-filter-tabs a{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;font-size:11px}body.cf-app .cf-post-header{align-items:flex-start}body.cf-app .cf-post-header .cf-status{max-width:105px;white-space:normal;text-align:center}body.cf-app .cf-choice{min-height:48px;font-size:14px;padding:12px;gap:10px}body.cf-app .cf-choice input{width:20px;height:20px;flex-shrink:0}body.cf-app .cf-choice>span{overflow-wrap:anywhere;min-width:0}body.cf-app .cf-rating label{min-width:48px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:7px}body.cf-app .cf-rating input{width:18px;height:18px}body.cf-app .cf-attachment-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:9px}body.cf-app .cf-attachment-toolbar button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:0;border:1px solid #dfe8f1;border-radius:8px;background:#fff;padding:7px 5px;font-size:10px}body.cf-app .cf-attachment-toolbar button>span{display:inline}body.cf-app .cf-attachment-toolbar button>svg{width:18px;height:18px}body.cf-app .cf-attachment-toolbar .cf-record-trigger{grid-column:span 2;margin-inline-start:0;background:#edf7f2;border-color:#d7eae2;color:#368c76}body.cf-app .cf-composer-footer{flex-direction:column;align-items:stretch;gap:12px}body.cf-app .cf-composer-footer small{font-size:10px;line-height:1.8}body.cf-app .cf-submit{width:100%;min-height:46px;justify-content:center;font-size:13px}body.cf-app .cf-compose-box textarea{font-size:16px;line-height:1.7}body.cf-app .cf-recorder{padding:6px 0;gap:8px;flex-wrap:wrap}body.cf-app .cf-recorder button{min-height:44px}body.cf-app .cf-attachment-preview{width:100%}body.cf-app .cf-attachment-preview button{min-width:36px!important;min-height:36px!important;width:36px;height:36px}body.cf-app .cf-attachment-preview img,body.cf-app .cf-attachment-preview video{height:auto;max-height:220px;object-fit:contain}body.cf-app .cf-attachment-preview small{font-size:11px;padding-inline-end:30px;white-space:normal;overflow-wrap:anywhere}body.cf-app .cf-add-comment>summary{min-height:44px;display:flex;align-items:center;font-size:12px}body.cf-app .cf-response-bubble p,body.cf-app .cf-comment p,body.cf-app .cf-followup p{font-size:13px;line-height:1.8}body.cf-app .cf-like-form button{min-width:70px;min-height:40px;padding:7px;font-size:11px}body.cf-app .cf-response-actions{flex-wrap:wrap;gap:10px}body.cf-app .cf-task-open{min-height:44px;font-size:12px}body.cf-app .cf-pagination a{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center}
body.cw-staff .cw-topbar{height:76px;padding-inline:14px;gap:10px}body.cw-staff .cw-mobile-menu{min-width:42px;min-height:42px;padding:7px!important}body.cw-staff .cw-top-actions{gap:5px}body.cw-staff .cw-sidebar{top:76px;height:calc(100vh - 76px);height:calc(100dvh - 76px);padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 30px);overflow-y:auto}body.cw-staff .cw-side-nav a,body.cw-staff .cw-sidebar-bottom>a{min-height:46px}body.cw-staff .cw-main{padding-inline:14px}body.cw-staff .fields,body.cw-public .fields,body.cw-public .grid{grid-template-columns:minmax(0,1fr)}body.cw-staff .actions{flex-wrap:wrap;gap:10px}body.cw-staff .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}body.cw-staff .table-wrap:before{content:'Swipe sideways to see all columns';display:block;position:sticky;inset-inline-start:0;padding:10px 14px;font-size:10px;color:#8199ac;background:#f8fafd;width:fit-content;max-width:100%}html[lang=ar] body.cw-staff .table-wrap:before{content:'اسحب جانبيًا لعرض باقي الأعمدة'}body.cw-staff .cr-exports,body.cw-staff .rb-report-actions,body.cw-staff .rb-report-actions form{flex-wrap:wrap}body.cw-staff .cr-exports a{min-width:0;min-height:44px;font-size:11px;flex:1 1 115px}body.cw-staff .cr-followup-form textarea,body.cw-staff .rb-editor textarea{font-size:16px}body.cw-staff .cr-followup-form>div{align-items:stretch}body.cw-staff .rb-share-box>div:nth-child(2){flex-wrap:wrap}body.cw-staff .rb-share-box input{width:100%;flex-basis:100%;font-size:14px}body.cw-staff .rb-picker-toolbar{overflow-wrap:anywhere}body.cw-staff .rb-response-option{min-height:58px}body.cw-staff .rb-checkbox{min-height:44px;align-items:center}body.cw-staff .rb-publish-bar{position:static}
body.cw-public>header{display:flex;flex-wrap:wrap;gap:12px;padding:14px;margin:12px;width:calc(100% - 24px);border-radius:13px;max-width:none}body.cw-public>header>.brand{order:1;font-size:23px}body.cw-public>header>.cw-language-switch{order:2;margin-inline-start:auto}body.cw-public>header>nav{order:3;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.cw-public>header>nav a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;background:#f0f5fc;border:1px solid #e0e8f2;border-radius:8px;padding:9px;font-size:12px;white-space:normal}body.cw-public>main{width:auto;max-width:100%;padding:22px 14px 40px;margin:0}body.cw-public main>h1{font-size:25px;line-height:1.4}body.cw-public .card{padding:20px;max-width:100%}body.cw-public .actions{flex-wrap:wrap;gap:10px}body.cw-public button{font-size:14px;max-width:100%}body.cw-public label{font-size:13px}body.cw-public input,body.cw-public textarea{width:100%}
body.rp-reader .rp-topbar{height:76px;padding-inline:18px}body.rp-reader .rp-toc{top:76px}body.rp-reader .rp-toc a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}body.rp-reader .rp-start{min-height:44px;font-size:12px}body.rp-reader .rp-question>summary{min-height:44px;font-size:12px}body.rp-reader .rp-gate input{font-size:16px;min-height:46px}body.rp-reader .rp-lightbox button{min-height:44px;min-width:60px}body.cl-login .cl-header{gap:12px;padding-inline:18px}body.cl-login .cl-password button{min-height:38px;min-width:44px;top:5px}body.cl-login .cl-sign-in{min-height:48px;font-size:14px}body.cl-login .cl-other-access a{min-height:44px;font-size:12px}body.cl-login .cl-help{font-size:11px}body.cl-login .cl-card{padding:26px 21px}body.cw-light-legacy .cw-language-floating{position:static!important;inset:auto!important;width:max-content;max-width:calc(100% - 28px);margin:20px auto;display:flex!important;padding:6px!important}body.cw-light-legacy .cw-language-floating a{display:flex;align-items:center;justify-content:center;min-height:40px;min-width:58px;font-size:13px}body.cw-light-legacy .right{padding:20px 14px!important;min-width:0}body.cw-light-legacy .login-card{padding:25px 20px!important;max-width:100%;width:100%}body.cw-light-legacy .login-title{font-size:29px!important}body.cw-light-legacy .container{width:calc(100% - 28px)!important;max-width:100%;margin-inline:auto!important}body.cw-light-legacy .topbar .nav{gap:8px}body.cw-light-legacy .topbar .nav a,body.cw-light-legacy .hero-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:12px}body.cw-light-legacy .hero{padding:23px 20px!important}
}
@media(max-width:400px){body.cw-staff .cw-breadcrumb{display:none}body.cw-staff .cw-top-actions{margin-inline-start:auto}body.cf-app .cf-topbar{padding-inline:12px}body .cw-language-switch a{padding:6px 8px;font-size:11px;min-width:46px}body.cf-app .cf-brand{font-size:22px}body.cf-app .cf-rail-nav a>span{font-size:8px}body.cf-app .cf-attachment-toolbar{gap:5px;padding:8px}body.cf-app .cf-attachment-toolbar button{font-size:9px;padding:6px 4px}body.cf-app .cf-attachment-toolbar button>svg{width:16px;height:16px}}
@media(max-width:760px) and (max-height:500px){body.cf-app .cf-topbar{position:static}body.cf-app .cf-rail-nav{position:static;border:1px solid #dce5ee;border-radius:10px;margin-bottom:18px;padding:4px}body.cf-app .cf-layout{padding-bottom:25px}body.cf-app .cf-rail{position:static}body.cw-staff .cw-topbar{position:static}body.cw-staff .cw-sidebar{top:0;height:100vh;height:100dvh}body.rp-reader .rp-topbar{position:static}body.rp-reader .rp-toc{top:0}}
@media print{.cf-rail-nav,.cw-sidebar,.cw-language-floating{display:none!important}}
@media(orientation:landscape) and (max-height:500px) and (pointer:coarse){body.cf-app .cf-topbar,body.cw-staff .cw-topbar,body.rp-reader .rp-topbar{position:static}body.rp-reader .rp-toc{top:0}body.cw-staff .cw-sidebar{top:0;height:100dvh}.ct-video{max-height:78vh;max-height:78svh}}
@media(max-width:760px){body .cw-language-switch a{min-height:44px}body.cf-app .cf-filter-tabs a,body.cf-app .cf-like-form button{min-height:44px}body.cl-login #client-password{min-height:52px}body.cl-login #toggle-password{min-height:44px;top:4px}body.cw-light-legacy .cw-language-floating a{min-height:44px}}
@media(max-width:760px){body.cw-staff .cr-study-materials>summary{min-height:44px;display:flex;align-items:center}}
