/* The only desktop rule hides the newly-added mobile navigation itself. */
#tz-mobile-app-nav{display:none!important}
@media(max-width:767px),(max-width:1024px) and (max-height:600px) and (hover:none) and (pointer:coarse){
 html.tzm-mobile{--tzm-nav-height:62px;--tzm-nav-space:calc(var(--tzm-nav-height) + env(safe-area-inset-bottom,0px))}
 html.tzm-app-enabled{scroll-padding-bottom:calc(var(--tzm-nav-space) + 16px)}
 html.tzm-app-enabled body{padding-bottom:calc(var(--tzm-original-bottom,0px) + var(--tzm-nav-space))!important}
 html.tzm-app-enabled #tz-mobile-app-nav:not([hidden]){box-sizing:border-box;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:var(--tzm-nav-space)!important;min-height:var(--tzm-nav-space)!important;margin:0!important;padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px))!important;border:0!important;border-top:1px solid #b6b7bd24!important;border-radius:0!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:0;background:rgba(13,17,24,.97)!important;box-shadow:0 -6px 24px #0003;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);z-index:10000!important;isolation:isolate;transform:none!important;overflow:hidden;color:#8e99a9;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
 #tz-mobile-app-nav a{position:relative;box-sizing:border-box;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 0!important;margin:0!important;min-width:0;min-height:44px;text-decoration:none!important;border:0!important;background:transparent!important;color:#8e99a9!important;font-size:10px!important;line-height:1.3!important;font-weight:500;letter-spacing:.6px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 #tz-mobile-app-nav a svg{width:21px!important;height:21px!important;display:block;flex:none;opacity:.9}
 #tz-mobile-app-nav a[aria-current="page"]{color:#ddc292!important}
 #tz-mobile-app-nav a[aria-current="page"]:before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:18px;height:2px;border-radius:2px;background:#d2b77f}
 #tz-mobile-app-nav a:active{background:#ffffff07!important;border-radius:8px}
 #tz-mobile-app-nav a:focus-visible{outline:1px solid #ddc292;outline-offset:-3px;border-radius:7px}
 /* On phones, the six page links live at the bottom; brand and account stay at the top. */
 html.tzm-app-enabled #tznav-header-v1{height:72px!important;min-height:72px!important;max-height:72px!important}
 html.tzm-app-enabled #tznav-header-v1 .tznav-inner{height:72px!important;min-height:72px!important;grid-template-rows:1fr!important;padding:8px 15px!important;row-gap:0!important}
 html.tzm-app-enabled #tznav-header-v1 .tznav-links{display:none!important}
 html.tzm-app-enabled #tznav-header-v1 .tznav-brand,html.tzm-app-enabled #tznav-header-v1 .tznav-me{grid-row:1!important}
 html.tzm-app-enabled .ta-header .ta-nav{display:none!important}
 /* Login mode controls: preserve hidden/register state and form behavior. */
 body.phone-login-page #tz-login-options{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;flex-wrap:wrap;width:max-content;max-width:100%;margin:17px auto!important;padding:0!important}
 body.phone-login-page #tz-login-options[hidden]{display:none!important}
 body.phone-login-page #tz-login-options button[data-login-mode]{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:auto!important;min-width:104px!important;min-height:42px!important;padding:10px 15px!important;margin:0!important;border:1px solid #506a836b!important;border-radius:10px!important;background:linear-gradient(145deg,#1a3047,#102135)!important;color:#adc8df!important;box-shadow:inset 0 1px 0 #ffffff0a!important;font-size:12px!important;line-height:1.3!important;font-weight:550!important}
 body.phone-login-page #tz-login-options button[data-login-mode][aria-pressed="true"]{background:linear-gradient(135deg,#28465e,#1b344b)!important;border-color:#94bbd18c!important;color:#e1eff8!important;box-shadow:inset 0 1px 0 #ffffff17,0 3px 10px #0002!important}
 /* Only the mobile works banner changes shape. Desktop still uses existing heights. */
 html.tzm-mobile body .work-hero.tzws{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16/9!important}
 html.tzm-mobile body .tzws .tzws-slide img{object-fit:cover;object-position:center}
 html.tzm-mobile body .tzws-controls{bottom:10px;padding:3px 7px;gap:5px}
 html.tzm-mobile body .tzws-controls>button{width:25px;height:25px}
 /* Category artwork stays; only the material below it is hidden on the share landing page. */
 html.tzm-mobile body .ts-columns>.ts-column>.ts-list,html.tzm-mobile body .ts-columns>.ts-column>.ts-category-sub{display:none!important}
 html.tzm-mobile body .ts-columns>.ts-column{padding-bottom:0}
 /* Keep existing mobile live controls above the fixed navigation. */
 html.tzm-app-enabled #tzchat .tzchat-window{bottom:calc(var(--tzm-nav-space) + 12px)!important;max-height:calc(100dvh - var(--tzm-nav-space) - 32px)!important}
 html.tzm-app-enabled .tfs-toast{bottom:calc(var(--tzm-nav-space) + 16px)!important}
 html.tzm-app-enabled #coop-copy-feedback{bottom:calc(var(--tzm-nav-space) + 16px)!important}
}
