/* Readable controls without disabling user zoom or keyboard behaviour. */
.mobile-menu-open{overflow:hidden}
.mobile-drawer{overflow-y:auto;overscroll-behavior:contain;padding-top:max(80px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
.mobile-menu-close{position:absolute;top:max(18px,env(safe-area-inset-top));right:20px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink)}
.mobile-menu-close:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.detail-grid>*{min-width:0}
.detail-card{overflow-wrap:anywhere}
.detail-card input[type=file]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:760px){.detail-grid{grid-template-columns:minmax(0,1fr)}.detail-card{padding:22px}}
@media(max-width:1100px){
  html body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  html body select,html body textarea{font-size:16px!important}
  .topbar .theme-toggle,.topbar .mobile-menu-btn{min-width:44px;min-height:44px}
  .mobile-drawer a,.mobile-drawer button{min-height:44px}
  .auth-card .btn,.signup-actions .btn,#browseOrders .job-filters .btn{min-height:48px}
}
@media(max-width:900px){
  .dashboard-layout .dashboard-main{order:-1;min-width:0}
}
@media(max-width:540px){
  .auth-card h1,.signup-card h1{font-size:clamp(26px,7.5vw,34px);line-height:1.2}
  .auth-card input,.signup-card input{min-width:0;max-width:100%}
  .social-auth-buttons .btn{padding:13px 16px}
  .phone-channel{min-width:0;min-height:64px}
  .phone-channel small{font-size:11px;word-break:normal;overflow-wrap:normal}
  .signup-actions{flex-wrap:wrap}
}
