/* Phone refinements for the workspace, sign-in and policy pages. Loaded last; everything except media scaling is scoped to small screens so the desktop layout is untouched. */
img,video,canvas,iframe,embed,object{max-width:100%}
img,video{height:auto}

@media(max-width:680px){
html{overflow-x:hidden}
body{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
h1,h2,h3{overflow-wrap:break-word}

/* Readable body copy */
p,.notice,.lead,.check,.channel-grid label,.project-row b{font-size:16px}
.metrics small,.project-row small,.channel-grid small,.billing-current small{font-size:14px}
footer{font-size:14px}
.top{font-size:16px}

/* Forms: 16px fields also stop iOS from zooming in on focus */
.field{font-size:16px}
.field input:not([type=checkbox]),.field select{font-size:16px;min-height:44px}
input[type=checkbox]{width:20px;height:20px}
.check,.channel-grid label{min-height:44px}

/* Buttons and links */
.primary,.ghost{min-height:44px;font-size:16px}
.section-head{flex-wrap:wrap}
.section-head .primary,.section-head .ghost{min-height:44px;padding:10px 12px;font-size:15px}
.project-row .delete{min-height:44px;min-width:44px;font-size:14px}
.plans button{min-height:44px;font-size:16px}
.tabs button{min-height:44px;font-size:14px}
.dialog-top button{min-width:44px;min-height:44px}
.empty a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}

/* Workspace menu */
#mobile-nav{width:44px;height:44px;padding:0;font-size:18px;flex:none}
.sidebar{width:min(280px,calc(100vw - 30px))}
.sidebar button{min-height:46px;font-size:16px}
.sidebar-bottom{gap:0;font-size:16px}
.sidebar-bottom a{display:flex;align-items:center;min-height:44px}
.brand{min-height:44px}

/* Sign-in and policy pages */
.auth-link{min-height:44px;font-size:16px}
.auth-note,.auth-card>a,.back{font-size:16px}
.auth-card>a,.back,.panel p>a{display:inline-flex;align-items:center;min-height:44px}
.auth-card p{font-size:16px}
}
