/* ===== Accessibility layer (WCAG 2.2 AA), shared by public site, workspace, market and tenders ===== */
html:root{--muted:#5b656d;--ox-faint:#5f686f;--px-faint:#5f686f}
html body :is(a,button,input,select,textarea,summary,[tabindex],[role="button"]):focus-visible{outline:2px solid #806331!important;outline-offset:2px!important}
html body .hint{font-size:12px!important;color:#5f686f!important}
html body .muted{color:#5b656d}
html body.register-view .registration-fields .field-label:after,html body.register-view #authForm>.field .field-label:after{content:""!important}
html body.register-view .field:has(:required)>.field-label:after{content:" *"!important;color:#a3362a}
html[dir="rtl"] body .back-link:before{content:"→"!important}
.skip-link{position:absolute;inset-inline-start:12px;top:-80px;z-index:10000;padding:10px 16px;border-radius:10px;background:#22292f;color:#fff;font-weight:700;text-decoration:none}
.skip-link:focus{top:12px}
@media (prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* App shell (Windows / Android app): sign-in screens without the marketing website */
html.osos-app #siteHeader,html.osos-app #landing,html.osos-app #siteFooter,html.osos-app .public-skip,
html.osos-app .auth-shell .back-link,html.osos-app .auth-shell .language-pill,html.osos-app .web-only{display:none!important}
html.osos-app body.public-site{background:#f6f5f1}
html.osos-app .auth-shell{min-height:100vh;min-height:100dvh}
html.osos-app .auth-shell .auth-top{justify-content:center}
html.osos-app .auth-shell .auth-top .brand-link{margin-inline:auto}
html.osos-app .app-only{display:revert!important}
.app-only{display:none!important}
html.osos-app-android,html.osos-app-ios{-webkit-tap-highlight-color:transparent}
/* Android app (Google Play payments policy): subscriptions are not bought, renewed, upgraded or redeemed inside the app.
   The subscription status stays visible; the server also refuses these requests from the Android app (index.php). */
html.osos-app-android :is(#subRenew,#subUpgrade,#subActionPanel,[data-sub-plan],[data-sub-legacy],#tenderSubscriptionAction,#tenderRenewForm,#tenderPromoForm,.t-plan-grid [data-plan]),
html.osos-app-android .sub-panel:has(.sub-plan-grid,[data-sub-legacy]),html.osos-app-android .t-panel:has(.t-plan-grid,#tenderPromoForm){display:none!important}
html.osos-app-android .sub-current::after{content:"إدارة الاشتراك غير متاحة داخل تطبيق أندرويد.";display:block;margin-top:14px;padding:10px 14px;border-radius:10px;background:#f1ede4;color:#5b656d;font-size:13px;line-height:1.8}
html.osos-app-android[lang^="en"] .sub-current::after{content:"Subscriptions can't be managed in the Android app."}
@media(max-width:700px){
 html.osos-app .auth-shell>.container{width:calc(100% - 28px)!important}
 html.osos-app .auth-shell .auth-panel{padding:26px 20px!important;border-radius:16px!important}
 html.osos-app .auth-shell .auth-top{padding-top:max(14px,env(safe-area-inset-top))}
 html.osos-app .auth-shell input,html.osos-app .auth-shell select{font-size:16px!important}
}

/* Homepage: apps download section */
.px-apps{background:#14181b;color:#ece8df;padding:clamp(56px,7vw,96px) 0}
.px-apps .px-apps-head{max-width:640px;margin-bottom:34px}
.px-apps .px-apps-head h2{margin:0 0 10px;font-size:clamp(26px,2.4vw,36px);line-height:1.35;color:#fff}
.px-apps .px-apps-head p{margin:0;color:#b5b0a5;font-size:16px;line-height:1.9}
.px-apps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.px-app-card{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid #2b3238;border-radius:18px;background:#1b2025}
.px-app-card.is-ready{border-color:#806331;background:linear-gradient(180deg,#232a30,#1b2025)}
.px-app-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#262c32;color:#d6c098}
.px-app-card.is-ready .px-app-ico{background:#ad8b50;color:#14181b}
.px-app-ico svg{width:28px;height:28px}
.px-app-card h3{margin:6px 0 0;font-size:19px;color:#fff}
.px-app-card p{margin:0;flex:1;color:#b5b0a5;font-size:14px;line-height:1.85}
.px-app-card .btn{align-self:stretch;justify-content:center;text-align:center;margin-top:8px;background:#ad8b50!important;border-color:#ad8b50!important;color:#14181b!important}
.px-app-card .btn:hover{background:#d6c098!important;border-color:#d6c098!important}
.px-app-card .px-install-help{flex:none;margin-top:8px;padding:10px 12px;border-radius:10px;background:#262c32;color:#e8dbc0;font-size:13.5px;line-height:1.8}
.px-install-alt{align-self:flex-start;margin-top:4px;color:#b5b0a5;font-size:12.5px;text-decoration:underline;text-underline-offset:3px}
.px-install-alt:hover{color:#e8dbc0}
.px-app-soon{align-self:flex-start;margin-top:8px;padding:5px 12px;border-radius:999px;background:#262c32;color:#b5b0a5;font-size:12px;font-weight:700}
@media(max-width:1000px){.px-apps-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.px-apps-grid{grid-template-columns:1fr}}

/* email field is LTR but its icon sits on the right: keep text clear of the icon */
html body .auth-shell .field-input input#email,html body .auth-shell .field-input input#resetEmail,html body .auth-shell .field-input input#email[dir],html body .auth-shell input#email:is([type]){padding-right:46px!important;padding-left:16px!important}
