/* Native Android fields are 2px smaller; saved accessibility scaling still applies. */
:root.cgs-android{--cgs-field:calc(14px * var(--cgs-text-scale,1));--cgs-native-logo-width:170px}

/* Reduce vertical inset only, retaining search-icon space, textarea sizing and
   the existing 44px minimum (including larger accessibility touch targets). */
:root.cgs-android :is(.app-shell,.account-shell,dialog) .field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]),select,textarea){padding-block:8px}

:root.cgs-android .app-shell[data-screen="C01"] .home-brand{width:var(--cgs-native-logo-width);max-width:100%}
:root.cgs-android .auth-brand-region>.auth-logo{width:var(--cgs-native-logo-width);max-width:100%}

/* Keep short navigation labels whole on 320px phones at the default size. */
:root.cgs-android .app-shell .bottom-nav button{font-size:calc(12px * var(--cgs-text-scale,1));padding-inline:0}
:root.cgs-android:not([data-cgs-large-text="true"]) .app-shell .bottom-nav{grid-template-columns:repeat(5,minmax(44px,1fr))}
:root.cgs-android:not([data-cgs-large-text="true"]) .app-shell .bottom-nav button>span:not(.nav-icon){white-space:nowrap}

@media(max-width:600px){
 :root.cgs-android .app-shell[data-screen="S13"] form[data-action="community:inbox-filter"]{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:12px}
 :root.cgs-android .app-shell[data-screen="S13"] form[data-action="community:inbox-filter"]>.field{width:100%;min-width:0;margin:0}
 :root.cgs-android .app-shell[data-screen="S13"] form[data-action="community:inbox-filter"]>.btn{justify-self:start}
 :root.cgs-android[data-cgs-large-text="true"] .app-shell[data-screen="C40"] .main-content>.actions{display:grid;grid-template-columns:minmax(0,1fr)}
 :root.cgs-android[data-cgs-large-text="true"] .app-shell[data-screen="C40"] .main-content>.actions>.btn{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
