.mobile-only,.tgmap-mobile-preview,.tgmap-mobile-help,.mobile-sheet-handle{display:none!important;}
    body.tgmap-mobile{height:100dvh;min-height:100dvh;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;}
    body.tgmap-mobile .graph-shell,body.tgmap-mobile #graph{height:100dvh;max-height:100dvh;touch-action:none;}
    body.tgmap-mobile #graph canvas{touch-action:none;-webkit-user-select:none;user-select:none;}
    body.tgmap-mobile .top-left-nav,body.tgmap-mobile .channel-search-fab,body.tgmap-mobile #tooltip{display:none!important;}
    body.tgmap-mobile .graph-analysis-toolbar{top:calc(env(safe-area-inset-top) + 10px);right:calc(env(safe-area-inset-right) + 10px);width:48px;height:48px;border-radius:999px;z-index:82;}
    body.tgmap-mobile .analysis-menu-button{width:48px;height:48px;border-radius:999px;}
    body.tgmap-mobile .analysis-menu{top:56px;right:0;width:min(250px,calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 88px));max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 86px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:10px;}
    body.tgmap-mobile .mobile-only{display:flex!important;} body.tgmap-mobile #mobileMenuSearch{order:1;} body.tgmap-mobile #mobileColorSchemeToggle{order:2;} body.tgmap-mobile .color-scheme-options{display:none;order:3;} body.tgmap-mobile .color-scheme-options.is-mobile-open{display:grid;} body.tgmap-mobile #exportPngButton{order:4;} body.tgmap-mobile #subscriberSizeToggle{order:5;} body.tgmap-mobile #mobileFitGraph{order:6;} body.tgmap-mobile #mobileHelpButton{order:7;} body.tgmap-mobile #mobileReturnSource{order:8;}
    body.tgmap-mobile .analysis-menu-item{min-height:46px;height:46px;font-size:15px;} body.tgmap-mobile .color-scheme-button{min-height:46px;height:46px;}
    body.tgmap-mobile .panel#searchPanel{top:calc(env(safe-area-inset-top) + 70px);right:calc(env(safe-area-inset-right) + 10px);bottom:calc(env(safe-area-inset-bottom) + 10px);left:calc(env(safe-area-inset-left) + 10px);width:auto;max-height:none;z-index:78;border-radius:16px;touch-action:pan-y;overscroll-behavior:contain;}
    body.tgmap-mobile #searchPanel .panel-body{overflow-y:auto;overscroll-behavior:contain;} body.tgmap-mobile .search-filters{grid-template-columns:1fr;} body.tgmap-mobile .search-row{min-height:44px;} body.tgmap-mobile .input,body.tgmap-mobile .small-btn{min-height:44px;}
    body.tgmap-mobile .tgmap-mobile-preview{display:none!important;position:fixed;left:calc(env(safe-area-inset-left) + 10px);right:calc(env(safe-area-inset-right) + 10px);bottom:calc(env(safe-area-inset-bottom) + 10px);z-index:72;min-height:78px;border:1px solid var(--panel-border-color);border-radius:16px;padding:10px 12px;color:var(--text-primary);background:rgba(34,34,34,.96);box-shadow:0 14px 36px rgba(0,0,0,.48);box-sizing:border-box;font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);touch-action:none;}
    body.tgmap-mobile .tgmap-mobile-preview.is-open{display:flex!important;align-items:center;gap:11px;} body.tgmap-mobile .tgmap-mobile-preview-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden;background:var(--surface-faint);border:1px solid var(--surface-hi);} body.tgmap-mobile .tgmap-mobile-preview-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
    body.tgmap-mobile .tgmap-mobile-preview-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;} body.tgmap-mobile .tgmap-mobile-preview-heading{display:flex;align-items:baseline;gap:6px;min-width:0;width:100%;} body.tgmap-mobile .tgmap-mobile-preview-title{min-width:0;flex:1 1 auto;overflow:hidden;font-size:15px;font-weight:850;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;} body.tgmap-mobile .tgmap-mobile-preview-user{flex:0 0 auto;max-width:48%;margin:0;overflow:hidden;color:var(--text-secondary);font-size:12px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;} body.tgmap-mobile .tgmap-mobile-preview-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;min-width:0;color:var(--text-secondary);font-size:12px;line-height:1.25;} body.tgmap-mobile .tgmap-mobile-preview-metric-atom{display:inline-block;white-space:nowrap;word-break:keep-all;} body.tgmap-mobile .tgmap-mobile-preview-chevron{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;color:var(--text-primary);line-height:1;} body.tgmap-mobile .tgmap-mobile-preview-chevron svg{display:block;width:28px;height:28px;}
    body.tgmap-mobile .focus-panel{top:auto;right:0;bottom:0;left:0;width:100%;height:48dvh;max-height:calc(100dvh - env(safe-area-inset-top) - 8px);padding:0 var(--panel-padding) calc(var(--panel-padding) + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;z-index:76;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;transition:height .18s ease;}
    body.tgmap-mobile .focus-panel.mobile-sheet-full{height:calc(100dvh - env(safe-area-inset-top) - 8px);} body.tgmap-mobile .mobile-sheet-handle{display:flex!important;position:sticky;top:0;z-index:2;align-items:center;justify-content:center;width:100%;height:28px;flex:0 0 28px;border:0;background:var(--panel2);touch-action:none;cursor:ns-resize;} body.tgmap-mobile .mobile-sheet-handle::before{content:'';width:42px;height:4px;border-radius:999px;background:rgba(255,255,255,.32);}
    body.tgmap-mobile .focus-panel-header{padding-top:2px;} body.tgmap-mobile .focus-panel-hint{display:none;} body.tgmap-mobile .focus-panel-graph-link{min-height:32px;align-items:center;} body.tgmap-mobile .focus-neighbor-item{min-height:44px;}
    body.tgmap-mobile .tgmap-mobile-help{position:fixed;inset:0;z-index:88;align-items:flex-end;justify-content:center;padding:calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px);background:rgba(0,0,0,.45);box-sizing:border-box;} body.tgmap-mobile .tgmap-mobile-help.is-open{display:flex!important;} body.tgmap-mobile .tgmap-mobile-help-card{width:min(100%,460px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow-y:auto;border:1px solid var(--panel-border-color);border-radius:18px;padding:16px;background:var(--panel2);box-shadow:var(--panel-shadow);box-sizing:border-box;touch-action:pan-y;} body.tgmap-mobile .tgmap-mobile-help-head{display:flex;align-items:center;justify-content:space-between;gap:12px;} body.tgmap-mobile .tgmap-mobile-help h2{margin:0;font-size:18px;} body.tgmap-mobile .tgmap-mobile-help ul{margin:14px 0 4px;padding-left:20px;color:var(--text-secondary);line-height:1.45;} body.tgmap-mobile .tgmap-mobile-help li+li{margin-top:8px;}
    body.tgmap-mobile .avatar-load-status{left:calc(env(safe-area-inset-left) + 10px);bottom:calc(env(safe-area-inset-bottom) + 10px);}
    @media (prefers-reduced-motion:reduce){body.tgmap-mobile .focus-panel{transition:none;}}
