/* Phone search + compact public navigation
   Viewport-centred Search is independent of the tiny header-actions flex box.
   These rules apply to actual phones and browser phone emulation only. */
@media (max-width:860px),
       (pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell
  .wb2-bar .wb2-actions > button.wb2-mobile-search.wb2-action-search {
    display:inline-flex!important;
    position:fixed!important;
    box-sizing:border-box!important;
    z-index:345!important;
    top:calc(env(safe-area-inset-top,0px) + 7px)!important;
    left:50vw!important;
    right:auto!important;
    bottom:auto!important;
    transform:translateX(-50%)!important;
    flex:0 0 auto!important;
    width:clamp(120px,36vw,155px)!important;
    min-width:120px!important;
    max-width:155px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 11px!important;
    gap:8px!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:visible!important;
    white-space:nowrap!important;
    border:1px solid rgba(166,216,255,.57)!important;
    border-radius:12px!important;
    color:#eaf7ff!important;
    background:linear-gradient(150deg,rgba(95,159,222,.29),rgba(27,70,118,.55))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.17),0 5px 14px rgba(3,18,40,.16)!important;
    cursor:pointer;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell
  .wb2-bar .wb2-actions > button.wb2-mobile-search.wb2-action-search:focus-visible{
    outline:2px solid #b6eaff!important;
    outline-offset:2px!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-bar .wb2-actions > button.wb2-mobile-search.wb2-action-search .wb2-search-art {
    display:block!important;
    flex:0 0 23px!important;
    width:23px!important;
    min-width:23px!important;
    max-width:23px!important;
    height:24px!important;
    max-height:24px!important;
    margin:0!important;
    position:static!important;
    transform:none!important;
    object-fit:contain!important;
    image-rendering:pixelated;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-bar .wb2-actions > button.wb2-mobile-search.wb2-action-search .wb2-search-label {
    display:inline!important;
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    color:#eaf7ff!important;
    font:750 13px/1.15 Inter,system-ui,sans-serif!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  /* Desktop-only keyboard navigation hints have no value on touch screens. */
  html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight
  .gss-key-tips {
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-search-shortcut {
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight
  .gss-start {
    padding-bottom:0!important;
  }
  /* Same three equal slots for the three direct publicly released pages.
     The script alone decides when More/other tabs are permitted. */
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tabs {
    grid-template-columns:repeat(var(--gtt-mobile-visible-count,3),minmax(0,1fr))!important;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation
  .gtt-mobile-tab[data-gtt-mobile-group="profiles"] .gtt-mobile-tab-icon img{
    width:27px!important;height:27px!important;max-width:27px!important;max-height:27px!important;
    object-fit:contain!important;
  }
}
@media (max-width:340px){
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell
  .wb2-bar .wb2-actions > button.wb2-mobile-search.wb2-action-search{
    width:120px!important;
    min-width:120px!important;
    padding-inline:8px!important;
  }
}
