@media (max-width: 640px) {
  .sg-drawer {
    left: 0;
    right: 0;
    bottom: calc(0px + var(--sg-clear-bottom, 0px));
    width: 100%;
    max-width: 100%;
    max-height: 85dvh;
    border-radius: 0.75rem 0.75rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sg-launcher {
    /* Thin left-edge tab so the pill does not cover fields, Join, or the calendar. */
    left: max(0px, env(safe-area-inset-left, 0px));
    right: auto;
    top: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px) + var(--sg-clear-bottom, 0px));
    width: 2.75rem;
    min-width: 44px;
    max-width: 2.75rem;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 0.65rem 0.15rem;
    border-radius: 0 0.65rem 0.65rem 0;
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8125rem;
    line-height: 1.15;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  #siteGuide .sg-launcher,
  #siteGuide .sg-starter,
  #siteGuide .sg-showme,
  #siteGuide .sg-drawer__close,
  #siteGuide [data-sg="send"] {
    min-height: 44px;
  }

  .sg-drawer.sg-drawer--vv {
    top: var(--sg-vv-top);
    bottom: auto;
    height: var(--sg-vv-height);
    max-height: none;
    padding-bottom: 0;
  }
}
