@media (max-width: 700px) and (pointer: coarse) {
  .pc-shell.pc-room-open .pc-header {
    padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
  }

  .pc-shell .pc-document-viewer-header {
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  .pc-embedded-layer .pc-embedded-library > header {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .pc-shell .pc-header .pc-options-trigger {
    width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .pc-shell .pc-messages .pc-copy-message {
    width: 44px;
    height: 44px;
    min-height: 44px;
    right: -4px;
    bottom: 0;
    touch-action: manipulation;
  }

  .pc-shell .pc-messages .pc-message.mine .pc-copy-message {
    right: calc(-1 * max(0px, 12px - env(safe-area-inset-right, 0px)));
  }

  .pc-shell .pc-messages .pc-delete-message,
  .pc-embedded-layer .pc-embedded-library header .pc-embedded-dismiss {
    min-width: 44px;
    min-height: 44px;
  }

  .pc-shell .pc-header .pc-options-trigger,
  .pc-shell .pc-messages .pc-delete-message,
  .pc-embedded-layer .pc-embedded-library header .pc-embedded-dismiss,
  .pc-shell .pc-document-viewer-header .pc-document-tools > button:last-child {
    position: relative;
    touch-action: manipulation;
  }

  /* Continue the last button's hit area through the unused right gutter. */
  .pc-shell .pc-header .pc-options-trigger::after,
  .pc-shell .pc-messages .pc-delete-message::after,
  .pc-embedded-layer .pc-embedded-library header .pc-embedded-dismiss::after,
  .pc-shell .pc-document-viewer-header .pc-document-tools > button:last-child::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 100%;
    width: max(0px, var(--pc-action-gutter, 8px) - env(safe-area-inset-right, 0px));
  }

  .pc-shell .pc-messages .pc-delete-message {
    --pc-action-gutter: 12px;
  }

  .pc-embedded-layer .pc-embedded-library {
    border-right-width: 0;
  }

  .pc-embedded-layer .pc-embedded-library header .pc-embedded-dismiss {
    --pc-action-gutter: 16px;
  }
}
