/* Android-only adaptation. Telegram keeps its approved layout. */
.android-app .modal-head{position:relative;touch-action:pan-x pinch-zoom}
.android-app .modal-head::before{content:"";position:absolute;top:6px;left:calc(50% - 16px);width:32px;height:4px;border-radius:4px;background:currentColor;opacity:.3;pointer-events:none}
.android-app .modal{transform:translateY(var(--dialog-drag,0px))}
.android-app .modal.dialog-dragging{transition:none;will-change:transform;user-select:none}
.android-app .modal-body{overscroll-behavior:contain}
@media(prefers-reduced-motion:no-preference){.android-app .modal{transition:transform 160ms ease-out}}
@media(prefers-reduced-motion:reduce){.android-app .modal{transition:none}}
.android-app .btn,.android-app .icon-btn{min-height:48px}
.android-app .icon-btn{min-width:48px}
.android-app .sidebar .nav-btn{min-height:48px}
.android-app .login-wrap{width:min(100%,540px);margin-inline:auto}
.android-app .modal-body{scroll-padding-bottom:24px}
@media(min-width:600px){
 .android-app .content{padding:24px 24px 108px;max-width:1600px}
 .android-app .workspace-channels.layout-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .android-app .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .android-app .overlay{align-items:center;padding:16px}
 .android-app .modal{width:min(800px,100%);max-height:calc(var(--modal-height,100dvh) - 32px);border-radius:22px}
 .android-app .modal-head{padding:20px 24px 16px}
 .android-app .modal-body{padding-inline:24px}
 .android-app .modal>.modal-actions{padding:16px 24px}
 .android-app .wizard-progress button{min-height:60px;font-size:13px}
}
@media(min-width:721px) and (max-width:899px){
 .android-app .sidebar{display:none}
 .android-app .shell{margin-left:0}
 .android-app .topbar{padding:16px 24px;min-height:76px}
 .android-app .topbar .brand{display:flex}
 .android-app .top-label,.android-app .top-actions .avatar{display:none}
 .android-app .bottom-nav{display:grid;position:fixed;inset:auto 0 0;grid-template-columns:repeat(5,minmax(0,1fr));z-index:25;padding:8px 16px;background:#121d16;border-top:1px solid var(--line)}
 .android-app .bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px}
 .android-app .selection-bar{left:24px;right:24px;bottom:82px}
}
@media(min-width:900px){
 .android-app .sidebar{width:200px;padding:24px 18px}
 .android-app .shell{margin-left:200px}
 .android-app .content{padding:24px 28px 40px}
 .android-app .columns{grid-template-columns:repeat(2,minmax(0,1fr))}
 .android-app .bottom-nav{display:none}
 .android-app .selection-bar{left:228px;right:28px}
}
@media(min-width:1400px){.android-app .workspace-channels.layout-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-height:620px) and (min-width:600px){
 .android-app .overlay{padding:8px}
 .android-app .modal{max-height:calc(var(--modal-height,100dvh) - 16px)}
 .android-app .modal-head{padding-block:12px}
 .android-app .wizard-progress{margin-bottom:12px;padding-bottom:8px}
 .android-app .wizard-progress button{min-height:48px}
 .android-app .modal>.modal-actions{padding-block:10px}
}

/* APK host actions share the product header, without a second title bar. */
.android-native-chrome .native-host-actions{display:flex;align-items:center;gap:4px;flex:none}
.android-native-chrome .native-host-action{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--raised)}
.android-native-chrome .native-host-action .icon{width:22px;height:22px}
.android-native-chrome .login-native-actions{display:flex;justify-content:flex-end;margin-bottom:12px;min-height:44px}
@media(max-width:599px){
 .android-native-chrome .topbar{padding:10px 12px;gap:8px;min-height:64px}
 .android-native-chrome .topbar .brand-wordmark,.android-native-chrome .top-label,.android-native-chrome .top-actions .avatar{display:none}
 .android-native-chrome .topbar .brand{gap:0;flex:none}
 .android-native-chrome .top-actions{gap:6px;min-width:0}
 .android-native-chrome .balance-pill{padding:8px;min-width:0;font-size:12px}
}
@media(max-width:359px){.android-native-chrome #balance-days{display:none}}
