.fb-office-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  margin-left: 8px;
  z-index: 99;
  position: relative;
}
.fb-office-button:hover {
  background: #1d4ed8;
}
.fb-office-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}
.fb-office-button span {
  vertical-align: middle;
}

@media (max-width: 736px) {
  .fb-office-button {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    margin: 0 2px;
    justify-content: center;
  }
  .fb-office-button span {
    display: none;
  }
  .fb-office-button svg {
    width: 20px;
    height: 20px;
  }

  /* Tombol preview (edit/unduh/info) jangan terdorong keluar layar */
  #previewer header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.35em 0.3em;
  }
  #previewer header > * {
    flex: 0 1 auto;
  }
  #previewer header > title {
    flex: 1 1 100%;
    order: 10;
    white-space: normal;
    word-break: break-word;
    padding: 0.2em 0.5em;
  }
  #previewer header .action {
    flex: 0 0 auto;
    margin: 2px;
    padding: 0 8px;
  }
  #previewer header .action span {
    display: none;
  }
}