@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document
  url-prefix(http://www.google.com/search?),
  url-prefix(http://images.google.com/images?)
{

  body { margin: 0 !important; padding: 0 !important; }

  /* account links */
  div#guser
  {
    position: fixed !important;
    top: 1.7em !important;
    right: 0.5em !important;
  }
  div#guser > nobr:first-child
  {
    font-size: 0 !important; /* hide separators */
    padding: 0.5em !important; /* continuity for hover */
  }
  div#guser > nobr:first-child * { font-size: 10px !important; }
  div#guser > nobr:first-child b:first-child ~ *
  {
    float: right !important;
    padding: 0.2em 0.35em !important; /* continuity for hover */
    margin: 0 !important;
    display: none !important;

  }
  div#guser > nobr:first-child:hover b:first-child ~ * { display: inline !important; }
  div#guser > nobr:first-child * { opacity: 0.2 !important; }
  div#guser > nobr:first-child:hover * { opacity: 1 !important; }

  /* web history */
  div#guser ~ script + table { display: none !important; }

  /* Advanced Search, Preferences */
  body > noscript:first-child + div + table>tbody>tr>td:last-child > table:first-child>tbody>tr:first-child + tr table td:first-child+td,

  /* search button */
  body > noscript:first-child + div + table>tbody>tr>td:last-child > table:first-child>tbody>tr:first-child + tr table td:first-child input:not([type="text"]),

  /* logo and horiz space */
  a[href="/"], a#logo, body > noscript:first-child + div + table form a img, img[src$="/images_res.gif"],
  body > noscript:first-child + div + table>tbody>tr>td:not(:last-child),

  /* vert space */
  body noscript:first-child + div + table>tbody> tr:first-child > td + td:not(:last-child),
  body > noscript:first-child + div + table>tbody>tr>td:last-child>table~table,
  table.t.bt + p, table.t.bt + p + p,
  center > br, br[clear],

  table.t.bt td:first-child /* "Web" marker */
  { display: none !important; }

  /* "Web, Images, Video, News, Maps, more >>" links */
  body > noscript:first-child + div + table>tbody>tr>td:last-child > table:first-child>tbody>tr:first-child
  {
    position: fixed !important;
    right: 0.5em !important;
    top: 0 !important;
    z-index: 11 !important;
  }
  body > noscript:first-child + div + table>tbody>tr>td:last-child > table:first-child>tbody>tr:first-child font
  {
    font-size: 70% !important;
  }
  span#more
  {
    right: 0 !important;
    margin: 2em 1em 0 0 !important;
    z-index: 15 !important;
  }

  /* search box */

  body > noscript:first-child + div + table>tbody>tr>td:last-child > table:first-child>tbody>tr:first-child + tr table:first-child td:first-child
  {
    position: fixed !important;
    z-index: 10 !important;
    top: 0 !important;
    left: 0.2em !important;
    height: 1.3em !important;
  }
  body > noscript:first-child + div + table>tbody>tr>td:last-child > table:first-child>tbody>tr:first-child + tr table td:first-child input[type="text"]
  {
  }

  /* info strip and footer */
  table.t.bt, 
  table.t.bt tbody,
  table.t.bt tr
  {
    display: block !important;
    height: 1.5em !important;
    border-collapse: collapse !important;
  }
  table.bt { border: 0 !important; }
  table.t.bt td+td { display: none !important; }

  /* info strip with background */
  table.t.bt:not(.bb)
  {
    position: fixed !important;
    z-index: 9 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* results */
  body { padding: 2em 0 !important; }

/*  body > div ~ div:not([id]), 
*/
  div#res,
  div#ImgContent, 
  table.t.bt ~ br + table,
  table.t.bt + table,
  table.t.bt + a,
  table.ra,
  body > p
  { margin-left: 0.5em !important; }

  table.t.bt + table { margin-bottom: 0.5em !important; }

  div.g:first-child { margin-top: 0 !important; }

  body > div div hr { width: auto !important; }
  .j { width: auto !important; }

  span.a, p.g font~font,
  td.j nobr,
  #ImgContent font[color]
  { font-size: 70% !important; } /* uris, notes */

  /* image sizes */
  body > div ~ div:not([id]) font
  {
    float: left !important;
    margin-left: 0.5em !important;
  }
  body > div ~ div:not([id]) {
    width: 100% !important;
    overflow: auto !important; 
  } /* clear */

  /* footer */
  body > center:last-child,
  body > center table:not(:last-child),
  div#navbar td:first-child, /* "Result page" */
  div#navbar a div,
  div#navbar + center br,
  body > br
  { display: none }

  div#navbar
  {
    height: 1.1em !important;
    margin: 0.2em 0 !important;
    z-index: 10 !important;
  }
  table.t.bt.bb { z-index: 9 !important; }


  div#navbar, table.t.bt.bb
  {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  div#navbar *
  {
    height: auto !important;
    width: auto !important;
    background-image: none !important;
  }

  div#navbar td a[href],
  div#navbar td span
  {
    padding: 0.2em 0.5em !important;
    margin: 0 0.3em !important;
    font-size: 80% !important;
  }

  div#navbar td a[href]:hover
  {
    outline: thin solid rgb(51, 102, 204) !important;
  }

} /* 20070426 */